*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Navbar styles */
.nav-logo {
    transition: color 0.3s ease;
}

#navbar.scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(79, 30, 39, 0.08);
}

#navbar.scrolled .nav-logo {
    color: #4f1e27;
}

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

#mobile-menu.open #bar1 {
    transform: translateY(6px) rotate(45deg);
}

#mobile-menu.open #bar2 {
    opacity: 0;
}

#mobile-menu.open #bar3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Scroll animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Scroll marquee */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Custom selection */
::selection {
    background: #d9a7b8;
    color: #2c0d12;
}

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

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

/* Form styles */
input, textarea {
    border: 1px solid #ebd0dc;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: #4f1e27;
    background: #faf5f7;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #c47a8e;
    box-shadow: 0 0 0 3px rgba(196, 122, 142, 0.2);
}

input::placeholder, textarea::placeholder {
    color: #d9a7b8;
}

/* Success message */
.success-message {
    display: none;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.success-message.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
