/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #a01a42;
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf8f6;
}
::-webkit-scrollbar-thumb {
    background: #dcd8d2;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a01a42;
}

/* Hero Animations */
.hero-content {
    animation: fadeUp 1s ease forwards;
}

.hero-card {
    animation: float1 6s ease-in-out infinite;
}

.hero-stat-card {
    animation: float2 5s ease-in-out infinite;
}

.hero-stat-card:nth-child(2) {
    animation-delay: -1.5s;
    animation-duration: 5.5s;
}

.hero-stat-card:nth-child(3) {
    animation-delay: -3s;
    animation-duration: 6.5s;
}

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

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

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

/* 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 */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Menu Line Animation */
.menu-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: #3d3a36;
    transition: all 0.3s ease;
    transform-origin: center;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Navbar Scroll State */
#navbar.scrolled {
    background-color: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Image Reveal */
.about-image {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Visit Map */
.visit-map {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visit-map.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Form */
.contact-form {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-form.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Focus Styles */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #a01a42;
    outline-offset: 2px;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    nav, #contact, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
