/* ===================================================================
   ABRAR FUTURE TECH — LUXURY EDITORIAL DESIGN SYSTEM
   Inspired by: Rolls-Royce, Cartier, Bottega Veneta
   =================================================================== */

/* ===== TOKENS ===== */
:root {
    /* Palette — Hyper-Luxe Obsidian & Champagne */
    --black: #050505;
    /* Deeper obsidian for Pro Max depth */
    --rich-black: #0a0a0c;
    --charcoal: #111113;
    --dark-grey: #171719;
    --mid-grey: #242426;
    --steel: #777777;
    --silver: #999999;
    --champagne: #d4af37;
    /* More gold-toned champagne */
    --gold: #b8860b;
    --gold-light: #f1e5ac;
    --warm-white: #f5f0e8;
    --white: #ffffff;
    --pearl: #fdfdfc;
    --alabaster: #f7f7f5;
    --oyster-silver: #e5e5e0;
    --midnight-authority: #030305;
    --midnight-text: #111113;
    --chrome: #dddddf;
    --rolex-green: #004d40;
    /* Subtle accent */

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-logo: 'Rajdhani', 'Inter', sans-serif;
    --font-tech: 'Rajdhani', var(--font-body);

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 120px;
    --space-2xl: 180px;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(201, 169, 110, 0.3);

    /* Transitions */
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-slow: 1s;
    --duration-mid: 0.6s;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Remove native smooth scroll to avoid conflicts with Lenis */
    scroll-behavior: auto !important;
    scrollbar-width: none; /* Hide standard firefox scrollbar */
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--champagne);
    border-radius: 10px;
    border: 2px solid var(--black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Hyper-luxe cinematic noise overlay — static, no filter for GPU performance */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4t5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92ZBsiKYelXjnpkUWv+skshmiXKggymT05EThFnRIZzI9pfyc2wq/wY2sPKfI/alK4InmREE/kabs+OLZVl/SFAL6+jQmwdNJpmfw1z4Aw==");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1; /* Below navbar — was incorrectly 9999 */
}

a {
    color: inherit;
    text-decoration: none;
}

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

::selection {
    background: var(--champagne);
    color: var(--black);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* ===== TYPOGRAPHY ===== */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 6px;
    /* Increased for high-end editorial feel */
    color: var(--champagne);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--champagne);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--white);
}

.section-title em {
    font-style: italic;
    color: var(--champagne);
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-header .section-title {
    max-width: 700px;
}

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

/* ===== NEW LIGHT LUXURY SYSTEM ===== */
.section-light {
    background: var(--pearl);
    color: var(--midnight-text);
}

.section-light .section-title {
    color: var(--midnight-text);
}

.section-light .section-eyebrow {
    color: var(--champagne);
}

.section-light .section-eyebrow::before {
    background: var(--champagne);
}

.card-light {
    background: var(--white);
    border: 1px solid var(--chrome);
    color: var(--midnight-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.6s var(--ease-luxury);
}

.card-light:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
    border-color: var(--champagne);
}

.text-editorial {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
}

.border-draw {
    position: relative;
}

.border-draw::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--champagne);
    opacity: 0;
    transition: opacity 0.8s var(--ease-luxury);
}

.card-light:hover.border-draw::after {
    opacity: 0.3;
}

/* ===== BENTO GRID SYSTEM ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 1px;
    margin-top: var(--space-lg);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}

.bento-item {
    background: #0c0c0e;
    border: none;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Radial glow follows cursor */
.bento-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212,175,55,0.07), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item:hover {
    background: #111115;
}

/* Gold top border on hover */
.bento-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--champagne), rgba(212,175,55,0.3), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-luxury);
}

.bento-item:hover::after {
    transform: scaleX(1);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

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

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        background: transparent;
        gap: 12px;
    }
    .bento-item {
        min-height: 200px;
        border: 1px solid rgba(255,255,255,0.08);
    }
    .bento-item.large, .bento-item.wide, .bento-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--champagne);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000; /* Ensure it's above everything including progress bar */
    mix-blend-mode: difference;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    display: none;
    transform-origin: center center;
}

@media (min-width: 1025px) {
    .custom-cursor { display: block; }
    body { cursor: none; }
    a, button { cursor: none; }
}

.custom-cursor.active {
    width: 60px;
    height: 60px;
    background: var(--champagne);
    mix-blend-mode: normal;
    opacity: 0.3;
}

/* ===== ANIMATIONS — Ultra-smooth, GSAP Controlled ===== */
.liquid-word {
    display: inline-block;
    will-change: transform, opacity, filter;
    transform-style: preserve-3d;
}

/* Animation start state — GSAP animates these to visible */
.anim-reveal,
.anim-reveal-slide {
    opacity: 0;
    transform: translate3d(0, 25px, 0);
    will-change: transform, opacity;
    /* CSS failsafe: if GSAP never runs, force-reveal after 2s */
    animation: anim-reveal-fallback 0.6s ease forwards 2s;
}

@keyframes anim-reveal-fallback {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* When GSAP has handled the element, clear the CSS animation */
.anim-reveal.gsap-active,
.anim-reveal-slide.gsap-active {
    animation: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    transition: all 0.8s var(--ease-luxury);
    background: transparent;
    /* Safari fix: create stacking context so content doesn't bleed through */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
}

.navbar.scrolled {
    height: 60px;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 50px rgba(0, 0, 0, 0.6);
}

.nav-container {
    width: 100%;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Faster fade for better Core Web Vitals */
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

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

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.loader-logo {
    width: 140px;
    height: auto;
    opacity: 0;
    transform: translateY(15px);
    animation: loaderReveal 1s 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne), transparent);
    margin-top: 28px;
    animation: lineExpand 1.2s 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-tagline {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: 24px;
    opacity: 0;
    /* Rich metallic gradient text */
    background: linear-gradient(90deg, var(--gold-light) 0%, var(--champagne) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    /* Majestic reveal & shimmer */
    animation:
        loaderSwooshUp 1.4s 1.4s forwards cubic-bezier(0.22, 1, 0.36, 1),
        shimmer 8s linear infinite;
}

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

@keyframes loaderSwooshUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes lineExpand {
    to {
        width: 140px;
    }
}

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

.nav-link {
    padding: 8px 18px;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--steel);
    transition: color 0.5s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

/* ===== DROPDOWN MENU ===== */
.has-dropdown {
    position: relative;
}

.has-dropdown svg {
    margin-left: 2px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.has-dropdown:hover svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-luxury);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 24px;
    font-size: 0.7rem;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--silver);
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-link:hover {
    color: var(--champagne);
    background: rgba(255, 255, 255, 0.03);
    padding-left: 28px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-cta {
    padding: 8px 24px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--black);
    background: var(--oyster-silver);
    border: none;
    transition: all 0.5s var(--ease-luxury);
    border-radius: 0;
}

.nav-cta:hover {
    background: var(--champagne);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 169, 110, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--white);
    transition: all 0.5s var(--ease-luxury);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.hamburger.open span:nth-child(2) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 0;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 0%, var(--black) 75%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-md);
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 48px;
}

.eyebrow-line {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne));
}

.hero-eyebrow .eyebrow-line:last-child {
    background: linear-gradient(90deg, var(--champagne), transparent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 36px;
}

.hero-title em {
    font-style: italic;
    color: var(--champagne);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--steel);
    line-height: 1.9;
    margin-bottom: 56px;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.6s var(--ease-luxury);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--champagne) 40%, var(--gold) 100%);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.15);
    background-size: 200% auto;
}

.btn-gold:hover {
    background-position: right center;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(201, 169, 110, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--silver);
    border: 1px solid rgba(201, 169, 110, 0.2);
    /* Subtle gold hint */
    position: relative;
    overflow: hidden;
}

.btn-ghost::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-ghost:hover {
    color: var(--champagne);
    border-color: var(--champagne);
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.1);
    transform: translateY(-4px);
}

.btn-ghost:hover::before {
    left: 100%;
}

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

/* ===== HERO SCROLL ===== */
.hero-scroll {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--champagne), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(0.6);
    }
}

.hero-scroll span {
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--steel);
}

/* ===== HERO COUNTER BAR ===== */
.hero-counter-bar {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 28px 0;
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
}

.hero-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 56px;
}

.hc-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 1px;
}

.hc-number sup {
    font-size: 0.7em;
    color: var(--champagne);
}

.hc-label {
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--steel);
}

.hero-counter-sep {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* ===== MARQUEE ===== */
.marquee-strip {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    background: var(--rich-black);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-track span {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--steel);
}

.marquee-dot {
    width: 4px !important;
    height: 4px;
    background: var(--champagne) !important;
    border-radius: 50%;
    display: inline-block;
    letter-spacing: 0 !important;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.about-left .section-title {
    margin-bottom: 0;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--warm-white);
    line-height: 1.9;
    margin-bottom: 28px;
}

.about-right p {
    font-size: 0.9rem;
    color: var(--steel);
    line-height: 1.9;
    margin-bottom: 24px;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.sig-line {
    width: 40px;
    height: 1px;
    background: var(--champagne);
}

.about-signature span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
    font-weight: 400;
}

/* ===== PILLARS ===== */
.pillars {
    padding: 80px 0;
    background: var(--charcoal);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.pillar-card {
    padding: 48px 40px;
    position: relative;
    border-right: 1px solid var(--border-subtle);
    transition: background 0.6s ease;
}

.pillar-card:last-child {
    border-right: none;
}

.pillar-card:hover {
    background: rgba(201, 169, 110, 0.03);
}

.pillar-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--champagne);
    margin-bottom: 28px;
    display: block;
}

.pillar-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 20px;
}

.pillar-card p {
    font-size: 0.85rem;
    color: var(--steel);
    line-height: 1.8;
}

.pillar-line {
    width: 32px;
    height: 1px;
    background: var(--champagne);
    margin-top: 32px;
    transition: width 0.6s var(--ease-luxury);
}

.pillar-card:hover .pillar-line {
    width: 64px;
}

/* ===== SERVICES ===== */
.services-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    align-items: center;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.6s var(--ease-luxury);
    cursor: pointer;
}

.service-row:first-child {
    border-top: 1px solid var(--border-subtle);
}

.service-row:hover {
    padding-left: 20px;
    background: rgba(201, 169, 110, 0.02);
}

.service-num {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--champagne);
    font-style: italic;
}

.service-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 8px;
    transition: color 0.4s ease;
}

.service-row:hover .service-info h3 {
    color: var(--champagne);
}

.service-info p {
    font-size: 0.85rem;
    color: var(--steel);
    line-height: 1.7;
    max-width: 600px;
}

.service-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-subtle);
    color: var(--steel);
    transition: all 0.5s var(--ease-luxury);
}

.service-row:hover .service-arrow {
    border-color: var(--champagne);
    color: var(--champagne);
    transform: translate(4px, -4px);
}

.service-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s var(--ease-luxury), margin 0.4s ease;
    margin-top: 0;
}

.service-detail.open {
    max-height: 400px;
    margin-top: 16px;
}

.service-detail p {
    font-size: 0.82rem;
    color: var(--steel);
    line-height: 1.8;
    margin-bottom: 8px;
}

.svc-toggle {
    background: none;
    border: none;
    color: var(--champagne);
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 12px;
    padding: 0;
    transition: letter-spacing 0.3s ease;
}

.svc-toggle:hover {
    letter-spacing: 4px;
}

/* ===== STATS ===== */
.stats-band {
    padding: 100px 0;
    background: var(--charcoal);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

.stat-item {
    padding: 32px 24px;
    border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    display: inline;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--champagne);
    display: inline;
}

.stat-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--steel);
    margin-top: 16px;
    line-height: 1.6;
}

/* ===== PORTFOLIO ===== */
.portfolio-filters {
    display: flex;
    gap: 4px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--steel);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}

.filter-btn:hover {
    color: var(--white);
}

.filter-btn.active {
    color: var(--black);
    background: var(--champagne);
    border-color: var(--champagne);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-subtle);
}

.portfolio-card {
    display: block;
    padding: 32px 28px;
    background: var(--black);
    transition: all 0.6s var(--ease-luxury);
    position: relative;
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: var(--champagne);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-luxury);
}

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

.portfolio-card:hover {
    background: var(--charcoal);
}

.pc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pc-tag {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
}

.pc-arrow {
    color: var(--steel);
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: all 0.5s var(--ease-luxury);
}

.portfolio-card:hover .pc-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.portfolio-card h3,
.portfolio-card h4,
.portfolio-card .portfolio-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.4s ease;
}

.portfolio-card:hover h4 {
    color: var(--champagne);
}

.portfolio-card p {
    font-size: 0.78rem;
    color: var(--steel);
    line-height: 1.5;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--charcoal);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.8s var(--ease-luxury);
}

.testimonial-card {
    min-width: 100%;
    padding: 0 60px;
    text-align: center;
}

.testimonial-card blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 400;
    font-style: italic;
    color: var(--warm-white);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 48px;
}

.tc-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.tc-line {
    width: 32px;
    height: 1px;
    background: var(--champagne);
}

.tc-author strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: left;
}

.tc-author span {
    font-size: 0.7rem;
    color: var(--champagne);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
    display: block;
    margin-top: 4px;
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 56px;
}

.t-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--steel);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.t-btn:hover {
    border-color: var(--champagne);
    color: var(--champagne);
}

.t-counter {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--steel);
    letter-spacing: 3px;
    min-width: 60px;
    text-align: center;
}

/* ===== NEWS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-subtle);
}

.news-card {
    display: block;
    padding: 40px 36px;
    background: var(--black);
    transition: all 0.6s var(--ease-luxury);
}

.news-card:hover {
    background: var(--charcoal);
}

.nc-tag {
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 20px;
}

.news-card h3,
.news-card h4,
.news-card .news-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 16px;
    transition: color 0.4s ease;
}

.news-card:hover h4 {
    color: var(--champagne);
}

.news-card p {
    font-size: 0.82rem;
    color: var(--steel);
    line-height: 1.8;
    margin-bottom: 24px;
}

.nc-more {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
    transition: letter-spacing 0.4s ease;
}

.news-card:hover .nc-more {
    letter-spacing: 4px;
}

/* ===== FEATURES ===== */
.features {
    padding: 80px 0;
    background: var(--charcoal);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.feature-item {
    padding: 48px 40px;
    border-right: 1px solid var(--border-subtle);
    transition: background 0.6s ease;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item:hover {
    background: rgba(201, 169, 110, 0.03);
}

.feature-icon {
    font-size: 1.6rem;
    color: var(--champagne);
    margin-bottom: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-gold);
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.feature-item p {
    font-size: 0.82rem;
    color: var(--steel);
    line-height: 1.8;
}

/* ===== TEAM ===== */
.team-section {
    background: var(--black);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
}

.team-card {
    background: var(--black);
    padding: 40px 32px;
    text-align: center;
    transition: background 0.6s var(--ease-luxury);
}

.team-card:hover {
    background: var(--charcoal);
}

.team-img {
    width: 140px;
    height: 140px;
    margin: 0 auto 28px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--border-gold);
    transition: border-color 0.4s ease;
}

.team-card:hover .team-img {
    border-color: var(--champagne);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter 0.6s ease, transform 0.6s var(--ease-luxury);
}

.team-card:hover .team-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 6px;
}

.team-card span {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--charcoal);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.faq-list {
    max-width: 800px;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-q:hover {
    color: var(--champagne);
}

.faq-icon {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--champagne);
    transition: transform 0.4s var(--ease-luxury);
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--ease-luxury), padding 0.4s ease;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding-bottom: 28px;
}

.faq-a p {
    font-size: 0.85rem;
    color: var(--steel);
    line-height: 1.9;
}

/* ===== CONTACT ===== */
.contact-section {
    padding: var(--space-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.contact-desc {
    font-size: 1rem;
    color: var(--steel);
    margin-top: 20px;
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cd-item {
    display: flex;
    gap: 24px;
}

.cd-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--champagne);
    min-width: 70px;
    padding-top: 3px;
}

.cd-item span:last-child {
    font-size: 0.88rem;
    color: var(--silver);
    line-height: 1.8;
}

.cd-item a {
    color: var(--silver);
    transition: color 0.3s ease;
}

.cd-item a:hover {
    color: var(--champagne);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--champagne);
}

.form-row input,
.form-row textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--white);
    outline: none;
    transition: border-color 0.4s ease;
    resize: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--mid-grey);
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--champagne);
}

/* ===== PILL GLASS BOTTOM DOCK ===== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pill-dock {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(60, 60, 60, 0.45);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s var(--ease-luxury);
    position: relative;
}

.dock-item svg {
    width: 22px;
    height: 22px;
}

.dock-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.dock-item.active {
    color: var(--white);
    background: rgba(201, 169, 110, 0.15);
    box-shadow: 0 0 12px rgba(201, 169, 110, 0.25);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--champagne);
}

/* ===== INNER PAGES — CINEMATIC HEADER ===== */
.page-title-section {
    padding: 180px 0 70px;
    text-align: center;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    background:
        radial-gradient(ellipse at 50% 120%, rgba(201, 169, 110, 0.15), transparent 60%),
        radial-gradient(circle at 10% 20%, rgba(201, 169, 110, 0.05), transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(201, 169, 110, 0.08), transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.02), transparent 40%);
    /* Rolex-style top highlight */
    position: relative;
    overflow: hidden;
}

.page-title-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.page-title-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.4) 100%);
    pointer-events: none;
}

.page-title-section .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-title em {
    font-style: italic;
    color: var(--champagne);
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--steel);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.8;
}

/* Glass Panels — Hyper-Luxe Automotive Grade */
.glass-panel {
    background: rgba(25, 25, 28, 0.3);
    /* Warmer, deeper tint */
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* Catch virtual top-down light */
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.6s var(--ease-luxury);
    position: relative;
}

.glass-panel:hover {
    border-color: rgba(201, 169, 110, 0.25);
    background: rgba(30, 30, 34, 0.35);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 120px rgba(201, 169, 110, 0.02),
        /* Subtle inner gold ambient */
        0 0 80px rgba(201, 169, 110, 0.05);
    transform: translateY(-4px);
}

/* ===== SHIMMER EFFECT ===== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer-text {
    background: linear-gradient(90deg,
            var(--white) 0%,
            var(--champagne) 25%,
            var(--white) 50%,
            var(--champagne) 75%,
            var(--white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes goldPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* Premium CTA Card */
.cta-glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 20px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

.cta-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.cta-glass-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== CTA ===== */
.cta-section {
    padding: var(--space-2xl) 0;
}

.cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-desc {
    font-size: 1rem;
    color: var(--steel);
    margin-top: 20px;
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER — GLASS ===== */
.footer {
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand p {
    font-size: 0.82rem;
    color: var(--steel);
    line-height: 1.8;
    margin-top: 24px;
    max-width: 320px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h5 {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 24px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col a {
    font-size: 0.8rem;
    color: var(--steel);
    transition: color 0.4s ease;
    letter-spacing: 0.5px;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: var(--steel);
    letter-spacing: 1px;
}

.footer-contact {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-contact a {
    font-size: 0.7rem;
    color: var(--steel);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--champagne);
}

.footer-contact span {
    color: var(--border-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .pillar-card {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .pillar-card:last-child {
        border-bottom: none;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--border-subtle);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-counter {
        padding: 0 32px;
    }

    .contact-grid {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .portfolio-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portfolio-sidebar .glass-panel {
        position: static;
    }
}

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

    .logo-img {
        height: 35px;
    }

    .nav-container {
        padding: 0 15px;
        justify-content: center;
        position: relative;
    }

    .nav-actions {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Mobile dropdown — starts collapsed */
    .has-dropdown .dropdown-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        min-width: auto;
        transition: max-height 0.4s ease;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-link {
        font-size: 1rem;
        padding: 8px 20px;
        letter-spacing: 3px;
        color: var(--champagne);
        font-family: var(--font-display);
    }

    .brief-box {
        padding: 30px 20px !important;
    }

    .portfolio-main-content .glass-panel {
        padding: 30px 20px !important;
    }

    .section {
        padding: 60px 0;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(8, 8, 10, 0.99);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.6s var(--ease-luxury), visibility 0.6s;
        visibility: hidden;
        /* Must be above navbar (1000), conversion bar (998), and preloader (9997) */
        z-index: 9996;
        /* Safari: force new stacking context */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 10px 20px;
        letter-spacing: 4px;
        color: var(--white);
        text-transform: uppercase;
        font-family: var(--font-display);
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    body {
        padding-bottom: 70px;
        /* Make room for bottom bar */
    }

    .mobile-bottom-bar {
        display: block;
    }

    .hero-title {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
    }

    .hero-subtitle br {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-counter-bar {
        flex-wrap: wrap;
        gap: 0;
    }

    .hero-counter {
        padding: 16px 28px;
    }

    .hero-counter-sep {
        display: none;
    }

    .hero-scroll {
        bottom: 100px;
    }

    .service-row {
        grid-template-columns: 60px 1fr 40px;
        gap: 20px;
        padding: 32px 0;
    }

    .service-info h3 {
        font-size: 1.3rem;
    }

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

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

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

    .testimonial-card {
        padding: 0 20px;
    }

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

    .about-text-cols {
        column-count: 1 !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-form {
        padding: 0 !important;
        background: none !important;
        border: none !important;
        backdrop-filter: none !important;
    }

    .form-row input,
    .form-row textarea {
        width: 100%;
        box-sizing: border-box;
    }

    .footer {
        padding: 60px 20px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-bottom: 40px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .service-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .sr-num {
        align-self: center;
        margin-bottom: 10px;
    }

    .sr-icon {
        align-self: center;
        margin-top: 10px;
    }
}

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

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

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .hero-counter {
        padding: 12px 20px;
    }

    .portfolio-filters {
        gap: 2px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.6rem;
    }

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

    .footer-cols {
        grid-template-columns: 1fr;
    }

    .footer-top {
        gap: 40px;
    }

    .dock-item svg {
        width: 20px;
        height: 20px;
    }

    .dock-item {
        width: 40px;
        height: 40px;
    }

    .pill-dock {
        padding: 10px 16px;
        gap: 6px;
    }

    .page-title {
        font-size: 1.8rem !important;
    }

    .page-subtitle {
        font-size: 0.85rem !important;
    }

    .container {
        padding: 0 16px;
    }

    .glass-panel {
        padding: 25px 16px !important;
    }

    .project-gallery {
        gap: 15px !important;
    }

    #preloader .loader-logo {
        width: 60px;
    }

    .loader-content {
        width: 150px;
    }
}

/* ===== DYNAMIC CONTENT — Premium Typography for DB HTML ===== */
.dynamic-content {
    color: var(--silver);
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 0.2px;
}

.dynamic-content h1,
.dynamic-content h2,
.dynamic-content h3,
.dynamic-content h4,
.dynamic-content h5,
.dynamic-content h6 {
    font-family: var(--font-display);
    color: var(--white);
    font-weight: 400;
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 20px;
    position: relative;
}

.dynamic-content h1 {
    font-size: 2.2rem;
}

.dynamic-content h2 {
    font-size: 1.8rem;
    color: var(--champagne);
}

.dynamic-content h3 {
    font-size: 1.4rem;
    color: var(--champagne);
}

.dynamic-content h4 {
    font-size: 1.15rem;
}

.dynamic-content h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-body);
    font-weight: 500;
}

.dynamic-content h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--champagne);
    font-family: var(--font-body);
}

.dynamic-content h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--champagne);
    margin-top: 16px;
}

.dynamic-content p {
    margin-bottom: 24px;
    color: var(--silver);
    line-height: 2;
}

.dynamic-content strong,
.dynamic-content b {
    color: var(--white);
    font-weight: 500;
}

.dynamic-content em,
.dynamic-content i {
    color: var(--warm-white);
    font-style: italic;
}

.dynamic-content a {
    color: var(--champagne);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    transition: all 0.3s ease;
}

.dynamic-content a:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
}

.dynamic-content ul,
.dynamic-content ol {
    padding-left: 0;
    list-style: none;
    margin-bottom: 32px;
}

.dynamic-content li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    color: var(--silver);
    line-height: 1.9;
}

.dynamic-content ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--champagne);
    font-size: 0.6rem;
}

.dynamic-content ol {
    counter-reset: item;
}

.dynamic-content ol li::before {
    counter-increment: item;
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--champagne);
    font-weight: 400;
}

.dynamic-content blockquote {
    border-left: 2px solid var(--champagne);
    padding: 24px 32px;
    margin: 40px 0;
    background: rgba(201, 169, 110, 0.03);
    border-radius: 0 8px 8px 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--warm-white);
    line-height: 1.8;
}

.dynamic-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px 0;
    border: 1px solid var(--border-subtle);
    transition: transform 0.5s var(--ease-luxury), box-shadow 0.5s ease;
}

.dynamic-content img:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dynamic-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 0.9rem;
}

.dynamic-content th {
    text-align: left;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--champagne);
    border-bottom: 2px solid var(--border-gold);
    background: rgba(201, 169, 110, 0.05);
}

.dynamic-content td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--silver);
    line-height: 1.7;
}

.dynamic-content tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.dynamic-content code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.88em;
    padding: 3px 8px;
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--champagne);
}

.dynamic-content pre {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 28px;
    overflow-x: auto;
    margin: 32px 0;
}

.dynamic-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--silver);
}

.dynamic-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 48px 0;
}

.dynamic-content>*:first-child {
    margin-top: 0;
}

.dynamic-content>*:last-child {
    margin-bottom: 0;
}

/* Backward compat — old class */
.page-content-area {
    max-width: 900px;
    margin: 0 auto;
}

.page-content-area h3,
.page-content-area h4 {
    color: var(--champagne);
    font-family: var(--font-display);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content-area p {
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--silver);
}

.page-content-area strong {
    color: var(--white);
}

/* ===== DROPDOWN MOBILE SUPPORT ===== */
@media (max-width: 768px) {
    .has-dropdown .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        padding: 10px 0;
        opacity: 1;
        visibility: visible;
        min-width: auto;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dropdown-link {
        font-size: 1rem;
        padding: 8px 15px;
    }

    .has-dropdown>.nav-link {
        margin-bottom: 0;
    }
}

/* ===== PORTFOLIO DETAIL ENHANCEMENTS ===== */
.portfolio-body-text {
    letter-spacing: 0.3px;
}

.portfolio-body-text h1,
.portfolio-body-text h2,
.portfolio-body-text h3 {
    font-family: var(--font-display);
    color: var(--champagne);
    margin-top: 40px;
    margin-bottom: 20px;
}

.portfolio-body-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid var(--border-subtle);
}

.portfolio-body-text blockquote {
    border-left: 3px solid var(--champagne);
    padding: 20px 30px;
    margin: 30px 0;
    background: rgba(201, 169, 110, 0.05);
    font-style: italic;
    color: var(--silver);
}

/* Custom list styles for imported content */
.portfolio-body-text ul {
    list-style: none;
    padding-left: 0;
}

.portfolio-body-text li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.portfolio-body-text li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--champagne);
    font-size: 0.8rem;
    top: 5px;
}

/* Sidebar Meta Items */
.meta-item span:first-of-type {
    display: block;
    font-weight: 500;
}

/* ===== TEXT CLAMPING FOR IMPORTED DATA ===== */
.portfolio-card p,
.news-card p,
.feature-item p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}

/* ===== GSAP ANIMATION UTILITIES ===== */
.gsap-reveal {
    opacity: 0;
    transform: translateY(50px);
    will-change: transform, opacity;
}

.gsap-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    will-change: transform, opacity;
}

.gsap-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    will-change: transform, opacity;
}

.gsap-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    will-change: transform, opacity;
}

/* ===== SMOOTH CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease, top 0.3s ease;
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* ===========================================================================================
   GLASSMORPHISM SUPREMACY — Ultra-visible glass panels for maximum luxury aesthetic
   =========================================================================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(201, 169, 110, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    transform: translateY(-4px);
}

.glass-gold {
    background: rgba(201, 169, 110, 0.04);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(201, 169, 110, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(201, 169, 110, 0.08);
}

.glass-deep {
    background: rgba(8, 8, 10, 0.6);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(201, 169, 110, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 40px;
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--champagne);
}

/* CTA section glass enhancement */
.cta-glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(28px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Stats bar glass */
.hero-counter-bar {
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* Portfolio cards glass */
.portfolio-card {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(201, 169, 110, 0.25);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.1);
    transform: translateY(-6px);
}

/* Navbar glass refinements */
.navbar:not(.scrolled) {
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.75) 0%, rgba(8, 8, 10, 0) 100%);
}

.navbar.scrolled {
    background: rgba(8, 8, 10, 0.82) !important;
    backdrop-filter: blur(36px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(36px) saturate(200%) !important;
    border-bottom: 1px solid rgba(201, 169, 110, 0.08) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

/* Page inner sections — correct top padding for fixed navbar (60px) + conversion bar (38px) */
.page-title-section {
    padding-top: calc(60px + 38px + 60px) !important;
}

/* Mobile nav glass fix */
@media (max-width: 900px) {
    .nav-menu {
        background: rgba(8, 8, 10, 0.94) !important;
        backdrop-filter: blur(40px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
        border-bottom: 1px solid rgba(201, 169, 110, 0.1) !important;
    }

    /* Hero needs 70px top on mobile for the nav bar */
    #hero>div[style*="flex: 1"] {
        padding-top: 72px !important;
    }
}

/* ===== CONVERSION BAR — Mobile hide & spacer adjustments ===== */
@media (max-width: 768px) {
    /* Conversion bar — hide desktop text, show mobile compact version */
    #conversionBar { display: block !important; }
    #conversionBar .conv-full { display: none !important; }
    #conversionBar .conv-mobile { display: flex !important; }
    /* Spacer: navbar (60px) + compact bar (36px) */
    #headerSpacer { height: 96px !important; }
    .page-title-section { padding-top: calc(60px + 36px + 50px) !important; }
    .about-hero-section { padding-top: calc(60px + 36px + 40px) !important; }
    /* Page title sections on mobile */
    .page-title-section { padding-top: calc(60px + 60px) !important; }
    .about-hero-section { padding-top: calc(60px + 40px) !important; }
}
