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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(156, 35, 35, 0.15);
    color: #6b1c1c;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Navbar Scroll State */
#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(107, 28, 28, 0.06);
}

/* Mobile Menu Animations */
#mobile-menu.open .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}
#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.open .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Image Hover */
.group:hover img {
    transform: scale(1.03);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdf0f0;
}
::-webkit-scrollbar-thumb {
    background: #e97171;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b82e2e;
}

/* Input Focus Styles */
input:focus,
textarea:focus {
    border-color: #b82e2e !important;
}

/* Button Focus */
button:focus-visible,
a:focus-visible {
    outline: 1px solid #b82e2e;
    outline-offset: 2px;
}

/* Form Success State */
#form-success {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Smooth Section Transitions */
section {
    position: relative;
}
