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

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

body {
    overflow-x: hidden;
}

/* Hero Background */
.hero-bg {
    background: linear-gradient(135deg, rgba(26, 10, 23, 0.7) 0%, rgba(45, 18, 40, 0.5) 50%, rgba(74, 29, 67, 0.6) 100%);
}

.hero-overlay {
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(26, 10, 23, 0.3) 0%, rgba(26, 10, 23, 0.1) 40%, rgba(26, 10, 23, 0.6) 100%);
}

/* Hero Animations */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-desc {
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-ctas {
    animation: fadeUp 0.8s ease forwards 0.9s;
}

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

/* Scroll Indicator */
@keyframes scrollDown {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(74, 35, 83, 0.08);
}

.nav-scrolled .nav-link,
.nav-scrolled a,
.nav-scrolled .mobile-link {
    color: #4A1D43 !important;
}

.nav-scrolled .cta-secondary {
    border-color: #4A1D43 !important;
    color: #4A1D43 !important;
}

.nav-scrolled .menu-line {
    background: #4A1D43 !important;
}

/* Mobile Menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* CTA Buttons */
.cta-primary {
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.cta-primary:hover {
    box-shadow: 0 6px 30px rgba(212, 168, 67, 0.4);
    transform: translateY(-2px);
}

.cta-secondary:hover {
    transform: translateY(-2px);
}

/* Area Cards */
.area-card {
    cursor: default;
}

/* Form Select */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239B4D96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

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

::-webkit-scrollbar-track {
    background: #F9F0FB;
}

::-webkit-scrollbar-thumb {
    background: #D495D9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B86BBF;
}

/* Selection */
::selection {
    background: rgba(212, 168, 67, 0.2);
    color: #4A1D43;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
}

/* Reduced 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu lines animation */
.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-open .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}
