:root {
    --primary: #FFD60A;
    --primary-alt: #ffcc00;
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    touch-action: pan-y;
}

body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* --- Premium Animations --- */

/* Reveal Core */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s var(--ease-premium);
    filter: blur(8px);
    will-change: transform, opacity, filter;
}

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

/* Directional Reveals */
.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-scale {
    transform: scale(0.9) translateY(20px);
}

.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    transform: translate(0, 0) scale(1);
}

/* Fix mobile overflow caused by reveals */
@media (max-width: 768px) {

    .reveal-left,
    .reveal-right {
        transform: translateY(30px) !important;
        transition: all 0.8s var(--ease-premium);
    }
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Sticky Header Scroll Effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
}

/* Premium Card Hover */
.premium-card {
    transition: all 0.5s var(--ease-premium);
    position: relative;
    overflow: hidden;
}

.premium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 214, 10, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 214, 10, 0.3) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

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

/* Button Pulse/Glow */
.btn-glow {
    position: relative;
    isolation: isolate;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s var(--ease-premium);
    filter: blur(10px);
}

.btn-glow:hover::before {
    opacity: 0.6;
}

.whatsapp-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.6s var(--ease-premium);
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    transform: translate(-100%, -100%);
    transition: all 0.8s var(--ease-premium);
    pointer-events: none;
}

.whatsapp-btn:hover::before {
    transform: translate(0, 0);
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(37, 211, 102, 0.4);
}

/* Footer Minimalist */
.footer-minimal {
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Utilities & Assets --- */

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

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}

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

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

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

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

    100% {
        transform: translateX(0);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee2 {
    animation: marquee2 30s linear infinite;
}

/* Loader */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-premium), visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 30px rgba(255, 214, 10, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 214, 10, 0);
    }
}

/* Scroll Up */
#scroll-up {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
    /* Higher priority to ensure visibility */
    background: var(--primary);
    color: var(--bg-dark);
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.5s var(--ease-premium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
}

@media (max-width: 768px) {
    #scroll-up {
        bottom: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
}

#scroll-up.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-up:hover {
    transform: translateY(-8px) rotate(5deg);
    background: var(--bg-dark);
    color: var(--primary);
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.7s var(--ease-premium);
    clip-path: circle(0% at 90% 10%);
}

#mobile-menu.active {
    clip-path: circle(150% at 90% 10%);
    opacity: 1 !important;
    pointer-events: auto !important;
}

.text-balance {
    text-wrap: balance;
}