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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #070F0A;
}
::-webkit-scrollbar-thumb {
    background: #1B382A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/* Selection */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #FDF8F0;
}

/* Reveal animations - progressive enhancement */
.reveal-hidden {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-hidden:nth-child(2) { transition-delay: 0.1s; }
    .reveal-hidden:nth-child(3) { transition-delay: 0.2s; }
    .reveal-hidden:nth-child(4) { transition-delay: 0.3s; }
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(7, 15, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 175, 55, 0.1);
}

/* Mobile menu */
#mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.menu-open {
    transform: translateX(0) !important;
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #D4AF37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Gold accent line animations */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer {
    background: linear-gradient(90deg, #D4AF37 0%, #E8D5A3 50%, #D4AF37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Button hover effects */
a.group {
    position: relative;
}

/* Card hover */
.group:hover img {
    transform: scale(1.05);
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
}

/* Success message */
.success-message {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax-like subtle movement */
@media (prefers-reduced-motion: no-preference) {
    .animate-bounce {
        animation: bounce 2s ease-in-out infinite;
    }
    
    @keyframes bounce {
        0%, 100% { transform: translate(-50%, 0); }
        50% { transform: translate(-50%, 8px); }
    }
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0D1C15 0%, #11241C 100%);
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
