@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@400;600;700&display=swap');

:root {
    /* Brand Colors - Exact Logo Calibration */
    --purple: #3D4EB0; /* Original Brand Purple (Logo Match) */
    --purple-light: #3D4EB0;
    --navy: #3D4EB0; /* Deep Indigo-Navy (Foundation) */
    --gold: #FDB813;
    --green: #00A651;
    
    /* UI Neutrals - Light Theme */
    --background: #FFFFFF;
    --surface: #F8F9FA;
    --text-main: #212121;
    --text-muted: #616161;
    --glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    
    /* Layout Constants */
    --section-padding: 100px 5%;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Vanguard Signature Tokens */
    --vanguard-navy: #050810;
    --vanguard-purple: #1A1F4D;
    --vanguard-gold: #FDB813;
    --blueprint-grid: radial-gradient(rgba(253, 184, 19, 0.08) 1px, transparent 1px);
    --glass-premium: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --layout-padding: 140px 8%;
    --transition-vanguard: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--purple);
}

/* Glassmorphism Classes */
.glass-effect {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%); /* Baseline for white links */
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 5%;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

nav.scrolled .logo {
    padding: 0;
}

.logo img {
    height: 50px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo .logo-scrolled {
    display: none;
}

nav.scrolled .logo .logo-default {
    display: none;
}

nav.scrolled .logo .logo-scrolled {
    display: block;
    height: 42px;
}

.nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-smooth);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav.scrolled .nav-links a {
    color: #1A1F4D; /* Elite Dark Navy */
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-extra .btn-primary {
    padding: 12px 28px;
    font-size: 0.95rem;
    border-radius: 4px;
    background: var(--purple);
    color: white; 
    border: 1px solid var(--purple);
    font-weight: 700;
}

.nav-extra .btn-primary:hover {
    background: var(--gold);
    color: var(--purple);
    border-color: var(--gold);
}

nav.scrolled .nav-extra .btn-primary {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
}

nav.scrolled .nav-extra .btn-primary:hover {
    background: var(--gold);
    color: var(--purple);
    border-color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Premium Hero Slider */
.hero-slider {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.slider-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Shifted to Left */
    padding-left: 5%; /* Aligned with site-wide grid */
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 10s linear;
}

.slide.active .slide-bg img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(63, 75, 165, 0.2) 0%, rgba(20, 25, 60, 0.9) 100%); /* Cinematic Purple Gradient */
    z-index: 2;
}

.slide-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(253, 184, 19, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 3;
    pointer-events: none;
    opacity: 0.5;
}

.slide-content {
    position: relative;
    z-index: 10;
    text-align: left; /* Shifted to Left */
    color: white;
    max-width: 900px;
    padding: 0;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-size: clamp(3rem, 9vw, 5.5rem); /* Increased for authoritative scale */
    line-height: 1;
    margin-bottom: 25px;
    font-weight: 900;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.slide-title .highlight {
    color: var(--gold);
}

.slide-text {
    font-size: 1.2rem;
    margin-bottom: 45px;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin-left: 0; /* Align Left */
    margin-right: auto;
}

.slider-controls {
    position: absolute;
    bottom: 40px; /* Moved to bottom */
    right: 5%; /* Aligned with right grid */
    display: flex;
    gap: 15px;
    z-index: 30;
    pointer-events: none;
}

.slider-control {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    pointer-events: auto;
    font-size: 1.2rem;
}

.slider-control:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 30;
}

.dot {
    width: 30px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot.active {
    background: var(--gold);
    width: 50px;
}

@media (max-width: 768px) {
    .slider-controls { display: none; }
    .slide-title { font-size: 2.5rem; }
    .slide-text { font-size: 1rem; }
}

.cta-group {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--purple);
    color: white;
    border-radius: 4px;
    border: 1px solid var(--purple);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--purple);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slide .btn-outline {
    border: 2px solid white;
    color: white;
    border-radius: 4px;
}

.slide .btn-outline:hover {
    background: white;
    color: var(--purple);
}

/* Specialized Services: Precision Portfolio */
.services {
    padding: 120px 5%;
    background: #fff;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(42, 58, 140, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 25px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.service-card {
    padding: 0; /* Removing internal padding to let images bleed */
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    filter: brightness(0.9); /* Subtle professional dimming */
    transition: all 0.6s ease;
}

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

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(42, 58, 140, 0.1);
    border-color: rgba(42, 58, 140, 0.1);
}

.service-card:hover .service-image {
    filter: grayscale(0%);
}

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

.service-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--purple); /* Switched to Brand Purple */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--navy);
    line-height: 1.2;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.view-project-btn {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-project-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-project-btn:hover i {
    transform: translateX(5px);
    color: var(--gold);
}

/* Stats Section: Experience Ribbon */
.stats {
    padding: 80px 5%; 
    background: linear-gradient(to right, #1A1F4D, #3F4BA5); /* Cinematic Purple-Navy Gradient */
    color: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(253, 184, 19, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.stat-item h3 {
    font-size: 3rem; 
    background: linear-gradient(to bottom, #FFFFFF, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-item p {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
}

/* Vanguard Signature Footer */
/* Boutique Minimalist CTA */
.boutique-cta {
    padding: 120px 5%;
    background: #fdfdfd;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.cta-inner {
    max-width: 900px;
    margin: 0 auto;
}

.cta-heading {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--purple); /* Switched to Brand Purple */
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.cta-subheading {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    line-height: 1.8;
}

.cta-button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-boutique {
    padding: 18px 45px;
    background: var(--purple);
    color: white;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-boutique.outline {
    background: transparent;
    border: 2px solid var(--purple);
    color: var(--purple);
}

.btn-boutique:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-5px);
}

/* Elite Vanguard Footer */
.boutique-footer {
    padding: 120px 5% 0;
    background: #050810; /* Elite Dark Navy */
    background-image: radial-gradient(circle at 50% 50%, rgba(61, 78, 176, 0.05) 0%, transparent 100%),
                      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    color: white;
    position: relative;
    border-top: 1px solid rgba(253, 184, 19, 0.2);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr;
    gap: 100px;
    padding-bottom: 100px;
}

.footer-brand p {
    margin: 30px 0 40px;
    font-size: 0.95rem;
    line-height: 2;
    color: rgba(255,255,255,0.5);
    max-width: 450px;
    font-weight: 300;
}

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

.footer-social-minimal a {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-minimal a:hover {
    color: #050810;
    border-color: var(--gold);
    transform: translateY(-5px);
}

.footer-social-minimal a::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 0;
    background: var(--gold);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-minimal a:hover::before {
    height: 100%;
}

.boutique-footer h4 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 40px;
    font-weight: 800;
    opacity: 0.9;
}

.footer-simple-nav {
    list-style: none;
}

.footer-simple-nav li {
    margin-bottom: 20px;
}

.footer-simple-nav a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-simple-nav a:hover {
    color: var(--gold);
    transform: translateX(8px);
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    margin-bottom: 25px;
    color: rgba(255,255,255,0.6);
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact-list i {
    color: var(--gold);
    font-size: 1.1rem;
    opacity: 0.8;
}

.footer-est-mark {
    margin-top: 40px;
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
    border-top: 1px solid rgba(253, 184, 19, 0.1);
    padding-top: 25px;
    display: inline-block;
}

.footer-bottom-minimal {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 40px 5%;
}

.footer-bottom-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-bottom-links {
    display: flex;
    gap: 40px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.2);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: #0a0f1e; /* Dark for high contrast */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 999;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .nav-links li a {
        color: white;
        text-decoration: none;
        font-size: 1.2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    .btn-boutique { width: 100%; text-align: center; }
    .cta-heading { font-size: 2.2rem; }
}

/* Animations Core */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.contact-signature p {
    margin-bottom: 20px;
    color: rgba(255,255,255,0.5);
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-signature i {
    color: var(--gold);
    margin-top: 4px;
}

.legacy-signature .est {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.legacy-signature p {
    font-size: 0.8rem;
    letter-spacing: 2px;
    line-height: 1.8;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
}

.copyright {
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
    position: relative;
    z-index: 5;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* Boutique About Teaser: 50vh No-Scroller */
.about-teaser {
    min-height: 60vh; /* Increased slightly to accommodate padding */
    padding: 100px 5%; /* Matches Services section padding */
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
}

.teaser-container {
    display: flex;
    height: 100%;
}

.teaser-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.teaser-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.teaser-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(61, 78, 176, 0.3), transparent);
}

.teaser-badge {
    position: absolute;
    bottom: 20px; left: 20px;
    background: var(--gold);
    color: var(--navy);
    padding: 10px 15px;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.teaser-content {
    flex: 1.2;
    padding: 40px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    position: relative;
}

.teaser-title {
    font-size: 2.2rem;
    color: var(--purple);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.teaser-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 25px;
}

.btn-teaser {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-teaser:hover {
    color: var(--gold);
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .about-teaser { height: auto; }
    .teaser-container { flex-direction: column; }
    .teaser-visual { height: 300px; }
}

/* --- MOBILE RESPONSIVE SYSTEM (ULTRA-VANGUARD) --- */

/* Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1001; /* Always above the nav panel */
    position: relative;
}

nav.scrolled .menu-toggle {
    color: var(--navy);
}

/* When menu is open, force the X icon to always be white and visible */
.menu-toggle .fa-times {
    color: white !important;
}

/* Overlay behind open mobile menu */
body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

@media (max-width: 1100px) {
    /* Navbar Scaling for many links */
    .nav-links {
        gap: 12px;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 991px) {
    /* Hamburger Menu Logic */
    .menu-toggle {
        display: block;
        order: 3;
    }

    .nav-extra {
        display: none; /* Hide Quote button on mobile to save space */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #050810;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 40px 50px;
        gap: 0;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        box-shadow: -10px 0 40px rgba(0,0,0,0.6);
        z-index: 999;
        border-left: 1px solid rgba(253, 184, 19, 0.15);
    }

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

    .nav-links a:hover,
    .nav-links a.active-nav {
        color: var(--gold) !important;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* Prevent the active underline from overlapping adjacent links */
    .nav-links a::after {
        display: none;
    }

    .nav-links a.active-nav {
        color: var(--gold) !important;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .nav-links li:first-child {
        border-top: 1px solid rgba(255,255,255,0.07);
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 0.85rem;
        color: rgba(255,255,255,0.8) !important;
        text-shadow: none;
        letter-spacing: 1.5px;
        font-weight: 600;
        width: 100%;
        text-align: center;
        transition: color 0.3s ease;
        text-transform: uppercase;
    }

    .nav-links a:hover {
        color: var(--gold) !important;
    }

    /* Hero & Content Stacking */
    .hero-sliderContainer { height: 70vh; }
    .slide-content h1 { font-size: 2.8rem; }
    
    .stats {
        flex-direction: column;
        gap: 50px;
        padding: 80px 5%;
    }

    .services-grid, .gallery-grid, .blog-grid, .mvv-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-teaser .teaser-container {
        flex-direction: column !important;
    }

    .teaser-visual {
        min-height: 400px;
    }

    /* Footer Stacking */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .footer-brand p {
        margin: 20px auto 40px;
    }

    .footer-social-minimal {
        justify-content: center;
    }

    .footer-simple-nav a, .footer-contact-list li {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 20px;
    }

    /* Internal Hero */
    .internal-hero {
        padding: 150px 5% 80px;
    }

    /* Career and Gallery Tweaks */
    .benefits-grid { grid-template-columns: 1fr; }
    .job-card-elite { flex-direction: column; align-items: flex-start; gap: 20px; }
    .career-intro { grid-template-columns: 1fr; text-align: center; }
    .career-intro-image { height: 350px; }

    /* Client Logo Page */
    .clients-grid-page { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .slide-content h1 { font-size: 2.2rem; }
    .slide-content p { font-size: 0.9rem; }
    .cta-group { flex-direction: column; width: 100%; }
    .cta-group .btn { width: 100%; text-align: center; }
}

/* Vanguard Specialized Utilities */
.vanguard-bg {
    background: var(--vanguard-navy);
    background-image: var(--blueprint-grid);
    background-size: 50px 50px;
    position: relative;
}

.blueprint-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--vanguard-gold), transparent);
    height: 1px;
    width: 100%;
    opacity: 0.1;
}

.vanguard-card {
    background: var(--glass-premium);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 60px;
    position: relative;
}

.vanguard-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--vanguard-gold);
    border-left: 2px solid var(--vanguard-gold);
}

.vanguard-number {
    font-family: 'Outfit';
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 20px; right: 20px;
}

.vanguard-title {
    font-family: 'Outfit';
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -2px;
    color: white;
    text-transform: uppercase;
}

.vanguard-highlight {
    color: var(--vanguard-gold);
}

/* Internal Page Elements */
.internal-hero {
    height: 480px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(10, 15, 30, 0.85), rgba(10, 15, 30, 0.85)), url('images/soil-1.jpg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.internal-hero-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.internal-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    color: white !important;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
}

.internal-hero .highlight {
    color: var(--gold);
}

.active-nav {
    color: var(--gold) !important;
}

.active-nav::after {
    width: 100% !important;
}

/* Brochure Section */
.brochures-section {
    padding: 100px 5%;
    background: #f8f9fa;
    text-align: center;
}

.brochures-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 50px auto 0;
}

.brochure-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.brochure-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

.brochure-img {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.brochure-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.brochure-card:hover .brochure-img img {
    transform: scale(1.05);
}

.brochure-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.brochure-content h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download {
    background: var(--navy);
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-download:hover {
    background: var(--gold);
    color: var(--navy);
}

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

@media (max-width: 600px) {
    .brochures-grid { grid-template-columns: 1fr; }
}

/* Contact section: two-column layout (moved from inline style in contact.html) */
.contact-vanguard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Form name/email row: two-column (moved from inline style in contact.html) */
.form-name-email-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    /* Fix: internal-hero background-attachment: fixed causes iOS/Android glitches */
    .internal-hero {
        background-attachment: scroll;
        height: auto;
        min-height: 280px;
        padding: 120px 5% 50px;
    }

    .internal-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        letter-spacing: 0;
        word-break: break-word;
    }

    /* Fix: footer bottom row stacking */
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Fix: contact section collapses to single column */
    .contact-vanguard-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Fix: contact form name/email row collapses to single column */
    .form-name-email-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Fix: slide-title too large on very small screens */
    .slide-title {
        font-size: 2.2rem;
    }

    /* Fix: CTA buttons stack vertically and go full-width */
    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-group .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


/* =============================================
   INDEX.HTML — PAGE-SPECIFIC MOBILE FIXES
   ============================================= */

/* Hero slider: reduce height and padding on mobile */
@media (max-width: 768px) {
    .hero-slider {
        height: 90vh;
        min-height: 500px;
    }

    .slide {
        padding-left: 5%;
        padding-right: 5%;
        align-items: flex-end;
        padding-bottom: 100px;
    }

    .slide-content {
        max-width: 100%;
    }

    .slide-title {
        font-size: 2.4rem;
        letter-spacing: -1px;
        line-height: 1.05;
    }

    .slide-text {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* Hide <br> line breaks inside slide text on mobile */
    .slide-text br {
        display: none;
    }

    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .dot {
        width: 18px;
        height: 3px;
    }

    .dot.active {
        width: 28px;
    }

    /* Services section: reduce vertical padding */
    .services {
        padding: 70px 5%;
    }

    .services-grid {
        margin-top: 40px;
        gap: 24px;
    }

    /* Stats: reduce padding */
    .stats {
        padding: 60px 5%;
        gap: 30px;
    }

    .stat-item h3 {
        font-size: 2.4rem;
    }

    /* About teaser: reduce padding */
    .about-teaser {
        padding: 60px 5%;
        min-height: auto;
    }

    .teaser-visual {
        height: 260px;
        min-height: 260px;
    }

    .teaser-content {
        padding: 30px 0 0;
    }

    .teaser-title {
        font-size: 1.8rem;
    }

    /* Brochures: reduce padding only */
    .brochures-section {
        padding: 70px 5%;
    }

    /* CTA section: reduce padding */
    .boutique-cta {
        padding: 70px 5%;
    }

    .cta-subheading {
        font-size: 1rem;
        margin-bottom: 35px;
    }

    /* Footer: reduce top padding */
    .boutique-footer {
        padding: 70px 5% 0;
    }

    .footer-container {
        padding-bottom: 60px;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 100svh;
    }

    .slide {
        padding-bottom: 80px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-badge {
        font-size: 0.7rem !important;
        padding: 5px 12px !important;
        margin-bottom: 15px !important;
    }

    .brochures-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}


/* =============================================
   GLOBAL PAGE-WIDE MOBILE FIXES
   ============================================= */

@media (max-width: 768px) {

    /* --- INTERNAL HERO (all pages) --- */
    .internal-hero br { display: none; }

    /* --- SERVICES PAGE --- */
    .services[id="services"] {
        padding: 60px 5% !important;
    }

    /* --- CONTACT PAGE --- */
    .contact-vanguard-section {
        padding: 60px 5% !important;
    }

    .contact-vanguard-form {
        padding: 40px 25px !important;
    }

    .contact-vanguard-info h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    }

    .contact-info-card {
        padding: 30px 25px !important;
    }

    /* --- BLOG PAGE --- */
    .blog-grid {
        padding: 60px 5% !important;
        gap: 25px;
    }

    /* --- BLOG DETAIL PAGE --- */
    .blog-detail-section {
        padding: 60px 5% !important;
    }

    .post-content img {
        height: 220px !important;
    }

    .post-meta-strip {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.8rem;
    }

    .post-content h2 {
        font-size: 1.6rem !important;
    }

    .post-content p {
        font-size: 1rem !important;
    }

    /* --- CAREERS PAGE --- */
    .career-submission-portal {
        padding: 60px 5% !important;
    }

    .career-vanguard-container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .career-philosophy h2 {
        font-size: clamp(2rem, 7vw, 3rem) !important;
    }

    .cv-submission-box {
        padding: 35px 25px !important;
    }

    .cv-submission-box form > div[style*="grid-template-columns: 1fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* --- CLIENTS PAGE --- */
    .clients-hero-sub {
        padding: 60px 5% !important;
    }

    .clients-grid-page {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
        margin-bottom: 60px;
    }

    .client-box-elite {
        height: 90px;
        padding: 12px;
    }

    /* --- SERVICE DETAIL PAGES (all 6) --- */
    .service-detail-section {
        padding: 60px 5% !important;
    }

    .detail-content h2 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }

    .detail-content p {
        font-size: 1rem !important;
    }

    .detail-sidebar {
        position: static !important;
        padding: 30px 25px !important;
    }

    /* --- BLOG DETAIL SIDEBAR --- */
    .sidebar-widget {
        padding: 25px !important;
    }
}

@media (max-width: 480px) {
    .clients-grid-page {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .client-box-elite {
        height: 75px;
    }

    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .career-why {
        padding: 60px 5% !important;
    }

    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .benefit-card-elite {
        padding: 30px 25px !important;
    }
}

/* ============================================================
   BREADCRUMB NAVIGATION
   ============================================================ */
.breadcrumb-nav {
    padding: 8px 0 16px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

/* Slash separator before every item except the first */
.breadcrumb-list li + li::before {
    content: '/';
    margin: 0 6px;
    color: #aaa;
}

.breadcrumb-list a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
    color: #c9a84c;
    text-decoration: underline;
}

/* Current page - last item, no link */
.breadcrumb-list li[aria-current="page"] {
    color: #555;
    font-weight: 500;
}

/* =============================================
   BREADCRUMB — HIDDEN (schema kept in JSON-LD)
   ============================================= */
.breadcrumb-nav {
    display: none !important;
}
