/* Ivypanda Custom Paper Washington - Custom Styles */

/* Header Scroll Effect */
header.scrolled {
    background-color: rgba(245, 245, 240, 0.98);
    backdrop-filter: blur(20px);
    height: 80px;
    border-color: rgba(45, 55, 72, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5F0;
}
::-webkit-scrollbar-thumb {
    background: #2D3748;
}
::-webkit-scrollbar-thumb:hover {
    background: #1A202C;
}

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

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

/* Form Success Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Navigation Link Underline */
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #2D3748;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s 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;
}

/* Hero Section Spacing Fix */
#home h1 {
    margin-top: 0;
}

/* Accessibility: Focus States */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #2D3748;
    outline-offset: 2px;
}

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