/* ============================================
   Atlantic Control Technologies - Custom Styles
   ============================================ */

/* ============================================
   CSS Variables (Brand Colors)
   ============================================ */
:root {
    --primary-orange: #C85A3C;
    --secondary-orange: #D97855;
    --accent-copper: #B8754D;
    --dark-navy: #1a1f35;
    --dark-charcoal: #252b42;
    --light-bg: #ffffff;
    --light-gray: #f7f8fa;
    --medium-gray: #6b7280;
    --text-dark: #1f2937;
    --border-color: #e5e7eb;
    --gradient-primary: linear-gradient(135deg, #C85A3C 0%, #B8754D 100%);
    --gradient-mesh: linear-gradient(135deg, #1a1f35 0%, #252b42 50%, #1a2632 100%);
    --nav-height: 80px;
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================
   Navigation - Transforming Style with Bump-Out
   ============================================ */
.navbar {
    background: white;
    padding: 0;
    box-shadow: none; /* Removed shadow so it doesn't show over bump */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    overflow: visible; /* CRITICAL - allows bump to extend past navbar */
    height: 100px; /* FIXED HEIGHT - navbar won't scale with logo */
}

.navbar .container-fluid {
    max-width: 100%;
    padding: 0;
    overflow: visible; /* CRITICAL - allows bump to extend past container */
    height: 100%; /* Match navbar height */
}

/* Full-width navigation wrapper */
.navbar-collapse {
    width: 100%;
    overflow: visible; /* CRITICAL */
    height: 100%; /* Match navbar height */
}

/* Navigation items wrapper */
.navbar-nav {
    display: flex;
    align-items: center; /* Center items vertically */
    justify-content: center;
    gap: 0;
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: visible; /* CRITICAL */
    height: 100%; /* Match navbar height */
}

/* Individual nav items */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%; /* Full height of navbar */
}

/* Regular nav items (not logo) */
.nav-item:not(.logo-container) {
    padding: 0 45px; /* Only horizontal padding */
}

/* Nav links */
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.05em;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    padding: 0 0 4px 0 !important;
    white-space: nowrap;
    border-bottom: 2px solid var(--primary-orange);
}

.nav-link:hover {
    color: var(--primary-orange) !important;
}

/* ============================================
   Logo Container with Independent Bump-Out
   ============================================ */
.logo-container {
    position: relative;
    padding: 0 80px; /* Only horizontal padding */
    display: flex;
    align-items: center; /* Center logo vertically in fixed navbar height */
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible; /* CRITICAL - allows pseudo-element to extend */
    z-index: 100;
    height: 100%; /* Full height of navbar */
}

/* The Curved Bump-Out - Extends BELOW the navbar */
.logo-container::after {
    content: '';
    position: absolute;
    bottom: -60px; /* Positioned exactly 60px below the navbar bottom */
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    width: 200px;
    height: 60px; /* Fixed height of the bump extension */
    background: white;
    border-left: 2px solid white;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    border-bottom-left-radius: 130px;
    border-bottom-right-radius: 130px;
    -webkit-border-bottom-left-radius: 130px;
    -webkit-border-bottom-right-radius: 130px;
    -moz-border-radius-bottomleft: 130px;
    -moz-border-radius-bottomright: 130px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    pointer-events: none; /* Make sure it doesn't interfere with clicks */
}

/* Logo wrapper */
.logo-wrapper {
    background: transparent;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 10;
}

.navbar-brand .logo {
    height: 150px; /* Logo size - centered within navbar */
    width: auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    top: 25px;
}

/* ============================================
   SCROLLED STATE - Bump retracts, logo shrinks
   ============================================ */
.navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* Shadow only when scrolled */
    height: 70px; /* FIXED SMALLER HEIGHT when scrolled */
}

/* Regular nav items - no padding change needed, just centered */
.navbar.scrolled .nav-item:not(.logo-container) {
    padding: 0 45px;
}

/* Logo container - no padding change needed */
.navbar.scrolled .logo-container {
    padding: 0 60px;
}

/* Bump-out RETRACTS - height goes to 0, curves flatten */
.navbar.scrolled .logo-container::after {
    height: 0;
    bottom: 0;
    width: 180px;
    opacity: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    -webkit-border-bottom-right-radius: 0;
    -moz-border-radius-bottomleft: 0;
    -moz-border-radius-bottomright: 0;
    border-left-width: 0;
    border-right-width: 0;
    border-bottom-width: 0;
}

/* Logo shrinks when scrolled */
.navbar.scrolled .navbar-brand .logo {
    height: 50px;
    top: 0;
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 10px;
    margin: 15px;
    position: relative;
    z-index: 1001;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231f2937' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero Section (Video Background)
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    background-image: url("../images/bg-placeholder.jpg"); 
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Video Overlay */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(247, 248, 250, 0.88) 100%);
    z-index: 1;
}

/* Circuit Background (on top of video) */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;

    
}

.hero-circuit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.06;
}

.circuit-lines line {
    stroke: var(--primary-orange);
    stroke-width: 2;
}

.circuit-lines circle {
    fill: var(--primary-orange);
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 64px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--medium-gray);
    max-width: 750px;
    margin: 0 auto 50px;
    line-height: 1.7;
    font-weight: 400;
}

/* CTA Button Variations */
.cta-variations {
    margin-bottom: 60px;
}

.button-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.button-label {
    font-size: 13px;
    color: var(--medium-gray);
    font-weight: 500;
}

.button-note {
    margin-top: 20px;
    font-size: 14px;
    color: var(--medium-gray);
    font-style: italic;
}

/* Button Style 1: Gradient Fill */
.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(200, 90, 60, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 90, 60, 0.25);
}

/* Button Style 2: Gradient Border */
.btn-outline-gradient {
    background: white;
    color: var(--primary-orange);
    border: 1.5px solid var(--primary-orange);
    padding: 13px 35px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.btn-outline-gradient:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 90, 60, 0.2);
}

/* Button Style 3: Pill Shape */
.btn-pill {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(200, 90, 60, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.btn-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 90, 60, 0.25);
}

/* Button Style 4: Geometric */
.btn-geometric {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    box-shadow: 0 2px 8px rgba(200, 90, 60, 0.2);
    transition: all 0.3s ease;
}

.btn-geometric:hover {

    background: var(--secondary-orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 90, 60, 0.25);
}

/* Hero Stats */
.hero-stats {
    margin-top: 80px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item i {
    font-size: 36px;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.stat-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================
   About Section (Clean/Minimal)
   ============================================ */
.about-section {
    background: white;
}

.about-section .lead {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-section p {
    color: var(--medium-gray);
    font-size: 16px;
}

.mission-highlights {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.highlight-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.highlight-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f7f8fa 0%, #f1f3f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.highlight-item:hover .highlight-icon {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-copper) 100%);
    transform: scale(1.05);
}

.highlight-icon i {
    font-size: 22px;
    color: var(--primary-orange);
    transition: color 0.3s ease;
}

.highlight-item:hover .highlight-icon i {
    color: white;
}

.highlight-content h4 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.highlight-content p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   Services Section (Dark/Textured)
   ============================================ */
.services-section {
    background: var(--dark-navy);
    position: relative;
    overflow: hidden;
}

.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    opacity: 0.5;
}

.service-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.08;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 90, 60, 0.3);
    box-shadow: 0 12px 32px rgba(200, 90, 60, 0.15);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.service-icon i {
    font-size: 32px;
    color: white;
}

.service-card h3 {
    font-size: 22px;
    color: white;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.service-card p {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   Why Choose Section (Mesh Gradient)
   ============================================ */
.why-section {
    background: var(--dark-charcoal);
    position: relative;
    overflow: hidden;
}

.why-section-light .why-card h3,
.why-section-light .why-label {
    color: var(--text-dark);
}

.why-section-light .why-card p {
    color: var(--medium-gray);
}

.mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 20% 30%, rgba(255, 107, 53, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(255, 165, 0, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(26, 26, 46, 1) 0px, transparent 50%);
    filter: blur(40px);
}

.why-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    position: relative;
    z-index: 1;
}

.why-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(200, 90, 60, 0.3);
    box-shadow: 0 16px 40px rgba(200, 90, 60, 0.12);
}

.why-number {
    font-size: 56px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.why-number::after {
    content: '%';
}

.why-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon i {
    font-size: 32px;
    color: white;
}

.why-label {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.why-card p {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   Projects Section (Dark Grid)
   ============================================ */
.projects-section {
    background: var(--dark-navy);
}

.project-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(200, 90, 60, 0.15);
    border-color: rgba(200, 90, 60, 0.3);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 90, 60, 0.92) 0%, rgba(184, 117, 77, 0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 40px;
    color: white;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 8px;
}

.project-type {
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   Contact Section (Clean)
   ============================================ */
.contact-section {
    background: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(200, 90, 60, 0.2);
}

.info-icon i {
    font-size: 22px;
    color: white;
}

.info-content h4 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-weight: 600;
}

.info-content p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 15px;
}

.info-content a {
    color: var(--primary-orange);
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--secondary-orange);
    text-decoration: underline;
}

/* Contact Form */
.contact-form .form-control,
.contact-form .form-select {
    border: 1.5px solid var(--border-color);
    padding: 13px 18px;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(200, 90, 60, 0.08);
    outline: none;
    background: white;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer h5 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer a {
    color: var(--primary-orange);
}

.footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Logo Background Elements
   ============================================ */
.logo-bg {
    position: absolute;
    width: 800px;
    height: 800px;
    background-image: url("../images/logo-graphic.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* Size Variations */
.logo-bg-small {
    width: 500px;
    height: 500px;
}

.logo-bg-medium {
    width: 700px;
    height: 700px;
}

.logo-bg-large {
    width: 900px;
    height: 900px;
}

.logo-bg-xlarge {
    width: 1200px;
    height: 1200px;
}

/* Position Variations */
.logo-bg-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}

.logo-bg-top-left {
    top: -100px;
    left: -100px;
}

.logo-bg-top-center {
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
}

.logo-bg-top-right {
    top: -100px;
    right: -100px;
}

.logo-bg-center-left {
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
}

.logo-bg-center-right {
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
}

.logo-bg-bottom-left {
    bottom: -100px;
    left: -100px;
}

.logo-bg-bottom-center {
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
}

.logo-bg-bottom-right {
    bottom: -100px;
    right: -100px;
}

/* Opacity Variations (if you want to adjust from default 50%) */
.logo-bg-light {
    opacity: 0.3;
}

.logo-bg-lighter {
    opacity: 0.2;
}

.logo-bg-dark {
    opacity: 0.7;
}

/* Rotation Variations (for visual variety) */
.logo-bg-rotate-15 {
    transform: rotate(15deg);
}

.logo-bg-rotate-30 {
    transform: rotate(30deg);
}

.logo-bg-rotate-45 {
    transform: rotate(45deg);
}

.logo-bg-rotate-neg-15 {
    transform: rotate(-15deg);
}

.logo-bg-rotate-neg-30 {
    transform: rotate(-30deg);
}

/* Combined transform classes (position + rotate) */
.logo-bg-top-left.logo-bg-rotate-15 {
    transform: rotate(15deg);
}

.logo-bg-top-right.logo-bg-rotate-neg-15 {
    transform: rotate(-15deg);
}

.logo-bg-center.logo-bg-rotate-30 {
    transform: translate(-50%, -50%) rotate(30deg);
}

.logo-bg-bottom-right.logo-bg-rotate-45 {
    transform: rotate(45deg);
}

/* ============================================
   Scroll Animations
   ============================================ */

/* Text Reveal Animation - Words appear line by line */
.text-reveal {
    overflow: hidden;
}

.text-reveal-line {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.text-reveal-line.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for multiple lines */
.text-reveal-line:nth-child(1) { transition-delay: 0s; }
.text-reveal-line:nth-child(2) { transition-delay: 0.1s; }
.text-reveal-line:nth-child(3) { transition-delay: 0.2s; }
.text-reveal-line:nth-child(4) { transition-delay: 0.3s; }
.text-reveal-line:nth-child(5) { transition-delay: 0.4s; }

/* Hero initial animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.15s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.3s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.45s;
}

.fade-in-up.delay-4 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intersection Observer Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.33, 1, 0.68, 1);
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal-up.delay-1 {
    transition-delay: 0.1s;
}

.reveal-up.delay-2 {
    transition-delay: 0.2s;
}

.reveal-up.delay-3 {
    transition-delay: 0.3s;
}

.reveal-up.delay-4 {
    transition-delay: 0.4s;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
    /* Mobile Navigation */
    .navbar-nav {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
        padding: 15px 20px !important;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item:not(.logo-container) {
        border-bottom: 1px solid var(--border-color);
    }
    
    .logo-container {
        order: -1;
        margin: 0;
        padding: 20px !important;
        border-bottom: 2px solid var(--primary-orange);
    }
    
    .logo-container::before {
        display: none;
    }
    
    .navbar-brand .logo {
        height: 50px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Hero adjustments */
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .cta-variations .row {
        flex-direction: column;
    }
    
    /* Logo backgrounds smaller on mobile */
    .logo-bg-large {
        width: 600px;
        height: 600px;
    }
    
    .logo-bg-xlarge {
        width: 800px;
        height: 800px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .navbar-brand .logo {
        height: 45px;
    }
    
    /* Logo backgrounds even smaller on small mobile */
    .logo-bg-medium {
        width: 500px;
        height: 500px;
    }
    
    .logo-bg-large {
        width: 600px;
        height: 600px;
    }
}



@media (max-width: 991px) {
    /* Full-screen mobile menu */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: white;
        z-index: 9999;
        padding: 80px 30px 30px 30px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    /* Close button / Hamburger when menu is open */
    .navbar-toggler {
        z-index: 10000;
        position: relative;
    }
    
    /* Remove orange underlines */
    .nav-link {
        border-bottom: none !important;
    }
    
    /* Nav items styling */
    .navbar-nav {
        width: 100%;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--border-color);
        padding: 20px 0 !important;
        text-align: center;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    /* Logo in mobile menu */
    .logo-container {
        order: -1;
        border-bottom: 2px solid var(--primary-orange) !important;
        padding: 30px 0 !important;
        margin-bottom: 20px;
    }
    
    .logo-container::after {
        display: none;
    }
    
    .navbar-brand .logo {
        height: 80px;
    }
    
    /* Larger text for full-screen menu */
    .nav-link {
        font-size: 18px !important;
    }
}

/* ============================================
   Project Modal
   Append to the bottom of style.css
   ============================================ */

.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-container {
    background: white;
    border-radius: 12px;
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.project-modal-overlay.active .project-modal-container {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 14px;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-close-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
    min-height: 400px;
    background: var(--dark-navy);
}

.modal-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 15, 30, 0.7) 100%);
}

.modal-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    background: var(--gradient-primary);
    padding: 5px 12px;
    border-radius: 3px;
}

/* No-photo fallback state */
.modal-image-wrap.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.modal-image-wrap.no-photo i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.12);
}

.modal-image-wrap.no-photo .modal-no-photo-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

.modal-body-wrap {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
}

.modal-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-orange);
    margin-bottom: 8px;
}

.modal-project-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 6px;
}

.modal-project-type {
    font-size: 14px;
    font-weight: 500;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.modal-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-orange);
    background: rgba(200, 90, 60, 0.08);
    border: 1px solid rgba(200, 90, 60, 0.2);
    padding: 4px 10px;
    border-radius: 3px;
}

.modal-description {
    font-size: 15px;
    color: var(--medium-gray);
    line-height: 1.75;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.modal-detail-item h5 {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(107, 114, 128, 0.55);
    margin-bottom: 4px;
}

.modal-detail-item p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.modal-footer-cta {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
}

.modal-footer-cta p {
    font-size: 14px;
    color: var(--medium-gray);
    margin: 0;
}

.modal-cta-btn {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 12px 28px;
}

@media (max-width: 768px) {
    .project-modal-container {
        grid-template-columns: 1fr;
        max-height: 92vh;
    }

    .modal-image-wrap {
        border-radius: 12px 12px 0 0;
        min-height: 200px;
    }

    .modal-body-wrap {
        padding: 24px 20px;
    }

    .modal-details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-footer-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

