@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700;800&family=Instrument+Serif:ital,wght@0,400;1,400&display=swap');

:root {
    /* Brand Colors - Nagaetala Environmental */
    --primary: #85A047; /* Muted Olive Green from Business Card */
    --primary-dark: #6C813A;
    --secondary: #121212; /* Deep Charcoal/Dark Gray */
    --accent: #D4E157; /* Light lime green */
    --dark: #000000;
    
    /* Fonts */
    --font-barlow: 'Outfit', sans-serif;
    --font-instrument: 'Instrument Serif', serif;
    --font-syne: 'Montserrat', sans-serif;
    --font-inter: 'Outfit', sans-serif;
    
    /* Neutrals - Premium Charcoal */
    --bg-white: #1e1e1e;
    --bg-soft: #252525;
    --text-main: #f5f5f5;
    --text-muted: #aaaaaa;
    --text-light: #ffffff;
    
    /* Effects */
    --glass: rgba(30, 30, 30, 0.95);
    --glass-dark: rgba(18, 18, 18, 0.85);
    --glass-border: rgba(133, 160, 71, 0.2);
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.5);
    --shadow-strong: 0 20px 60px -15px rgba(0, 0, 0, 0.8);
    --ease-premium: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.3s var(--ease-premium);
    --transition-slow: 0.8s var(--ease-premium);
}

/* Premium Pre-loader Style */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s var(--ease-premium), visibility 0.8s var(--ease-premium);
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.preloader-hero-logo {
    max-width: 140px;
    margin: 0 auto 35px auto;
    display: block;
    animation: premiumShine 2.5s infinite alternate ease-in-out;
    filter: drop-shadow(0 0 10px rgba(133, 160, 71, 0.4));
}

@keyframes premiumShine {
    0% { transform: scale(0.96) translateY(0); filter: drop-shadow(0 0 5px rgba(133, 198, 32, 0.2)) brightness(0.95); opacity: 0.9; }
    100% { transform: scale(1.04) translateY(-3px); filter: drop-shadow(0 0 25px rgba(133, 198, 32, 0.8)) brightness(1.1); opacity: 1; }
}


.preloader-icon-container {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.loader-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    color: var(--primary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-premium);
}

.loader-icon.active {
    opacity: 1;
    transform: translateY(0);
}

.preloader-text {
    font-family: var(--font-syne);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 20px;
    min-height: 1.5rem;
}

.loader-bar-container {
    width: 100%;
    height: 4px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-barlow);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-barlow);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.font-serif {
    font-family: var(--font-instrument);
    font-style: italic;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
}

.section-padding {
    padding: 120px 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

/* Premium Grid - Definitive Grid System */
.grid-premium {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 60px;
    width: 100%;
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

@media (max-width: 992px) {
    .grid-premium { gap: 30px; }
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { 
        grid-column: span 12; 
    }
}

@media (max-width: 768px) {
    .container { padding: 0 25px; }
    .section-padding { padding: 80px 0; }
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-barlow);
    letter-spacing: 0.5px;
    transition: all 0.4s var(--ease-premium);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(133, 160, 71, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s var(--ease-premium);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(133, 160, 71, 0.6);
}

.btn-primary:hover::after {
    left: 140%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
}

.btn-lg {
    padding: 20px 48px;
    font-size: 18px;
}

/* Animated Background Mesh (Green Line Patterns) */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-white);
    overflow: hidden;
    opacity: 1;
}

.mesh-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: transparent;
    opacity: 0.25;
}

.circle-1 {
    width: 120vw;
    height: 120vw;
    top: -40vw;
    right: -20vw;
}

.circle-2 {
    width: 100vw;
    height: 100vw;
    bottom: -30vw;
    left: -20vw;
}

@keyframes move-mesh {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

/* Premium Floating Navigation */
header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 0;
    z-index: 1000;
}

.floating-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1280px;
    background: rgba(30, 30, 30, 0.4); /* Transparency for Glassmorphism */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-premium);
}

header.scrolled .floating-nav {
    top: 10px;
    width: 95%;
    background: rgba(18, 18, 18, 0.85); /* Slightly darker when scrolled but still glass */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 10px 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    max-width: 180px; /* Safety cap */
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .nav-logo img {
        height: 38px;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 34px;
    }
}

.nav-links ul {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-barlow);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-main);
    transition: var(--transition-fast);
    position: relative;
    padding-bottom: 4px;
}

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

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

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

.mobile-nav-cta, .mobile-menu-logo {
    display: none;
}

.nav-links a i {
    display: none;
}

.cta-button {
    background: var(--primary); /* Visibility fix */
    color: white;
    padding: 8px 8px 8px 24px;
    border-radius: 100px;
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s var(--ease-premium);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(133, 160, 71, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transition: 0.5s;
    animation: shine-button 4s infinite linear;
}

@keyframes shine-button {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.cta-button:hover {
    transform: scale(1.05) translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 15px 35px rgba(133, 160, 71, 0.5);
}

.arrow-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.cta-button:hover .arrow-icon {
    background: var(--primary);
    color: var(--secondary);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: var(--transition-fast);
}

/* New Hero Section with Video Background */
.hero-v2 {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 160px 20px 100px;
}

@media (max-width: 768px) {
    .hero-v2 {
        min-height: 80vh;
        padding-top: 120px;
    }
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Subtle dark overlay for readability */
.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(30, 30, 30, 0.5), /* Deep dark tint */
        rgba(0, 0, 0, 0.6)
    );
    z-index: 1;
}

.video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-v2-content {
    max-width: 1000px;
    z-index: 2;
    color: white;
}

.hero-headline-1 {
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: clamp(36px, 6vw, 72px);
    letter-spacing: -4px;
    line-height: 1.1;
    margin-bottom: 0;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-headline-2 {
    font-family: var(--font-instrument);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(48px, 8vw, 84px);
    line-height: 1;
    margin-top: -5px;
    margin-bottom: 32px;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-subtext {
    font-family: var(--font-barlow);
    font-weight: 500;
    font-size: 18px;
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.95;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.btn-secondary-cta {
    background: var(--primary);
    color: white;
    padding: 18px 40px;
    border-radius: 100px;
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s var(--ease-premium);
    box-shadow: 0 10px 30px rgba(133, 160, 71, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary-cta:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--primary-dark);
    box-shadow: 0 20px 50px rgba(133, 160, 71, 0.6);
}

@media (max-width: 992px) {
    .hero-headline-1 {
        font-size: 40px;
        letter-spacing: -1px;
    }
    .hero-headline-2 {
        font-size: 64px;
    }
    .hero-subtext {
        font-size: 16px;
    }
}

/* Glassmorphic Partners Pill - Solid White with Flare Edge */
.partners-pill-section {
    position: relative;
    z-index: 20;
    margin-top: -65px;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .partners-pill-section { margin-top: -40px; }
}

.logo-pill-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    justify-content: center;
}

.logo-pill {
    background: #ffffff; /* Solid white background as requested */
    border-radius: 100px;
    padding: 25px 60px;
    position: relative;
    overflow: hidden; 
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 3; /* Above the flare and rim */
    width: 100%;
}

/* The Spinning Flare - Positioned behind the pill */
.logo-pill-wrapper::before {
    content: "";
    position: absolute;
    inset: -5px; 
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        var(--primary) 5%,
        transparent 15%,
        transparent 45%,
        var(--accent) 50%,
        transparent 60%,
        transparent 85%,
        var(--primary) 95%,
        transparent 100%
    );
    border-radius: 105px;
    animation: rotate-flare 3s linear infinite;
    z-index: 1;
    filter: blur(5px); /* Soften the flare */
}

/* The Glassy Rim - Only at the edges */
.logo-pill-wrapper::after {
    content: "";
    position: absolute;
    inset: -8px;
    padding: 8px;
    border-radius: 108px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Masking to only show the blur on the edges, not over the center */
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 120px;
    animation: slide-logos 30s linear infinite;
    width: max-content;
}

.logo-track img {
    height: 45px;
    width: auto;
    filter: none; /* Keep original colors */
    opacity: 1;
    transition: 0.5s var(--ease-premium);
}

.logo-track img:hover {
    transform: scale(1.1);
}

@keyframes rotate-flare {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slide-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 60px)); }
}

@media (max-width: 768px) {
    .partners-pill-section {
        margin-top: -45px;
    }
    .logo-pill {
        padding: 20px 30px;
        border-radius: 50px;
    }
    .logo-track {
        gap: 60px;
    }
    .logo-track img {
        height: 28px;
    }
    @keyframes slide-logos {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50% - 30px)); }
    }
}

/* Glassmorphic Stats Pill - Green with Flare Edge */
.stats-pill-section {
    position: relative;
    z-index: 25;
    height: auto; 
    margin-top: -120px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .stats-pill-section {
        margin-top: -80px;
    }
}

@media (max-width: 768px) {
    .stats-pill-section {
        margin-top: 0;
        padding: 40px 0;
    }
}

.stats-pill-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    justify-content: center;
}

.stats-pill {
    background: rgba(37, 37, 37, 0.75); /* Dark charcoal match */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 40px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 3;
    width: 100%;
    color: white;
}

/* Glassy texture overlay */
.stats-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 5rem; /* Decent larger size */
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font-barlow);
    letter-spacing: -2px;
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Stats Flare Border logic */
.stats-pill-wrapper::before {
    content: "";
    position: absolute;
    inset: -4px;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        var(--primary) 10%,
        transparent 20%,
        transparent 45%,
        #ffffff 50%,
        transparent 55%,
        transparent 85%,
        var(--primary) 90%,
        transparent 100%
    );
    border-radius: 44px;
    animation: rotate-flare 5s linear infinite;
    z-index: 1;
    filter: blur(8px);
}

/* Outer Glass Rim for Stats */
.stats-pill-wrapper-glass {
    position: absolute;
    inset: -6px;
    border-radius: 46px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 992px) {
    .stat-number { font-size: 3.5rem; }
    .stats-pill { 
        padding: 50px 30px; 
        border-radius: 30px;
    }
}

@media (max-width: 768px) {
    .stats-pill { 
        padding: 40px 20px; 
        flex-direction: column;
        gap: 40px;
        border-radius: 30px;
    }
    .stat-item { margin-bottom: 0px; }
    .stat-number { font-size: 2.8rem; }
    .grid-premium { gap: 30px; }
}

/* Premium Reveal Cards */
.reveal-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--bg-soft);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.reveal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition-slow);
    transform-origin: top;
}

.reveal-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.reveal-card:hover::before {
    transform: scaleY(1);
}

/* Glassmorphism Section */
.glass-section {
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 80px;
    color: var(--bg-white);
    margin: 40px 0;
}

/* Services highlight */
.services-highlight {
    padding-bottom: 80px;
}

/* Footer Styles */
/* Footer Styles - Premium Dark Redesign */
.footer-premium {
    padding: 120px 0 0;
    background: var(--bg-soft); /* Matching dark charcoal */
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(133, 160, 71, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-top-cta {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

@media (max-width: 992px) {
    .footer-top-cta {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px;
    }
}

.footer-cta-text h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.footer-cta-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

.footer-logo {
    width: auto;
    height: 60px;
    object-fit: contain;
    margin-bottom: 25px;
    display: block;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 35px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-address p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-address i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-main h4 {
    color: #fff;
    font-family: var(--font-syne);
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
}

.footer-main h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col-links ul li, 
.footer-col-services ul li {
    margin-bottom: 16px;
}

.footer-col-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col-links a::before {
    content: '→';
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-fast);
    color: var(--primary);
}

.footer-col-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-col-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-col-services ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    transition: var(--transition-fast);
}

.footer-col-services ul li:hover {
    color: #fff;
    border-color: rgba(133, 198, 32, 0.3);
}

.footer-col-services i {
    color: var(--primary);
    width: 18px;
    height: 18px;
}

.footer-col-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.footer-col-contact i {
    color: var(--primary);
    width: 22px;
    height: 22px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--secondary) !important;
    transform: translateY(-8px) rotate(8deg);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(133, 198, 32, 0.3);
}



.footer-copyright {
    margin-top: 100px;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.footer-legal-links {
    display: flex;
    gap: 30px;
}

.footer-legal-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition-fast);
}

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

.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 32px;
    background: var(--primary);
    color: var(--secondary) !important;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s var(--ease-premium);
    box-shadow: 0 15px 30px rgba(133, 198, 32, 0.3);
    cursor: pointer;
    z-index: 1001;
}

.back-to-top i {
    width: 24px;
    height: 24px;
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1200px) {
    .footer-top-cta {
        padding: 40px;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-premium { padding: 80px 0 0; }
    .footer-premium .grid-premium { gap: 60px; }
    .footer-main .col-3, .footer-main .col-2, .footer-main .col-4 {
        grid-column: span 12;
        text-align: center;
    }
    .footer-main h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-tagline, .footer-address {
        margin: 0 auto 30px;
    }
    .footer-address p {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-copyright .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
    }
}

/* Animations */
[data-aos] {
    transition-duration: 1000ms !important;
}

/* Particle effect container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Hide mobile menu logo on desktop */
.mobile-menu-logo {
    display: none;
}

/* Responsive Menu Customization */
@media (max-width: 992px) {
    header { padding: 0; }
    
    .floating-nav { 
        top: 15px;
        width: 94%;
        padding: 10px 24px;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
    }

    .nav-logo img {
        height: 38px;
    }
    
    .hamburger { 
        display: flex; 
        z-index: 2000;
        margin-left: auto;
        border: 2px solid rgba(133, 160, 71, 0.4);
        padding: 5px;
        border-radius: 8px;
        background: rgba(30, 30, 30, 0.8);
        box-shadow: 0 0 15px rgba(133, 160, 71, 0.3);
    }

    .hamburger .bar {
        background-color: white !important;
        box-shadow: 0 0 5px rgba(133, 160, 71, 0.5);
    }

    .floating-nav .cta-button {
        display: none !important; /* Hide header CTA on mobile header */
    }

    .mobile-menu-logo {
        margin-bottom: 25px;
        display: flex;
        justify-content: center;
        width: 100%;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.6s var(--ease-premium) 0.2s;
    }

    .nav-links.active .mobile-menu-logo {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu-logo img {
        height: 65px;
        width: auto;
        object-fit: contain;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95); /* Darker Glassmorphic background */
        backdrop-filter: blur(30px) saturate(160%);
        -webkit-backdrop-filter: blur(30px) saturate(160%);
        flex-direction: column;
        justify-content: center;
        z-index: 1000;
        padding: 60px 40px;
        display: flex;
        overflow: hidden;
        clip-path: circle(0% at 90% 5%); /* Surprising starting clip-path */
        transition: clip-path 0.8s var(--ease-premium);
        pointer-events: none;
    }

    .nav-links.active { 
        clip-path: circle(150% at 90% 5%); /* Expand surprisingly */
        pointer-events: all;
    }

    /* Green lines in the background - Brand alignment */
    .nav-links::before {
        content: '';
        position: absolute;
        inset: 0;
        background: 
            radial-gradient(circle at 10% 20%, rgba(133, 160, 71, 0.1) 0%, transparent 40%),
            radial-gradient(circle at 90% 80%, rgba(133, 160, 71, 0.1) 0%, transparent 40%);
        z-index: -1;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(40px) skewX(-10deg);
        transition: all 0.6s var(--ease-premium);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0) skewX(0);
    }

    /* Staggered Delay for Surprising UI */
    .nav-links.active li:nth-child(1) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.5s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.6s; }
    
    .nav-links a { 
        color: white;
        font-size: 1.8rem; /* Decreased size as requested */
        font-family: var(--font-barlow);
        font-weight: 800;
        letter-spacing: -0.5px;
        display: flex;
        align-items: center;
        justify-content: space-between; /* Space for arrow */
        gap: 15px;
        width: 100%;
        padding: 10px 0;
        transition: all 0.3s ease;
    }

    .nav-links a i {
        display: inline-block;
        font-size: 1.4rem;
        color: var(--primary);
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.4s var(--ease-premium);
    }

    .nav-links a:hover i,
    .nav-links a:active i {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-links a:hover {
        color: var(--primary);
        padding-left: 10px;
    }

    .mobile-nav-cta {
        margin-top: 40px;
        width: 100%;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s var(--ease-premium) 0.7s;
    }

    .nav-links.active .mobile-nav-cta {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-cta .cta-button {
        display: flex !important;
        width: 100%;
        justify-content: center;
        padding: 20px;
        font-size: 1.1rem;
    }

    .mobile-nav-cta, .mobile-menu-logo {
        display: flex;
    }
}/* Hamburger Fix */
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--primary) !important; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--primary) !important; }
/* Unified Page Header Styles */
.page-header-v2 {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 160px 20px 80px;
    background: var(--secondary);
    color: white;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-category {
    font-family: var(--font-barlow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.page-title-l1 {
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: clamp(32px, 5vw, 64px);
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-title-l2 {
    font-family: var(--font-instrument);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(40px, 7vw, 84px);
    line-height: 1;
    margin-top: -5px;
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-description {
    font-family: var(--font-barlow);
    font-weight: 500;
    font-size: 18px;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
    .page-header-v2 {
        min-height: 50vh;
        padding-top: 140px;
    }
    .page-title-l1 { font-size: 32px; }
    .page-title-l2 { font-size: 48px; }
}
/* Gallery Slider Styles */
.gallery-track-wrapper {
    width: 100%;
    margin-top: 40px;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 30px;
    animation: slide-gallery 40s linear infinite;
    padding: 20px 0;
}

.gallery-slide {
    flex: 0 0 450px;
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-slow);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(7, 63, 17, 0.9), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-slow);
}

.gallery-slide:hover .slide-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-slide:hover img {
    transform: scale(1.1);
}

.gallery-slide:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

/* About Teaser Slideshow */
.about-hero-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s var(--ease-premium), transform 2s var(--ease-premium);
    transform: scale(1.1);
}

.about-hero-slideshow img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

@keyframes slide-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 15px)); }
}

@media (max-width: 768px) {
    @keyframes slide-gallery {
         0% { transform: translateX(0); }
         100% { transform: translateX(calc(-120% - 15px)); }
    }
}

/* Service Image Block - Responsive Height */
.service-img-block {
    border-radius: 30px;
    min-height: 450px;
    box-shadow: var(--shadow-strong);
}

@media (max-width: 992px) {
    .service-img-block {
        min-height: 350px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .service-img-block {
        min-height: 280px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .service-img-block {
        min-height: 220px;
        border-radius: 12px;
    }
}

/* Services detail image order fix on mobile */
@media (max-width: 992px) {
    .services-detail .grid-premium > .service-img-col {
        order: -1 !important;
    }
}

/* Home Contact Form Fixes */
.home-contact .reveal-card form input,
.home-contact .reveal-card form textarea {
    font-family: var(--font-barlow);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.home-contact .reveal-card form input:focus,
.home-contact .reveal-card form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(133, 160, 71, 0.1);
}

/* Final CTA Section Animation */
.final-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@media (max-width: 768px) {
    .final-cta {
        padding: 80px 0 !important;
    }
    .cta-btn-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .cta-btn-row .btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .final-cta {
        padding: 60px 0 !important;
    }
}

.final-cta h2 span {
    display: inline-block;
    animation: pulse-green 2s infinite alternate;
}

@keyframes pulse-green {
    from { opacity: 0.8; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}

/* Responsive Tweaks */
/* Comprehensive Mobile Overhaul */
@media (max-width: 992px) {
    .hero-v2-content, .page-header-content {
        padding: 0 10px;
    }
    
    .logo-pill {
        padding: 20px 40px;
        border-radius: 50px;
    }
    
    .logo-track {
        gap: 60px;
    }

    .footer-main {
        text-align: center;
        gap: 50px;
    }

    .footer-col-contact .social-links {
        justify-content: center;
        gap: 20px;
    }

    .grid-premium {
        align-items: center !important;
        gap: 30px;
    }

    /* Reset order and center align all columns for clean stacking */
    .grid-premium > div {
        grid-column: span 12 !important;
        text-align: center !important;
        order: revert !important; 
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Fixed icons in reveal cards for mobile */
    .reveal-card i {
        width: 38px !important;
        height: 38px !important;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .reveal-card h3 {
        font-size: 1.3rem !important;
    }

    .reveal-card p {
        font-size: 0.9rem !important;
    }

    .footer-col-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo {
        margin: 0 auto 25px;
        max-width: 120px;
    }

    .footer-col-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-col-services ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contact-item {
        justify-content: center;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero-headline-1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .hero-headline-2 {
        font-size: 40px;
        margin-top: 5px;
    }

    .hero-subtext {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .stats-pill {
        padding: 40px 15px;
        border-radius: 20px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-item p {
        letter-spacing: 2px;
        font-size: 0.75rem;
    }

    .gallery-slide {
        flex: 0 0 280px;
        height: 380px;
        border-radius: 20px;
    }

    .slide-overlay {
        padding: 30px 20px;
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(7, 63, 17, 0.95), transparent);
    }

    .footer-top-cta h3 {
        font-size: 1.6rem;
    }

    .footer-top-cta p {
        font-size: 0.9rem;
    }

    .reveal-card {
        padding: 30px 20px;
    }

    /* Fixed squashed contact form on mobile */
    .home-contact form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .home-contact form input,
    .home-contact form textarea {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    /* Team section alignment */
    .home-team .col-8, .home-team .col-4 {
        text-align: center !important;
    }

    /* Back to top adjustment for mobile */
    .back-to-top {
        bottom: 25px;
        right: 25px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .floating-nav {
        top: 10px;
        width: 95%;
        padding: 8px 16px;
        border-radius: 12px;
    }
    
    .hero-v2 {
        padding-top: 100px;
    }

    .hero-headline-1 { 
        font-size: 24px; 
        letter-spacing: -1px;
    }
    .hero-headline-2 { 
        font-size: 32px; 
    }
    
    .hero-subtext {
        font-size: 13px;
        line-height: 1.5;
        padding: 0 5px;
    }

    .page-title-l1 { font-size: 28px !important; }
    .page-title-l2 { font-size: 40px !important; }

    .logo-pill-wrapper::before, .logo-pill-wrapper::after {
        display: none;
    }

    .logo-pill {
        padding: 12px 20px;
    }

    .logo-track img {
        height: 24px;
    }

    .stats-pill-wrapper::before, .stats-pill-wrapper-glass {
        display: none; /* Hide complex glass borders on very small screens for performance and clarity */
    }

    .stats-pill {
        padding: 30px 10px;
        border-radius: 20px;
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-top-cta {
        padding: 24px 16px;
        text-align: center;
        flex-direction: column;
        gap: 20px;
    }

    .footer-top-cta h3 {
        font-size: 1.4rem;
    }

    .footer-top-cta a {
        width: 100%;
        padding: 12px 20px;
    }

    .footer-main {
        gap: 40px;
    }

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

    .footer-tagline {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .footer-address p {
        font-size: 0.85rem;
    }

    .footer-copyright .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

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

    /* Back to top fixed for mobile overlapping */
    .back-to-top {
        bottom: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        z-index: 100;
    }
}

/* Global overflow fix */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   COMPREHENSIVE RESPONSIVE FIXES
   ========================================= */

/* --- Utility: text-right responsive reset --- */
@media (max-width: 992px) {
    .text-right {
        text-align: center !important;
    }
}

/* --- Hero: fix letter-spacing overflow on small screens --- */
@media (max-width: 480px) {
    .hero-headline-1 {
        letter-spacing: -1px;
    }
    .hero-headline-2 {
        letter-spacing: -1px;
    }
}

/* --- Stats Pill: fix internal grid gap on mobile --- */
@media (max-width: 768px) {
    .stats-pill .grid-premium {
        gap: 20px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .stats-pill .grid-premium > div {
        grid-column: span 12 !important;
        width: 100%;
    }
}

/* --- About mini stats row (EST 2009, etc.) --- */
.about-stats-mini {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .about-stats-mini {
        gap: 20px;
        justify-content: center;
    }
}

/* --- Floating nav: prevent overflow on very narrow screens --- */
@media (max-width: 380px) {
    .floating-nav {
        padding: 8px 12px;
        width: 96%;
    }
    .nav-logo img {
        height: 30px;
    }
    .hamburger {
        gap: 4px;
    }
    .bar {
        width: 22px;
    }
}

/* --- Contact page info items: centre on mobile --- */
.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (max-width: 992px) {
    .contact-info-items > div {
        justify-content: center;
        text-align: center;
    }
    .contact-info-items > div div {
        text-align: center;
    }
}

/* --- Contact form card: tighter padding on small screens --- */
@media (max-width: 768px) {
    .contact-section .reveal-card,
    .home-contact .reveal-card {
        padding: 30px 20px !important;
    }
}

@media (max-width: 480px) {
    .contact-section .reveal-card,
    .home-contact .reveal-card {
        padding: 20px 15px !important;
    }
}

/* --- Contact form nested grid: force single column --- */
@media (max-width: 768px) {
    .contact-section form .grid-premium,
    .home-contact form {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .contact-section form .grid-premium > div {
        grid-column: span 12 !important;
    }
}

/* --- Footer: prevent long text overflow --- */
.footer-tagline,
.footer-address p,
.footer-cta-text p,
.footer-copyright p,
.footer-col-contact .contact-item span {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* --- Footer premium: tighter padding on small screens --- */
@media (max-width: 480px) {
    .footer-premium {
        padding: 60px 0 0;
    }
    .footer-main {
        gap: 35px !important;
    }
    .footer-copyright {
        margin-top: 60px;
        padding: 20px 0;
    }
}

/* --- Projects gallery: responsive image heights --- */
@media (max-width: 768px) {
    .projects-gallery .reveal-card img {
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    .projects-gallery .reveal-card img {
        height: 180px !important;
    }
    .projects-gallery .reveal-card > div {
        padding: 20px !important;
    }
}

/* --- Testimonials: font size on mobile --- */
@media (max-width: 768px) {
    .testimonials .reveal-card p[style*="1.4rem"],
    .testimonials .reveal-card > p {
        font-size: 1.1rem !important;
        line-height: 1.5;
    }
}

/* --- Services detail: service item spacing on mobile --- */
@media (max-width: 992px) {
    .services-detail .grid-premium {
        margin-bottom: 60px !important;
    }
}

@media (max-width: 768px) {
    .services-detail .grid-premium {
        margin-bottom: 40px !important;
    }
    .section-padding {
        padding: 60px 0;
    }
}

/* --- Home team section header row --- */
@media (max-width: 992px) {
    .home-team .grid-premium[style*="align-items: flex-end"] {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 20px;
        margin-bottom: 50px !important;
    }
    .home-team .col-4.text-right {
        text-align: center !important;
    }
}

/* --- About teaser: slideshow minimum height on mobile --- */
@media (max-width: 768px) {
    .about-hero-slideshow {
        padding-bottom: 70% !important;
        min-height: 200px;
    }
}

/* --- Page header: reduce padding on small screens --- */
@media (max-width: 768px) {
    .page-header-v2 {
        min-height: 45vh;
        padding: 120px 20px 60px;
    }
    .page-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-header-v2 {
        min-height: 40vh;
        padding: 100px 15px 50px;
    }
    .page-description {
        font-size: 15px;
    }
}

/* --- FAQ Section - ensure cards take full width on mobile --- */
@media (max-width: 768px) {
    .faq > .container > div[style] > .grid-premium {
        max-width: 100% !important;
    }
}

/* =========================================
   SKINNY SCREEN OVERRIDES (<= 380px, e.g. Samsung S8/S9+)
   ========================================= */
@media (max-width: 380px) {
    /* Force internal padding limits for tight resolutions */
    .container { padding: 0 15px !important; }
    .section-padding { padding: 60px 0 !important; }
    
    /* Typography compression to prevent single word breaks/overflow */
    .hero-headline-1 { font-size: 22px !important; letter-spacing: -1px; }
    .hero-headline-2 { font-size: 28px !important; }
    .hero-subtext { font-size: 12.5px !important; line-height: 1.4 !important; padding: 0; }
    
    .page-title-l1 { font-size: 24px !important; }
    .page-title-l2 { font-size: 32px !important; }
    
    /* Scale down premium fonts */
    h2.font-heading { font-size: 26px !important; }
    h3.font-heading { font-size: 1.25rem !important; }
    
    /* Fit buttons gracefully */
    .btn { padding: 12px 20px !important; font-size: 0.85rem !important; }
    .btn-secondary-cta { padding: 12px 20px !important; font-size: 0.85rem !important; }
    
    /* Compress grid pills */
    .logo-pill { padding: 10px 15px !important; border-radius: 30px !important; }
    .logo-track { gap: 30px !important; }
    .logo-track img { height: 18px !important; }
    
    .stats-pill { padding: 20px 10px !important; gap: 20px !important; }
    .stat-number { font-size: 2rem !important; }
    
    .reveal-card { padding: 20px 15px !important; }
    
    /* Gallery track scaler */
    .gallery-slide { flex: 0 0 240px !important; height: 320px !important; }
    
    /* Compress Footer Real Estate */
    .footer-premium { padding: 40px 0 0 !important; }
    .footer-top-cta h3 { font-size: 1.3rem !important; }
    .footer-main { gap: 20px !important; }
    
    /* Contact squish */
    .contact-info-items { gap: 25px !important; }
    .contact-info-items > div { flex-direction: column !important; gap: 8px !important; align-items: center !important; }
}

/* Broad Mobile FAB Positioning Override */
@media (max-width: 991px) {
    .whatsapp-chatbot-container {
        bottom: 25px !important;
        right: 20px !important;
    }
    .back-to-top {
        bottom: 100px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
    }
}

/* WhatsApp Chatbot CSS */
.whatsapp-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.whatsapp-fab {
    width: 60px;
    height: 60px;
    background: #25D366; /* WhatsApp Green */
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-premium);
    position: relative;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-fab:hover {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-premium);
}

@media (max-width: 480px) {
    .whatsapp-chatbot-container {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-fab {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .whatsapp-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    .chatbot-window {
        width: 290px;
        height: 420px;
        right: 0;
        bottom: 70px;
    }
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-header {
    background: #075E54; /* Darker WhatsApp Green */
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.chatbot-name {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
}

.chatbot-status {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
}

.chatbot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #e5ddd5; /* WhatsApp Chat BG */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-message {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    max-width: 85%;
    line-height: 1.4;
    font-family: var(--font-barlow);
    position: relative;
}

.chatbot-message.bot {
    background: white;
    color: #333;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.chatbot-message.user {
    background: #dcf8c6;
    color: #333;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.chatbot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chatbot-options button {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-barlow);
    color: #075E54;
    font-weight: 600;
}

.chatbot-options button:hover {
    background: #075E54;
    color: white;
    border-color: #075E54;
}
