/* ==========================================================================
   CSS Variables & Theme Configuration
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg: #0a1128;        /* Deep corporate blue */
    --color-text: #ffffff;      /* White for high contrast */
    --color-text-muted: #94a3b8;/* Muted blue-gray for subtext */
    
    /* Brand Accents */
    --color-primary: #ea580c;   /* Bright Orange */
    --color-primary-hover: #c2410c;
    --color-primary-glow: rgba(234, 88, 12, 0.4);
    
    /* Secondary Colors */
    --color-secondary: #3b82f6; /* Blue for outline button hover */
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Spacing & Layout */
    --container-max: 1320px;
    --container-padding: 2rem;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent; /* Transparent on home top */
}

/* For pages that are not the home page, or when scrolled */
.navbar.scrolled,
body.inner-page .navbar {
    padding: 0.8rem 0;
    background: rgba(10, 17, 40, 0.98); /* Solid blue on scroll or inner pages */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.navbar-logo {
    height: 110px; /* Refined size */
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: brightness(1.4) saturate(1.1) drop-shadow(0 0 12px rgba(234, 88, 12, 0.4));
}

.navbar.scrolled .navbar-logo {
    height: 80px;
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(234, 88, 12, 0.2));
}

/* Menu items */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-item {
    color: #ffffff; /* Always white for dark blue background */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-item:hover, 
.nav-item.active {
    color: var(--color-primary) !important;
}

/* Underline animation */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-cta {
    padding: 0.75rem 1.8rem;
    font-size: 0.9rem;
    border-radius: 50px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 2px;
    background: inherit;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Mobile Menu Open State */
.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Menu Layout */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-bg); /* Use same blue for mobile menu */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-item {
        color: #ffffff !important;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .navbar-logo {
        height: 75px;
    }
    
    .navbar.scrolled .navbar-logo {
        height: 65px;
    }
}

.no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   Hero-About Wrapper Transition
   ========================================================================== */
.hero-about-wrapper {
    position: relative;
    background: linear-gradient(180deg, var(--color-bg) 0%, #080d1e 100%);
}

.section-divider {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: -120px;
    z-index: 15;
    pointer-events: none;
}

.wave-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   Hero Section Layout
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Added top/bottom padding to keep content centered but avoiding logo bar overlap */
    padding-top: 5rem;
    padding-bottom: 8rem; 
}

/* --- Right Side: Image Background --- */
.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%; /* Extended more to the left to blend with text area */
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 25% center; /* Positioned more to the left to showcase the engineers better */
    /* Animation: scale and fade from right */
    opacity: 0;
    transform: scale(1.05) translateX(15px); /* Image fades in slightly from right */
    animation: fadeSlideRight 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Gradient Overlay to blend with the dark left background */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, 
        var(--color-bg) 0%, 
        rgba(10, 17, 40, 0.85) 35%, /* Dark blue tone */
        rgba(10, 17, 40, 0.2) 100%
    );
    z-index: 2;
}

/* --- Left Side: Content --- */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
}

.text-column {
    max-width: 680px;
    padding-right: 2rem;
}

/* ==========================================================================
   Typography & Elements
   ========================================================================== */
.label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.label-line {
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.headline {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 6rem); /* Very large for brand impact */
    font-weight: 900; /* Extra bold */
    line-height: 0.95;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.hero-subheadline {
    font-size: clamp(1.25rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary); /* Orange accent */
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-supporting-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 540px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cta-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--color-primary-glow);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid var(--color-secondary); /* Blue outline */
}

.btn-secondary:hover {
    border-color: #60a5fa; /* Lighter blue on hover */
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px) scale(1.02);
}

/* ==========================================================================
   Scroll Indicator
   ========================================================================== */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    right: var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 0.5rem;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* ==========================================================================
   Partner Companies / Client Bar
   ========================================================================== */
.client-bar-wrapper {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 0 var(--container-padding);
}

.client-bar {
    max-width: var(--container-max);
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.65); /* Dark blue glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    overflow: hidden; /* Contains the slider */
}

.client-bar-title {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Slider CSS */
:root {
    --logo-slide-width: 200px;
}

.logos-slider {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.logos-track {
    display: flex;
    align-items: center;
    width: calc(var(--logo-slide-width) * 16);
    animation: scrollLogos 32s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

.logo-slide {
    flex-shrink: 0;
    width: var(--logo-slide-width);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.logo-slide img {
    max-height: 65px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.8; /* full color, just slightly faded until hover */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.logo-slide img.logo-amcor {
    max-height: 85px;
}

.logo-slide:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(var(--logo-slide-width) * -8));
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeSlideLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeSlideLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideRight {
    to { opacity: 1; transform: scale(1) translateX(0); }
}

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

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-image-container {
        width: 70%;
    }
    
    .client-bar {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .logos {
        justify-content: center;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 8rem;
        padding-bottom: 0;
        align-items: flex-end; /* Push content down over image */
    }

    .hero-image-container {
        width: 100%;
        height: 100%;
    }

    /* Change gradient direction on mobile to fade top-to-bottom */
    .hero-overlay {
        background: linear-gradient(
            to bottom, 
            rgba(10, 17, 40, 0.3) 0%, 
            var(--color-bg) 85%
        );
    }

    .hero-content-wrapper {
        padding-bottom: 3rem;
    }

    .text-column {
        padding-right: 0;
    }

    .headline {
        font-size: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    .client-bar-wrapper {
        position: relative;
        bottom: auto;
        padding: 2rem var(--container-padding);
        background: var(--color-bg);
    }

    .client-bar {
        border: none;
        background: transparent;
        padding: 0;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    :root {
        --logo-slide-width: 150px; /* 2 logos fit on a 320px+ mobile screen */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --logo-slide-width: 170px; /* naturally fits 3 on tablet */
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.section-padding {
    padding: 8rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background-color: #080d1e; /* Seamless background transition from wrapper */
    position: relative;
    overflow: visible; /* Allows image to overlap hero slightly */
    padding-top: 4rem; /* Reduced top padding due to divider overlap */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 16px;
    padding-right: 2rem;
    padding-bottom: 2rem;
    margin-top: -6rem; /* Overlaps into the hero divider area */
    z-index: 20;
}

.about-image-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 2;
    aspect-ratio: 4/5;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    /* Subtle blue color grading to match brand */
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(10, 17, 40, 0.5) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.about-image-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 85%;
    height: 85%;
    border: 2px solid var(--color-primary); /* Orange outline */
    border-radius: 16px;
    z-index: 1;
}

.about-content {
    max-width: 650px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    color: var(--color-primary); /* Orange icon */
    background: rgba(234, 88, 12, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.about-cta {
    margin-top: 2rem;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.slide-right {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-left {
    transform: translateX(50px);
}

.animate-on-scroll.slide-up {
    transform: translateY(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.animate-on-scroll[style*="--delay"] {
    transition-delay: var(--delay);
}

/* Responsive adjustments for about section */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about-content {
        margin: 0 auto;
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    background-color: var(--color-bg); /* #0a1128 */
    position: relative;
}

.services-header {
    max-width: 800px;
    margin: 0 auto 5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.center-label { justify-content: center; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: #0d1633; /* Slightly lighter than bg */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(234, 88, 12, 0.3); /* Subtle orange border */
}

.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.service-image-overlay {
    position: absolute;
    inset: 0;
    /* Subtle blue color grading */
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(10, 17, 40, 0.6) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.service-content {
    padding: 2.5rem 2rem 2rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-icon-accent {
    position: absolute;
    top: -24px;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary); /* Orange accent */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-accent {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.service-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
    margin-top: auto; /* push to bottom */
}

.service-link:hover {
    gap: 0.75rem;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-header {
        margin-bottom: 3rem;
    }
}

/* ==========================================================================
   Segments Section
   ========================================================================== */
.segments {
    background-color: #080d1e;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem 0; /* Compact height */
}

.segments-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.segments-content {
    max-width: 500px;
}

.segments-list {
    list-style: none;
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.segments-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.segments-list li svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.segments-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.segment-img-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1; /* Compact squares */
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #0a1128;
    cursor: default;
}

.segment-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: grayscale(20%) sepia(20%) hue-rotate(180deg) brightness(0.7); /* uniform dark blue tone */
}

.segment-color-grade {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 40, 0.5); /* extra overlay for text contrast */
    transition: all 0.4s ease;
    pointer-events: none;
}

.segment-label {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    transition: all 0.4s ease;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.segment-img-card:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(0.9);
}

.segment-img-card:hover .segment-color-grade {
    background: rgba(10, 17, 40, 0.2);
}

.segment-img-card:hover .segment-label {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .segments-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .segments-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .segments {
        padding: 4rem 0;
    }
    .segments-images {
        grid-template-columns: repeat(2, 1fr);
    }
    .segments-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ==========================================================================
   Diferenciais Section
   ========================================================================== */
.diferenciais {
    background-color: #f8fafc; /* Very subtle light gray/blue to contrast white cards */
    color: #0a1128;
    position: relative;
}

.diferenciais .section-title {
    color: #0a1128;
}

.diferenciais .section-text {
    color: #475569;
}

.diferenciais-header {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diferenciais-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.dif-card {
    flex: 0 1 calc(33.333% - 1.333rem);
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(10, 17, 40, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dif-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 17, 40, 0.12);
}

.dif-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    padding: 16px;
}

.dif-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    mix-blend-mode: multiply; 
    filter: grayscale(100%) sepia(100%) hue-rotate(185deg) saturate(500%) brightness(0.8) contrast(1.2);
}

.dif-card:hover .dif-icon-wrapper {
    background: rgba(234, 88, 12, 0.1);
    transform: scale(1.05) rotate(5deg);
}

.dif-card:hover .dif-icon {
    filter: grayscale(100%) sepia(100%) hue-rotate(345deg) saturate(500%) brightness(0.9) contrast(1.2);
}

.dif-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a1128;
    margin-bottom: 1rem;
}

.dif-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .dif-card {
        flex: 0 1 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .dif-card {
        flex: 0 1 100%;
    }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    position: relative;
    padding: 8rem 0; /* Large padding */
    background: linear-gradient(135deg, #0a1128 0%, #15234b 100%); /* Dark blue gradient */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05); /* Subtle divider */
}

.cta-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('cta-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Low opacity for readability */
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Subtle background gradient movement */
.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(234, 88, 12, 0.08) 0%, transparent 50%);
    animation: rotateGradient 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    /* Zoom-in starting state */
    transform: scale(0.92);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.2s ease;
}

.cta-container.is-visible {
    /* Zoom-in final state */
    transform: scale(1);
    opacity: 1;
}

.cta-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cta-subheadline {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px; /* Fully rounded corners */
}

.btn-whatsapp {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    border-color: #25D366; 
    background-color: rgba(37, 211, 102, 0.1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp svg {
    color: #25D366;
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    .cta {
        padding: 6rem 1rem; /* Adjust mobile padding */
    }
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    background-color: #060a18; /* Darker than var(--color-bg) for depth */
    color: #ffffff;
    padding-top: 5rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(234, 88, 12, 0.5)) saturate(1.4) brightness(1.15);
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary); /* Orange accent */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary); /* Small orange accent line */
    border-radius: 2px;
}

.footer-logo {
    height: 90px; /* Slightly reduced */
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: brightness(1.4) saturate(1.1);
    transition: all 0.4s ease;
}

.footer-logo:hover {
    filter: brightness(1.5) saturate(1.2) drop-shadow(0 0 12px rgba(234, 88, 12, 0.4));
    transform: scale(1.05);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
    border-color: var(--color-primary);
}

/* Careers Section */
.footer-careers {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.careers-note {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.btn-careers {
    display: inline-block;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-careers:hover {
    background-color: #d9480f; /* Darker orange */
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    color: #ffffff;
}

.careers-direct {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ==========================================================================
   GLOBAL ANIMATIONS & PREMIUM FEEL REFINEMENTS
   ========================================================================== */

/* 1. Global Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* 2. Global Transitions Override */
/* Ensures all hoverable elements use a smooth ease-out curve within the 0.3s to 0.4s range */
a, button, .btn, .service-card, .dif-card, .segment-img-card, .social-icon, .icon-wrapper, .dif-icon-wrapper, img {
    transition-timing-function: ease-out !important;
}

.btn, .btn-primary, .btn-secondary, .btn-whatsapp, .social-icon {
    transition-duration: 0.3s !important;
}

/* 3. Global Scroll Animations Base */
/* Modifying the duration to be in the requested 0.4s to 0.8s range and using ease-out */
.animate-on-scroll {
    transition: transform 0.8s ease-out, opacity 0.8s ease-out !important;
}
.animate-left, .animate-up, .animate-fade, .animate-right {
    animation-timing-function: ease-out !important;
    animation-duration: 0.8s !important;
}

/* 4. Hover Effects (Global Limits) */
/* Ensuring scale values are between 1.02 and 1.05 max without bouncing */

/* HERO BUTTONS */
.btn-primary:hover, .btn-secondary:hover, .btn-whatsapp:hover {
    transform: translateY(-2px) scale(1.03) !important;
}

/* SERVICES SECTION */
.service-card {
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, border-color 0.4s ease-out !important;
}
.service-card:hover {
    transform: translateY(-5px) scale(1.03) !important; /* Lifts slightly and scales 1.03 */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important; /* Shadow increases */
}
.service-card:hover .service-image {
    transform: scale(1.05) !important; /* Image zooms slightly */
}

/* SEGMENTS SECTION */
.segment-img-card img {
    transition: transform 0.5s ease-out, filter 0.5s ease-out !important;
}
.segment-img-card:hover img {
    transform: scale(1.05) !important; /* Slight scale */
    filter: grayscale(0%) brightness(1.1) !important; /* Becomes brighter */
}

/* PROJECTS SECTION (Generic rules for future compatibility) */
.project-card {
    transition: all 0.4s ease-out !important;
    overflow: hidden;
    position: relative;
}
.project-card img {
    transition: transform 0.5s ease-out !important;
}
.project-card:hover img {
    transform: scale(1.05) !important; /* Image zoom */
}
.project-card-overlay {
    transition: background-color 0.4s ease-out !important;
}
.project-card:hover .project-card-overlay {
    background-color: rgba(0, 0, 0, 0.6) !important; /* Overlay darkens */
}

/* DIFFERENTIALS SECTION */
.diferenciais-card, .dif-card {
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, border-bottom 0.4s ease-out !important;
}
.diferenciais-card:hover, .dif-card:hover {
    transform: translateY(-5px) scale(1.02) !important; /* Cards move up slightly */
    box-shadow: 0 15px 40px rgba(30, 42, 94, 0.12) !important;
}

/* LOGO SLIDER */
/* Ensure continuous linear scrolling with no easing */
.logos-track {
    animation-timing-function: linear !important;
}

/* CTA SECTION */
.cta-container {
    transition: transform 0.8s ease-out, opacity 0.8s ease-out !important;
}
.cta-container.is-visible {
    transform: scale(1) !important; /* Zoom-in when entering viewport */
}

/* FOOTER */
.social-icon {
    transition: all 0.3s ease-out !important;
}
.social-icon:hover {
    transform: scale(1.1) translateY(-2px) !important; /* Slight scale animation */
}
.footer-links a {
    transition: transform 0.3s ease-out, color 0.3s ease-out !important;
}
.footer-links a:hover {
    transform: translateX(5px) scale(1.02) !important;
}

/* ==========================================================================
   Services v2 — 4-Card Grid with Modal
   ========================================================================== */

/* Grid */
.srv2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    margin-top: 4rem;
}

/* Card */
.srv2-card {
    background: #0d1633;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
}

.srv2-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.45);
    border-color: rgba(234, 88, 12, 0.35);
}

/* Image */
.srv2-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.srv2-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.srv2-card:hover .srv2-img {
    transform: scale(1.08);
}

.srv2-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(13,22,51,0.85) 100%);
    pointer-events: none;
}

.srv2-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(234,88,12,0.4);
    z-index: 2;
}

/* Card Body */
.srv2-body {
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.srv2-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(234, 88, 12, 0.12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.srv2-card:hover .srv2-icon {
    background: rgba(234, 88, 12, 0.22);
    transform: scale(1.08);
}

.srv2-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.srv2-sub {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.srv2-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    flex: 1;
    margin-bottom: 1.5rem;
}

.srv2-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid rgba(234, 88, 12, 0.5);
    color: var(--color-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, gap 0.3s ease;
    align-self: flex-start;
}

.srv2-btn svg {
    transition: transform 0.3s ease;
}

.srv2-card:hover .srv2-btn,
.srv2-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.srv2-card:hover .srv2-btn svg,
.srv2-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1200px) {
    .srv2-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .srv2-grid {
        grid-template-columns: 1fr;
    }
    .srv2-img-wrap {
        height: 200px;
    }
}

/* ==========================================================================
   Modal System
   ========================================================================== */

.srv2-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 26, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.srv2-modal-overlay.srv2-modal-open {
    opacity: 1;
    pointer-events: all;
}

.srv2-modal {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    max-width: 860px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.88) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.srv2-modal-overlay.srv2-modal-open .srv2-modal {
    transform: scale(1) translateY(0);
}

/* Close button */
.srv2-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.08);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: #0a1128;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.srv2-modal-close:hover {
    background: var(--color-primary);
    color: #fff;
    transform: rotate(90deg) scale(1.05);
}

/* Modal image side */
.srv2-modal-img-wrap {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

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

.srv2-modal-img-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(234,88,12,0.45);
}

/* Modal content side */
.srv2-modal-body {
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    overflow-y: auto;
}

.srv2-modal-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    background: rgba(234,88,12,0.1);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    width: fit-content;
}

.srv2-modal-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #0a1128;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.srv2-modal-desc {
    font-size: 0.97rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* Bullet list */
.srv2-modal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.srv2-modal-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

.srv2-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.srv2-check::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

/* CTA inside modal */
.srv2-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.9rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 6px 20px rgba(234,88,12,0.35);
}

.srv2-modal-cta svg {
    transition: transform 0.3s ease;
}

.srv2-modal-cta:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(234,88,12,0.45);
}

.srv2-modal-cta:hover svg {
    transform: translateX(5px);
}

/* Modal scrollbar */
.srv2-modal::-webkit-scrollbar { width: 6px; }
.srv2-modal::-webkit-scrollbar-track { background: #f1f5f9; }
.srv2-modal::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Responsive modal */
@media (max-width: 768px) {
    .srv2-modal {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    .srv2-modal-img-wrap {
        min-height: 220px;
        max-height: 240px;
    }
    .srv2-modal-body {
        padding: 1.75rem 1.5rem;
    }
}

/* ==========================================================================
   Segments v2 — Two-column Premium Layout
   ========================================================================== */

.seg2-section {
    background-color: #080d1e;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.seg2-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Wrapper: text | divider | images */
.seg2-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1px 0.8fr;
    gap: 0 3rem;
    align-items: center;
}

/* ── LEFT ── */
.seg2-content { padding-right: 1rem; }
.seg2-content .section-title { margin-bottom: 1rem; }
.seg2-content .section-text  { margin-bottom: 1.25rem; max-width: 440px; }

/* List */
.seg2-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
}

.seg2-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.3s ease, padding-left 0.3s ease;
    cursor: default;
}

.seg2-list li:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.seg2-list li:hover { color: var(--color-primary); padding-left: 0.35rem; }

.seg2-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(234,88,12,0.5);
    transition: transform 0.3s ease;
}

.seg2-list li:hover .seg2-dot { transform: scale(1.4); }

/* CTA */
.seg2-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(234,88,12,0.4);
    padding-bottom: 2px;
    transition: gap 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.seg2-cta svg { transition: transform 0.3s ease; }
.seg2-cta:hover { gap: 0.9rem; border-color: var(--color-primary); color: #ff6b1a; }
.seg2-cta:hover svg { transform: translateX(4px); }

/* ── DIVIDER ── */
.seg2-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(234,88,12,0.25) 20%,
        rgba(234,88,12,0.25) 80%,
        transparent 100%
    );
}

/* ── RIGHT: 2×2 Grid ── */
.seg2-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-left: 0;
}

.seg2-img-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(255,255,255,0.06);
    background: #0a1128;
    cursor: default;
}

.seg2-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.8) saturate(0.85) sepia(0.1);
    transition: transform 0.55s cubic-bezier(0.2,0.8,0.2,1), filter 0.55s ease;
}

.seg2-img-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.0) saturate(1.0) sepia(0);
}

.seg2-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,17,40,0.1) 0%, rgba(10,17,40,0.55) 100%);
    pointer-events: none;
    transition: background 0.4s ease;
}

.seg2-img-card:hover .seg2-img-overlay {
    background: linear-gradient(to bottom, rgba(10,17,40,0.0) 0%, rgba(10,17,40,0.3) 100%);
}

.seg2-img-label {
    position: absolute;
    bottom: 0.85rem;
    left: 0.9rem;
    right: 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    pointer-events: none;
    transition: color 0.35s ease, transform 0.35s ease;
}

.seg2-img-card:hover .seg2-img-label {
    color: #ffffff;
    transform: translateY(-2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .seg2-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem 0;
    }
    .seg2-divider { display: none; }
    .seg2-content { padding-right: 0; }
    .seg2-images  { padding-left: 0; }
    .seg2-content .section-text { max-width: 100%; }
}

@media (max-width: 600px) {
    .seg2-section { padding: 5rem 0; }
    .seg2-img-card { aspect-ratio: 1/1; }
}

@media (max-width: 400px) {
    .seg2-images { grid-template-columns: 1fr; }
}

/* 12-card variant: 3 columns on right side */
.seg2-images-lg {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.seg2-images-lg .seg2-img-card {
    aspect-ratio: 1/1;
}

.seg2-images-lg .seg2-img-label {
    font-size: 0.7rem;
}

@media (max-width: 1024px) {
    .seg2-images-lg {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .seg2-images-lg {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .seg2-images-lg {
        grid-template-columns: repeat(2, 1fr);
    }
}




/* ==========================================================================
   Projects Gallery Section
   ========================================================================== */
.projects-gallery {
    background-color: var(--color-bg);
}

.gallery-header {
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: saturate(0.8) contrast(1.1) brightness(0.9) sepia(0.1);
}

.gallery-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.08); /* Soft corporate blue */
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 40, 0);
    transition: background 0.4s ease;
    z-index: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: saturate(1) contrast(1) brightness(1) sepia(0);
}

.gallery-item:hover .gallery-img-wrapper::after {
    opacity: 0.3;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(10, 17, 40, 0.3);
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(8, 13, 30, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.gallery-modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
}

.gallery-modal-content {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-modal.show .gallery-modal-content {
    transform: scale(1);
}

.close-gallery {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2001;
    line-height: 1;
}

.close-gallery:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

/* Responsiveness for Gallery */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-modal-content-wrapper {
        max-width: 95%;
    }
    .close-gallery {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Director Section
   ========================================================================== */
.director {
    background-color: #080d1e;
    position: relative;
    overflow: hidden;
}

.director-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.director-image-wrapper {
    position: relative;
    border-radius: 20px;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

.director-image-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    z-index: 2;
    aspect-ratio: 4/5;
}

.director-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.director-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(10, 17, 40, 0.4) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.director-image-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 85%;
    height: 85%;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    z-index: 1;
}

.director-content {
    max-width: 650px;
}

.director-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.director-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.director-text {
    margin-bottom: 2.5rem;
}

.director-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.director-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.highlight-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.highlight-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
}

.director-cta {
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .director-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .director-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
        padding-right: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .director-content {
        margin: 0 auto;
        text-align: center;
    }

    .director-content .label {
        justify-content: center;
    }

    .director-highlights {
        justify-items: center;
    }

    .highlight-item {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .director-highlights {
        grid-template-columns: 1fr;
    }
}
