/* Ivy Assignment Houston - Custom Styles */

/* Header Scroll Effect */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    border-color: rgba(27, 48, 34, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

header.scrolled .text-forest\/80 {
    color: #1B3022;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #1B3022;
}
::-webkit-scrollbar-thumb:hover {
    background: #2D4A38;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Service Card Hover */
.service-card-hover:hover {
    transform: translateY(-10px);
}

/* Custom Input Styles */
input, select, textarea {
    border-radius: 0 !important;
}

/* Navigation Link Underline */
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C5A059;
    transition: width 0.3s ease;
}

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

/* Hero Section Critical Spacing */
#home h1 {
    /* Ensuring H1 is clearly below the navigation */
    margin-top: 0;
}

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

#mobile-menu.hidden {
    opacity: 0;
    visibility: hidden;
    display: flex !important; /* Keep flex but hide with opacity */
    pointer-events: none;
}

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