/* Base & Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(107, 47, 91, 0.15);
    color: #4a1e3c;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5f9;
}
::-webkit-scrollbar-thumb {
    background: #d9a8c8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8558f;
}

/* Navigation */
.nav-logo {
    color: rgba(74, 30, 60, 0.6);
}

.nav-link {
    color: rgba(74, 30, 60, 0.6);
}

.nav-menu-btn span {
    background: rgba(74, 30, 60, 0.6);
}

/* Dark nav state */
nav.dark .nav-logo,
nav.dark .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

nav.dark .nav-menu-btn span {
    background: rgba(255, 255, 255, 0.7);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur: 20px;
    box-shadow: 0 1px 0 rgba(107, 47, 91, 0.08);
}

nav.scrolled .nav-logo,
nav.scrolled .nav-link {
    color: rgba(74, 30, 60, 0.7);
}

nav.scrolled .nav-menu-btn span {
    background: rgba(74, 30, 60, 0.7);
}

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

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

/* Menu toggle animation */
#menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Hero animations */
.hero-subtitle {
    animation: fadeUp 0.8s ease 0.3s both;
}
.hero-headline {
    animation: fadeUp 0.8s ease 0.5s both;
}
.hero-desc {
    animation: fadeUp 0.8s ease 0.7s both;
}
.hero-cta {
    animation: fadeUp 0.8s ease 0.9s both;
}

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

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-subtitle,
    .hero-headline,
    .hero-desc,
    .hero-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4943A;
    outline-offset: 2px;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #d4943A !important;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f5e9f1 0%, #fbe8b0 100%);
}
