/* ============================================================
   NABEX Premium Polish v1.0
   Non-breaking premium visual upgrade — all 8 phases
   ============================================================ */

/* ============================================================
   PHASE 1 — PREMIUM NAVIGATION
   ============================================================ */

.navbar {
    padding: 1rem 4rem;
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    gap: 2rem;
}

.navbar.scrolled {
    padding: 0.65rem 4rem;
    background: rgba(5,5,5,0.94);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid rgba(201,169,110,0.14);
    box-shadow: 0 1px 0 rgba(201,169,110,0.06), 0 6px 40px rgba(0,0,0,0.5);
}

/* Logo — refined, enterprise */
.logo {
    font-size: 1.45rem;
    letter-spacing: 5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    flex-shrink: 0;
}

.logo::after {
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    bottom: -4px;
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* Nav links — uppercase, refined spacing */
.nav-links {
    gap: 2.25rem;
}

.nav-links a {
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    transition: color 0.3s ease;
}

.nav-links a::after {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    bottom: -4px;
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
}

.nav-links a:hover {
    color: rgba(255,255,255,0.85);
}

/* Language segmented control — premium */
.nb-lang-sw {
    border-radius: 10px;
    border: 1.5px solid rgba(201,169,110,0.28);
    background: rgba(255,255,255,0.03);
    overflow: hidden;
    gap: 0;
}

.nb-lang-opt {
    padding: 6px 18px;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    color: rgba(255,255,255,0.38);
    line-height: 1.4;
}

.nb-lang-opt.active {
    background: linear-gradient(135deg, rgba(201,169,110,0.22), rgba(201,169,110,0.12));
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(201,169,110,0.25);
}

.nb-lang-opt:hover:not(.active) {
    color: rgba(201,169,110,0.7);
    background: rgba(201,169,110,0.06);
}

/* Theme toggle — premium */
.nb-theme-sw {
    border-radius: 10px;
    border: 1.5px solid rgba(201,169,110,0.28);
    background: rgba(255,255,255,0.03);
    width: 38px;
    height: 38px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nb-theme-sw:hover {
    background: rgba(201,169,110,0.1);
    border-color: rgba(201,169,110,0.55);
    transform: scale(1.06);
    box-shadow: 0 0 14px rgba(201,169,110,0.2);
}

/* Mobile menu — luxury drawer */
.mobile-menu {
    width: 70vw;
    max-width: 290px;
    background: rgba(4,4,4,0.98);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-left: 1px solid rgba(201,169,110,0.1);
    padding: 5.5rem 2rem 2rem;
}

.mobile-menu a {
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(201,169,110,0.07);
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    color: var(--accent);
    padding-right: 0.75rem;
}

[dir="ltr"] .mobile-menu a:hover,
[dir="ltr"] .mobile-menu a:focus {
    padding-right: 0;
    padding-left: 0.75rem;
}

/* Hamburger — premium lines */
.hamburger span {
    height: 1.5px;
    border-radius: 1px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   PHASE 2 — HERO SECTION
   ============================================================ */

.hero {
    padding: 9rem 4rem 3rem;
    min-height: 100vh;
}

.hero-content {
    max-width: 840px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    border-radius: 4px;
    letter-spacing: 5px;
    font-size: 0.72rem;
    border: 1px solid rgba(201,169,110,0.45);
    color: rgba(201,169,110,0.85);
    background: rgba(201,169,110,0.05);
    padding: 0.55rem 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.hero-title {
    font-size: clamp(3.2rem, 8.5vw, 7.5rem);
    letter-spacing: -3px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.75rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.42);
    max-width: 560px;
    margin: 0 auto 3.5rem;
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.2px;
}

/* Premium buttons */
.btn {
    padding: 0.85rem 2.25rem;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    transform: translateX(-110%) skewX(-18deg);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(110%) skewX(-18deg);
}

.btn-primary {
    background: linear-gradient(135deg, #c9a96e 0%, #e8d5a3 50%, #c9a96e 100%);
    background-size: 200% 100%;
    color: #000;
    border: none;
    font-weight: 700;
    transition: background-position 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(201,169,110,0.45), 0 2px 8px rgba(0,0,0,0.3);
    color: #000;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.72);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    background: rgba(201,169,110,0.04);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* Hero CTA spacing */
.hero-cta {
    gap: 1.25rem;
}

/* Scroll indicator — refined */
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(201,169,110,0.8), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.25; transform: scaleY(0.7); transform-origin: top; }
    50%       { opacity: 0.85; transform: scaleY(1);   transform-origin: top; }
}

/* ============================================================
   NABEX Clients Connected Strip — Premium Band Design
   Replaces previous individual-card client CSS
   ============================================================ */

/* ── Outer container: premium glass band ── */
.cl-slider-outer {
    position: relative;
    direction: ltr;              /* CRITICAL: force LTR so track anchors to LEFT edge in RTL pages */
    width: 100%;
    height: 210px;
    border-radius: 24px;
    border: 1px solid rgba(212,175,55,0.75);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(212,175,55,0.15),
        inset 0 -1px 0 rgba(212,175,55,0.08),
        0 12px 48px rgba(0,0,0,0.4);
    margin-bottom: 4rem;
    /* Edge fade — keeps logos from hard-clipping at rounded corners */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.6) 3%,
        #000 7%,
        #000 93%,
        rgba(0,0,0,0.6) 97%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.6) 3%,
        #000 7%,
        #000 93%,
        rgba(0,0,0,0.6) 97%,
        transparent 100%
    );
}

/* ── Track: no gap — exact widths for seamless loop ── */
.cl-slider-track {
    display: flex;
    gap: 0;                  /* ZERO gap — ITEM_W in JS must be 260 */
    will-change: transform;
    width: max-content;
    direction: ltr;          /* force LTR regardless of page RTL */
    height: 100%;
    align-items: center;
    padding: 0;
    cursor: grab;
    /* Anchor track to LEFT edge of container (RTL-safe) */
    position: absolute;
    left: 0;
    top: 0;
    transform: translate3d(0,0,0);
}

.cl-slider-track.grabbing {
    cursor: grabbing;
}

/* ── Item: connected strip member ── */
.cl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-shrink: 0;
    width: 260px;            /* MUST match ITEM_W = 260 in clients.js */
    height: 100%;
    padding: 22px 20px;
    /* NO individual border, NO border-radius, NO background */
    border: none;
    border-radius: 0;
    background: transparent;
    filter: none;            /* original logo colors */
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    /* Remove old transforms from premium.css */
    transform: none;
    box-shadow: none;
}

/* Vertical gold separator — right edge of every item */
.cl-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 90px;
    background: rgba(212,175,55,0.65);
    pointer-events: none;
    /* No transition — static separator */
}

/* Remove old shimmer ::before */
.cl-item::before {
    display: none;
}

/* Hover: subtle highlight, no scale (keeps strip connected) */
.cl-item:hover {
    background: rgba(212,175,55,0.05);
    filter: none;
    transform: none;
    box-shadow: none;
    border: none;
}

/* ── Logo image ── */
.cl-logo-img {
    display: block;
    width: 100%;
    max-width: 170px;
    max-height: 82px;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: none;
    flex-shrink: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.cl-item:hover .cl-logo-img {
    transform: scale(1.07);
    opacity: 1;
}

/* ── Letter fallback (when no logo image) ── */
.cl-letter {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.cl-item:hover .cl-letter {
    background: rgba(212,175,55,0.18);
    border-color: rgba(212,175,55,0.6);
}

/* ── Client name ── */
.cl-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.72);
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.3px;
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.cl-item:hover .cl-name {
    color: rgba(255,255,255,0.95);
}

/* ── Clients stats bar ── */
.clients-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 1px solid rgba(212,175,55,0.1);
    flex-wrap: wrap;
}

.cstat { text-align: center; }

.cstat-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #c9a96e, #e8d5a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cstat-label {
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}

/* ── Light theme ── */
[data-theme="light"] .cl-slider-outer {
    background: rgba(255,255,255,0.25);
    border-color: rgba(184,150,46,0.65);
    box-shadow:
        inset 0 1px 0 rgba(184,150,46,0.2),
        0 8px 32px rgba(0,0,0,0.1);
}

[data-theme="light"] .cl-item::after {
    background: rgba(184,150,46,0.5);
}

[data-theme="light"] .cl-item:hover {
    background: rgba(184,150,46,0.06);
}

[data-theme="light"] .cl-name {
    color: rgba(0,0,0,0.65);
}

[data-theme="light"] .cl-item:hover .cl-name {
    color: rgba(0,0,0,0.9);
}

[data-theme="light"] .cstat-label {
    color: rgba(0,0,0,0.38);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .cl-slider-outer {
        height: 185px;
    }
    .cl-item {
        width: 220px;
        padding: 18px 16px;
    }
    .cl-logo-img {
        max-width: 140px;
        max-height: 70px;
    }
    .cl-item::after {
        height: 72px;
    }
}

@media (max-width: 768px) {
    .cl-slider-outer {
        height: 160px;
        border-radius: 16px;
    }
    .cl-item {
        width: 170px;
        padding: 16px 12px;
        gap: 0.55rem;
    }
    .cl-logo-img {
        max-width: 120px;
        max-height: 58px;
    }
    .cl-letter {
        width: 52px;
        height: 52px;
        font-size: 1.45rem;
        border-radius: 10px;
    }
    .cl-name {
        font-size: 0.78rem;
        max-width: 145px;
    }
    .cl-item::after {
        height: 56px;
    }
    .clients-stats {
        gap: 2.5rem;
    }
    .cstat-num {
        font-size: 2.25rem;
    }
}


/* ============================================================
   PHASE 4 — STATISTICS — Animated counters, elegant
   ============================================================ */

.stats-row {
    gap: 3.5rem;
    margin-top: 3rem;
    padding-top: 0.5rem;
}

.stat-item {
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.4rem;
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.38);
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ============================================================
   PHASE 5 — PORTFOLIO — Enhanced cards, filters
   ============================================================ */

/* Filter buttons — premium pill */
.nb-pf-filter-btn {
    border-radius: 6px;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    border: 1.5px solid rgba(201,169,110,0.35);
    color: rgba(255,255,255,0.45);
}

[data-theme="light"] .nb-pf-filter-btn {
    color: rgba(0,0,0,0.65);
    border-color: rgba(201,169,110,0.5);
}

[data-theme="light"] .nb-pf-filter-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.nb-pf-filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(201,169,110,0.6);
    color: rgba(201,169,110,0.8);
    background: rgba(201,169,110,0.06);
}

.nb-pf-filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #000;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(201,169,110,0.35), 0 0 0 1px rgba(201,169,110,0.2);
    transform: translateY(-1px);
}

/* Gallery image tiles */
.pf-gallery-img {
    border-radius: 16px;
    border: 1px solid rgba(201,169,110,0.14);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.pf-gallery-img:hover {
    border-color: rgba(201,169,110,0.55);
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 24px 60px rgba(0,0,0,0.7),
                0 0 0 1px rgba(201,169,110,0.25),
                0 0 32px rgba(201,169,110,0.12);
}

/* Arrow buttons */
.pf-gallery-arrow {
    border-radius: 50%;
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(201,169,110,0.4);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.pf-gallery-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(201,169,110,0.5);
    transform: translateY(-50%) scale(1.08);
}

/* ============================================================
   PHASE 6 — SERVICES — Luxury cards, premium icons
   ============================================================ */

.services {
    background: var(--bg-dark);
}

.services-grid {
    gap: 1.5rem;
}

.service-card {
    border-radius: 18px;
    border: 1px solid rgba(201,169,110,0.08);
    background: rgba(255,255,255,0.02);
    padding: 2.5rem 2rem;
    transition: all 0.45s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

/* Corner accent glow */
.service-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card::before {
    height: 1.5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), transparent);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(201,169,110,0.28);
    transform: translateY(-10px);
    background: rgba(201,169,110,0.025);
    box-shadow: 0 28px 70px rgba(0,0,0,0.65),
                0 0 0 1px rgba(201,169,110,0.12),
                0 0 50px rgba(201,169,110,0.07);
}

.service-icon {
    border-radius: 14px;
    background: rgba(201,169,110,0.07);
    border: 1px solid rgba(201,169,110,0.14);
    width: 62px;
    height: 62px;
    margin-bottom: 1.75rem;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.service-card:hover .service-icon {
    background: rgba(201,169,110,0.14);
    border-color: rgba(201,169,110,0.4);
    transform: scale(1.06) rotate(-4deg);
    box-shadow: 0 0 24px rgba(201,169,110,0.25);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.service-card:hover h3 {
    color: var(--accent);
}

.service-card p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.42);
}

/* Service card — numbered label */
.service-card .service-num {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(201,169,110,0.25);
    transition: color 0.3s ease;
}

.service-card:hover .service-num {
    color: rgba(201,169,110,0.5);
}

/* ============================================================
   PHASE 7 — CONTACT — Modern cards, better layout
   ============================================================ */

.contact {
    background: var(--bg-darker);
}

.contact-grid {
    gap: 5rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255,255,255,0.42);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(201,169,110,0.08);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(201,169,110,0.08);
    margin-bottom: 0;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,169,110,0.05), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

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

.contact-item:hover {
    border-color: rgba(201,169,110,0.25);
    background: rgba(201,169,110,0.04);
    transform: translateX(-6px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2), 4px 0 0 rgba(201,169,110,0.2);
}

[dir="ltr"] .contact-item:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2), -4px 0 0 rgba(201,169,110,0.2);
}

.contact-item .icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(201,169,110,0.08);
    border: 1px solid rgba(201,169,110,0.14);
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.contact-item:hover .icon {
    background: rgba(201,169,110,0.16);
    border-color: rgba(201,169,110,0.45);
    box-shadow: 0 0 18px rgba(201,169,110,0.22);
    transform: scale(1.05);
}

.contact-item h4 {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.2rem;
    font-weight: 700;
    opacity: 0.8;
}

/* Contact form — glass card */
.contact-form {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(201,169,110,0.1);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.contact-form:hover {
    border-color: rgba(201,169,110,0.18);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    font-size: 0.95rem;
    padding: 0.85rem 1.1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(201,169,110,0.45);
    background: rgba(201,169,110,0.04);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.08), 0 0 20px rgba(201,169,110,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

/* Social links — premium pills */
.social-links {
    gap: 0.65rem;
    margin-top: 2rem;
}

.social-btn {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: 1px solid rgba(201,169,110,0.18);
    background: rgba(201,169,110,0.04);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(201,169,110,0.12);
    border-color: rgba(201,169,110,0.45);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ============================================================
   PHASE 8 — FOOTER — Premium, refined
   ============================================================ */

footer {
    padding: 4.5rem 4rem 2.5rem;
    border-top: 1px solid rgba(201,169,110,0.08);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.35rem;
    letter-spacing: 5px;
    font-weight: 600;
    text-transform: uppercase;
    justify-self: start;
}

.footer-links {
    gap: 2.5rem;
    justify-self: center;
}

.footer-links a {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.18);
    letter-spacing: 0.3px;
    justify-self: end;
}

/* ============================================================
   SECTIONS — Common premium polish
   ============================================================ */

section {
    padding: 7.5rem 4rem;
}

.section-header {
    margin-bottom: 4.5rem;
}

.section-label {
    font-size: 0.72rem;
    letter-spacing: 5px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    letter-spacing: -1.5px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted, rgba(255,255,255,0.38));
    line-height: 1.8;
    max-width: 520px;
}

/* ============================================================
   SCROLL REVEAL — Premium fade/slide animations
   ============================================================ */

.nb-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1),
                transform 0.75s cubic-bezier(0.4,0,0.2,1);
    will-change: opacity, transform;
}

.nb-reveal.visible {
    opacity: 1;
    transform: none;
}

.nb-reveal-scale {
    opacity: 0;
    transform: scale(0.96) translateY(16px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    will-change: opacity, transform;
}

.nb-reveal-scale.visible {
    opacity: 1;
    transform: none;
}

.nb-reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.nb-reveal-left.visible {
    opacity: 1;
    transform: none;
}

.nb-reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.nb-reveal-right.visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays for child elements */
.nb-stagger > *:nth-child(1) { transition-delay: 0ms; }
.nb-stagger > *:nth-child(2) { transition-delay: 90ms; }
.nb-stagger > *:nth-child(3) { transition-delay: 180ms; }
.nb-stagger > *:nth-child(4) { transition-delay: 270ms; }
.nb-stagger > *:nth-child(5) { transition-delay: 360ms; }
.nb-stagger > *:nth-child(6) { transition-delay: 450ms; }

/* ============================================================
   ABOUT SECTION — premium
   ============================================================ */

.about-image {
    border-radius: 20px;
    overflow: hidden;
}

.about-image img {
    transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.about-image:hover img {
    transform: scale(1.04);
}

.about-image::before {
    background: linear-gradient(135deg, rgba(201,169,110,0.15), transparent 60%);
}

.about-content h2 {
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.about-content p {
    color: rgba(255,255,255,0.42);
    font-size: 0.95rem;
    line-height: 1.85;
}

/* ============================================================
   CURSOR GLOW — more refined
   ============================================================ */

.cursor-glow {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(201,169,110,0.12), transparent 70%);
    pointer-events: none;
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */

[data-theme="light"] .navbar.scrolled {
    background: rgba(250,250,248,0.95);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 6px 32px rgba(0,0,0,0.06);
    border-bottom-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .mobile-menu {
    background: rgba(250,250,248,0.99);
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .mobile-menu a {
    color: rgba(0,0,0,0.45);
    border-bottom-color: rgba(0,0,0,0.07);
}

[data-theme="light"] .nb-lang-opt { color: rgba(0,0,0,0.38); }
[data-theme="light"] .nb-lang-opt.active { color: var(--accent); }
[data-theme="light"] .nb-lang-sw { border-color: rgba(0,0,0,0.15); background: rgba(0,0,0,0.03); }
[data-theme="light"] .nb-theme-sw { border-color: rgba(0,0,0,0.15); color: var(--accent); background: rgba(0,0,0,0.03); }

[data-theme="light"] .cl-item {
    filter: none;
    background: rgba(0,0,0,0.025);
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .cl-item:hover {
    background: rgba(184,150,46,0.05);
    border-color: rgba(184,150,46,0.35);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(184,150,46,0.2);
}

[data-theme="light"] .cl-name { color: rgba(0,0,0,0.45); }
[data-theme="light"] .cl-item:hover .cl-name { color: rgba(0,0,0,0.8); }

[data-theme="light"] .cstat-label { color: rgba(0,0,0,0.35); }

[data-theme="light"] .stat-number {
    background: linear-gradient(135deg, var(--accent), #7a5f1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .stat-label { color: rgba(0,0,0,0.38); }

[data-theme="light"] .service-card {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .service-card:hover {
    background: rgba(255,255,255,1);
    box-shadow: 0 24px 64px rgba(0,0,0,0.1),
                0 0 0 1px rgba(184,150,46,0.2),
                0 0 40px rgba(184,150,46,0.06);
    border-color: rgba(184,150,46,0.25);
}

[data-theme="light"] .service-card h3 { color: rgba(0,0,0,0.85); }
[data-theme="light"] .service-card:hover h3 { color: var(--accent); }
[data-theme="light"] .service-card p { color: rgba(0,0,0,0.42); }

[data-theme="light"] .contact {
    background: var(--bg-darker);
}

[data-theme="light"] .contact-item {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.07);
}

[data-theme="light"] .contact-item:hover {
    background: rgba(184,150,46,0.04);
    border-color: rgba(184,150,46,0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

[data-theme="light"] .contact-form {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 8px 48px rgba(0,0,0,0.06);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.8);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: rgba(184,150,46,0.5);
    background: rgba(184,150,46,0.03);
    box-shadow: 0 0 0 3px rgba(184,150,46,0.1);
}

[data-theme="light"] footer {
    background: #eae8e2;
    border-top-color: rgba(0,0,0,0.08);
}

[data-theme="light"] footer::before {
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

[data-theme="light"] .footer-links a { color: rgba(0,0,0,0.3); }
[data-theme="light"] .footer-copy { color: rgba(0,0,0,0.22); }

[data-theme="light"] .section-desc { color: rgba(0,0,0,0.4); }

[data-theme="light"] .nav-links a { color: rgba(0,0,0,0.4); }
[data-theme="light"] .nav-links a:hover { color: rgba(0,0,0,0.8); }

[data-theme="light"] .hero-subtitle { color: rgba(0,0,0,0.42); }
[data-theme="light"] .btn-outline {
    border-color: rgba(0,0,0,0.2);
    color: rgba(0,0,0,0.65);
}

[data-theme="light"] .contact-item h4 { opacity: 0.9; }

[data-theme="light"] .about-content p { color: rgba(0,0,0,0.45); }

/* ============================================================
   RESPONSIVE — Mobile & Tablet
   ============================================================ */

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-logo { justify-self: center; }
    .footer-links { justify-self: center; flex-wrap: wrap; justify-content: center; }
    .footer-copy { justify-self: center; }
    .contact-grid { gap: 3rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 0.85rem 1.25rem; }
    .navbar.scrolled { padding: 0.7rem 1.25rem; }
    section { padding: 5rem 1.25rem; }
    .hero { padding: 7rem 1.25rem 3rem; }

    .stats-row { gap: 1.75rem; flex-wrap: wrap; justify-content: center; }
    .stat-number { font-size: 2.75rem; }

    .clients-stats { gap: 2.5rem; flex-wrap: wrap; }
    .cstat-num { font-size: 2.25rem; }

    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
    .footer-logo { justify-self: center; }
    .footer-links { justify-self: center; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
    .footer-copy { justify-self: center; }

    footer { padding: 3.5rem 1.25rem 2rem; }

    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-form { padding: 1.75rem 1.25rem; }

    .contact-item:hover { transform: none; box-shadow: none; }

    .hero-title { letter-spacing: -2px; }

    .section-title { letter-spacing: -0.75px; }
}

@media (max-width: 480px) {
    .cl-item { width: 190px; min-width: 190px; height: 120px; }
    .cl-slider-outer { height: 130px; }
    .stat-number { font-size: 2.25rem; }
    .btn { padding: 0.8rem 1.75rem; font-size: 0.8rem; }
    .hero-title { font-size: clamp(2.5rem, 11vw, 4rem); letter-spacing: -1.5px; }
}

/* ============================================================
   PREVENT HORIZONTAL OVERFLOW ON ALL SCREENS
   ============================================================ */
section,
.navbar,
footer,
.hero,
.about-grid,
.services-grid,
.stats-row,
.clients-section,
.contact-grid,
.footer-content {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .cl-slider-outer,
    .nb-pf-gallery-wrap {
        overflow: hidden;
    }
    .logo {
        letter-spacing: 3px;
    }
}

/* ============================================================
   ACCESSIBILITY — Focus states
   ============================================================ */

.nb-theme-sw:focus-visible,
.nb-lang-opt:focus-visible,
.nav-links a:focus-visible,
.btn:focus-visible,
.pf-gallery-arrow:focus-visible,
.glb-arrow:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   GPU ACCELERATION — Performance
   ============================================================ */

.cl-item,
.contact-item,
.pf-gallery-img,
.btn,
.nav-links a,
.nb-theme-sw,
.nb-lang-sw {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================================
   NABEX REVEAL ANIMATIONS — replaces GSAP (Plan B)
   ============================================================ */

@keyframes nb-fadeUp50 {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes nb-fadeUp30 {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes nb-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Hero entrance */
.hero-title    { animation: nb-fadeUp50 1.0s cubic-bezier(0.2,0,0,1) 0.2s both; }
.hero-subtitle { animation: nb-fadeUp30 0.8s cubic-bezier(0.2,0,0,1) 0.4s both; }
.hero-cta      { animation: nb-fadeUp30 0.8s cubic-bezier(0.2,0,0,1) 0.6s both; }
.scroll-indicator { animation: nb-fadeIn 0.8s ease-out 0.8s both; }

/* Hero badge */
#heroBadge { transition: opacity 1s ease-out, transform 1s ease-out; }

/* Scroll-reveal: initial hidden states */
.about-image   { opacity: 0; transform: translateX(-100px); transition: opacity 1.2s ease-out, transform 1.2s ease-out; }
.about-content { opacity: 0; transform: translateX(100px);  transition: opacity 1.2s ease-out, transform 1.2s ease-out; }
.about-image.nb-visible,
.about-content.nb-visible { opacity: 1; transform: translateX(0) translateZ(0); }

.section-header { opacity: 0; transform: translateY(50px); transition: opacity 1s ease-out, transform 1s ease-out; }
.section-header.nb-visible { opacity: 1; transform: translateY(0) translateZ(0); }

.contact-info { opacity: 0; transform: translateX(-80px); transition: opacity 1s ease-out, transform 1s ease-out; }
.contact-form { opacity: 0; transform: translateX(80px);  transition: opacity 1s ease-out, transform 1s ease-out; }
.contact-info.nb-visible,
.contact-form.nb-visible { opacity: 1; transform: translateX(0) translateZ(0); }

/* Service cards — use existing transition:all for animation, stagger via JS transitionDelay */
.service-card { opacity: 0; transform: translateY(60px); }
.service-card.nb-visible { opacity: 1; transform: translateY(0) translateZ(0); }
