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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f4;
}
::-webkit-scrollbar-thumb {
    background: #c4323d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #831d24;
}

/* Selection color */
::selection {
    background: #c4323d;
    color: #fefdfb;
}

/* ========== NAVBAR SCROLL STATE ========== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(42, 31, 26, 0.08);
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    pointer-events: none;
}

#mobile-menu.open {
    pointer-events: auto;
}

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

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

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

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

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

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

/* ========== STAGGER DELAYS ========== */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* ========== FORM FOCUS STATES ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ========== BUTTON HOVER LIFT ========== */
a, button {
    transition: all 0.3s ease;
}

/* ========== IMAGE LAZY LOAD FALLBACK ========== */
img {
    max-width: 100%;
    height: auto;
}

/* ========== PRINT STYLES ========== */
@media print {
    #navbar, #mobile-menu, .reveal {
        display: none !important;
    }
    body {
        background: white;
        color: #1e1714;
    }
}
