/* ==============================================
   K2 MEDIA CAPITAL — Premium Design System
   Entertainment Investment Firm · Dubai
   ============================================== */

/* ── Design Tokens ── */
:root {
    /* Brand palette */
    --accent: #D4AF37;
    --accent-light: #E8CC6E;
    --accent-dark: #A88B2A;
    --gold-glow: rgba(212, 175, 55, 0.35);

    /* Neutrals */
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --gray-950: #0A0A0A;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-base: 350ms;
    --duration-slow: 600ms;
    --duration-slower: 1000ms;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, .15), 0 4px 10px rgba(0, 0, 0, .05);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, .2);
    --shadow-2xl: 0 25px 60px rgba(0, 0, 0, .3);
    --shadow-gold: 0 8px 32px var(--gold-glow);
    --shadow-gold-lg: 0 16px 48px var(--gold-glow);

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Z-index layers */
    --z-base: 1;
    --z-above: 10;
    --z-nav: 50;
    --z-overlay: 90;
    --z-modal: 100;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 5rem;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    letter-spacing: -0.025em;
    font-weight: 400;
    line-height: 1.15;
}

h1 {
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

p {
    line-height: 1.75;
}

/* ── Custom Selection ── */
::selection {
    background-color: var(--accent);
    color: var(--black);
}

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

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gray-700), var(--gray-900));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-700) var(--gray-950);
}

/* ── Links ── */
a {
    transition: color var(--duration-base) var(--ease-smooth),
        transform var(--duration-base) var(--ease-smooth);
}

/* ── Focus for Accessibility ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ========================================
   NAVIGATION
   ======================================== */

#navbar {
    transition: all 0.5s var(--ease-out-expo);
    will-change: transform, background-color;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(212, 175, 55, 0.08);
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width var(--duration-base) var(--ease-out-expo);
}

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

/* Mobile menu  */
#mobile-menu {
    transition: opacity var(--duration-base) var(--ease-smooth),
        transform var(--duration-base) var(--ease-out-expo);
}

#mobile-menu a {
    position: relative;
    padding: 0.25rem 0;
}

#mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: all var(--duration-base) var(--ease-out-expo);
    transform: translateX(-50%);
}

#mobile-menu a:hover::after {
    width: 60%;
}

/* ========================================
   HERO SECTION — IMMERSIVE 3D SLIDER
   ======================================== */

/* Ambient Glow Animations */
@keyframes glowDrift1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(15%, 10%) scale(1.2);
    }
}

@keyframes glowDrift2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-10%, -15%) scale(1.15);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.08;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.18;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* Hero Title Word Reveal */
@keyframes heroWordReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) rotateX(15deg);
        filter: blur(8px);
    }

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

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ── 3D Slider Wrapper ── */
.hero-3d-slider-wrapper {
    perspective: 1800px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0;
}

/* Swiper Container */
.hero3DSwiper {
    overflow: visible !important;
    padding: 20px 0 50px 0;
}

.hero3DSwiper .swiper-wrapper {
    align-items: center;
}

/* ── Individual Slide ── */
.hero-3d-slide {
    width: 78vw !important;
    max-width: 720px;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    filter: brightness(0.5) saturate(0.6);
    opacity: 0.5;
}

.hero-3d-slide.swiper-slide-active {
    filter: brightness(1) saturate(1);
    opacity: 1;
    z-index: 5;
}

.hero-3d-slide.swiper-slide-prev,
.hero-3d-slide.swiper-slide-next {
    filter: brightness(0.65) saturate(0.75);
    opacity: 0.7;
}

/* ── 3D Card ── */
.hero-3d-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-smooth);
    will-change: transform;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 10px 20px rgba(0, 0, 0, 0.4);
}

.swiper-slide-active .hero-3d-card {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(212, 175, 55, 0.1),
        0 0 120px rgba(212, 175, 55, 0.05);
}

.hero-3d-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(212, 175, 55, 0.15);
}

.hero-3d-card-inner {
    position: relative;
    height: 55vw;
    max-height: 420px;
    min-height: 280px;
    overflow: hidden;
    border-radius: inherit;
}

/* ── Card Image ── */
.hero-3d-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s var(--ease-smooth), filter 0.8s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.swiper-slide-active .hero-3d-card-image {
    animation: heroCardKenBurns 15s ease-in-out infinite alternate;
}

@keyframes heroCardKenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.08) translate(-1%, -1%);
    }

    100% {
        transform: scale(1.04) translate(1%, 0.5%);
    }
}

.hero-3d-card:hover .hero-3d-card-image {
    transform: scale(1.1);
}

/* ── Cinematic Overlay ── */
.hero-3d-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.1) 60%,
            transparent 100%);
    transition: opacity 0.5s ease;
    z-index: 2;
}

.hero-3d-card:hover .hero-3d-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.98) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.15) 65%,
            transparent 100%);
}

/* ── Glass Reflection Streak ── */
.hero-3d-reflection {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.06) 45%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.06) 55%,
            transparent 60%);
    z-index: 4;
    pointer-events: none;
    transition: left 1s var(--ease-out-expo);
}

.hero-3d-card:hover .hero-3d-reflection {
    left: 160%;
}

/* ── Gold Border Glow ── */
.hero-3d-border-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    z-index: 5;
    pointer-events: none;
    transition: all 0.6s var(--ease-smooth);
}

.swiper-slide-active .hero-3d-border-glow {
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: inset 0 0 40px rgba(212, 175, 55, 0.05);
}

.hero-3d-card:hover .hero-3d-border-glow {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow:
        inset 0 0 60px rgba(212, 175, 55, 0.1),
        0 0 40px rgba(212, 175, 55, 0.15);
}

/* ── Content Overlay ── */
.hero-3d-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    z-index: 6;
    transform: translateY(10px);
    opacity: 0.7;
    transition: all 0.5s var(--ease-out-expo);
}

.swiper-slide-active .hero-3d-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-3d-card:hover .hero-3d-content {
    transform: translateY(0);
    opacity: 1;
}

/* Badge */
.hero-3d-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius-full);
    margin-bottom: 0.6rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-3d-card:hover .hero-3d-badge {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

/* Title */
.hero-3d-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    transition: text-shadow 0.3s ease;
}

.hero-3d-card:hover .hero-3d-title {
    text-shadow: 0 4px 30px rgba(212, 175, 55, 0.3);
}

/* Subtitle */
.hero-3d-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.5s ease 0.1s;
}

.swiper-slide-active .hero-3d-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.hero-3d-card:hover .hero-3d-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* CTA (removed — slider is display-only) */
.hero-3d-cta {
    display: none;
}

/* ── Corner Accents ── */
.hero-3d-corner {
    position: absolute;
    width: 2rem;
    height: 2rem;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease 0.15s;
}

.hero-3d-corner-tr {
    top: 0.75rem;
    right: 0.75rem;
    border-top: 2px solid rgba(212, 175, 55, 0.5);
    border-right: 2px solid rgba(212, 175, 55, 0.5);
    border-top-right-radius: 0.75rem;
}

.hero-3d-corner-bl {
    bottom: 0.75rem;
    left: 0.75rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
    border-left: 2px solid rgba(212, 175, 55, 0.5);
    border-bottom-left-radius: 0.75rem;
}

.swiper-slide-active .hero-3d-corner {
    opacity: 0.5;
}

.hero-3d-card:hover .hero-3d-corner {
    opacity: 1;
}

/* ── Custom Navigation ── */
.hero-3d-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s var(--ease-smooth);
    opacity: 0.6;
}

.hero-3d-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.hero-3d-nav-prev {
    left: 1rem;
}

.hero-3d-nav-next {
    right: 1rem;
}

/* ── Slide Counter ── */
.hero-3d-counter {
    position: absolute;
    bottom: -35px;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    z-index: 20;
}

#hero-slide-current {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    transition: all 0.3s ease;
}

.hero-3d-counter-sep {
    width: 24px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.2));
    border-radius: 2px;
}

/* ── Pagination ── */
.hero-3d-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.hero-3d-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    margin: 0 5px !important;
    transition: all 0.5s var(--ease-out-expo);
}

.hero-3d-pagination .swiper-pagination-bullet-active {
    width: 32px;
    height: 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
}

/* ── Scroll Indicator ── */
.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.hero-scroll-indicator .bg-accent {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ── Mobile Responsive ── */
@media (max-width: 767px) {
    .hero-3d-slide {
        width: 85vw !important;
        max-width: 400px;
    }

    .hero-3d-card-inner {
        height: 65vw;
        max-height: 340px;
        min-height: 230px;
    }

    .hero-3d-title {
        font-size: 1.4rem;
    }

    .hero-3d-subtitle {
        opacity: 0.9;
        transform: translateY(0);
        font-size: 0.78rem;
    }


    .hero-3d-content {
        padding: 1rem 1.25rem;
        opacity: 1;
        transform: translateY(0);
    }

    .hero-3d-nav {
        display: none;
    }

    .hero-3d-counter {
        right: 1rem;
        bottom: -30px;
    }

    #hero-slide-current {
        font-size: 1.2rem;
    }

    .hero-3d-corner {
        width: 1.5rem;
        height: 1.5rem;
    }

    .hero3DSwiper {
        padding: 10px 0 40px 0;
    }
}

@media (max-width: 359px) {
    .hero-3d-slide {
        width: 90vw !important;
    }

    .hero-3d-card-inner {
        height: 70vw;
        min-height: 200px;
    }

    .hero-3d-title {
        font-size: 1.2rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-3d-slide {
        width: 65vw !important;
        max-width: 600px;
    }

    .hero-3d-nav {
        width: 44px;
        height: 44px;
    }
}

/* Desktop Large */
@media (min-width: 1280px) {
    .hero-3d-slide {
        width: 55vw !important;
        max-width: 800px;
    }

    .hero-3d-card-inner {
        max-height: 480px;
    }

    .hero-3d-title {
        font-size: 2.25rem;
    }

    .hero-3d-content {
        padding: 1.75rem 2rem;
    }

    .hero-3d-nav-prev {
        left: 2.5rem;
    }

    .hero-3d-nav-next {
        right: 2.5rem;
    }
}

/* Ultra-wide */
@media (min-width: 1920px) {
    .hero-3d-slide {
        max-width: 950px;
    }

    .hero-3d-card-inner {
        max-height: 540px;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    #hero-3d {
        min-height: auto !important;
    }

    .hero-3d-card-inner {
        height: 45vh;
        max-height: 300px;
        min-height: 180px;
    }
}

/* Touch devices - always show content */
@media (hover: none) and (pointer: coarse) {
    .hero-3d-subtitle {
        opacity: 0.9 !important;
        transform: translateY(0) !important;
    }


    .hero-3d-corner {
        opacity: 0.4 !important;
    }

    .hero-3d-content {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-3d-card-image {
        animation: none !important;
    }

    .hero-3d-reflection {
        display: none;
    }

    #hero-particles {
        display: none;
    }
}

/* Scroll Indicator Animation */
@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* Fancy glow on scroll indicator */
header a[href="#about"] .bg-accent {
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
}

/* Hero Background Ken Burns (kept for backwards compat) */
.heroSwiper .swiper-slide-active img {
    animation: kenBurns 18s linear infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translateY(0);
    }

    100% {
        transform: scale(1.08) translateY(-1.5%);
    }
}

.heroSwiper .swiper-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    pointer-events: none;
}


/* ========================================
   ABOUT SECTION
   ======================================== */

#about {
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

/* ========================================
   STRATEGY SECTION
   ======================================== */

/* Strategy cards */
.strategy-card,
.p-6.border {
    position: relative;
    transition: all var(--duration-slow) var(--ease-smooth);
}

.p-6.border::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent), transparent 60%, var(--accent)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--duration-base) ease;
    pointer-events: none;
}

.p-6.border:hover::before {
    opacity: 1;
}

.p-6.border:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

/* ========================================
   TEAM SECTION
   ======================================== */

/* Founder Hover Effects */
.founder-card img {
    transition: filter 1s var(--ease-smooth),
        transform 1s var(--ease-smooth);
}

.founder-card:hover img {
    filter: grayscale(0);
    transform: scale(1.02);
}

/* Grayscale Image Transitions */
img[class*="grayscale"] {
    transition: all 1.2s var(--ease-smooth);
}

img[class*="grayscale"]:hover {
    transform: scale(1.015);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

/* Contact Cards */
.bg-zinc-900\/50 {
    transition: all var(--duration-slow) var(--ease-smooth);
    position: relative;
}

.bg-zinc-900\/50::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 30%, var(--accent) 50%, transparent 70%);
    opacity: 0;
    transition: opacity var(--duration-base) ease;
    z-index: -1;
    pointer-events: none;
}

.bg-zinc-900\/50:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold-lg);
}

.bg-zinc-900\/50:hover::before {
    opacity: 0.15;
}

/* ========================================
   FILM FESTIVALS & AWARDS
   ======================================== */

/* Animated counter on scroll */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ========================================
   SWIPER CUSTOMISATIONS
   ======================================== */

.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.35;
    width: 10px;
    height: 10px;
    transition: all var(--duration-base) var(--ease-out-expo);
}

.swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
    width: 28px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 12px var(--gold-glow);
}

.swiper-button-next,
.swiper-button-prev {
    opacity: 0.6;
    transition: all var(--duration-base) var(--ease-smooth);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Uzair Gallery Navigation */
#uzair-prev,
#uzair-next {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#uzair-prev::before,
#uzair-next::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-base) var(--ease-out-expo);
    z-index: -1;
}

#uzair-prev:hover::before,
#uzair-next:hover::before {
    transform: scaleX(1);
}

/* Grid Gallery Images */
.uzairSwiper img {
    transition: all 0.6s var(--ease-smooth);
    filter: grayscale(25%) brightness(0.95);
}

.uzairSwiper img:hover {
    filter: grayscale(0%) brightness(1);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   LIGHTBOX CUSTOMISATION
   ======================================== */

.glightbox-container .gslide-description {
    background: rgba(0, 0, 0, 0.92);
}

.gclose {
    background: var(--accent) !important;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
}

/* ========================================
   ACCENT GLOW ON TEXT
   ======================================== */

.text-accent {
    text-shadow: 0 0 28px rgba(212, 175, 55, 0.25);
}

/* Laurels Slide */
.heroSwiper .swiper-slide:last-child img {
    filter: brightness(1.08) contrast(1.04);
}

/* ========================================
   REVEAL / SCROLL ANIMATIONS
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s var(--ease-out-expo);
}

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

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

.reveal-stagger.active>*:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal-stagger.active>*:nth-child(2) {
    transition-delay: 0.12s;
}

.reveal-stagger.active>*:nth-child(3) {
    transition-delay: 0.19s;
}

.reveal-stagger.active>*:nth-child(4) {
    transition-delay: 0.26s;
}

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

/* Section border-top separator for white sections */
section.bg-white {
    position: relative;
}

/* ========================================
   LOADING STATE FOR IMAGES
   ======================================== */

img {
    opacity: 1;
    transition: opacity 0.4s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========================================
   PREMIUM BUTTON STYLES
   ======================================== */

.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-smooth);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s var(--ease-out-expo);
}

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

/* CTA Button pulse ring */
.cta-btn {
    position: relative;
}

.cta-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {

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

    50% {
        opacity: 0.4;
        transform: scale(1.04);
    }
}

/* ========================================
   ANIMATED NUMBER COUNTER
   ======================================== */

.count-up {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   RESPONSIVE — MOBILE FIRST
   ======================================== */

/* ── Extra-small (< 360px) ── */
@media (max-width: 359px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }
}

/* ── Small (< 768px) ── */
@media (max-width: 767px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    .heroSwiper .swiper-slide h1,
    .heroSwiper .swiper-slide h2 {
        font-size: 2.25rem !important;
    }

    .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
    }

    .swiper-pagination-bullet-active {
        width: 20px;
    }

}

/* ── Tablet (768px – 1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {
    /* tablet-specific overrides */
}

/* ── Large (≥ 1280px) ── */
@media (min-width: 1280px) {
    /* large screen overrides */
}

/* ── Ultra-wide (≥ 1920px) ── */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    h1 {
        font-size: 5rem !important;
    }

    section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* ── 4K+ (≥ 2560px) ── */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
    }

    body {
        font-size: 1.15rem;
    }
}

/* ── Touch Devices ── */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ── Landscape phones ── */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        min-height: auto !important;
        padding-top: 4rem !important;
        padding-bottom: 2rem !important;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* High Contrast */
@media (prefers-contrast: high) {
    :root {
        --accent: #FFD700;
        --gold-glow: rgba(255, 215, 0, 0.4);
    }

    .text-gray-400,
    .text-gray-500 {
        color: var(--white) !important;
    }

    .border-white\/5,
    .border-white\/10,
    .border-white\/20 {
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .heroSwiper .swiper-slide-active img {
        animation: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {

    nav,
    footer,
    .swiper-pagination,
    .swiper-button-next,
    .swiper-button-prev,

    .animate-pulse,
    .animate-ping {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    img[class*="grayscale"] {
        filter: none !important;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: #555;
    }
}

/* ========================================
   UTILITY HELPERS
   ======================================== */

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--white) 0%, var(--accent) 50%, var(--white) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Gold divider line */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border: none;
    opacity: 0.4;
}

/* Floating animation for decorative elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Grain overlay for cinematic texture */
.grain-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* Smooth section transitions */
.section-fade {
    position: relative;
}

.section-fade::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--black));
    pointer-events: none;
    z-index: 2;
}