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

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

body {
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d4a8b0;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #781f2e;
}

/* Decorative Lines */
.deco-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, #e0b0b8, transparent);
    opacity: 0.3;
}

.deco-line.vertical {
    width: 1px;
    height: 200px;
}

.deco-line.horizontal {
    width: 200px;
    height: 1px;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(120, 31, 46, 0.08);
}

#navbar.scrolled .menu-line {
    background: #781f2e;
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    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 Animation */
.menu-open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 24px;
}

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Hover Image Tilt */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

/* Print */
@media print {
    #navbar, #mobileMenu, .deco-line {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
