/* ========== CUSTOM STYLES ========== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent flash of unstyled content */
html {
    background: #fefdfb;
}

/* ========== NAVBAR ========== */
#navbar {
    background: rgba(254, 253, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(167, 26, 58, 0.08);
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    box-shadow: 0 4px 20px rgba(107, 24, 58, 0.08);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== HERO IMAGE ========== */
#hero img {
    will-change: transform;
}

/* ========== GALLERY HOVER ========== */
#gallery img,
#about img {
    will-change: transform;
}

/* ========== BUTTON FOCUS ========== */
button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(167, 26, 58, 0.6);
    outline-offset: 2px;
}

/* ========== FORM INPUTS ========== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(167, 26, 58, 0.1);
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(167, 26, 58, 0.15);
    color: #3d0714;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdfb;
}
::-webkit-scrollbar-thumb {
    background: #f6a5b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e04067;
}
