/* Dynamic Hero Sections CSS */
/* Universal hero section styles for all pages */

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 15vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-icon {
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

/* Different color schemes for different pages */
.hero-visi-misi .hero-background {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 25%, #45B7D1 50%, #96CEB4 75%, #FFEAA7 100%);
}

.hero-struktur .hero-background {
    background: linear-gradient(135deg, #28a745 0%, #20c997 25%, #17a2b8 50%, #6f42c1 75%, #e83e8c 100%);
}

.hero-galeri .hero-background {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 25%, #e83e8c 50%, #fd7e14 75%, #20c997 100%);
}

.hero-tugas-fungsi .hero-background {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 25%, #fd7e14 50%, #ffc107 75%, #28a745 100%);
}

.hero-profil .hero-background {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 25%, #6610f2 50%, #e83e8c 75%, #fd7e14 100%);
}

.hero-berita .hero-background {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 25%, #ffc107 50%, #28a745 75%, #20c997 100%);
}

.hero-kontak .hero-background {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 25%, #007bff 50%, #6610f2 75%, #6f42c1 100%);
}

.hero-informasi .hero-background {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 25%, #dc3545 50%, #e83e8c 75%, #6f42c1 100%);
}

/* Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInDelay 0.8s ease-out 0.3s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 12vh !important;
    }

    .hero-section .row {
        min-height: 12vh !important;
    }

    .hero-section .display-5 {
        font-size: 1.8rem;
    }

    .hero-section .lead.fs-6 {
        font-size: 1rem !important;
    }

    .hero-section .hero-icon i {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 10vh !important;
    }

    .hero-section .row {
        min-height: 10vh !important;
    }

    .hero-section .display-5 {
        font-size: 1.5rem;
    }

    .hero-section .hero-content {
        padding: 0.5rem 0;
    }

    .hero-section .hero-icon i {
        font-size: 1.25rem !important;
    }

    .hero-section .hero-icon {
        margin-bottom: 0.5rem !important;
    }

    .hero-section .lead.fs-6 {
        font-size: 0.9rem !important;
    }
}

/* Special responsive for gallery page */
@media (max-width: 768px) {
    .hero-galeri {
        padding: 1.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-galeri {
        padding: 1rem 0 !important;
    }
}
