/* === BASE === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fff;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #f59e0b !important;
}

/* === HERO === */
.hero-elem {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-elem:nth-child(1) { animation-delay: 0.1s; }
.hero-elem:nth-child(2) { animation-delay: 0.25s; }
.hero-elem:nth-child(3) { animation-delay: 0.4s; }
.hero-elem:nth-child(4) { animation-delay: 0.55s; }

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

.hero-orb {
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-2 { animation-delay: -3s; animation-duration: 10s; }
.orb-3 { animation-delay: -5s; animation-duration: 12s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.gold-line {
    opacity: 0;
    animation: lineReveal 1s ease forwards;
}

.line-1 { animation-delay: 0.8s; }
.line-2 { animation-delay: 1s; }

@keyframes lineReveal {
    to { opacity: 1; }
}

.scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* === REVEAL ANIMATIONS === */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* === PRODUCT CARDS === */
.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.15s; }
.reveal-up:nth-child(4) { transition-delay: 0.2s; }
.reveal-up:nth-child(5) { transition-delay: 0.25s; }
.reveal-up:nth-child(6) { transition-delay: 0.3s; }

/* === GALLERY === */
.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.15s; }
.reveal-up:nth-child(4) { transition-delay: 0.2s; }
.reveal-up:nth-child(5) { transition-delay: 0.25s; }
.reveal-up:nth-child(6) { transition-delay: 0.3s; }

/* === MOBILE MENU === */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* === HEADER SCROLL STATE === */
#site-header.scrolled {
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === BACK TO TOP === */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* === INPUT FOCUS GLOW === */
input:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

/* === SUBTLE SHIMMER ON GOLD ELEMENTS === */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .hero-elem {
        transform: translateY(20px);
    }
}
