/* Ivypanda Custom Paper Austin - Custom Styles */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

/* Header Scroll Effect */
header.scrolled {
    background-color: rgba(242, 240, 233, 0.98);
    height: 80px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

/* 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;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F2F0E9;
}
::-webkit-scrollbar-thumb {
    background: #C86D51;
}
::-webkit-scrollbar-thumb:hover {
    background: #A55238;
}

/* Form Entrance Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 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;
}

/* Section Spacing Fix for Sticky Header */
section {
    scroll-margin-top: 6rem;
}

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

/* Hero Content Gap */
#home h1 {
    margin-top: 0;
}

/* Editorial Underline */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C86D51;
    transition: width 0.3s ease;
}

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

/* Form Input Focus */
input:focus, textarea:focus {
    border-color: #C86D51 !important;
}
