/* Header Base Styles */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease-in-out;
}

/* Header Animations */
.header-animated {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sticky Header Styles */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Search Bar Styles */
form {
    transition: all 0.3s ease;
}

form input:focus {
    outline: none;
}

form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
}

/* Navigation Link Animations */
.nav-link-animated {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.nav-link-animated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #479A7E, #2d7a5f);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-animated:hover::after {
    width: 100%;
}

/* Hover effect for navigation */
.nav-link-animated:hover {
    color: #479A7E;
    transform: translateY(-2px);
}

/* Smooth transitions */
nav a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state animation */
.nav-link-active {
    color: #479A7E;
    font-weight: 600;
}

.nav-link-active::after {
    width: 100%;
}

/* Logo hover animation */
.logo-container {
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-container span {
    font-size: 1.125rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .logo-container span {
        font-size: 0.875rem;
    }
    
    .logo-container img {
        height: 40px;
    }
}

/* CTA button animations */
.cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Sticky header animation */
.sticky-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideDownSticky 0.3s ease-out;
}

@keyframes slideDownSticky {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

