/**
 * Wave Gradient Background Styles
 * Complement to wave-background.js
 * Author: Amos Dwi Prasetyo
 */

/* ========================================
   Hero Section Base Gradient
   ======================================== */

.static-hero {
    position: relative;
    overflow: hidden;
    
    /* Wave-inspired gradient background */
    background: linear-gradient(
        135deg, 
        #001233 0%,    /* Deep dark blue */
        #0041a8 25%,   /* Royal blue */
        #0096ff 50%,   /* Bright blue */
        #00c896 75%,   /* Turquoise/Cyan */
        #e0f7fa 100%   /* Light cyan/white */
    );
    background-size: 400% 400%;
    animation: waveGradientShift 20s ease infinite;
}

/* Animated gradient movement */
@keyframes waveGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   Canvas Wave Layer
   ======================================== */

#wave-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* ========================================
   Content Above Waves
   ======================================== */

.static-hero .hero-inner {
    position: relative;
    z-index: 2;
}

/* ========================================
   Optional: Additional Wave Effects
   ======================================== */

/* Subtle overlay for depth */
.static-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(0, 200, 150, 0.1),
        transparent 60%
    );
    z-index: 1;
    animation: overlayPulse 10s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* ========================================
   Performance Optimization
   ======================================== */

.static-hero {
    will-change: background-position;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#wave-canvas {
    will-change: transform;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .static-hero {
        background-size: 600% 600%;
    }
    
    @keyframes waveGradientShift {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }
}
