/* ============================================================
   FRONTEND LANDING PAGE - SDN Parung Bingung 1
   ============================================================ */

/* --- CSS Variables untuk Frontend --- */
:root {
    --baby-100: #e8f4fd;
    --baby-200: #B3D9FF;
    --baby-300: #89CFF0;
    --baby-400: #5bc0eb;
    --baby-500: #3BAFDA;
    --baby-600: #2c8fc9;
    --soft-green: #7EC8A0;
    --soft-green-dark: #5BA87A;
    --text-dark: #2c3e50;
    --text-muted: #5D6D7E;
    --text-light: #95A5A6;
    --bg-light: #f0f7fd;
}

/* --- HERO SECTION WITH CAROUSEL --- */
.hero-section {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
    background: #1a1d23;
}

.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-section .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.40) 50%, rgba(0,0,0,0.30) 100%);
    z-index: 1;
}

.hero-section .hero-bg .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.40) 50%, rgba(0,0,0,0.30) 100%);
}

.hero-carousel .carousel-item .hero-overlay-content {
    z-index: 5;
}

.hero-carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-carousel-indicators button.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.15);
}

.hero-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-carousel-control:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-control.prev { left: 20px; }
.hero-carousel-control.next { right: 20px; }

.hero-overlay-content {
    position: relative;
    z-index: 5;
    padding: 130px 0 100px;
}

.hero-section h1 {
    color: #fff;
    font-weight: 800;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-section h1 .text-green-highlight {
    color: #89CFF0;
}

.hero-section p {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-section .hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-section .hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-section .hero-badge i {
    color: #89CFF0;
}

.hero-illustration {
    text-align: center;
    position: relative;
    z-index: 5;
}

.hero-illustration .hero-icon-box {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    margin: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-illustration .hero-icon-box:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-illustration .hero-icon-box:nth-child(3) {
    animation-delay: 1s;
}

/* ===== ANIMASI PARTIKEL PENDIDIKAN ===== */
.education-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.edu-particle {
    position: absolute;
    font-size: 24px;
    color: rgba(255,255,255,0.15);
    animation: particleFloat linear infinite;
    opacity: 0;
}

.edu-particle:nth-child(1) { left: 5%; animation-duration: 12s; animation-delay: 0s; font-size: 20px; }
.edu-particle:nth-child(2) { left: 15%; animation-duration: 15s; animation-delay: 2s; font-size: 28px; }
.edu-particle:nth-child(3) { left: 25%; animation-duration: 11s; animation-delay: 4s; font-size: 18px; }
.edu-particle:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 1s; font-size: 22px; }
.edu-particle:nth-child(5) { left: 45%; animation-duration: 13s; animation-delay: 3s; font-size: 26px; }
.edu-particle:nth-child(6) { left: 55%; animation-duration: 16s; animation-delay: 5s; font-size: 20px; }
.edu-particle:nth-child(7) { left: 65%; animation-duration: 12s; animation-delay: 0.5s; font-size: 24px; }
.edu-particle:nth-child(8) { left: 75%; animation-duration: 14s; animation-delay: 2.5s; font-size: 18px; }
.edu-particle:nth-child(9) { left: 85%; animation-duration: 11s; animation-delay: 4.5s; font-size: 22px; }
.edu-particle:nth-child(10) { left: 92%; animation-duration: 15s; animation-delay: 1.5s; font-size: 26px; }
.edu-particle:nth-child(11) { left: 10%; animation-duration: 13s; animation-delay: 3.5s; font-size: 16px; }
.edu-particle:nth-child(12) { left: 50%; animation-duration: 17s; animation-delay: 0.8s; font-size: 30px; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* ===== ANIMASI BUKU TERBANG ===== */
.floating-books {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.floating-book {
    position: absolute;
    font-size: 32px;
    color: rgba(255,255,255,0.12);
    animation: bookFloat 8s ease-in-out infinite;
}

.floating-book:nth-child(1) { left: 8%; top: 20%; animation-delay: 0s; }
.floating-book:nth-child(2) { left: 20%; top: 60%; animation-delay: 2s; font-size: 28px; }
.floating-book:nth-child(3) { left: 75%; top: 30%; animation-delay: 4s; font-size: 36px; }
.floating-book:nth-child(4) { left: 85%; top: 70%; animation-delay: 1s; font-size: 24px; }
.floating-book:nth-child(5) { left: 40%; top: 15%; animation-delay: 3s; font-size: 30px; }
.floating-book:nth-child(6) { left: 60%; top: 80%; animation-delay: 5s; font-size: 26px; }

@keyframes bookFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg) scale(0.95);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-25px) rotate(4deg) scale(1.05);
        opacity: 0.5;
    }
}

/* ===== ANIMASI TULISAN BERJALAN (TYPING) ===== */
.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #89CFF0;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    max-width: fit-content;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #89CFF0; }
}

/* ===== ANIMASI PENDIDIKAN UNTUK CARD ===== */
.edu-card-icon {
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .edu-card-icon {
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconBounce {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.3) rotate(-10deg); }
    60% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ===== ANIMASI GRADIENT PENDIDIKAN ===== */
.edu-gradient-text {
    background: linear-gradient(90deg, #89CFF0, #7EC8A0, #89CFF0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ===== ANIMASI PENDIDIKAN UNTUK SECTION TITLE ===== */
.section-title.edu-title::after {
    background: linear-gradient(90deg, var(--baby-500), var(--soft-green), var(--baby-500));
    background-size: 200% auto;
    animation: titleGlow 3s ease-in-out infinite;
    width: 80px;
    height: 5px;
}

@keyframes titleGlow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ===== ANIMASI PENDIDIKAN UNTUK STATS ===== */
.stat-item .stat-icon.edu-stat-icon {
    animation: statPulse 2s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ===== ANIMASI PENDIDIKAN UNTUK BADGE ===== */
.hero-badge.edu-badge {
    position: relative;
    overflow: hidden;
}

.hero-badge.edu-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ===== ANIMASI PENDIDIKAN UNTUK SAMBUTAN CARD ===== */
.sambutan-card.edu-card {
    position: relative;
    overflow: hidden;
}

.sambutan-card.edu-card::after {
    content: '📚';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 60px;
    opacity: 0;
    transform: rotate(-15deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.sambutan-card.edu-card:hover::after {
    opacity: 0.08;
    bottom: 10px;
    right: 10px;
    transform: rotate(0deg);
}

/* ===== ANIMASI PENDIDIKAN UNTUK VISI CARD ===== */
.visi-card.edu-visi-card {
    position: relative;
    overflow: hidden;
}

.visi-card.edu-visi-card::after {
    content: '🎯';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 50px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.visi-card.edu-visi-card:hover::after {
    opacity: 0.08;
    top: 10px;
    right: 10px;
    transform: scale(1);
}

/* ===== ANIMASI LOADING PENDIDIKAN ===== */
.edu-loader {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edu-loader span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--baby-500);
    animation: loaderBounce 1.4s ease-in-out infinite both;
}

.edu-loader span:nth-child(1) { animation-delay: -0.32s; background: var(--baby-500); }
.edu-loader span:nth-child(2) { animation-delay: -0.16s; background: var(--soft-green); }
.edu-loader span:nth-child(3) { animation-delay: 0s; background: var(--baby-300); }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ===== ANIMASI PENDIDIKAN UNTUK FOOTER ===== */
.footer-landing .social-link.edu-social-link {
    position: relative;
    overflow: hidden;
}

.footer-landing .social-link.edu-social-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-landing .social-link.edu-social-link:hover::after {
    transform: scale(1.5);
}

/* ===== ANIMASI PENDIDIKAN UNTUK SCROLL TOP ===== */
#scrollTop.edu-scroll-top {
    animation: scrollTopPulse 2s ease-in-out infinite;
}

@keyframes scrollTopPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 175, 218, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(59, 175, 218, 0); }
}

/* ===== ANIMASI PENDIDIKAN UNTUK SEJARAH ===== */
.timeline-marker {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--baby-500);
    animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 175, 218, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 0 10px rgba(59, 175, 218, 0); transform: scale(1.2); }
}

/* ===== ANIMASI PENDIDIKAN UNTUK BERITA CARD ===== */
.sambutan-card .sambutan-body .badge.edu-news-badge {
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 175, 218, 0.3); }
    50% { box-shadow: 0 0 8px 4px rgba(59, 175, 218, 0.1); }
}

/* ===== ANIMASI PENDIDIKAN UNTUK RESPONSIVE ===== */
@media (max-width: 768px) {
    .edu-particle,
    .floating-book {
        display: none;
    }
    
    .typing-text {
        white-space: normal;
        border-right: none;
        animation: none;
    }
}

/* --- CONTENT CARDS --- */
.sambutan-section {
    background: var(--baby-100);
}

.sambutan-card {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(59, 175, 218, 0.06);
    border: 1px solid var(--baby-100);
    transition: all 0.4s ease;
    height: 100%;
}

.sambutan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(59, 175, 218, 0.1);
}

.sambutan-card .sambutan-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.sambutan-card .sambutan-body {
    padding: 24px;
}

.sambutan-card .sambutan-body h5 {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.sambutan-card .sambutan-body p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.sambutan-card .sambutan-date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sambutan-card .sambutan-date i {
    color: var(--baby-500);
}

.sambutan-card .sambutan-no-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--baby-100), #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--baby-300);
}

/* --- SECTION --- */
.section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--baby-500), var(--soft-green));
    border-radius: 4px;
    margin-top: 12px;
}

.section-title.text-center::after {
    margin: 12px auto 0;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
}

/* --- FEATURE CARDS --- */
.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(59, 175, 218, 0.05);
    border: 1px solid var(--baby-100);
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(59, 175, 218, 0.12);
    border-color: var(--baby-300);
}

.feature-card .fc-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card .fc-icon.blue { background: var(--baby-100); color: var(--baby-500); }
.feature-card .fc-icon.green { background: #d4edda; color: var(--soft-green); }
.feature-card .fc-icon.info { background: #e8f8ff; color: var(--baby-400); }
.feature-card .fc-icon.warning { background: #fff8e1; color: #F7DC6F; }

.feature-card h5 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.feature-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--baby-500);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    margin-top: 15px;
    transition: gap 0.3s;
}

.feature-card .read-more:hover {
    gap: 10px;
    color: var(--baby-600);
}

/* --- VISI & MISI --- */
.visi-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(59, 175, 218, 0.05);
    height: 100%;
}

.visi-card h5 {
    font-weight: 700;
    color: var(--baby-500);
    margin-bottom: 15px;
}

.visi-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.visi-card ul li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-muted);
    font-size: 14px;
}

.visi-card ul li::before {
    content: '✓';
    color: var(--soft-green);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* --- STATS SECTION --- */
.stats-section {
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item .stat-number {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-item .stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.stat-item .stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.stat-progress {
    width: 0%;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    margin-top: 10px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- ANIMASI SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.3s; }
.animate-on-scroll.delay-3 { transition-delay: 0.5s; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 30px;
    }

    .hero-section .hero-badges {
        justify-content: center;
    }

    .hero-illustration .hero-icon-box {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .stats-section .stat-item .stat-number {
        font-size: 30px;
    }
}

/* --- SCROLL TOP BUTTON --- */
#scrollTop {
    bottom: 30px;
    right: 30px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}