/* Water Effect Header Styles */
.header-water-effect {
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(45deg, rgba(18, 113, 209, 0.3), rgba(15, 91, 168, 0.4), rgba(31, 76, 107, 0.3), rgba(41, 128, 185, 0.2)),
        url('../images/waterh2rev2.jpg');
    background-size: 400% 400%, cover;
    background-position: 0% 50%, center;
    background-blend-mode: overlay;
    animation: waterGradient 8s ease infinite;
}

@keyframes waterGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Water Wave Animation */
.header-water-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.12) 0%, transparent 50%);
    animation: waterBubbles 12s ease-in-out infinite;
}

@keyframes waterBubbles {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    33% { 
        transform: translateY(-10px) scale(1.1);
        opacity: 0.9;
    }
    66% { 
        transform: translateY(5px) scale(0.9);
        opacity: 0.8;
    }
}

/* Flowing Water Effect */
.header-water-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.1) 25%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.1) 75%,
        transparent 100%
    );
    animation: waterFlow 6s linear infinite;
}

@keyframes waterFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Water Ripple Effect */
.water-ripples {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.water-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: ripple 4s ease-out infinite;
}

.water-ripple:nth-child(1) {
    top: 20%;
    left: 15%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.water-ripple:nth-child(2) {
    top: 60%;
    left: 75%;
    width: 40px;
    height: 40px;
    animation-delay: 1.5s;
}

.water-ripple:nth-child(3) {
    top: 40%;
    left: 50%;
    width: 80px;
    height: 80px;
    animation-delay: 3s;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Background Image Header */
.header-background-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Header Overlay Content */
.header-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Agua Site Title */
.agua-site-title {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    margin: 0;
    padding: 0;
}

.header-logo-overlay {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.header-logo-overlay:hover {
    transform: scale(1.05);
}

/* Custom Header Container */
.custom-header-container {
    position: relative;
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Social Icons */
.header-social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-social-icons .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-social-icons .social-icon:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-social-icons .social-icon svg {
    transition: transform 0.3s ease;
}

.header-social-icons .social-icon:hover svg {
    transform: scale(1.1);
}

/* Responsive Design for Header Effects */
@media (max-width: 768px) {
    .custom-header-container {
        min-height: 200px;
    }
    
    .header-overlay {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .header-logo-overlay {
        max-width: 200px;
    }

    .agua-site-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .header-social-icons {
        gap: 10px;
    }
    
    .header-social-icons .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .water-ripple {
        display: none;
    }
}