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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(95, 39, 72, 0.08);
}

.nav-scrolled .nav-link,
.nav-scrolled a {
    color: #5f2748 !important;
}

.nav-scrolled .mobile-nav-link {
    color: #5f2748 !important;
}

.nav-scrolled #mobile-menu-btn span {
    background: #5f2748 !important;
}

.nav-scrolled .logo-text {
    color: #5f2748 !important;
}

/* Hero nav state */
.nav-default {
    color: rgba(255, 255, 255, 0.85) !important;
}

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

.mobile-menu-closed #mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-closed #mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-closed #mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

.mobile-nav-link {
    color: rgba(42, 16, 31, 0.7);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #d97706;
}

/* Hero animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(24px);
}

/* Form select styling */
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='%23a85585' 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 0 center;
    padding-right: 2rem;
}

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

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

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

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

/* Selection color */
::selection {
    background: #d9a8c1;
    color: #2a101f;
}

/* 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[data-reveal="hidden"] {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

/* Image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
