@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 70% 45%, #0b2d54 0%, transparent 25%),
        radial-gradient(circle at 25% 70%, #071d38 0%, transparent 30%),
        #010914;

    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
}


/* =========================
   STAR BACKGROUND
========================= */

#stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px white;
    animation: twinkle var(--speed) infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.2;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1.5);
    }
}


/* =========================
   NAVBAR
========================= */

nav {
    width: 100%;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    position: relative;
    z-index: 10;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}

.logo span {
    color: #45c9ff;
}

.planet-icon {
    display: inline-block;
    margin-right: 7px;
    font-size: 24px;
    text-shadow: 0 0 15px #45c9ff;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: #a8b8c9;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #4bd4ff;
    text-shadow: 0 0 10px #4bd4ff;
}

.menu-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 45px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
}


/* =========================
   MAIN SECTION
========================= */

main {
    min-height: calc(100vh - 160px);

    display: grid;
    grid-template-columns: 42% 58%;

    align-items: center;

    padding: 30px 7%;
}


/* =========================
   LEFT SIDE
========================= */

.hero-text {
    position: relative;
    z-index: 3;
}

.small-title {
    color: #55d6ff;
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(45px, 6vw, 90px);
    line-height: 1.05;
    letter-spacing: 4px;
    font-weight: 800;
}

.hero-text h1 span {
    color: transparent;

    -webkit-text-stroke: 1px #58d9ff;

    text-shadow:
        0 0 20px rgba(55, 197, 255, 0.3);
}

.description {
    color: #9daebe;
    max-width: 460px;
    line-height: 1.8;
    font-size: 14px;
    margin-top: 25px;
}


#exploreBtn {
    margin-top: 30px;

    padding: 15px 25px;

    background: linear-gradient(135deg, #009de0, #0055b8);

    color: white;
    border: none;
    border-radius: 4px;

    font-family: "Orbitron", sans-serif;
    font-size: 11px;
    letter-spacing: 2px;

    cursor: pointer;

    box-shadow:
        0 0 20px rgba(0, 170, 255, 0.4),
        inset 0 0 10px rgba(255,255,255,0.15);

    transition: 0.3s;
}

#exploreBtn span {
    margin-left: 12px;
    font-size: 18px;
}

#exploreBtn:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 35px rgba(0, 170, 255, 0.5);
}


.controls {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.controls div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls span {
    font-size: 20px;
    color: #56d9ff;
}

.controls p {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #7e91a5;
}


/* =========================
   EARTH SECTION
========================= */

.earth-section {
    height: 650px;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

#earth-container {
    width: min(650px, 55vw);
    height: min(650px, 55vw);
    max-width: 650px;
    max-height: 650px;

    position: relative;
    z-index: 2;

    cursor: grab;
}

#earth-container:active {
    cursor: grabbing;
}


/* Glow behind Earth */

.earth-section::before {
    content: "";

    position: absolute;

    width: 65%;
    height: 65%;

    border-radius: 50%;

    background: #006eff;

    filter: blur(130px);

    opacity: 0.18;

    z-index: 0;
}


/* =========================
   ORBITS
========================= */

.orbit {
    position: absolute;

    border: 1px solid rgba(86, 217, 255, 0.18);

    border-radius: 50%;

    z-index: 1;

    pointer-events: none;
}

.orbit-one {
    width: 620px;
    height: 220px;

    transform: rotate(-25deg);

    animation: orbitSpin 20s linear infinite;
}

.orbit-two {
    width: 500px;
    height: 500px;

    border-style: dashed;

    opacity: 0.3;

    animation: orbitSpin 35s linear infinite reverse;
}

@keyframes orbitSpin {
    from {
        transform: rotate(-25deg);
    }

    to {
        transform: rotate(335deg);
    }
}


/* =========================
   EARTH LABELS
========================= */

.earth-label {
    position: absolute;

    display: flex;
    align-items: center;
    gap: 8px;

    font-family: "Orbitron", sans-serif;
    font-size: 9px;
    letter-spacing: 2px;

    color: #bdeeff;

    z-index: 4;

    padding: 8px 12px;

    background: rgba(3, 18, 38, 0.65);

    border: 1px solid rgba(80, 210, 255, 0.25);

    backdrop-filter: blur(8px);
}

.label-one {
    top: 20%;
    right: 5%;
}

.label-two {
    bottom: 20%;
    left: 3%;
}

.dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #46d8ff;

    box-shadow: 0 0 12px #46d8ff;

    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.8);
        opacity: 0.4;
    }
}


/* =========================
   FOOTER
========================= */

footer {
    min-height: 70px;

    display: flex;
    justify-content: center;
    gap: 80px;

    align-items: center;

    border-top: 1px solid rgba(255,255,255,0.08);

    padding: 15px;
}

footer div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.number {
    color: #55d9ff;

    font-family: "Orbitron", sans-serif;

    font-size: 17px;

    text-shadow: 0 0 10px rgba(85,217,255,0.6);
}

footer p {
    color: #72869b;
    font-size: 8px;
    letter-spacing: 1.5px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {

    nav {
        padding: 0 5%;
    }

    .nav-links {
        display: none;
    }

    main {
        grid-template-columns: 1fr;
        padding: 30px 6%;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .earth-section {
        height: 500px;
        margin-top: 10px;
    }

    #earth-container {
        width: 90vw;
        height: 90vw;
    }

    .orbit-one {
        width: 90vw;
        height: 150px;
    }

    .orbit-two {
        width: 80vw;
        height: 80vw;
    }

    .controls {
        justify-content: center;
    }

    footer {
        gap: 20px;
        flex-wrap: wrap;
    }

    .earth-label {
        font-size: 7px;
    }
}