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

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

body {
    overflow-x: hidden;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #95183e;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #380715;
}

/* Focus styles */
:focus-visible {
    outline: 1px solid #95183e;
    outline-offset: 2px;
}

/* Nav transition states */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(149, 24, 62, 0.08);
}

.nav-scrolled .text-current,
.nav-scrolled a,
.nav-scrolled span,
.nav-scrolled div {
    color: #380715 !important;
}

.nav-scrolled .group-hover\:bg-burgundy-700:hover,
.nav-scrolled .hover\:bg-burgundy-700:hover {
    background: #95183e !important;
}

.nav-scrolled .group-hover\:text-burgundy-600:hover,
.nav-scrolled .hover\:text-burgundy-600:hover {
    color: #95183e !important;
}

.nav-scrolled .border-current {
    border-color: #380715 !important;
}

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

/* Service card hover */
.service-card {
    transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    background-color: #380715;
}

/* Form select arrow */
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='%23d43f6b' stroke-width='1.5'%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;
}

/* 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;
    }
}

/* Mobile menu button animation */
.mobile-menu-btn.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}

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

.mobile-menu-btn.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}
