@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@0,100..900;1,100..900&display=swap');

/* ================= BODY ================= */

body {
    font-family: 'Exo 2', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background: #000;
    text-align: center;
    overflow-y: scroll;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html {
    scroll-behavior: smooth;
}

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

.navbar {
    background: #000;
    padding: 0.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

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

@media (max-width: 768px) {

    .nav-links {
        display: none;
        flex-direction: column;
        background: #000;
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        padding: 1rem;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}

/* ================= DISCOVER LINKS ================= */

.discover-links-container {
    width: 100%;
    background-color: rgba(20,20,20,0.7);
    text-align: center;
    padding: 12px 0;
    position: fixed;
    top: 60px;
    z-index: 999;
    display: flex;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.discover-links-container a {
    font-size: 1.8rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* ================= EARTH LINK ================= */

.earth-link {
    animation: earthColorCycle 3s infinite alternate;
    text-shadow: 0 0 8px #00ffcc;
}

.earth-link:hover {
    transform: scale(1.1);
}

@keyframes earthColorCycle {
    0% { color:#00ff00 }
    50% { color:#00bfff }
    100% { color:#00ff00 }
}

/* ================= TECH LINK ================= */

.tech-link {
    animation: techColorCycle 3s infinite alternate;
}

.tech-link:hover {
    transform: scale(1.1);
}

@keyframes techColorCycle {
    0% { color:#00ffff }
    50% { color:#1e90ff }
    100% { color:#00ffff }
}

/* ================= HEALTH LINK ================= */

.health-link {
    animation: healthColorCycle 3s infinite alternate;
}

.health-link:hover {
    transform: scale(1.1);
}

@keyframes healthColorCycle {
    0% { color:#ffffff }
    50% { color:#ff9900 }
    100% { color:#ffffff }
}

/* ================= COMMUNITY LINK ================= */

.community-link {
    animation: communityColorCycle 3s infinite alternate;
}

.community-link:hover {
    transform: scale(1.1);
}

@keyframes communityColorCycle {
    0% { color:#ffffff }
    50% { color:#ffff00 }
    100% { color:#ffffff }
}

/* ================= HERO SECTION ================= */

.main-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 20px;
    gap: 20px;
    max-width: 1200px;
    margin: 120px auto 0 auto;
}

.hero {
    flex: 2;
    text-align: center;
    background: url('https://hdwallpaperim.com/wp-content/uploads/2017/08/22/448612-Earth-space.jpg') center/cover no-repeat;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
}

.hero p {
    font-size: 24px;
}

/* ================= BUTTON ================= */

.cta-button {
    background-color: #4a90e2;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
}

.cta-button:hover {
    background-color: #357ab8;
}

/* ================= FEATURE CARDS ================= */

.features,
.space-exploration,
.space-junk,
.carbon-emissions,
.life-outside-earth,
.black-holes,
.planet-details {
    background-color: rgba(51,51,51,0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

/* ================= SPACE JUNK ================= */

.space-junk h2,
.carbon-emissions h2,
.black-holes h2,
.planet-details h2 {
    color: #4a90e2;
}

/* ================= LIFE OUTSIDE EARTH ================= */

.life-outside-earth {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.life-outside-earth ol {
    flex: 1;
    min-width: 250px;
}

.life-outside-earth img {
    max-width: 400px;
    border-radius: 8px;
}

/* ================= ORDERED LISTS ================= */

ol {
    list-style-type: decimal;
    list-style-position: inside;
    padding-left: 20px;
}

ol li {
    margin-bottom: 10px;
}

/* ================= BIG IMAGE ================= */

.big-image-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-right: 20px;
}

.big-image {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
}

/* ================= TWINKLING STARS ================= */

.twinkling-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
    z-index: -1;
}

.circle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
    opacity: 0;
}

@keyframes twinkle {
    0%,100% {opacity:0}
    50% {opacity:1}
}

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

footer {
    margin-top: 400px;
    padding: 20px;
    background: #111;
    text-align: center;
}