/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll reveal — progressive enhancement, respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    /* Staggered delays for grid items */
    .reveal:nth-child(1)  { transition-delay: 0.05s; }
    .reveal:nth-child(2)  { transition-delay: 0.1s; }
    .reveal:nth-child(3)  { transition-delay: 0.15s; }
    .reveal:nth-child(4)  { transition-delay: 0.2s; }
    .reveal:nth-child(5)  { transition-delay: 0.25s; }
    .reveal:nth-child(6)  { transition-delay: 0.3s; }
    .reveal:nth-child(7)  { transition-delay: 0.35s; }
    .reveal:nth-child(8)  { transition-delay: 0.4s; }
}

/* Fallback: if JS is disabled, all content is visible */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(61, 50, 41, 0.06), 0 4px 24px rgba(61, 50, 41, 0.04);
}

#navbar.scrolled .nav-link-text {
    color: #2a2019;
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu .mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Hamburger animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* ===== SMOOTH HOVER FOR CARDS ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== SELECTION COLOR ===== */
::selection {
    background: #b82d47;
    color: #fefdfb;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f6;
}
::-webkit-scrollbar-thumb {
    background: #d4a8b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b82d47;
}
