/* Ivy Assignment Chicago - Custom Styles */

/* Header Scroll Effect */
header.scrolled {
    background-color: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(15px);
    height: 80px;
    border-color: rgba(128, 0, 32, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #800020;
    border: 3px solid #FDFBF7;
}
::-webkit-scrollbar-thumb:hover {
    background: #5C0017;
}

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

/* Hero Image Hover Effect */
#home img {
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#home:hover img {
    transform: scale(1.05);
}

/* Navigation Link Underline */
nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #800020;
    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;
}

/* Custom Select Styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23800020'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1rem;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    #services .grid {
        gap: 20px;
        background: transparent;
        border: none;
    }
    #services .bg-cream {
        border: 1px solid rgba(128, 0, 32, 0.1);
    }
}
