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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fff;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A0A1E;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3D1A45, #D4A843);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #4E2558, #E8C060);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #D4A843, #E8C060);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

/* === NAVBAR SCROLLED STATE === */
#navbar.scrolled {
    background: rgba(26, 10, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

/* === MOBILE MENU === */
.mobile-nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    transform: scale(1.05);
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Mobile menu button animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#mobileMenuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
    margin-left: 0;
    margin-right: 0;
}

/* === HERO ANIMATIONS === */
.hero-element {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* Scroll dot animation */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* === REVEAL ANIMATIONS === */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

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

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

/* === GOLD GRADIENT TEXT === */
.text-transparent {
    background-clip: text;
    -webkit-background-clip: text;
}

/* === IMAGE HOVER === */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* === MENU HOVER === */
.group:hover .group-hover\\:text-amber-350 {
    color: #E8C060 !important;
}

/* === INPUT FOCUS === */
input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* === BUTTON RIPPLE EFFECT === */
button, a {
    position: relative;
    overflow: visible;
}

/* === RESPONSIVE TYPOGRAPHY === */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}

@media (min-width: 1024px) {
    .reveal-up {
        transition-delay: 0.1s;
    }
}

/* === SUBTLE GLOW EFFECTS === */
.glow-amber {
    box-shadow: 0 0 40px rgba(212, 168, 67, 0.15);
}

/* === LOADING STATE === */
.page-loaded .hero-element {
    animation-play-state: running;
}

/* === PRINT STYLES === */
@media print {
    #navbar, #mobileMenuBtn {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
