/* ===================================================================
   HGHS — HAJI GHULAM HUSSAIN & SONS
   Corporate Website Stylesheet v3.0
   Design: Premium Glassmorphism Dark Theme
   Accent: #FF7A2F | Background: #0D1726
   =================================================================== */

/* --- 1. Design Tokens --- */
:root {
    --bg: #0D1726;
    --bg-secondary: #162338;
    --bg-dark: #080E17;
    --bg-card: rgba(255, 255, 255, 0.06);

    --accent: #FF7A2F;
    --accent-rgb: 255, 122, 47;
    --accent-hover: #E86A20;
    --accent-light: rgba(255, 122, 47, 0.12);
    --accent-border: rgba(255, 122, 47, 0.35);

    --text: #FFFFFF;
    --text-muted: #AAB7C4;
    --text-faint: #5A6A7A;

    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-md: rgba(255, 255, 255, 0.09);
    --glass-bg-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(20px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);

    --glow: 0 0 40px rgba(255, 122, 47, 0.18);
    --glow-strong: 0 0 60px rgba(255, 122, 47, 0.35);

    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;

    --section-y: 10rem;
    --container-max: 1280px;
    --container-pad: 2rem;

    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t: 0.4s var(--ease);
    --t-fast: 0.2s var(--ease);
    --t-slow: 0.8s var(--ease-out);

    --r-sm: 4px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 100px;
}

/* --- 2. Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), 0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), 0.6); }
::selection { background: var(--accent); color: var(--bg); }

img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; transition: var(--t); }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* --- 3. Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.5px;
    color: var(--text);
}

/* --- 4. Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.container-wide {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* Section labeling */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    flex-shrink: 0;
}

.section-heading {
    font-size: clamp(2.6rem, 4.5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.section-subtext {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.8;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #FFB37C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- 5. Glass Component --- */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}

.glass-md {
    background: var(--glass-bg-md);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* --- 6. Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--t);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.38);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.28);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--glass-bg);
    color: var(--text);
    border-color: var(--glass-border);
    backdrop-filter: blur(12px);
}
.btn-glass:hover {
    background: var(--glass-bg-md);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-lg { padding: 1.1rem 2.6rem; font-size: 0.95rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.82rem; }

.btn-whatsapp {
    background: #25D366;
    color: white;
    border-color: #25D366;
    font-weight: 700;
}
.btn-whatsapp:hover {
    background: #1ab554;
    border-color: #1ab554;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* --- 7. Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pre-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.pre-mark {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    color: white;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.pre-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.pre-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text);
}

.pre-sub {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 3px;
}

.pre-bar-wrap {
    width: 220px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    overflow: hidden;
}

.pre-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 1px;
    animation: preload 2s var(--ease) forwards;
}

@keyframes preload {
    0%   { width: 0%; }
    30%  { width: 45%; }
    70%  { width: 80%; }
    100% { width: 100%; }
}

.pre-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* --- 8. Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: padding 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(8, 14, 23, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: rgba(255, 255, 255, 0.07);
    padding: 0.85rem 0;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.logo-mark {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.95rem;
    color: white;
    flex-shrink: 0;
    transition: var(--t);
}

.nav-logo:hover .logo-mark {
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5);
    transform: scale(1.05);
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--text);
}

.logo-sub {
    font-size: 0.58rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 3px;
    font-weight: 500;
}

/* Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-item { position: relative; }

.nav-link {
    display: block;
    padding: 0.55rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--r-sm);
    transition: var(--t);
    white-space: nowrap;
}

.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-link.active { color: var(--accent); }

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(16, 26, 42, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    min-width: 260px;
    padding: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: var(--r-sm);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dd-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--t);
}

.dd-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.dd-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: var(--t);
}

.dd-item:hover .dd-icon { background: var(--accent); color: white; }

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-nav-ghost {
    padding: 0.5rem 1.25rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--r-sm);
    transition: var(--t);
}

.btn-nav-ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-nav-cta {
    padding: 0.5rem 1.4rem;
    font-size: 0.83rem;
    font-weight: 700;
    background: var(--accent);
    color: white;
    border-radius: var(--r-sm);
    transition: var(--t);
    letter-spacing: 0.2px;
}

.btn-nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.35);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-sm);
    transition: var(--t);
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.06); }

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 1px;
    transition: var(--t);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 23, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 7rem 2rem 3rem;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu .nav-link {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- 9. Hero Slider --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 850px;  /* Constrain height on large screen sizes / zoom-out */
    min-height: 600px;  /* Maintain professional visual weight */
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(var(--accent-rgb), 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(var(--accent-rgb), 0.08) 0%, transparent 40%);
    overflow: hidden;
}

/* Widescreen Showroom Frame — fills viewport from below navbar to bottom edge */
.hero-frame {
    position: absolute;
    top: 80px;          /* sit flush below the fixed navbar */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2 * var(--container-pad));
    max-width: var(--container-max);
    bottom: 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: none;
    background: rgba(8, 14, 23, 0.4);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Track container */
.hero-slides {
    display: flex;
    width: 500%; /* 5 slides */
    height: 100%;
    transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide {
    width: 20%; /* 100% / 5 */
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-slide.active .slide-bg {
    transform: translateX(0);
}

/* Cinematic overlay inside the frame */
.slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 14, 23, 0.9) 0%, rgba(8, 14, 23, 0.55) 45%, rgba(8, 14, 23, 0.15) 100%),
        linear-gradient(to top, rgba(8, 14, 23, 0.6) 0%, transparent 50%);
    z-index: 2;
}

/* Slide content inside the frame */
.slide-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5rem;
}

/* Restrict content inside the frame */
.slide-tag-line, 
.slide-headline, 
.slide-desc, 
.slide-cta {
    max-width: 55%;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-headline {
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

/* Staggered text reveals */
.hero-slide.active .slide-tag-line { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.hero-slide.active .slide-headline { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.hero-slide.active .slide-desc     { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.hero-slide.active .slide-cta      { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }

/* Arrows on the sides of the frame */
.hero-arrows {
    position: absolute;
    top: 50%;
    left: 2rem;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(8, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--t);
}

.hero-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Dots and counter inside the bottom of the frame */
.hero-bottom {
    position: absolute;
    bottom: 2rem;
    left: 5rem;
    right: 5rem;
    z-index: 10;
}

/* Responsive adjustments for mobile layout */
@media (max-width: 992px) {
    .hero {
        padding-top: 100px;
        height: auto;
        min-height: auto;
        padding-bottom: 2rem;
    }
    
    .hero-frame {
        position: relative;
        left: auto;
        transform: none;
        width: 94%;
        margin: 0 auto;
        border-radius: var(--r-lg);
        border: 1px solid rgba(255, 255, 255, 0.08);
        aspect-ratio: 16/9;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    
    
    .slide-content {
        padding: 0 2.5rem;
    }
    
    .slide-tag-line, 
    .slide-headline, 
    .slide-desc, 
    .slide-cta {
        max-width: 100%;
    }
    
    .slide-headline {
        font-size: 2.3rem;
    }
    
    .hero-arrows {
        display: flex;
        left: 0.5rem;
        right: 0.5rem;
        z-index: 30;
    }
    
    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .hero-bottom {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 0.75rem;
        z-index: 30;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 1.5rem;
    }
    .hero-bottom {
        bottom: 1rem;
        left: 1.5rem;
        right: 1.5rem;
        z-index: 30;
    }
    .hero-counter-current {
        font-size: 1.15rem;
    }
    .hero-counter-sep {
        font-size: 0.85rem;
    }
    .hero-counter-total {
        font-size: 0.85rem;
    }
    .hero-dot {
        width: 8px;
        height: 8px;
        z-index: 30;
    }
    .hero-dot.active {
        width: 22px;
        border-radius: 4px;
    }
    .hero-progress-wrap {
        max-width: 90px;
    }
}

/* Height-based responsive adjustments for shorter screens */
@media (max-height: 720px) {
    .hero-frame {
        max-height: 72vh !important;
    }
    .slide-content {
        padding: 0 4.5rem !important;
    }
    .slide-headline {
        font-size: clamp(2.0rem, 3.8vw, 2.75rem) !important;
        margin-bottom: 0.85rem !important;
    }
    .slide-desc {
        margin-bottom: 1.25rem !important;
        font-size: 0.9rem !important;
        max-width: 450px !important;
    }
}


/* Animated elements — hidden by default, revealed on .active */
.slide-tag-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s 0.3s var(--ease-out), transform 0.8s 0.3s var(--ease-out);
}

.slide-tag-line::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1.5px;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-slide.active .slide-tag-line {
    opacity: 1;
    transform: translateX(0);
}


.hero-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 0;
}

/* Counter */
.hero-counter {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-family: var(--font-heading);
    pointer-events: none;
}

.hero-counter-current {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    min-width: 1.8rem;
    display: inline-block;
}

.hero-counter-sep { color: rgba(255, 255, 255, 0.35); font-size: 1rem; margin: 0 0.1rem; }

.hero-counter-total { font-size: 1rem; color: rgba(255, 255, 255, 0.35); }

/* Indicators */
.hero-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--t);
    border: none;
}

.hero-dot.active {
    width: 26px;
    border-radius: 3px;
    background: var(--accent);
}

/* Progress bar */
.hero-progress-wrap {
    flex: 1;
    max-width: 180px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
    overflow: hidden;
    align-self: center;
}

.hero-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 1px;
    width: 0%;
}

/* Scroll hint */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.scroll-line {
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scanLine 2s ease infinite;
}

@keyframes scanLine {
    0%   { left: -100%; }
    100% { left: 100%; }
}

/* --- 10. Statistics Section --- */
.stats-section {
    padding: 0;
    margin-top: -5rem;
    position: relative;
    z-index: 20;
}

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

.stat-card {
    padding: 2.5rem 2rem;
    border-radius: var(--r-lg);
    transition: var(--t);
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

.stat-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    transition: var(--t);
}

.stat-card:hover .stat-icon { background: var(--accent); color: white; }

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}

.stat-num { display: inline; }

.stat-plus, .stat-unit {
    color: var(--accent);
    font-size: 2rem;
}

.stat-label {
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.45;
}

/* --- 11. About Section --- */
.about-section {
    padding: 3.5rem 0 1.5rem 0;
    background: var(--bg);
}

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

.about-body { font-size: 1.05rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 1.5rem; }

.about-milestones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

.milestone {
    padding: 1.5rem;
    border-radius: var(--r-md);
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--t);
}

.milestone:hover { background: var(--glass-bg); }

.milestone-year {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.milestone-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.about-tags {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    width: 100%;
}

.about-tag {
    padding: 0.35rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--r-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--glass-bg);
    transition: var(--t);
}

.about-tag:hover { border-color: var(--accent); color: var(--accent); }

/* About right panel */
.about-visual { position: relative; }

.about-img-main {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--r-xl);
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.about-collage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.8rem;
    width: 100%;
    aspect-ratio: 1/1.52; /* Tall format to match the expanded left text column and eliminate bottom space */
    position: relative;
    z-index: 2;
}

.collage-tile {
    perspective: 1000px; /* Enable 3D transform space */
    border-radius: var(--r-lg);
    overflow: visible; /* Required to allow 3D cards to project outside flat boundaries */
}

.tile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
    border-radius: var(--r-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth transition for tilt hover */
}

.tile-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* GPU accelerated transition */
    will-change: transform, opacity;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    z-index: 1;
}

/* Default States */
.tile-layer.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: translate3d(0,0,0) rotateX(0deg) rotateY(0deg) scale(1);
}

.tile-layer.inactive {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────
   TRANSITION PREPARATIONS & ANIMATIONS
   ───────────────────────────────────────────────────────── */

/* Y-Axis Flip Left */
.tile-layer.inactive.prep-flip-left {
    transform: rotateY(180deg);
    opacity: 0;
    visibility: visible;
    transition: none !important;
}
.anim-flip-left .tile-layer.active {
    transform: rotateY(-180deg);
    opacity: 0;
}
.anim-flip-left .tile-layer.inactive {
    transform: rotateY(0deg);
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* Y-Axis Flip Right */
.tile-layer.inactive.prep-flip-right {
    transform: rotateY(-180deg);
    opacity: 0;
    visibility: visible;
    transition: none !important;
}
.anim-flip-right .tile-layer.active {
    transform: rotateY(180deg);
    opacity: 0;
}
.anim-flip-right .tile-layer.inactive {
    transform: rotateY(0deg);
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* X-Axis Flip Up */
.tile-layer.inactive.prep-flip-up {
    transform: rotateX(-180deg);
    opacity: 0;
    visibility: visible;
    transition: none !important;
}
.anim-flip-up .tile-layer.active {
    transform: rotateX(180deg);
    opacity: 0;
}
.anim-flip-up .tile-layer.inactive {
    transform: rotateX(0deg);
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* X-Axis Flip Down */
.tile-layer.inactive.prep-flip-down {
    transform: rotateX(180deg);
    opacity: 0;
    visibility: visible;
    transition: none !important;
}
.anim-flip-down .tile-layer.active {
    transform: rotateX(-180deg);
    opacity: 0;
}
.anim-flip-down .tile-layer.inactive {
    transform: rotateX(0deg);
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* Zoom In */
.tile-layer.inactive.prep-zoom-in {
    transform: scale(0.8);
    opacity: 0;
    visibility: visible;
    transition: none !important;
}
.anim-zoom-in .tile-layer.active {
    transform: scale(1.2);
    opacity: 0;
}
.anim-zoom-in .tile-layer.inactive {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* Zoom Out */
.tile-layer.inactive.prep-zoom-out {
    transform: scale(1.2);
    opacity: 0;
    visibility: visible;
    transition: none !important;
}
.anim-zoom-out .tile-layer.active {
    transform: scale(0.8);
    opacity: 0;
}
.anim-zoom-out .tile-layer.inactive {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* Fade / Cross Dissolve */
.tile-layer.inactive.prep-fade {
    opacity: 0;
    visibility: visible;
    transition: none !important;
}
.anim-fade .tile-layer.active {
    opacity: 0;
}
.anim-fade .tile-layer.inactive {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* Overlay & Labels */
.tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 1rem 0.85rem 1rem;
    background: linear-gradient(to top, rgba(8, 14, 23, 0.85) 0%, rgba(8, 14, 23, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: 60%;
    pointer-events: none;
}

.tile-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    border-left: 2px solid var(--accent);
    padding-left: 6px;
}

.about-highlight-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    border-radius: var(--r-lg);
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(255, 122, 47, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--accent-border);
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

.highlight-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.highlight-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.4;
}

.about-accent-ring {
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    pointer-events: none;
    z-index: 0;
}

/* --- 12. Services Section --- */
.services-section {
    padding: 2rem 0 4rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -250px;
    right: -250px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.services-header {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Symmetrical two-column grid */
    gap: 4rem; /* Locks the center empty space to exactly 64px */
    align-items: start;
    margin-bottom: 3.5rem;
}

.services-header-right {
    width: 100%;
    padding-top: 3rem; /* Flush alignment with the first line of the main heading */
}

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

/* Service card */
.svc-card {
    padding: 2.5rem 2rem;
    border-radius: var(--r-md);
    transition: var(--t);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.svc-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s var(--ease);
}

.svc-card:hover::after { transform: scaleX(1); }

.svc-card:hover {
    transform: translateY(-7px);
    background: var(--glass-bg-md);
    border-color: rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(var(--accent-rgb), 0.04);
}

.svc-icon {
    width: 54px;
    height: 54px;
    background: var(--accent-light);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    transition: var(--t);
}

.svc-card:hover .svc-icon {
    background: var(--accent);
    color: white;
    box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.4);
    transform: scale(1.05);
}

.svc-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    transition: var(--t);
}

.svc-card:hover .svc-name { color: var(--accent); }

.svc-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* --- 13. Project Showcase Section (DOMINANT) --- */
.projects-section {
    background: var(--bg-dark);
    position: relative;
}

/* Section header above the slider */
.projects-header {
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.projects-header-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* 1fr heading, 1.5fr paragraph to spread text and fill spaces */
    gap: 2.5rem; /* Tight, professional horizontal gutter */
    align-items: start;
}

.projects-header-right {
    width: 100%;
    padding-top: 2.8rem; /* Flush alignment with the first line of the main heading */
}

/* Bounded showcase slider card */
.project-showcase {
    position: relative;
    height: 62vh; /* Reduced height to preserve widescreen aspect ratio */
    min-height: 460px;
    max-height: 640px; /* Constrains height on large monitors to prevent square cropping */
    overflow: hidden;
    border-radius: var(--r-xl); /* Matches corporate card system */
    border: 1px solid var(--glass-border); /* Premium glass border */
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); /* Soft premium dark shadow */
}

.project-slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.project-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Left: large image — 63% */
.prj-img-wrap {
    position: relative;
    width: 63%;
    flex-shrink: 0;
    overflow: hidden;
}

.prj-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.0); /* Removed starting scale zoom to keep image stable */
    transition: transform 8s var(--ease-out);
}

.project-slide.active .prj-img { transform: scale(1.0); }

/* Gradient blending right edge */
.prj-img-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 50%, var(--bg-dark) 100%);
    z-index: 1;
}

/* Right: info panel — 37% */
.prj-info {
    width: 37%;
    flex-shrink: 0;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem 4rem 2.25rem 3.5rem;
    position: relative;
    z-index: 2;
}

/* Ghost slide number */
.prj-ghost-num {
    position: absolute;
    top: 2.5rem;
    left: 3.5rem;
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    letter-spacing: -3px;
}

/* Info content reveal animations */
.prj-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    border-radius: var(--r-pill);
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s 0.2s var(--ease-out), transform 0.6s 0.2s var(--ease-out);
}

.project-slide.active .prj-category { opacity: 1; transform: translateY(0); }

.prj-title {
    font-size: clamp(1.9rem, 2.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 0.85rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s 0.38s var(--ease-out), transform 0.75s 0.38s var(--ease-out);
}

.project-slide.active .prj-title { opacity: 1; transform: translateY(0); }

.prj-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s 0.52s var(--ease-out), transform 0.7s 0.52s var(--ease-out);
}

.project-slide.active .prj-value { opacity: 1; transform: translateY(0); }

.prj-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s 0.62s var(--ease-out), transform 0.7s 0.62s var(--ease-out);
}

.project-slide.active .prj-status { opacity: 1; transform: translateY(0); }

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-status 2s ease infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.status-progress { color: #FFC107; }
.status-progress .status-dot { background: #FFC107; box-shadow: 0 0 8px #FFC107; }
.status-complete { color: #4CAF50; }
.status-complete .status-dot { background: #4CAF50; box-shadow: 0 0 8px #4CAF50; }
.status-ongoing { color: var(--accent); }
.status-ongoing .status-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.prj-desc {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s 0.72s var(--ease-out), transform 0.7s 0.72s var(--ease-out);
}

.project-slide.active .prj-desc { opacity: 1; transform: translateY(0); }

.prj-cta {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s 0.88s var(--ease-out), transform 0.7s 0.88s var(--ease-out);
}

.project-slide.active .prj-cta { opacity: 1; transform: translateY(0); }

/* Project navigation */
.prj-nav {
    position: absolute;
    bottom: 2.5rem; /* Floating on the bottom-left of the image area */
    left: 3rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.prj-nav-counter {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 0.85rem;
    user-select: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); /* Ensures contrast on top of any image background */
}

.prj-nav-counter .prj-current {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 800;
}

.prj-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--t);
}

.prj-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
    transform: scale(1.05);
}

/* Bottom progress bar */
.prj-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 63%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 20;
}

.prj-progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

/* Slide dots on info panel */
.prj-dots {
    position: absolute;
    bottom: 3.5rem;
    left: 4.5rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.prj-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--t);
    border: none;
}

.prj-dot.active {
    width: 20px;
    border-radius: 3px;
    background: var(--accent);
}

/* --- 14. Leadership Section --- */
.leadership-section {
    padding: 4rem 0 5rem 0;
    background: var(--bg);
}

.leadership-header {
    text-align: center;
    margin-bottom: 3rem;
}

.leadership-header .section-tag { margin-bottom: 0.85rem; }
.leadership-header .section-heading { margin-bottom: 0.85rem; }

/* Senior leader cards */
.leaders-senior-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 920px;
    margin: 0 auto 3rem;
}

.leader-card {
    border-radius: var(--r-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--t);
}

.leader-card:hover { transform: translateY(-8px); box-shadow: 0 32px 80px rgba(0,0,0,0.6); }

.leader-portrait {
    width: 100%;
    height: 500px; /* Increased height to give a natural vertical aspect ratio (less cropped) */
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.7s var(--ease);
}

.leader-card:hover .leader-portrait { transform: scale(1.0); } /* Removed hover scale zoom */

.leader-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(to top, rgba(8, 14, 23, 0.95) 0%, transparent 100%);
    transition: var(--t);
}

.leader-name {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: white;
}

.leader-role {
    font-size: 0.77rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

/* Quote overlay on hover */
.leader-quote-panel {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 23, 0.94);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    text-align: center;
}

.leader-card:hover .leader-quote-panel { opacity: 1; }

.leader-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 0.5rem;
}

.leader-quote::before {
    content: '"';
    font-family: serif;
    font-size: 4rem;
    color: var(--accent);
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    line-height: 1;
    opacity: 0.6;
}

.leader-quote-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.leader-quote-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* Executive cards */
.exec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.exec-card {
    padding: 2.2rem 1.75rem;
    border-radius: var(--r-md);
    text-align: center;
    transition: var(--t);
}

.exec-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-rgb), 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    background: var(--glass-bg-md);
}

.exec-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 2px solid var(--glass-border);
    transition: var(--t);
}

.exec-card:hover .exec-avatar {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.25);
}

.exec-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.exec-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.exec-title {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* --- 15. Why HGHS --- */
.why-section {
    padding: 4rem 0 5rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(var(--accent-rgb), 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.why-header {
    text-align: center;
    margin-bottom: 3rem;
}

.why-header .section-tag { margin-bottom: 0.85rem; }

.why-big-heading {
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    font-weight: 800;
    line-height: 1.06;
    max-width: 860px;
    margin: 0 auto;
}

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

.why-card {
    padding: 2.5rem 2rem;
    border-radius: var(--r-md);
    transition: var(--t);
    position: relative;
}

.why-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 3px 0 0 3px;
    transform: scaleY(0);
    transition: transform 0.5s var(--ease);
}

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

.why-card:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-md);
    border-color: rgba(var(--accent-rgb), 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.why-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: var(--t);
}

.why-card:hover .why-icon { background: var(--accent); color: white; }

.why-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.why-card-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }

/* --- 16. Certifications --- */
.certs-section {
    padding: 4rem 0 5rem 0;
    background: var(--bg);
}

.certs-header { text-align: center; margin-bottom: 2.5rem; }

.certs-header .section-tag { margin-bottom: 0.85rem; }
.certs-header .section-heading { margin-bottom: 0.85rem; }

.cert-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.cert-pill {
    padding: 0.6rem 1.75rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--r-pill);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    transition: var(--t);
    cursor: default;
}

.cert-pill:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

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

.cert-thumb {
    aspect-ratio: 3/4;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--glass-border);
    background: var(--bg-secondary); /* Solid background behind containment margins */
    transition: var(--t);
}

.cert-thumb:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--accent-rgb), 0.2);
}

.cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to display full document layout without cropping */
    padding: 0.5rem; /* Breathing room for document edges */
    transition: transform 0.6s var(--ease);
}

.cert-thumb:hover img { transform: scale(1.0); } /* Removed hover scale zoom */

.cert-hover-layer {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 23, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--t);
    backdrop-filter: blur(3px);
}

.cert-thumb:hover .cert-hover-layer { opacity: 1; }

.cert-zoom-icon {
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.5);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: rgba(0, 0, 0, 0.93);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lb-img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: var(--r-md);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.lb-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--t);
}

.lb-close:hover { background: var(--accent); border-color: var(--accent); }

/* --- 17. Contact Section --- */
.contact-section {
    padding: 4rem 0 5rem 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(var(--accent-rgb), 0.25), transparent);
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -300px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-big-heading {
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    line-height: 1.0;
    margin-bottom: 1.5rem;
}

.contact-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-detail-value {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}

/* Contact Form */
.contact-form-panel {
    padding: 3.5rem;
    border-radius: var(--r-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group { position: relative; margin-bottom: 1.5rem; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-sm);
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: var(--t);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

.form-textarea { min-height: 140px; resize: vertical; }

.form-select {
    appearance: none;
    cursor: pointer;
}

.form-select option { background: var(--bg-secondary); color: var(--text); }

/* --- 18. Footer --- */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 1.5rem 0;
    max-width: 280px;
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1.5rem;
}

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

.footer-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--t);
}

.footer-link:hover { color: var(--accent); padding-left: 5px; }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-copy { font-size: 0.82rem; color: var(--text-faint); }

.footer-legal { display: flex; gap: 2rem; }

.footer-legal a {
    font-size: 0.82rem;
    color: var(--text-faint);
    transition: var(--t);
}

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

/* --- 19. Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-45px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(45px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-scale.visible { opacity: 1; transform: scale(1); }

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.26s; }
.d4 { transition-delay: 0.34s; }
.d5 { transition-delay: 0.42s; }
.d6 { transition-delay: 0.5s; }

/* --- 20. Media Queries --- */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 1024px) {
    :root { --section-y: 7rem; }

    .about-grid { grid-template-columns: 1fr; gap: 4rem; }
    .about-visual { order: -1; }

    .project-showcase {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    .project-slide {
        flex-direction: column;
        position: relative !important;
        height: auto !important;
        opacity: 1;
        display: none;
    }
    .project-slide.active {
        display: flex;
    }
    .prj-img-wrap {
        width: 100%;
        height: 280px; /* Compact image height on mobile/tablet */
    }
    .prj-info {
        width: 100%;
        padding: 2.25rem 2rem 4.5rem 2rem; /* Compact layout, padded bottom for indicator dots */
    }
    .prj-img-fade {
        background: linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
    }
    .prj-nav {
        display: flex !important;
        left: 1.5rem;
        bottom: 1.5rem;
        top: auto;
        right: auto;
        z-index: 25;
    }
    .prj-dots {
        display: flex !important;
        position: absolute;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 25;
    }
    .prj-progress { width: 100%; }

    .exec-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }

    .stats-section {
        margin-top: 1.5rem; /* Resets overlap margin at the correct cascading location */
    }
}

@media (max-width: 768px) {
    :root { --section-y: 5rem; }

    .nav-menu, .nav-actions { display: none; }
    .nav-toggle { display: flex; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .services-header { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .services-header-right { padding-top: 0; }
    .projects-header-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .projects-header-right { padding-top: 0; }

    .leaders-senior-grid { grid-template-columns: 1fr; max-width: 400px; }
    .exec-grid { grid-template-columns: repeat(2, 1fr); }

    .why-grid { grid-template-columns: 1fr; }
    .certs-gallery { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; }

    .hero-arrows { right: 1rem; }
    .slide-headline { letter-spacing: -1px; }

    .hero-scroll { display: none; }
    .hero-counter-current { font-size: 2.5rem; }
    .about-tags { justify-content: center; gap: 0.8rem; }

    /* Compact tile adjustments for mobile layout */
    .stat-card {
        padding: 1.5rem 1.25rem;
    }
    .stat-number {
        font-size: 2.25rem;
    }
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .svc-card {
        padding: 1.5rem 1.25rem;
    }
    .svc-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .why-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .about-milestones { grid-template-columns: 1fr; }
    .certs-gallery { grid-template-columns: repeat(2, 1fr); }
    .contact-form-panel { padding: 2rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

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