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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal[data-reveal-state="visible"] {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(112, 54, 112, 0.08), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-text {
    color: #482448;
}

#navbar:not(.scrolled) .nav-text {
    color: #ffffff;
}

.nav-link {
    color: #482448;
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #F59E0B;
}

/* Mobile menu */
.mobile-link {
    color: #482448;
}

.menu-line {
    background: #482448;
}

#navbar:not(.scrolled) .menu-line {
    background: #ffffff;
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading */
img {
    max-width: 100%;
    height: auto;
}

/* Selection */
::selection {
    background: rgba(112, 54, 112, 0.2);
    color: #201020;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #f472b6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #703670;
}
