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

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

:root {
    --color-bg: #0F0F0E;
    --color-bg-elevated: #1A1917;
    --color-bg-card: #22211E;
    --color-surface: #2C2B27;
    --color-copper: #C17F59;
    --color-copper-light: #D4A07A;
    --color-copper-bright: #E8B894;
    --color-terracotta: #C4704E;
    --color-gold: #C9A96E;
    --color-gold-light: #DFC08A;
    --color-cream: #F5F0EB;
    --color-cream-muted: #D9D2CA;
    --color-text: #F5F0EB;
    --color-text-muted: #9C9789;
    --color-text-subtle: #6B675E;
    --nav-bg: rgba(15, 15, 14, 0.85);
    --overlay-bg: rgba(15, 15, 14, 0.97);
    --noise-opacity: 0.025;
    --font-display: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="light"] {
    --color-bg: #F8F6F3;
    --color-bg-elevated: #EFECE6;
    --color-bg-card: #FFFFFF;
    --color-surface: #E5E0D8;
    --color-cream: #1A1816;
    --color-cream-muted: #3D3B37;
    --color-text: #2D2B28;
    --color-text-muted: #6B675E;
    --color-text-subtle: #8F8B82;
    --nav-bg: rgba(248, 246, 243, 0.85);
    --overlay-bg: rgba(248, 246, 243, 0.97);
    --noise-opacity: 0.015;
}

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

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s, color 0.4s;
    line-height: 1.6;
}

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

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

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ============ UTILITY ============ */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-surface);
    border-radius: 3px;
}

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

::selection {
    background: var(--color-copper);
    color: #F5F0EB;
}

/* ============ NAVIGATION ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-bottom 0.4s;
}

.nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(193, 127, 89, 0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Base Flex Utilities used in HTML */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:block {
        display: block;
    }

    .md\:flex {
        display: flex;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-cream);
    letter-spacing: 0;
    transition: filter 0.3s;
}

.nav-logo img {
    height: 42px;
    width: auto;
    transition: height 0.3s;
}

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

[data-theme="light"] .nav:not(.scrolled) .nav-logo {
    filter: brightness(1);
}

[data-theme="light"] .nav.scrolled .nav-logo {
    filter: brightness(0.15);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.8rem);
    margin: 0 auto;
}

/* Mobile nav - hide links, show overlay */
@media (max-width: 991px) {
    .nav-links {
        display: none !important;
    }

    .nav-mobile-overlay.active~.nav {
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0.75rem 0;
    }
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    position: relative;
    transition: color 0.4s var(--ease-out-expo);
    white-space: nowrap;
}

[data-theme="light"] .nav:not(.scrolled) .nav-link {
    color: #F5F0EB;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(270deg, var(--color-copper), transparent);
    transition: width 0.4s var(--ease-out-expo);
}

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

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

.nav-cta {
    display: none;
    /* hidden on small screen, flex on larger */
}

@media (min-width: 992px) {
    .nav-cta {
        display: inline-flex;
    }
}

.nav-cta {
    padding: 0.65rem 1.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 100px;
    color: #F5F0EB;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.6s var(--ease-out-expo), box-shadow 0.6s, letter-spacing 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1;
    transform-origin: center;
    background: conic-gradient(rgba(212, 160, 122, 0.7),
            rgba(193, 127, 89, 0.25) 25%,
            rgba(201, 169, 110, 0.6) 50%,
            rgba(193, 127, 89, 0.25) 75%,
            rgba(212, 160, 122, 0.7));
    animation: navBorderSpin 4s linear infinite;
    z-index: -2;
}

@keyframes navBorderSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.nav-cta::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 100px;
    background: #1A1917;
    z-index: -1;
    transition: background 0.6s;
}

.nav-cta:hover {
    color: #fff;
    box-shadow: 0 0 25px rgba(193, 127, 89, 0.2), 0 0 60px rgba(193, 127, 89, 0.08);
    letter-spacing: 0.17em;
    transform: translateY(-1px);
}

.nav-cta:hover::before {
    animation-duration: 2s;
}

.nav-cta:hover::after {
    background: rgba(25, 23, 20, 0.88);
}

.nav-cta-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 30%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(232, 184, 148, 0.3), transparent 70%);
    animation: navShimmer 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes navShimmer {
    0% {
        left: -50%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    50% {
        left: 120%;
        opacity: 1;
    }

    65% {
        opacity: 0;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

.nav-cta:hover .nav-cta-shimmer {
    animation-duration: 1.8s;
}

.nav-cta span {
    position: relative;
    z-index: 1;
}

/* Theme Toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(193, 127, 89, 0.25);
    color: var(--color-copper-light);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    background: transparent;
    flex-shrink: 0;
    padding: 0;
}

[data-theme="light"] .nav:not(.scrolled) .theme-toggle {
    color: #F5F0EB;
    border-color: rgba(245, 240, 235, 0.3);
}

.theme-toggle iconify-icon {
    font-size: 1.1rem;
    position: absolute;
}

.theme-toggle:hover {
    border-color: var(--color-copper);
    background: rgba(193, 127, 89, 0.08);
    color: var(--color-copper);
}

/* Nav inner flex gap for toggle */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    z-index: 101;
}

@media (max-width: 991px) {

    .nav-logo,
    .theme-toggle,
    .nav-toggle {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-logo img {
        filter: brightness(1) !important;
    }
}

@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-cream);
    transition: all 0.3s;
    border-radius: 2px;
}

[data-theme="light"] .nav:not(.scrolled) .nav-toggle span {
    background: #F5F0EB;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--overlay-bg);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.nav-mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile-overlay .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    transition: transform 0.4s var(--ease-out-expo), color 0.3s, opacity 0.4s;
    opacity: 0;
    transform: translateY(20px);
}

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

.nav-mobile-overlay .nav-link:hover {
    color: var(--color-copper);
    transform: scale(1.1);
}

/* Stagger entrance */
.nav-mobile-overlay.active .nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-mobile-overlay.active .nav-link:nth-child(2) {
    transition-delay: 0.15s;
}

.nav-mobile-overlay.active .nav-link:nth-child(3) {
    transition-delay: 0.2s;
}

.nav-mobile-overlay.active .nav-link:nth-child(4) {
    transition-delay: 0.25s;
}

.nav-mobile-overlay.active .nav-link:nth-child(5) {
    transition-delay: 0.3s;
}

.nav-mobile-overlay.active .nav-link:nth-child(6) {
    transition-delay: 0.35s;
}

.nav-mobile-overlay.active .nav-link:nth-child(7) {
    transition-delay: 0.4s;
}

.nav-mobile-overlay.active .nav-link:nth-child(8) {
    transition-delay: 0.45s;
}

/* ============ HERO SECTIONS ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: clamp(6rem, 12vh, 10rem);
    padding-bottom: clamp(3rem, 6vh, 5rem);
    overflow: hidden;
}

.hero-inner {
    min-height: 60vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.1);
    animation: heroZoom 20s ease-out forwards;
}

.hero-bg-image[data-page-hero] {
    transform: scale(1.05);
    animation: heroZoom 25s ease-out forwards;
}

/* Inner hero overlay for readability */
.hero-inner .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(15, 15, 14, 0.75) 0%, rgba(15, 15, 14, 0.5) 50%, rgba(15, 15, 14, 0.85) 100%);
}

@keyframes heroZoom {
    0% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 14, 0.7) 0%, rgba(15, 15, 14, 0.5) 30%, rgba(15, 15, 14, 0.8) 60%, var(--color-bg) 100%),
        linear-gradient(270deg, rgba(15, 15, 14, 0.8) 0%, transparent 60%);
}

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(193, 127, 89, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-copper-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    background: rgba(193, 127, 89, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeUp 1s 0.3s var(--ease-out-expo) forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #F5F0EB;
    opacity: 0;
    animation: fadeUp 1s 0.5s var(--ease-out-expo) forwards;
}

.hero-title span {
    color: var(--color-copper-light);
}

.hero-description {
    margin-top: 1.5rem;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.8;
    color: rgba(245, 240, 235, 0.88);
    opacity: 0;
    animation: fadeUp 1s 0.7s var(--ease-out-expo) forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s 0.9s var(--ease-out-expo) forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-copper), var(--color-terracotta));
    color: #F5F0EB;
    box-shadow: 0 4px 24px rgba(193, 127, 89, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(193, 127, 89, 0.35);
    transform: translateY(-2px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-terracotta), var(--color-copper));
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 100px;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary span,
.btn-primary .iconify {
    position: relative;
    z-index: 1;
}

.btn-outline {
    border: 1px solid var(--color-copper);
    color: var(--color-cream);
    background: rgba(193, 127, 89, 0.08);
}

.btn-outline:hover {
    border-color: var(--color-copper-light);
    background: rgba(193, 127, 89, 0.22);
    color: var(--color-cream);
    letter-spacing: 0.16em;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(193, 127, 89, 0.15);
}

/* Hero Section Special Button */
.btn-hero-webgl {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(193, 127, 89, 0.25);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo), border-color 0.6s;
}

.btn-hero-webgl canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 100px;
    pointer-events: none;
    z-index: 1;
}

.btn-hero-webgl:hover {
    transform: translateY(-2px);
    border-color: rgba(193, 127, 89, 0.5);
    box-shadow: 0 8px 40px rgba(193, 127, 89, 0.25), 0 0 0 1px rgba(193, 127, 89, 0.15);
}

.btn-hero-webgl-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #F5F0EB;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: letter-spacing 0.6s var(--ease-out-expo);
}

.btn-hero-webgl:hover .btn-hero-webgl-text {
    letter-spacing: 0.2em;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(193, 127, 89, 0.15);
    opacity: 0;
    animation: fadeUp 1s 1.1s var(--ease-out-expo) forwards;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--color-copper-light);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(245, 240, 235, 0.7);
    font-weight: 500;
}

/* ============ SECTION ============ */
.section {
    padding: clamp(4rem, 10vh, 8rem) 0;
    position: relative;
}

.section-bg-alt {
    background: var(--color-bg-elevated);
}

.section-header {
    margin-bottom: 3rem;
    max-width: 800px;
}

.section-header.text-center {
    text-align: center;
    margin: 0 auto 4rem auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-copper);
    margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--color-copper);
}

.section-label.no-after::after {
    display: none;
}

.section-label.no-before::before {
    display: none;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-cream);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ============ CARDS / GRIDS ============ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 576px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.card {
    background: var(--color-bg-card);
    border: 1px solid rgba(193, 127, 89, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.4s, border-color 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(193, 127, 89, 0.4);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-copper-light);
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-copper);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s, color 0.3s;
}

.card-link:hover {
    gap: 0.75rem;
    color: var(--color-copper-light);
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(193, 127, 89, 0.05), rgba(193, 127, 89, 0.15));
    border-right: 4px solid var(--color-copper);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box p {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-cream);
    margin: 0;
}

/* ============ PROJECT CARDS ============ */
.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    group: project;
    aspect-ratio: 4/3;
    display: block;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 14, 0.95) 0%, rgba(15, 15, 14, 0.4) 50%, transparent 100%);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-copper);
    margin-bottom: 0.5rem;
    transform: translateY(10px);
    opacity: 0.8;
    transition: transform 0.4s, opacity 0.4s;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.4s 0.1s;
}

.project-card:hover .project-tag,
.project-card:hover .project-title {
    transform: translateY(0);
    opacity: 1;
}

/* ============ PARTNERS ============ */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    opacity: 0.6;
}

.partner-logo {
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%) brightness(200%);
    transition: filter 0.4s, transform 0.4s;
}

.partner-logo:hover {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.05);
}

/* ============ FOOTER ============ */
.footer {
    background: #080808;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(193, 127, 89, 0.1);
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
}

[data-theme="light"] .footer-brand img {
    filter: brightness(0.15);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-cream);
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    transition: color 0.3s;
}

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

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

.footer-bottom a {
    color: var(--color-text-subtle);
    text-decoration: underline;
    transition: color 0.3s;
}

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

/* ============ UTILITY CLASSES ============ */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-3 {
    gap: 0.75rem;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .hidden.md\:block {
        display: inline-flex;
    }
}

/* Light mode nav-cta */
[data-theme="light"] .nav-cta::after {
    background: #EFECE6;
}

[data-theme="light"] .nav-cta:hover::after {
    background: rgba(235, 232, 230, 0.88);
}

/* ============ ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ============ LISTS / TEXT UTILITIES ============ */
.text-copper {
    color: var(--color-copper);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.75rem;
}

.check-list li::before {
    content: '✔️';
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 0.85rem;
    color: var(--color-copper);
}

ol.check-list {
    list-style: decimal;
    padding-right: 1.5rem;
}

ol.check-list li {
    padding-right: 0.5rem;
    margin-bottom: 0.5rem;
}

ol.check-list li::before {
    content: none;
}

/* Partner Card */
.partner-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(193, 127, 89, 0.15);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
}

.partner-card:hover {
    border-color: rgba(193, 127, 89, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Card Icon (for flag icons) */
.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

/* Country Flag - styled badge */
.country-flag {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

/* Country Code - styled badge */
.country-code {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-copper), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partner-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 0.5rem;
}

.partner-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Process Timeline */
.process-list {
    position: relative;
    list-style: none;
    padding-right: 2rem;
    border-right: 2px dashed rgba(193, 127, 89, 0.3);
}

.process-item {
    position: relative;
    margin-bottom: 3rem;
}

.process-item:last-child {
    margin-bottom: 0;
}

.process-item::before {
    content: '';
    position: absolute;
    right: -2.6rem;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--color-bg);
    border: 3px solid var(--color-copper);
    border-radius: 50%;
}

.process-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-copper-light);
    margin-bottom: 0.5rem;
}

/* Custom Accordion for FAQ */
details {
    background: var(--color-bg-elevated);
    border: 1px solid rgba(193, 127, 89, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

details[open] {
    border-color: rgba(193, 127, 89, 0.4);
}

summary {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-cream);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-copper);
    transition: transform 0.3s;
}

details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    margin-top: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

th,
td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-copper-light);
    background: rgba(193, 127, 89, 0.05);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ============ NOISE TEXTURE OVERLAY ============ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    transition: opacity 0.4s;
}

/* ============ MARQUEE SECTION ============ */
.marquee-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-top: 1px solid rgba(193, 127, 89, 0.08);
    border-bottom: 1px solid rgba(193, 127, 89, 0.08);
    overflow: hidden;
    background: var(--color-bg);
}

.marquee-track {
    display: flex;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    white-space: nowrap;
}

.marquee-item span {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 400;
    color: var(--color-text-subtle);
    transition: color 0.3s;
}

.marquee-item span:hover {
    color: var(--color-cream);
}

.marquee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-copper), var(--color-gold));
    flex-shrink: 0;
}

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

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

/* ============ PROCESS SECTION ============ */
.process {
    background: var(--color-bg-elevated);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 154, 123, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.process-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(193, 127, 89, 0.3) 20%, rgba(193, 127, 89, 0.3) 80%, transparent);
}

.process-step {
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}

.process-step-number {
    width: 88px;
    height: 88px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 1px rgba(193, 127, 89, 0.2);
}

.process-step-number::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(193, 127, 89, 0.4), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}

.process-step-number span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-copper-light), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-step h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal-clip-left {
    opacity: 0;
    transform: translateX(-60px) scale(0.97);
    transition: opacity 1.1s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

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

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

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

.reveal-pop {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.reveal-zoom {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

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

/* Stagger animations */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.08s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.16s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.24s;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.32s;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.4s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.stagger-scale>* {
    opacity: 0;
    transform: scale(0.82) translateY(25px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

.stagger-scale.visible>*:nth-child(1) {
    transition-delay: 0s;
}

.stagger-scale.visible>*:nth-child(2) {
    transition-delay: 0.07s;
}

.stagger-scale.visible>*:nth-child(3) {
    transition-delay: 0.14s;
}

.stagger-scale.visible>*:nth-child(4) {
    transition-delay: 0.21s;
}

.stagger-scale.visible>*:nth-child(5) {
    transition-delay: 0.28s;
}

.stagger-scale.visible>*:nth-child(6) {
    transition-delay: 0.35s;
}

.stagger-scale.visible>* {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ============ RESPONSIVE PROCESS ============ */
@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .process-steps::before {
        display: none;
    }
}

/* ============ PORTFOLIO GALLERY ============ */
.portfolio-section {
    position: relative;
    background: var(--color-bg);
    padding: clamp(3rem, 6vh, 5rem) 0;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 100px;
    border: 1px solid rgba(193, 127, 89, 0.15);
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.pf-btn:hover {
    border-color: var(--color-copper);
    color: var(--color-cream);
}

.pf-btn-active {
    background: linear-gradient(135deg, var(--color-copper), var(--color-terracotta));
    border-color: transparent;
    color: #F5F0EB;
}

.pf-btn-active:hover {
    color: #F5F0EB;
}

.pf-btn-count {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.1);
    color: inherit;
    font-weight: 600;
}

.pf-btn-active .pf-btn-count {
    background: rgba(255,255,255,0.2);
}

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

@media (min-width: 480px) {
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 640px) {
    .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
    .portfolio-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1280px) {
    .portfolio-grid { grid-template-columns: repeat(7, 1fr); }
}

.pf-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    aspect-ratio: 1;
    background: var(--color-bg-card);
}

.pf-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(193, 127, 89, 0.08);
    filter: grayscale(40%);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.pf-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.03);
}

.portfolio-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    min-height: 80px;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: rgba(255,255,255,0.06);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.08);
}

.gallery-vignette {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.gallery-vignette-left {
    left: 0;
    background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
}

.gallery-vignette-right {
    right: 0;
    background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
}

.gallery-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: 0 1rem;
}

.gallery-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-cream);
    margin-bottom: 0.75rem;
}

.gallery-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
}

.gallery-track-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-track {
    position: relative;
    height: clamp(200px, 25vw, 300px);
    overflow: hidden;
    width: 100%;
    background: var(--color-bg-card);
    border-radius: 12px;
}

.gallery-track-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    will-change: transform;
    padding: 0 20px;
}

.gallery-track:hover .gallery-track-inner {
    cursor: pointer;
}

.gallery-track:hover {
    animation-play-state: paused;
}

/* Mobile: Disable animation, show grid */
@media (max-width: 768px) {
    .gallery-track {
        height: auto;
        overflow: visible;
        background: transparent;
        border-radius: 0;
    }

    .gallery-track-inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0;
        height: auto;
        width: 100%;
        transform: none !important;
        animation: none !important;
    }

    .gallery-item {
        height: auto;
        min-width: 0;
        width: 100%;
    }

    .gallery-item img {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

@media (max-width: 480px) {
    .gallery-track-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* Mobile: Disable animation, show grid */
@media (max-width: 768px) {
    .gallery-track {
        height: auto;
        overflow: visible;
        background: transparent;
        border-radius: 0;
    }

    .gallery-track-inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0;
        height: auto;
        width: 100%;
        transform: none !important;
        animation: none !important;
    }

    .gallery-item {
        height: auto;
        min-width: 0;
        width: 100%;
    }

    .gallery-item img {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

@media (max-width: 480px) {
    .gallery-track-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* Mobile: Disable animation, show grid */
@media (max-width: 768px) {
    .gallery-track {
        height: auto;
        overflow: visible;
        background: transparent;
        border-radius: 0;
    }

    .gallery-track-inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0;
        height: auto;
        width: 100%;
        transform: none !important;
        animation: none !important;
    }

    .gallery-item {
        height: auto;
        min-width: 0;
        width: 100%;
    }

    .gallery-item img {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

@media (max-width: 480px) {
    .gallery-track-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* Mobile: Disable animation, show grid */
@media (max-width: 768px) {
    .gallery-track {
        height: auto;
        overflow: visible;
        background: transparent;
        border-radius: 0;
    }

    .gallery-track-inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0;
        height: auto;
        width: 100%;
        transform: none !important;
        animation: none !important;
    }

    .gallery-item {
        height: auto;
        min-width: 0;
        width: 100%;
    }

    .gallery-item img {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

@media (max-width: 480px) {
    .gallery-track-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* Mobile: Disable animation, show grid */
@media (max-width: 768px) {
    .gallery-track {
        height: auto;
        overflow: visible;
        background: transparent;
        border-radius: 0;
    }

    .gallery-track-inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0;
        height: auto;
        width: 100%;
        transform: none !important;
        animation: none !important;
    }

    .gallery-item {
        height: auto;
        min-width: 0;
        width: 100%;
    }

    .gallery-item img {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

@media (max-width: 480px) {
    .gallery-track-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* Mobile: Disable animation, show grid */
@media (max-width: 768px) {
    .gallery-track {
        height: auto;
        overflow: visible;
        background: transparent;
        border-radius: 0;
    }

    .gallery-track-inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0;
        height: auto;
        width: 100%;
        transform: none !important;
        animation: none !important;
    }

    .gallery-item {
        height: auto;
        min-width: 0;
        width: 100%;
    }

    .gallery-item img {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

@media (max-width: 480px) {
    .gallery-track-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

.gallery-track:hover .gallery-track-inner {
    cursor: grab;
}

.gallery-item {
    position: relative;
    height: 100%;
    min-width: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #333;
}

.gallery-item img {
    height: 100%;
    width: 100%;
    max-width: 350px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(193, 127, 89, 0.1);
    filter: grayscale(40%);
    opacity: 0.6;
    transition: all 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.03);
}

.gallery-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 14, 0.85) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 10px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    min-height: 120px;
}

.gallery-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(193, 127, 89, 0.2);
    border-top-color: var(--color-copper);
    border-radius: 50%;
    animation: gallerySpin 0.8s linear infinite;
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: whatsappPulse 2s infinite;
}

/* Light mode override */
[data-theme="light"] .whatsapp-float {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 18px;
        left: 18px;
        width: 48px;
        height: 48px;
    }
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 15, 14, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-cream);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--color-copper);
    border-color: var(--color-copper);
}

.lightbox-close iconify-icon {
    font-size: 1.25rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-cream);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(193, 127, 89, 0.3);
    border-color: var(--color-copper);
}

.lightbox-nav iconify-icon {
    font-size: 1.5rem;
}

.lightbox-prev {
    right: 1.5rem;
}

.lightbox-next {
    left: 1.5rem;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        right: 0.75rem;
    }
    
    .lightbox-next {
        left: 0.75rem;
    }
}

/* Gradient HR */
.gradient-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(193, 127, 89, 0.3), transparent);
    margin: 0;
}

/* ============ LIGHT MODE SPECIFIC STYLES ============ */
[data-theme="light"] .nav-logo {
    color: var(--color-cream);
}

[data-theme="light"] .nav-link {
    color: var(--color-text-muted);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: var(--color-cream);
}

[data-theme="light"] .nav-cta {
    color: #1A1816;
}

[data-theme="light"] .nav-link.active,
[data-theme="light"] .nav-link:hover {
    color: var(--color-cream);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(193, 127, 89, 0.3);
    color: var(--color-text-muted);
}

[data-theme="light"] .theme-toggle:hover {
    border-color: var(--color-copper);
    color: var(--color-copper);
}

[data-theme="light"] .nav-toggle span {
    background: var(--color-cream);
}

/* Hero section buttons in light mode */
[data-theme="light"] .btn-hero-webgl {
    border-color: rgba(193, 127, 89, 0.5);
}

[data-theme="light"] .btn-hero-webgl-text {
    color: #F5F0EB;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .hero .btn-outline {
    color: #F5F0EB;
    border-color: rgba(245, 240, 235, 0.4);
}

[data-theme="light"] .hero .btn-outline:hover {
    color: #fff;
    border-color: #fff;
}

[data-theme="light"] .footer-logo {
    color: var(--color-cream);
}

[data-theme="light"] .footer-title {
    color: var(--color-copper);
}

[data-theme="light"] .footer-links a {
    color: var(--color-text-muted);
}

[data-theme="light"] .footer-links a:hover {
    color: var(--color-cream);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(193, 127, 89, 0.1);
    color: var(--color-text-subtle);
}

/* Hero section - always dark for readability over background image */
.hero-title {
    color: #F5F0EB;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-description {
    color: rgba(245, 240, 235, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-stat-number {
    background: linear-gradient(135deg, #F5F0EB, var(--color-copper-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    color: rgba(245, 240, 235, 0.6);
}

/* ============ CTA SECTION ============ */
.cta {
    background: var(--color-bg);
    padding: clamp(5rem, 10vw, 9rem) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-bg-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.12;
}

.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--color-bg) 80%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-cream);
    margin-bottom: 1.5rem;
}

.cta-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--color-copper-light), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animated border CTA button */
.btn-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(193, 127, 89, 0.25);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo), border-color 0.6s;
    background: transparent;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent, rgba(193, 127, 89, 0.6), rgba(201, 169, 110, 0.3), rgba(193, 127, 89, 0.6));
    animation: btnBorderSpin 3s linear infinite;
    z-index: -2;
}

@keyframes btnBorderSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.btn-glow span {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--color-cream);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-glow:hover {
    transform: translateY(-2px);
    border-color: rgba(193, 127, 89, 0.5);
    box-shadow: 0 8px 40px rgba(193, 127, 89, 0.25), 0 0 0 1px rgba(193, 127, 89, 0.15);
}

/* Hero section - always dark for readability in light mode (has bg image) */
[data-theme="light"] .hero-title {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .hero-description {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .footer {
    background: var(--color-bg-elevated);
}

/* ============ MARQUEE / TICKER ============ */
.marquee-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-top: 1px solid rgba(193, 127, 89, 0.08);
    border-bottom: 1px solid rgba(193, 127, 89, 0.08);
    overflow: hidden;
    background: var(--color-bg);
    transition: background-color 0.4s;
    direction: ltr; /* Ensure animation math works perfectly on RTL pages */
}

.marquee-track {
    display: flex;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    white-space: nowrap;
}

.marquee-item span {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 400;
    color: var(--color-text-subtle);
    transition: color 0.3s;
}

.marquee-item span:hover {
    color: var(--color-cream);
}

.marquee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-copper), var(--color-gold));
    flex-shrink: 0;
}

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

/* ============ PARTNERS TICKER ============ */
.partners-ticker {
    background: var(--color-bg-elevated);
    padding: 2.5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(193, 127, 89, 0.1);
}

.ticker-wrap {
    overflow: hidden;
    margin-top: 1.5rem;
}

.ticker-track {
    display: flex;
    width: max-content;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-cream);
    white-space: nowrap;
}

.ticker-item:not(:last-child)::after {
    content: ' • ';
    color: var(--color-copper);
}