/* Custom styling for Ivypanda Custom Paper Detroit */
@layer base {
    html {
        scroll-behavior: smooth;
    }
    body {
        font-family: 'Plus Jakarta Sans', sans-serif;
        background-color: #F8FAFC;
        color: #0F172A;
    }
    h1, h2, h3, h4, h5, h6 {
        font-family: 'Newsreader', serif;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1E293B;
}

/* Subtle Zoom Animation */
@keyframes subtleZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.animate-subtle-zoom {
    animation: subtleZoom 25s ease-in-out infinite alternate;
}

/* Form success animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Mobile Menu Transition */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    visibility: hidden;
    display: flex !important;
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
