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

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

body {
    overflow-x: hidden;
}

/* Hero gradient */
.hero-gradient {
    background: 
        radial-gradient(ellipse 90% 70% at 20% 30%, rgba(184,96,60,0.25) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 80% 50%, rgba(201,168,76,0.15) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 50% 90%, rgba(196,168,124,0.12) 0%, transparent 50%),
        linear-gradient(180deg, #0D0804 0%, #0A0A0A 40%, #0A0A0A 60%, #0D0804 100%);
}

/* Hero particles */
.hero-particle {
    animation: float 8s ease-in-out infinite;
}

.hero-particle:nth-child(2) { animation-delay: -2s; animation-duration: 10s; }
.hero-particle:nth-child(3) { animation-delay: -4s; animation-duration: 12s; }
.hero-particle:nth-child(4) { animation-delay: -6s; animation-duration: 9s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(15px, -20px) scale(1.05); opacity: 0.8; }
    50% { transform: translate(-10px, -35px) scale(1.02); opacity: 0.6; }
    75% { transform: translate(20px, -15px) scale(1.08); opacity: 0.7; }
}

/* Hero entrance animations */
.hero-elem {
    opacity: 0;
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 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 {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll dot animation */
.animate-scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(6px); }
}

/* Scroll reveal animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* Navbar */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(187, 134, 95, 0.15);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.nav-transparent {
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

/* Mobile menu */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(187, 134, 95, 0.1);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Button hover effects */
button[type="submit"]:hover,
a[href="#contact"][class*="px-8"]:hover {
    box-shadow: 0 8px 40px rgba(184, 96, 60, 0.35) !important;
    transform: translateY(-1px);
}

button[type="submit"],
a[href="#contact"][class*="px-8"] {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Input focus styles */
input:focus, select:focus, textarea:focus {
    background: rgba(28, 28, 28, 0.8);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: rgba(187, 134, 95, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(187, 134, 95, 0.5);
}

/* Selection */
::selection {
    background: rgba(184, 96, 60, 0.3);
    color: #FFFFFF;
}

/* Image loading */
img {
    display: block;
    max-width: 100%;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
