/* Custom CSS for smooth scrolling and additional styling */
html {
    scroll-behavior: smooth;
}

/* Header styles */
header {
    height: 72px; /* Fixed height for header */
    display: flex;
    align-items: center;
}

body {
    padding-top: 72px; /* Height of the header */
}

/* Hero section background image */
#hero img {
    filter: brightness(0.8);
}

/* Mobile menu styles */
#mobile-menu {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0 0 8px 8px;
    padding: 0.5rem;
    z-index: 50;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Improve mobile menu items spacing and interaction */
#mobile-menu .flex-col {
    width: 100%;
    padding: 0.5rem;
}

#mobile-menu a {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

#mobile-menu a:not(.bg-blue-600):hover {
    background-color: #f3f4f6;
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Card hover effects */
.hover\:shadow-xl {
    transition: all 0.3s ease;
}

.hover\:shadow-xl:hover {
    transform: translateY(-5px);
}

/* Form input styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid {
        grid-gap: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
    
    header {
        height: auto;
        min-height: 72px;
    }
    
    nav {
        position: relative;
    }
    
    #mobile-menu-button {
        padding: 0.5rem;
        margin: -0.5rem;
        border-radius: 0.375rem;
    }
    
    #mobile-menu-button:hover {
        background-color: #f3f4f6;
    }
    
    #mobile-menu-button:focus {
        outline: 2px solid #2563eb;
        outline-offset: 2px;
    }
}

/* Improve tap target sizes on mobile */
@media (max-width: 768px) {
    button, 
    a.bg-blue-600,
    input,
    textarea {
        min-height: 44px;
    }
    
    nav a {
        padding: 0.75rem 0;
        display: inline-block;
    }
}
