﻿/* =====================================================
   ROOT / GLOBAL
===================================================== */

:root {
    --brand-primary: #e8cc64;
    --brand-primary-soft: #f3e7a3;
    --brand-dark: #0f172a;
    --brand-footer: #0b1220;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
    background: rgba(232, 204, 100, .35);
    color: #020617;
}


/* =====================================================
   TOPBAR
===================================================== */

.top-social {
    position: relative;
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
    transition: opacity .2s ease, color .2s ease;
}

    .top-social:hover {
        opacity: .75;
    }

    .top-social::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 100%;
        height: 1px;
        background: rgba(15, 23, 42, .65);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s ease;
    }

    .top-social:hover::after {
        transform: scaleX(1);
    }


/* =====================================================
   HERO BACKGROUND CINEMATIC ZOOM EFFECT
===================================================== */

.hero-bg {
    animation: heroZoom 20s ease-in-out infinite alternate;
    transform-origin: center;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}


/* =====================================================
   PREMIUM SCROLL REVEAL
===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(60px) scale(.98);
    filter: blur(6px);
    will-change: transform, opacity, filter;
    transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1), filter 1s cubic-bezier(.22, 1, .36, 1);
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    will-change: transform, opacity;
    transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1);
}

    .reveal-left.active {
        opacity: 1;
        transform: translateX(0);
    }

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    will-change: transform, opacity;
    transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1);
}

    .reveal-right.active {
        opacity: 1;
        transform: translateX(0);
    }

.reveal-soft {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1);
}

    .reveal-soft.active {
        opacity: 1;
        transform: translateY(0);
    }

/* Stagger */
.delay-1 {
    transition-delay: .1s;
}

.delay-2 {
    transition-delay: .25s;
}

.delay-3 {
    transition-delay: .4s;
}


/* =====================================================
   NAVIGATION
===================================================== */

.navlink {
    position: relative;
    font-size: .95rem;
    font-weight: 500;
    color: #0f172a;
    padding: .45rem 0;
    text-decoration: none;
    transition: color .25s ease, background .25s ease;
}

    .navlink::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, #e8cc64, #f3e7a3, #e8cc64);
        box-shadow: 0 0 6px rgba(232, 204, 100, .35);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    }

    .navlink:hover {
        color: #020617;
    }

        .navlink:hover::after,
        .navlink.active::after {
            transform: scaleX(1);
        }

    .navlink.active {
        color: #020617;
        font-weight: 600;
    }


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    position: relative;
    background: radial-gradient(1000px 600px at 10% -10%, rgba(232, 204, 100, .06), transparent 60%), radial-gradient(900px 500px at 90% 10%, rgba(255, 255, 255, .04), transparent 60%), #0b1220;
    color: rgba(255, 255, 255, .85);
}

.footer-title {
    font-size: .75rem;
    letter-spacing: .18em;
    font-weight: 600;
    color: #e8cc64;
}

.footer-link {
    color: rgba(226, 232, 240, .8);
    font-size: .85rem;
    text-decoration: none;
    transition: color .2s ease;
}

    .footer-link:hover {
        color: #ffffff;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

.footer-divider {
    height: 1px;
    background: linear-gradient( to right, transparent, rgba(255, 255, 255, .2), transparent );
}

.footer-bottom {
    font-size: .75rem;
    color: rgba(255, 255, 255, .65);
}

    .footer-bottom strong {
        color: rgba(255, 255, 255, .9);
        font-weight: 600;
    }


/* =====================================================
   SCROLLBAR / UTILITY
===================================================== */

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* =====================================================
   GENERIC CARD SLIDER
===================================================== */

#slider a {
    transform: scale(.94);
    opacity: .72;
    transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease;
}

    #slider a.active {
        transform: scale(1.03);
        opacity: 1;
    }


/* =====================================================
   VIDEO SLIDER
===================================================== */

#videoSlider {
    scroll-padding-left: .25rem;
    scroll-padding-right: .25rem;
}

    #videoSlider .video-card {
        transform: scale(.96);
        opacity: .82;
        transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease;
    }

        #videoSlider .video-card.active {
            transform: scale(1);
            opacity: 1;
        }

        #videoSlider .video-card > div {
            height: 100%;
        }

/* Mobile */
@media (max-width: 639px) {
    #videoSlider .video-card {
        width: calc(100% - .5rem);
    }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
    #videoSlider .video-card {
        width: calc(50% - .75rem);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    #videoSlider .video-card {
        width: calc((100% - 3rem) / 3);
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .hero-bg {
        animation: none;
        transform: none;
    }

    .navlink {
        font-size: 1rem;
        padding: .85rem .9rem;
        border-radius: 12px;
    }

        .navlink::after {
            display: none;
        }

        .navlink:hover {
            background: rgba(232, 204, 100, .12);
        }

        .navlink.active {
            background: linear-gradient( 90deg, rgba(232, 204, 100, .25), rgba(232, 204, 100, .12) );
            border-left: 4px solid #e8cc64;
            padding-left: 1rem;
            font-weight: 600;
        }
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
