/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* BODY */
body {
    background: radial-gradient(circle at top, #0b1a3a, #000000);
    color: white;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(44, 33, 206, 0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* NAV */
nav a {
    text-decoration: none;
    color: white;
    padding: 8px 12px;
    transition: 0.3s;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
    border-radius: 6px;
}

nav a.active {
    background-color: #ffd700;
    color: black;
    border-radius: 6px;
    font-weight: bold;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    text-align: center;
    padding: 140px 20px 80px;
    overflow: hidden;

    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)),
        url('img/Planet.png') no-repeat center center;
    background-size: cover;
}


/* TEKS */
.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    animation: fadeUp 1s ease;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.hero p {
    opacity: 0.9;
}

/* BUTTON POP */
.btn-belajar {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ffd700, #ff9900);
    color: black;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    animation: popUp 1.5s infinite;
}

.btn-belajar:hover {
    transform: scale(1.1);
}

/* animasi pop */
@keyframes popUp {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
/* ===== PLANET ===== */
.Planet {
    position: absolute;
    width: 120px;
    height: 120px;
    background: url('img/Planet.png') no-repeat center/cover;
    top: 10%;
    left: 10%;
    animation: orbit 20s linear infinite;
}
/* ===== SECTION UMUM ===== */
.section {
    padding: 60px 20px;
    text-align: center;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    max-width: 750px;
    margin: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.4s;
}

.profile-card:hover {
    transform: translateY(-10px);
}

.profile-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffd700;
    margin-bottom: 15px;
}

/* ===== VISI MISI GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding-top: 20px;
}

/* BOX */
.box {
    background: rgba(26, 31, 76, 0.8);
    padding: 25px;
    border-radius: 15px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.box:hover {
    transform: scale(1.05);
}

/* efek glow */
.box::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    top: 0;
    left: -100%;
    transition: 0.5s;
}

.box:hover::before {
    left: 100%;
}

/* ===== KONTAK ===== */
.kontak-box {
    max-width: 600px;
    margin: auto;
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 15px;
}

.kontak-box p {
    margin: 10px 0;
    font-size: 15px;
}

/* ===== JUDUL SECTION ===== */
.section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #ffd700;
}

/* ===== ANIMASI MASUK ===== */
.section {
    animation: fadeUp 1s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ANIMASI ORBIT */
@keyframes orbit {
    0%   { transform: rotate(0deg) translateX(50px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

/* ===== ROKET ===== */
.rocket {
    position: absolute;
    font-size: 40px;
    bottom: -100px;
    left: 20%;
    animation: fly 8s linear infinite;
}

@keyframes fly {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-120vh) translateX(200px);
    }
}

/* ===== CONTAINER ===== */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 40px 50px;
}

/* ===== CARD ===== */
.card {
    background: rgba(36, 102, 223, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(1, 7, 39, 0.8), transparent);
    top: 0;
    left: -100%;
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(5, 11, 92, 0.6);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    opacity: 0.7;
}

/* ===== ANIMASI TEKS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🌠 BACKGROUND BINTANG GERAK */
body {
    margin: 0;
    overflow-x: hidden; /* hanya horizontal yang dikunci */
    overflow-y: auto;   /* biar bisa scroll */
    background: radial-gradient(circle at bottom, #020111 0%, #000000 100%);
}

* 🌠 BACKGROUND BINTANG GERAK */
body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: starsMove 60s linear infinite;
    z-index: -1;
}

@keyframes starsMove {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

/* CONTAINER */
.space {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ⭐ STARS (PARALLAX) */
.stars {
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
}

.layer1 {
    animation: moveStars 120s linear infinite;
    opacity: 0.6;
}

.layer2 {
    animation: moveStars 200s linear infinite;
    opacity: 0.3;
}

/* 🌌 NEBULA EFFECT */
.nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(128,0,255,0.3), transparent),
                radial-gradient(circle at 70% 60%, rgba(0,150,255,0.2), transparent);
    filter: blur(80px);
}

/* 🪐 PLANET BESAR */
.planet.big {
    position: absolute;
    width: 300px;
    height: 300px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/9/97/The_Earth_seen_from_Apollo_17.jpg');
    background-size: cover;
    border-radius: 50%;
    top: 20%;
    left: 10%;
    box-shadow: 0 0 80px rgba(0,150,255,0.5);
    animation: floatPlanet 25s ease-in-out infinite;
}

/* 🪐 PLANET KECIL */
.planet.small {
    position: absolute;
    width: 120px;
    height: 120px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/c/c7/Jupiter_by_Cassini-Huygens.jpg');
    background-size: cover;
    border-radius: 50%;
    bottom: 15%;
    right: 15%;
    box-shadow: 0 0 40px rgba(255,150,0,0.6);
    animation: floatPlanet 30s ease-in-out infinite;
}

/* 🌀 ORBIT RING */
.orbit {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 15%;
    left: 5%;
    animation: rotateOrbit 40s linear infinite;
}

/* .shooting-star {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 80px;
    background: linear-gradient(white, transparent);
    animation: shooting 6s linear infinite;
    opacity: 0.7;
}

@keyframes shooting {
    0% {
        transform: translate(0,0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(-600px, 600px) rotate(45deg);
        opacity: 0;
    }
}

@keyframes rocketMove {
    0% { left: -50px; }
    50% { left: 50%; }
    100% { left: 110%; }
}
./* ===== FIX VIDEO YOUTUBE ===== */

.video {
    position: relative;
    z-index: 10;
}

.video iframe {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

/* Supaya animasi tidak ganggu klik */
.planet, .rocket, .Planet {
    pointer-events: none;
    z-index: 1;
}

/* Hero jangan nutup konten */
.hero {
    position: relative;
    z-index: 0;
}
/* ===== GAMBAR PLANET ===== */
.planet-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: 0.3s;
}

/* efek hover */
.card:hover .planet-img {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 10px #00d4ff);
}/* ===== BUTTON POPUP ===== */
.btn-popup {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #00d4ff, #0072ff);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-popup:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #0072ff, #00d4ff);
}
.popup-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.body {
    /* Full height and width */
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(0deg, #000428, #004e92);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.star {
    background: white;
    position: absolute;
    border-radius: 50%;
    animation: twinkle 1s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.planet {
    position: absolute;
    border-radius: 50%;
    animation: orbit 10s linear infinite;
    background: url('path_to_planet_image') no-repeat;
    background-size: cover;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(150px) rotate(-360deg);
    }
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 20px;
    background: white;
    animation: shoot 1s linear infinite;
}

@keyframes shoot {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) translateX(-100px);
        opacity: 0;
    }
}
/* ===== SPACE BACKGROUND ===== */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* ⭐ BINTANG HALUS */
.space-bg::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: moveStars 150s linear infinite;
    opacity: 0.5;
}

/* 🌌 NEBULA GLOW */
.space-bg::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(128,0,255,0.25), transparent),
                radial-gradient(circle at 70% 60%, rgba(0,150,255,0.2), transparent);
    filter: blur(100px);
}

/* ⭐ ANIMASI BINTANG */
@keyframes moveStars {
    from { transform: translate(0,0); }
    to { transform: translate(-1000px, -1000px); }
}
/* ===== HERO 3D OBJECT ===== */
.hero-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* 🧑‍🚀 ASTRONAUT */
.astro {
    position: absolute;
    width: 180px;
    right: 10%;
    top: 20%;
    animation: floatAstro 6s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(0,150,255,0.8));
}

/* 🛰️ SATELIT */
.satelit {
    position: absolute;
    width: 120px;
    left: 8%;
    bottom: 20%;
    animation: floatSatelit 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
}

/* ✨ ANIMASI FLOAT */
@keyframes floatAstro {
    0%,100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes floatSatelit {
    0%,100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-5deg); }
}
.hero h1 {
    font-size: 48px;
    background: linear-gradient(90deg, #fff, #00d4ff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glowText 3s infinite alternate;
}

@keyframes glowText {
    from {
        text-shadow: 0 0 10px #00d4ff;
    }
    to {
        text-shadow: 0 0 25px #00d4ff, 0 0 50px #0072ff;
    }
}
/* ===== FAKTA UNIK ===== */
.fakta {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

/* teks WOW */
.wow {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #00d4ff;
    opacity: 0;
    transition: 0.3s;
}

/* muncul saat hover */
.fakta:hover .wow {
    opacity: 1;
    transform: translateY(-5px);
}

/* glow effect */
.fakta:hover {
    box-shadow: 0 0 25px rgba(0,150,255,0.5);
}

/* animasi muncul */
.fakta {
    animation: fadeUp 1s ease;
}

/* gambar lebih hidup */
.planet-img {
    filter: drop-shadow(0 0 10px rgba(0,150,255,0.6));
}
/* ===== CONTAINER GRID ===== */
.fakta-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 40px;
}

/* ===== CARD ===== */
.fakta-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: 0.4s;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* hover glow */
.fakta-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 30px rgba(0,150,255,0.6);
}

/* efek garis lewat */
.fakta-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    top: 0;
    left: -100%;
    transition: 0.5s;
}

.fakta-card:hover::before {
    left: 100%;
}

/* gambar */
.fakta-card img {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.fakta-card:hover img {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px #00d4ff);
}

/* ===== POPUP ===== */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* isi popup */
.popup-content {
    background: rgba(20, 20, 50, 0.9);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: zoomIn 0.4s ease;
}

/* animasi popup */
@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
} 
    font-size: 25px;
    cursor: pointer;
body {
    margin: 0;
    background: black;
    font-family: 'Segoe UI', sans-serif;
    color: white;
}

/* BIAR CONTENT DI ATAS BACKGROUND */
header, section, .section, footer {
    position: relative;
    z-index: 2;
}

/* BIAR SPACE DI BELAKANG */
.space {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.card {
    background: rgba(26, 31, 76, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    width: 220px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.7);
}
.hero {
    text-align: center;
    padding: 80px 20px;
}
/* BACK BUTTON */
.btn-back {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    z-index: 999;
    transition: 0.3s;
}

.btn-back:hover {
    background: #00d4ff;
    color: black;
}
.btn-tutup {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    background: #00d4ff;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-tutup:hover {
    background: #00aacc;
}
/* BACKGROUND SPACE FIX */
.space {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* BIAR KONTEN DI ATAS */
header, .hero, .container, footer, .btn-back {
    position: relative;
    z-index: 2;
}

/* BODY BIAR NYATU */
body {
    margin: 0;
    color: white;
    background: black;
}
.popup {
    display: none;
    position: fixed;
    top:0; left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.8);
    justify-content:center;
    align-items:center;
}

/* 🔥 ini kunci HTML only */
.popup:target {
    display: flex;
}

.popup-content {
    background: linear-gradient(135deg,#1a1f4c,#2c21ce);
    padding: 30px;
    border-radius: 20px;
    width: 350px;
    text-align: center;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    text-decoration: none;
    font-size: 25px;
    color: white;
}