/* ==================== STYLE.CSS - UNIVERSAL ====================
   CSS Umum untuk semua halaman
================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header-utama {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-utama {
    padding: 15px 0;
}

.container-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LOGO STYLES ===== */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Efek shine pada logo */
.logo-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

.logo-link:hover .logo-icon::before {
    transform: translateX(200%) rotate(45deg);
}

.logo-text {
    font-size: 1.8em;
    font-weight: 700;
    color: white;
}

/* ===== MENU NAVIGASI ===== */
.menu-navigasi {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.aktif {
    color: #ffd700;
}

.nav-link.aktif::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffd700;
}

.btn-masuk {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-masuk:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.toggle-menu {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ==================== BUTTONS ==================== */
.btn-primer, .btn-sekunder {
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primer {
    background: #ffd700;
    color: #333;
}

.btn-primer:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.btn-sekunder {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-sekunder:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-materi {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-materi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* ==================== SECTIONS ==================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     padding: 140px 40px 100px; 
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.teks-hero {
    max-width: 600px; 
}

.judul-hero {
    font-size: 3.5rem;
    line-height: 1.3; 
    margin-bottom: 30px; 
}

.deskripsi-hero {
    font-size: 1.3rem;
    line-height: 1.8; 
    margin-bottom: 40px; 
}

.tombol-hero {
    margin-top: 30px;
    gap: 20px;
}

/* Mobile responsif */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 25px 70px;
    }
    
    .judul-hero {
        font-size: 2rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .deskripsi-hero {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 30px;
    }
}

.section-fitur, 
.section-materi, 
.section-tentang,
.section-latihan,
.section-quiz {
    padding: 80px 0;
}

.section-fitur,
.section-tentang {
    background: white;
}

.section-materi,
.section-latihan,
.section-quiz {
    background: #f8f9ff;
}

/* ==================== HEADINGS ==================== */
.judul-section {
    text-align: center;
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.judul-section::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* ==================== GRIDS ==================== */
.grid-fitur, 
.grid-materi,
.grid-latihan,
.grid-quiz {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* ==================== CARDS ==================== */
.kartu-fitur, 
.kartu-materi,
.kartu-latihan,
.kartu-quiz {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.kartu-fitur:hover, 
.kartu-materi:hover,
.kartu-latihan:hover,
.kartu-quiz:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
}

.ikon-fitur, 
.ikon-materi,
.ikon-latihan,
.ikon-quiz {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.ikon-fitur i, 
.ikon-materi i,
.ikon-latihan i,
.ikon-quiz i {
    font-size: 2rem;
    color: white;
}

/* ==================== CONTENT LAYOUT ==================== */
.konten-hero,
.konten-tentang,
.konten-materi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.teks-hero {
    color: white;
}

.judul-hero {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.deskripsi-hero {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.tombol-hero {
    display: flex;
    gap: 20px;
}

/* ==================== ILLUSTRATIONS ==================== */
.ilustrasi-matematika {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 40px;
}

.ilustrasi-matematika i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
    animation: float 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ==================== FOOTER ==================== */
.footer-utama {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.konten-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.info-footer h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.copyright {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 768px) {
    .navbar-utama {
        padding: 0 !important;
    }
    
    .container-navbar {
        padding: 10px 15px !important;
        min-height: 55px !important;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1em;
    }
    
    .logo-text {
        font-size: 1.5em;
    }
    
    .toggle-menu {
        display: block;
        padding: 8px 12px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 6px !important;
        font-size: 20px !important;
    }
    
    .menu-navigasi {
        display: none;
    }
    
    .konten-hero,
    .konten-tentang,
    .konten-materi {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px;
    }
    
    .judul-hero {
        font-size: 2rem !important;
    }
    
    .deskripsi-hero {
        font-size: 1rem !important;
    }
    
    .grid-fitur, 
    .grid-materi,
    .grid-latihan,
    .grid-quiz {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .tombol-hero {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    body {
        padding-top: 55px !important;
    }
    
    .hero-section {
        padding: 60px 20px 40px !important;
        min-height: auto !important;
    }
    
    .judul-section {
        font-size: 1.8rem !important;
        margin-bottom: 40px;
    }
    
    .section-fitur,
    .section-materi,
    .section-tentang,
    .section-latihan,
    .section-quiz {
        padding: 50px 20px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .judul-hero {
        font-size: 2.5rem;
    }
    
    .deskripsi-hero {
        font-size: 1.1rem;
    }
}

/* Section Styles */
.section-fitur, .section-materi, .section-tentang {
    padding: 80px 0;
}

.section-fitur {
    background: white;
}

.section-materi {
    background: #f8f9ff;
}

.section-tentang {
    background: white;
}

.judul-section {
    text-align: center;
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.judul-section::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Grid Styles */
.grid-fitur, .grid-materi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Card Styles */
.kartu-fitur, .kartu-materi {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.kartu-fitur:hover, .kartu-materi:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
}

.ikon-fitur, .ikon-materi {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.ikon-fitur i, .ikon-materi i {
    font-size: 2rem;
    color: white;
}

.kartu-fitur h3, .kartu-materi h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.kartu-fitur p, .kartu-materi p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-materi {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-materi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Tentang Section */
.konten-tentang {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.statistik-tentang {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.item-statistik {
    text-align: center;
}

.item-statistik h3 {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.item-statistik p {
    color: #666;
    font-weight: 500;
}

.gambar-tentang {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ilustrasi-belajar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.ilustrasi-belajar i {
    font-size: 4rem;
    color: white;
}

/* Footer */
.footer-utama {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.konten-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.info-footer h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.link-footer h4, .kontak-footer h4 {
    margin-bottom: 15px;
    color: #ffd700;
}

.link-footer ul {
    list-style: none;
}

.link-footer ul li {
    margin-bottom: 8px;
}

.link-footer ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-footer ul li a:hover {
    color: white;
}

.kontak-footer p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.kontak-footer i {
    margin-right: 10px;
    color: #ffd700;
}

.copyright {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .toggle-menu {
        display: block;
    }
    
    .konten-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .judul-hero {
        font-size: 2.5rem;
    }
    
    .grid-fitur, .grid-materi {
        grid-template-columns: 1fr;
    }
    
    .konten-tentang {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .statistik-tentang {
        justify-content: center;
    }
    
    .tombol-hero {
        flex-direction: column;
        align-items: center;
    }
}