/* ==============================================
   TEMPLATE CSS - RPL SMKN BANTARKALONG (FULLPAGE)
   ============================================== */

/* --- 1. Reset & Variables --- */
:root {
    --primary-color: #2563EB;
    --secondary-color: #1E40AF;
    --accent-color: #06B6D4;
    --dark-bg: #0F172A;
    --light-text: #F1F5F9;
    --dark-text: #1E293B;
    --gray-text: #64748B;
    --white: #FFFFFF;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-text);
    color: var(--dark-text);
    overflow-x: hidden;
    /* PENTING: Desktop mode - Fullpage tanpa scroll */
    overflow-y: hidden; 
    height: 100vh;
}

a { text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==============================================
   2. NAVIGATION BAR
   ============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    flex-shrink: 0;
}

.logo-icon {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: bold;
    font-family: monospace;
    font-size: 18px;
    transition: var(--transition);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
    line-height: 1;
}

.logo-text strong {
    font-weight: 800;
    color: var(--accent-color);
}

.navbar { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-item { position: relative; }

.nav-link {
    color: var(--light-text);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: inline-block;
    opacity: 0.9;
}

.nav-link:hover { background-color: rgba(255, 255, 255, 0.1); opacity: 1; }
.nav-link.active { color: var(--accent-color); background-color: rgba(6, 182, 212, 0.1); }

.nav-item.cta-item .nav-link {
    background-color: var(--accent-color);
    color: var(--dark-bg) !important;
    font-weight: 600;
    margin-left: 12px;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}
.nav-item.cta-item .nav-link:hover { background-color: var(--white); transform: translateY(-2px); }

.hamburger { display: none; cursor: pointer; background: transparent; border: none; z-index: 1001; padding: 5px; }
.bar { display: block; width: 28px; height: 3px; margin: 6px auto; background-color: var(--white); transition: var(--transition); border-radius: 2px; }

/* ==============================================
   3. HERO SECTION (FULLPAGE - NO SCROLL)
   ============================================== */
.hero-section {
    height: 100vh; 
    width: 100%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e3a8a 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 90px;
    padding-bottom: 20px;
}

.hero-content { animation: fadeInUp 1s ease forwards; max-width: 600px; }

.hero-badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 25px;
}
.hero-title .highlight { color: var(--accent-color); }

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 35px;
}

.hero-buttons { display: flex; gap: 15px; }

.btn {
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
}

.btn-primary { background-color: var(--primary-color); color: var(--white); box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4); }
.btn-primary:hover { background-color: var(--secondary-color); transform: translateY(-2px); }
.btn-outline { background-color: transparent; border: 2px solid rgba(255, 255, 255, 0.3); color: var(--white); }
.btn-outline:hover { background-color: rgba(255, 255, 255, 0.1); }

/* Visual Code */
.hero-visual { display: flex; justify-content: center; animation: fadeInRight 1s ease forwards; }
.code-card {
    background-color: #1e293b;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.code-header { background-color: #0f172a; padding: 15px 20px; display: flex; align-items: center; }
.code-header .dots { display: flex; gap: 8px; margin-right: 15px; }
.code-header .dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-header .dots span:nth-child(1) { background: #ef4444; }
.code-header .dots span:nth-child(2) { background: #f59e0b; }
.code-header .dots span:nth-child(3) { background: #22c55e; }
.code-header .title { color: #64748B; font-size: 12px; font-family: monospace; }
.code-body { padding: 25px; font-family: 'Courier New', monospace; font-size: 14px; line-height: 1.6; color: #e2e8f0; }

/* Syntax Highlighting */
.c-kw { color: #c084fc; }
.c-var { color: #7dd3fc; }
.c-prop { color: #f472b6; }
.c-str { color: #a3e635; }
.c-func { color: #fbbf24; }

/* ==============================================
   4. FOOTER (FULLPAGE VERSION)
   ============================================== */
.footer-fullpage {
    position: relative;
    z-index: 2;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-top: auto;
}

/* ==============================================
   5. RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 1100px) {
    .nav-menu { gap: 4px; }
    .nav-link { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 992px) {
    /* === SOLUSI SCROLL MOBILE === */
    
    /* 1. AKTIFKAN SCROLL KEMBALI untuk HTML & BODY */
    html, body {
        overflow-y: auto !important; /* Paksa scroll vertikal aktif */
        height: auto !important;     /* Tinggi mengikuti konten, bukan 100vh */
        overflow-x: hidden !important; /* Tetap blokir scroll horizontal */
    }

    /* 2. Atur Navigasi Mobile (Pastikan kode ini ada/fungsi) */
    .navbar {
        position: fixed; top: 0; right: -100%;
        width: 300px; height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    .navbar.active { right: 0; }

    .nav-menu { flex-direction: column; width: 100%; padding: 0 20px; align-items: flex-start; }
    .nav-item { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-link { width: 100%; font-size: 16px; padding: 18px 10px; color: var(--white) !important; border-radius: 0; }
    .nav-link:hover { background-color: rgba(255, 255, 255, 0.05); color: var(--accent-color) !important; }
    .nav-item.cta-item { margin-top: 20px; border-bottom: none; }
    .nav-item.cta-item .nav-link { text-align: center; border-radius: var(--radius-md); margin-left: 0; }

    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* === PERBAIKAN HERO MOBILE === */
    
    /* 3. Hero Section Menjadi Panjang (Scrollable) */
    .hero-section {
        height: auto; /* Ubah dari 100vh menjadi auto */
        min-height: 100vh; /* Minimal setinggi layar */
        padding-bottom: 40px; 
    }

    .hero-container {
        flex-direction: column-reverse; 
        text-align: center;
        padding-top: 100px;
        padding-bottom: 20px;
        overflow-y: visible; /* Biarkan konten mengalir */
        gap: 20px; 
    }
    
    /* 4. Atur Urutan Konten */
    .hero-visual { 
        order: 1;
        width: 100%; 
        max-width: 380px; 
        margin: 0 auto; 
    }
    
    .hero-content { 
        order: 2;
        width: 100%; 
        padding: 0 10px; 
    }

    /* 5. Responsif Font */
    .hero-title { 
        font-size: 1.8rem; 
        line-height: 1.3;
        margin-bottom: 15px; 
    }
    
    .hero-description { 
        font-size: 14px; 
        margin-bottom: 25px; 
    }
    
    /* 6. Tombol Bertumpuk */
    .hero-buttons { 
        flex-direction: column; 
        align-items: center;
        gap: 12px; 
    }

    .btn { 
        width: 100%; 
        max-width: 280px; 
        justify-content: center; 
    }

    /* 7. Ukuran Code Card */
    .code-card {
        min-height: unset; 
    }
    .code-body { 
        padding: 15px; 
        font-size: 11px; 
        line-height: 1.5;
    }
    
    /* 8. Footer Mobile */
    .footer-fullpage { 
        position: relative; 
        padding: 20px 0; 
        font-size: 11px; 
        background: rgba(0,0,0,0.2); 
        margin-top: 20px;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}