/*
 * Animated Gradient Banner CSS - PPID SMAN 1 Lubuk Sikaping
 * Banner dengan gradien yang berganti-ganti secara otomatis
 */

/* ===== ANIMATED GRADIENT BANNER ===== */
.hero-section {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab, #667eea, #764ba2, #f093fb, #f5576c) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    color: white !important;
}

/* ===== GRADIENT ANIMATION KEYFRAMES ===== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== ALTERNATIVE GRADIENT ANIMATIONS ===== */
@keyframes rainbowShift {
    0% {
        background: linear-gradient(-45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
    20% {
        background: linear-gradient(-45deg, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd, #ff6b6b);
        background-size: 400% 400%;
        background-position: 100% 50%;
    }
    40% {
        background: linear-gradient(-45deg, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd, #ff6b6b, #4ecdc4);
        background-size: 400% 400%;
        background-position: 100% 100%;
    }
    60% {
        background: linear-gradient(-45deg, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd, #ff6b6b, #4ecdc4, #45b7d1);
        background-size: 400% 400%;
        background-position: 0% 100%;
    }
    80% {
        background: linear-gradient(-45deg, #feca57, #ff9ff3, #54a0ff, #5f27cd, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
        background-size: 400% 400%;
        background-position: 0% 0%;
    }
    100% {
        background: linear-gradient(-45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
}

/* ===== OCEAN WAVE GRADIENT ===== */
@keyframes oceanWave {
    0% {
        background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
    25% {
        background: linear-gradient(-45deg, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7, #667eea);
        background-size: 400% 400%;
        background-position: 100% 50%;
    }
    50% {
        background: linear-gradient(-45deg, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7, #667eea, #764ba2);
        background-size: 400% 400%;
        background-position: 100% 100%;
    }
    75% {
        background: linear-gradient(-45deg, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7, #667eea, #764ba2, #f093fb);
        background-size: 400% 400%;
        background-position: 0% 100%;
    }
    100% {
        background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
}

/* ===== SUNSET GRADIENT ===== */
@keyframes sunsetGlow {
    0% {
        background: linear-gradient(-45deg, #fa709a, #fee140, #ff9a9e, #fecfef, #ffecd2, #fcb69f, #ff8a80, #ff5722);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
    33% {
        background: linear-gradient(-45deg, #fee140, #ff9a9e, #fecfef, #ffecd2, #fcb69f, #ff8a80, #ff5722, #fa709a);
        background-size: 400% 400%;
        background-position: 100% 50%;
    }
    66% {
        background: linear-gradient(-45deg, #ff9a9e, #fecfef, #ffecd2, #fcb69f, #ff8a80, #ff5722, #fa709a, #fee140);
        background-size: 400% 400%;
        background-position: 100% 100%;
    }
    100% {
        background: linear-gradient(-45deg, #fa709a, #fee140, #ff9a9e, #fecfef, #ffecd2, #fcb69f, #ff8a80, #ff5722);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
}

/* ===== BANNER OVERLAY EFFECTS ===== */
.hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.1) !important;
    z-index: 1 !important;
}

.hero-section::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%) !important;
    z-index: 1 !important;
}

/* ===== CONTENT POSITIONING ===== */
.hero-content {
    position: relative !important;
    z-index: 3 !important;
}

.hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    margin-bottom: 1rem !important;
    opacity: 0.95 !important;
    color: white !important;
}

.hero-section .lead {
    font-size: 1.25rem !important;
    opacity: 0.9 !important;
    margin-bottom: 2rem !important;
    color: white !important;
}

/* ===== ALTERNATIVE ANIMATION CLASSES ===== */
.hero-section.rainbow {
    animation: rainbowShift 20s ease infinite !important;
}

.hero-section.ocean {
    animation: oceanWave 18s ease infinite !important;
}

.hero-section.sunset {
    animation: sunsetGlow 16s ease infinite !important;
}

/* ===== FLOATING PARTICLES EFFECT ===== */
.hero-section .particles {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.hero-section .particle {
    position: absolute !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    animation: floatParticle 10s linear infinite !important;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 !important;
        min-height: 350px !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0 !important;
        min-height: 300px !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-section {
        animation: none !important;
        background: linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
    }
    
    .hero-section .particle {
        animation: none !important;
        display: none !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-section {
        background: #0056b3 !important;
        animation: none !important;
    }
    
    .hero-section::before,
    .hero-section::after {
        display: none !important;
    }
}
