/* ==============================================
   PANDORA · Rules to Love By
   Landing Page Styles
   ============================================== */

/* ---- GOOGLE FONTS — must be first rule ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');


/* Gotham – system stack fallback (works without licensed files) */
@font-face {
    font-family: 'Gotham';
    src: local('Gotham'), local('Gotham-Book'),
        local('HelveticaNeue'), local('Helvetica Neue');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


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

html {
    /* scroll-behavior is handled by Locomotive Scroll — native smooth scroll
       is intentionally disabled to avoid conflicts with the library */
    scroll-behavior: auto;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background-color: #0a0a0a;
    color: #f5efe6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- LOCOMOTIVE SCROLL ---- */
html.has-scroll-smooth {
    overflow: hidden;
}

html.has-scroll-dragging {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.has-scroll-smooth body {
    overflow: hidden;
}

[data-scroll-container] {
    min-height: 100vh;
}

/* Custom scrollbar */
.c-scrollbar {
    width: 3px !important;
}

.c-scrollbar_thumb {
    background-color: #c9a96e !important;
    opacity: 0.5;
    border-radius: 0 !important;
}

/* ---- HERO ANIMATIONS ---- */
.hero-anim-1,
.hero-anim-2,
.hero-anim-3,
.hero-anim-4 {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim-1 {
    animation-delay: 0.3s;
}

.hero-anim-2 {
    animation-delay: 0.6s;
}

.hero-anim-3 {
    animation-delay: 0.9s;
}

.hero-anim-4 {
    animation-delay: 1.2s;
}

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

/* Scroll line animation */
@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ---- REVEAL TEXT on scroll ---- */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---- PARALLAX IMAGE WRAPPERS ---- */
.parallax-img-wrap {
    position: relative;
    overflow: hidden;
}

.simulated-img,
.parallax-inner,
.marquee-inner {
    will-change: transform;
}

/* Parallax sections: images need extra height so Locomotive Scroll
   has room to translate them without visible clipping. */
[data-scroll][data-scroll-speed]>img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
    top: -10%;
    position: relative;
}

/* ---- FADE-IN on scroll (image wrappers) ---- */
/* Locomotive Scroll adds .is-inview automatically when the element
   enters the viewport — no extra JS required.                       */
[data-scroll-speed="-1.5"] {
    opacity: 0;
    transition: opacity 1s ease;
}

[data-scroll-speed="-1.5"].is-inview {
    opacity: 1;
}

/* ---- FEATURE CARDS ---- */
.feature-card {
    position: relative;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card .parallax-inner {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- BOKEH EFFECTS ---- */
.bokeh {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: bokehFloat 8s ease-in-out infinite alternate;
}

.bokeh-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 164, 201, 0.35) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.bokeh-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.25) 0%, transparent 70%);
    top: 50%;
    right: 5%;
    animation-delay: -3s;
}

.bokeh-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(170, 130, 210, 0.2) 0%, transparent 70%);
    bottom: 10%;
    left: 30%;
    animation-delay: -6s;
}

.bokeh-4 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.2) 0%, transparent 70%);
    top: 0;
    right: -15%;
    animation-delay: -2s;
}

.bokeh-5 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 164, 201, 0.2) 0%, transparent 70%);
    bottom: 0;
    left: -10%;
    animation-delay: -5s;
}

@keyframes bokehFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* ---- MARQUEE ---- */
.marquee-track {
    overflow: hidden;
    padding: 2rem 0;
    /* Prevent Locomotive Scroll from interfering with horizontal marquee */
    touch-action: pan-y;
}

.marquee-inner {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-animation: marqueeScroll 30s linear infinite;
    animation: marqueeScroll 30s linear infinite;
    gap: 4rem;
    will-change: transform;
}

/* Pause marquee if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-inner {
        -webkit-animation: none;
        animation: none;
    }
}

@-webkit-keyframes marqueeScroll {
    from {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    to {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

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

/* ---- HEADER scroll shrink ---- */
#header.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ---- NAV ACTIVE UNDERLINE ---- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #c9a96e;
    transition: width 0.3s ease;
}

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

/* ---- MOBILE MENU ---- */
#mobileMenu.open {
    transform: translateX(0);
}

/* ---- GOLD ACCENT DECORATIONS ---- */
.section-ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-ornament::before,
.section-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 169, 110, 0.5), transparent);
}

/* ---- CURSOR (optional luxury effect) - only desktop ---- */
/* mix-blend-mode: difference removed — unsupported in Firefox stacking contexts */
@media (min-width: 1024px) {
    body {
        cursor: none;
    }

    /* Fallback: restore cursor if JS fails to inject cursor elements */
    body:not(.cursor-ready) {
        cursor: auto;
    }

    .cursor {
        position: fixed;
        width: 12px;
        height: 12px;
        background: #c9a96e;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        -webkit-transition: -webkit-transform 0.1s linear,
            width 0.3s ease,
            height 0.3s ease,
            opacity 0.3s ease;
        transition: transform 0.1s linear,
            width 0.3s ease,
            height 0.3s ease,
            opacity 0.3s ease;
        /* mix-blend-mode: difference — removed for Firefox compatibility */
    }

    .cursor-follower {
        position: fixed;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(201, 169, 110, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            width 0.4s ease,
            height 0.4s ease;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            width 0.4s ease,
            height 0.4s ease;
    }

    .cursor.hovered {
        width: 24px;
        height: 24px;
        opacity: 0.6;
    }

    .cursor-follower.hovered {
        width: 60px;
        height: 60px;
        opacity: 0.4;
    }
}

/* ---- SELECTION STYLE ---- */
::-moz-selection {
    background: rgba(201, 169, 110, 0.3);
    color: #f5efe6;
}

::selection {
    background: rgba(201, 169, 110, 0.3);
    color: #f5efe6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .marquee-inner {
        -webkit-animation-duration: 20s;
        animation-duration: 20s;
    }
}

/* ---- UTILITY: smooth transitions ---- */
a,
button {
    -webkit-transition-property: color, background-color, border-color, opacity, -webkit-transform;
    transition-property: color, background-color, border-color, opacity, transform;
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {

    .hero-anim-1,
    .hero-anim-2,
    .hero-anim-3,
    .hero-anim-4 {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .reveal-text {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .animate-scroll-line {
        animation: none;
    }

    .bokeh {
        animation: none;
    }
}