/* Bebas Neue */
@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/bebas-neue.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Outfit Weights */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* Fraunces Italic */
@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-italic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* --- PROFESSIONAL BRAND VARIABLES (NAVY & RED) --- */
:root {
    --brand-navy: #0C1F5E;
    --brand-red: #D42020;
    --red-hover: #B01A1A;
    --navy-light: #F2F5FF;
    --footer-deep: #060F2B;
    --navy-text: #0A1633;
    --navy-muted: #525E7A;
    --border-cool: #DDE4F0;
    --white: #ffffff;
}

/* --- RESET & LAYOUT --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--navy-light); color: var(--navy-text); line-height: 1.6; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 30px; }

/* --- SECTION COLOR BREAKS --- */
.bg-dark-premium { background: var(--brand-navy); color: white; padding: 100px 0; }
.bg-white-clean { background: white; padding: 100px 0; }

/* --- NAVIGATION --- */
.navbar { position: fixed; background: rgba(242, 245, 255, 1); top: 0; width: 100%; height: 90px; display: flex; align-items: center; z-index: 1000; transition: 0.4s; border-bottom: 1px solid var(--border-cool); }
.navbar.scrolled { background: var(--white); height: 75px; box-shadow: 0 10px 30px rgba(12, 31, 94, 0.1); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo img { height: 60px; }
.brand { display: block; font-family: 'Bebas Neue'; font-size: 1.6rem; color: var(--brand-navy); line-height: 1; }
.tagline { font-size: 0.65rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brand-red); font-weight: 800; }
.nav-links { display: flex; list-style: none; gap: 35px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--brand-navy); font-weight: 600; font-size: 0.95rem; }
.nav-cta { background: var(--brand-red); color: white !important; padding: 12px 24px; border-radius: 50px; transition: 0.3s; }
.nav-cta:hover { background: var(--brand-navy); }

/* --- HAMBURGER TOGGLE --- */
.nav-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1100;
    transition: 0.3s;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--brand-navy);
    border-radius: 10px;
    transition: 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* --- MOBILE RESPONSIVE NAV --- */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex; /* Shows the hamburger */
    }

    .nav-links {
        /* OVERRIDE THE OLD DISPLAY: NONE */
        display: flex !important; 
        
        /* THE FULL SCREEN OVERLAY */
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen to the right */
        width: 100%;
        height: 100vh;
        background: #ffffff;
        
        /* LAYOUT */
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 40px !important;
        
        /* ANIMATION */
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 1000;
        visibility: hidden; /* Extra safety to prevent ghost clicks when hidden */
    }

    /* WHEN ACTIVE (CLICKED) */
    .nav-links.active {
        right: 0; /* Slide into view */
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        font-family: 'Bebas Neue', sans-serif;
        font-size: 2rem; /* Big, premium mobile links */
        color: var(--brand-navy);
        letter-spacing: 2px;
        text-decoration: none;
    }

    /* Adjust the logo for mobile so it doesn't overlap the hamburger */
    .brand {
        font-size: 1.2rem;
    }
    .tagline {
        font-size: 0.55rem;
    }

    .nav-cta {
        padding: 15px 40px !important;
        font-size: 1.1rem !important;
    }

    /* --- HAMBURGER TO 'X' ANIMATION --- */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background: var(--brand-red);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background: var(--brand-red);
    }
}

/* --- HERO --- */
.hero { background: var(--brand-navy); color: white; padding: 180px 0 120px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 80px; align-items: center; z-index: 2; }
h1 { font-family: 'Bebas Neue'; font-size: clamp(3.5rem, 9vw, 7.5rem); line-height: 0.85; margin: 25px 0; }
.lime { color: var(--brand-red); } /* Mapped to Brand Red */
.outline { -webkit-text-stroke: 1px var(--white); color: transparent; }
.badge { background: var(--brand-red); color: white; display: inline-block; padding: 5px 15px; font-size: 0.75rem; font-weight: 700; border-radius: 4px; }

.hero-btns { display: flex; gap: 20px; margin-top: 45px; }
.btn-main { background: var(--brand-red); color: white; text-decoration: none; padding: 18px 36px; border-radius: 50px; font-weight: 700; transition: 0.3s; }
.btn-main:hover { background: var(--red-hover); transform: scale(1.05); }
.btn-sub { border: 1px solid white; color: white; text-decoration: none; padding: 18px 36px; border-radius: 50px; transition: 0.3s; }
.btn-sub:hover { background: rgba(255, 255, 255, 0.1); }
.tab-btn { background:white; border:1px solid #ddd; padding:12px 30px; border-radius:50px; cursor:pointer; font-weight:700; transition:0.3s; }
.tab-btn.active { background:var(--brand-navy); color:white; border-color:var(--brand-navy); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); }
.stat-card h3 { font-family: 'Bebas Neue'; font-size: 3rem; color: var(--brand-red); line-height: 1; }

/* --- TICKER --- */
.ticker { background: var(--brand-red); padding: 15px 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 35s linear infinite; }
.ticker-group span { font-family: 'Bebas Neue'; font-size: 1rem; color: white; padding: 0 45px; }
.dot { width: 8px; height: 8px; background: rgba(255,255,255,0.4); border-radius: 50%; display: inline-block; margin: 0 10px; vertical-align: middle; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- SECTIONS --- */
.sec-padding { padding: 80px 0; }
.white-bg { background: var(--white); }
.dark-bg { background: var(--brand-navy); color: var(--white); }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sec-tag { font-family: 'Bebas Neue'; color: var(--brand-red); letter-spacing: 2px; margin-bottom: 10px; display: block; }
.dark-bg .sec-tag { color: var(--brand-red); }
.sh { font-family: 'Bebas Neue'; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: var(--brand-navy); margin-bottom: 20px; }
.dark-bg .sh { color: var(--white); }
.sh em { font-family: 'Fraunces'; font-style: italic; font-weight: 300; color: var(--brand-red); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ab-card { background: #fff; border: 1px solid var(--border-cool); padding: 40px; border-radius: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.ab-icon { font-size: 2rem; margin-bottom: 15px; color: var(--brand-red); }
.ab-card h4 { font-family: 'Bebas Neue'; font-size: 1.5rem; margin-bottom: 10px; color: var(--brand-navy); }

/* CERTIFICATIONS */
/* --- PREMIUM CERTIFICATION TABS --- */
.cert-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
    margin-bottom: 50px;
}

.cert-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s all ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.cert-tab-btn.active {
    background: var(--brand-red);
    color: white;
    border-color: var(--brand-red);
    box-shadow: 0 10px 20px rgba(212, 32, 32, 0.3);
}

/* --- PREMIUM CERT CARDS --- */
.cert-grid {
    display: none; /* Hidden by default */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.cert-grid.active {
    display: grid;
    animation: fadeInUp 0.5s ease forwards;
}

.premium-cert-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-cert-card::before {
    content: "✓";
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.02);
    font-weight: 900;
}

.premium-cert-card:hover {
    background: white;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.premium-cert-card .c-label {
    display: block;
    font-family: 'Bebas Neue';
    font-size: 1.3rem;
    color: white;
    margin-bottom: 8px;
    transition: 0.3s;
}

.premium-cert-card .c-val {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-red);
    font-weight: 700;
}

.premium-cert-card:hover .c-label { color: var(--brand-navy); }
.premium-cert-card:hover .c-val { color: var(--navy-muted); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BENTO APPLICATIONS --- */
.app-bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 60px; }
.app-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 45px; border-radius: 30px; position: relative; }
.app-card.wide { grid-column: span 2; }
.app-num { font-family: 'Bebas Neue'; font-size: 3rem; color: var(--brand-red); opacity: 0.3; margin-bottom: 20px; }
.app-card h3 { font-family: 'Bebas Neue'; font-size: 2rem; margin-bottom: 10px; color: #fff; }
.app-pill { background: rgba(212, 32, 32, 0.1); color: #ff6b6b; border: 1px solid rgba(212, 32, 32, 0.2); padding: 5px 12px; border-radius: 50px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; margin-top: 15px; display: inline-block; }

/* --- PRODUCTS --- */
.prod-intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.prod-intro p { max-width: 450px; color: var(--navy-muted); font-size: 1.1rem; }
.product-modern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.p-module { background: var(--white); border: 1px solid var(--border-cool); border-radius: 24px; transition: 0.4s; height: 100%; display: flex; flex-direction: column; }
.p-module:hover { border-color: var(--brand-navy); box-shadow: 0 15px 40px rgba(12, 31, 94, 0.08); }
.p-top { padding: 40px 40px 30px; border-bottom: 1px solid var(--border-cool); }
.p-top h3 { font-family: 'Bebas Neue'; font-size: 2.4rem; line-height: 1; margin-bottom: 8px; color: var(--brand-navy); }
.p-spec-list { padding: 30px 40px; flex: 1; }
.sl-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border-cool); font-size: 0.85rem; }
.sl-item:last-child { border: none; }
.sl-item.highlight { color: var(--brand-red); font-weight: 700; }
.sl-item span { color: var(--navy-muted); }
.p-badge { background: var(--navy-light); font-size: 0.65rem; font-weight: 800; color: var(--brand-navy); text-transform: uppercase; letter-spacing: 1.5px; padding: 5px 10px; border-radius: 4px;  display: inline-block; margin-bottom: 15px; }
.p-action-btn { background: var(--brand-navy); color: white; width: calc(100% - 60px); margin: 0 30px 30px; padding: 15px; border: none; border-radius: 12px; font-family: 'Bebas Neue'; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.p-action-btn:hover { background: var(--brand-red); }

/* --- PROCESS --- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 60px; }
.pr-card { text-align: center; background: #fff; padding: 20px; border: 1px solid var(--border-cool); border-radius: 24px; transition: 0.4s; }
.pr-card:hover { border-color: var(--brand-navy); box-shadow: 0 15px 40px rgba(12, 31, 94, 0.08); }
.pr-n { font-family: 'Bebas Neue'; font-size: 3rem; color: var(--brand-navy); opacity: 0.2; }

/* --- CREDENTIALS & TEAM --- */
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cred-list { display: grid; gap: 15px; }
.c-item { background: rgba(255,255,255,0.05); padding: 25px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; }
.c-item span { color: var(--brand-red); font-weight: 700; }

.team-modern-flex { display: flex; gap: 30px; margin-top: 60px; justify-content: center; }
.tm-card { background: #fff; padding: 40px; border-radius: 30px; display: flex; align-items: center; gap: 30px; text-align: left; border: 1px solid var(--border-cool); }
.tm-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.tm-role { color: var(--brand-red); font-weight: 700; font-size: 0.8rem; margin-bottom: 10px; display: block; }

/* --- SUB PAGE HEADER --- */
/* --- PREMIUM CINEMATIC BANNER --- */
.page-header-bleed {
    background: linear-gradient(135deg, #0C1F5E 0%, #061233 100%);
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden; /* Clips the bleeding image */
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* --- REFINED TEXT STYLE --- */
.header-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 6vw, 5rem); /* Refined size */
    line-height: 0.9;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 20px;
}

.header-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    line-height: 1.5;
    border-left: 2px solid var(--brand-red);
    padding-left: 20px;
}

/* --- THE IMAGE BLEED & MIX EFFECT --- */
.header-visual-bleed {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%; /* Covers nearly half the screen */
    z-index: 1;
}

.header-visual-bleed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* The Magic: Blends the left edge into the navy background */
    mask-image: linear-gradient(to right, transparent, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 30%);
}

/* Industrial Decoration */
.page-header-bleed::before {
    content: "JJLAM / INDUSTRIAL ARCHIVE";
    position: absolute;
    bottom: 40px;
    left: 30px;
    font-family: monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 5px;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .banner-grid { grid-template-columns: 1fr; }
    .header-visual-bleed { 
        position: relative; 
        width: 120%; 
        left: -10%; 
        height: 300px; 
        margin-top: 50px;
    }
    .header-visual-bleed img {
        mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    }
}
.header-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 55px; align-items: center; }
.breadcrumb { color: var(--brand-red); font-weight: 800; font-size: 0.7rem; letter-spacing: 2px; margin-bottom: 15px; }
.breadcrumb span { opacity: 0.5; color: white; }
.breadcrumb a { color: var(--brand-red); font-weight: 700; }
.h-img { border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); filter: none; }

/* --- BENTO PROFILE --- */
.bento-profile-grid { display: grid; gap: 20px; }
.bento-box { padding: 40px; border-radius: 24px; }
.bento-box.dark { background: #050a1f; color: white; text-align: center; }
.bento-box.border { border: 1px solid var(--border-cool); background: #fff; }
.b-tag { font-family: 'Bebas Neue'; color: var(--brand-red); letter-spacing: 2px; }
.b-big { font-family: 'Bebas Neue'; font-size: 5rem; color: var(--white); line-height: 1; margin: 10px 0; }
.b-big span { font-size: 1.5rem; opacity: 0.5; }
.legal-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-cool); font-size: 0.8rem; }

/* --- LEADERSHIP CARDS --- */
.leader-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Desktop default */
    gap: 30px;
}
/* 2. Reset the Card properties to prevent "pushing" */
.leader-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border-cool);
    
    /* THE FIX: Remove fixed min-width and use auto */
    flex: 1;
    min-width: 0; 
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}
.lc-img { width: 140px; height: 140px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--border-cool); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.lc-img img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: 0.5s; }
.leader-card:hover .lc-img img { transform: scale(1.05); }
.lc-role { color: var(--brand-red); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 10px; display: block; }
.lc-qual { font-style: italic; color: var(--navy-muted); margin-bottom: 15px; font-weight: 600; }
.lc-desc { font-size: 0.9rem; color: #444; margin-bottom: 20px; }
.lc-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.lc-tags span { background: var(--navy-light); font-size: 0.7rem; font-weight: 700; padding: 5px 12px; border-radius: 50px; color: var(--brand-navy); border: 1px solid var(--border-cool); }

/* 3. Tablet View: Change from 2 columns to 1 */
@media (max-width: 1024px) {
    .leader-grid-modern {
        grid-template-columns: 1fr; /* Stack vertically */
    }
}

/* 4. Mobile View: Stack image on top of text */
@media (max-width: 600px) {
    .leader-card {
        flex-direction: column; /* Stack image and text */
        align-items: center;    /* Center everything for better mobile look */
        text-align: center;
        padding: 1.5rem;
    }

    .lc-img {
        width: 120px;
        height: 120px;
        margin-bottom: 10px; /* Space between image and name */
    }

    .lc-tags {
        justify-content: center; /* Center the tags on mobile */
    }

    .lc-info h3 {
        font-size: 1.5rem;
    }

    .lc-desc {
        font-size: 0.85rem;
    }
}

/* --- FAQ --- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 60px; }
.faq-item { background: var(--white); padding: 30px; border-radius: 20px; border: 1px solid var(--border-cool); }
.faq-item h4 { color: var(--brand-navy); margin-bottom: 10px; font-size: 1.1rem; }

/* --- GALLERY ARCHIVE LAYOUT --- */
/* --- SECTION WRAPPER --- */
.gallery-technical-section {
    background: #ffffff;
    padding: 60px 0;
}

/* --- PART 1: TECHNICAL TAB NAVIGATION --- */
/* --- EXECUTIVE CONTROL BAR --- */
.gallery-nav-border {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px; /* Tighter gap for the pill look */
    margin-bottom: 40px;
    padding: 10px;
    background: #f4f7f9; /* Light technical background */
    border-radius: 100px;
    width: max-content;
}

.tech-tab {
    position: relative;
    padding: 12px 25px;
    background: transparent;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* The Number Styling */
.tech-tab span {
    font-family: monospace;
    font-size: 0.7rem;
    color: #bbb;
    transition: 0.3s;
}

/* --- THE PREMIUM ACTIVE STATE --- */
.tech-tab.active {
    background: #ffffff; /* Floating effect */
    color: var(--brand-navy);
    box-shadow: 0 10px 25px rgba(12, 31, 94, 0.1);
}

/* Replace Underline with a "Status Block" */
.tech-tab.active span {
    color: var(--brand-red);
    font-weight: 900;
}

/* Small Industrial Accent: A vertical red bar appearing ONLY when active */
.tech-tab.active::before {
    content: "";
    width: 3px;
    height: 12px;
    background: var(--brand-red);
    border-radius: 10px;
    position: absolute;
    left: 15px;
    animation: growIn 0.3s ease forwards;
}

/* Adjust padding when active to make room for the bar */
.tech-tab.active {
    padding-left: 32px;
}

@keyframes growIn {
    from { height: 0; opacity: 0; }
    to { height: 12px; opacity: 1; }
}

/* Hover state for non-active items */
.tech-tab:not(.active):hover {
    color: var(--brand-navy);
    background: rgba(255,255,255,0.5);
}

/* --- PART 2: ARCHITECTURAL ARCHIVE GRID --- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.archive-card {
    background: #fff;
    padding: 18px; /* The "Technical Frame" */
    border: 1px solid #eee;
    position: relative;
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.archive-card:hover {
    border-color: var(--brand-red);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.archive-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9f9f9;
}

.archive-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.9);
    transition: 1.2s ease;
}

.archive-card:hover img {
    transform: scale(1.1);
}

/* Metadata Overlays */
.archive-tag {
    position: absolute;
    top: 35px;
    left: 35px;
    z-index: 10;
    background: var(--brand-red);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 5px 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
}

.archive-footer {
    padding: 25px 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.archive-title {
    font-family: 'Bebas Neue';
    font-size: 1.8rem;
    color: var(--brand-navy);
    line-height: 1;
    margin: 0;
}

.archive-spec {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-top: 5px;
}

.archive-ref {
    font-family: monospace;
    font-size: 0.7rem;
    color: #ccc;
    text-align: right;
    line-height: 1.4;
}

/* Precision Crosshair (+) */
.archive-card::after {
    content: "+";
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: #eee;
    font-size: 20px;
    font-weight: 300;
    transition: 0.3s;
}

.archive-card:hover::after { color: var(--brand-red); }

@media (max-width: 1024px) {
    .archive-grid { grid-template-columns: 1fr 1fr; }
    .gallery-nav-border { gap: 25px; overflow-x: auto; }
}

/* --- CONTACT UI --- */
.contact-card-list { display: grid; gap: 15px; margin-top: 30px; }
.c-card-item { display: flex; gap: 20px; padding: 25px; background: #fff; border-radius: 20px; border: 1px solid var(--border-cool); align-items: center; }
.cc-icon { font-size: 1.5rem; color: var(--brand-red); }
.form-container { background: white; border: 1px solid var(--border-cool); padding: 50px; border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.03); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.main-contact-form input, .main-contact-form select, .main-contact-form textarea { width: 100%; padding: 15px; border: 1px solid var(--border-cool); border-radius: 12px; background: #fafafa; font-family: inherit; }
.main-contact-form textarea { height: 150px; margin: 20px 0; }

/* --- FOOTER --- */
.footer { background: var(--footer-deep); color: white; padding: 60px 0; border-top: 4px solid var(--brand-red); }
.f-text strong { color: white; font-size: 1.4rem; font-family: 'Bebas Neue'; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.f-left { display: flex; align-items: center; gap: 15px; }
.f-logo { height: 40px; }
.f-links a { color: rgba(255,255,255,0.5); margin-left: 30px; font-size: 0.9rem; text-decoration:none; transition: 0.3s; }
.f-links a:hover { color: var(--brand-red); }
.copy { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* --- WHATSAPP (UI POLISH) --- */
.whatsapp-float { 
    position: fixed; bottom: 30px; right: 30px; 
    background: #25d366; color: white; 
    width: 60px; height: 60px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 1000; 
    transition: 0.3s; 
}
.whatsapp-float:hover { transform: scale(1.1); background: #128c7e; }

/* --- MODAL --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000; display: none; align-items: center; justify-content: center; }
.modal-content { background: white; padding: 50px; border-top: 8px solid var(--brand-red); border-radius: 30px; width: 90%; max-width: 500px; position: relative; }
.close-x { position: absolute; top: 20px; right: 25px; font-size: 1.5rem; cursor: pointer; }
.mod-form { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
.mod-form input, .mod-form textarea { padding: 12px; border: 1px solid #ddd; border-radius: 8px; }

/* --- RESPONSIVE (ORIGINAL STRUCT) --- */
@media (max-width: 1024px) {
    .grid-split, .hero-grid, .product-modern-grid, .app-bento-grid, .process-grid, .cred-grid, .team-modern-flex { grid-template-columns: 1fr; flex-direction: column; }
    .app-card.wide { grid-column: span 1; }
    .hero { text-align: center; }
    .hero-btns { justify-content: center; }
    .nav-links { display: none; }
    .prod-intro { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 900px) {
    .leader-grid-modern, .form-row, .header-grid { grid-template-columns: 1fr; }
    .lc-img { height: 250px; }
    .header-visual { display: none; }
}