/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    /* Adjusted for taller modern navbar */
    scroll-padding-top: 7rem; 
}

/* Background Pattern (Optional) */
.pattern-grid-lg {
    background-image: 
        linear-gradient(currentColor 1px, transparent 1px),
        linear-gradient(to right, currentColor 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-bounce-slow {
    animation: bounceSlow 3s infinite ease-in-out;
}

.delay-100 {
    animation-delay: 0.1s;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.open #mobile-menu {
    transform: translateX(0);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fff;
}
::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Modal Animation States - Removed to let Tailwind classes work properly
   The #imageModal.flex rule was overriding the .hidden class due to higher specificity,
   causing the modal to remain in the DOM (invisible but blocking clicks) after closing.
*/
/*
#imageModal.flex {
    display: flex;
}
#imageModal.opacity-100 {
    opacity: 1;
}
#imageModal .scale-100 {
    transform: scale(1);
}
*/