/* Base styles & reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #c43356;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a12242;
}

/* Header scroll state */
.header-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(161, 34, 66, 0.08);
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.mobile-menu-closed {
    display: flex !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

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

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c43356;
    transition: width 0.3s ease;
}

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Staggered reveal delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* Scroll to top button */
.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-bounce {
        animation: none;
    }
    .scroll-to-top {
        transition: none;
    }
}

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

/* Card hover effects */
.group:hover .group-hover\:bg-burgundy-600 {
    background-color: #c43356;
}

/* Button ripple-like effect on hover */
a:hover, button:hover {
    transform: translateY(-1px);
}

a:active, button:active {
    transform: translateY(0);
}

/* Form input focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(196, 51, 86, 0.15);
}

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

/* Ensure hero image doesn't shift layout */
.hero img {
    will-change: transform;
}

/* Smooth transitions for interactive elements */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Custom gradient for section backgrounds */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to), var(--tw-gradient-stops));
}

/* Print styles */
@media print {
    .fixed, .scroll-to-top, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
