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

body {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0f, #1c1c2c, #201446, #05070c);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logoold {
    font-size: 3em;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.logo {
    font-size: 3em;
    font-weight: bold;
    background: linear-gradient(90deg, #00d4ff, #0077ff);
    /* gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-button {
    padding: 12px 20px;
    background: linear-gradient(45deg, #12c2e9, #c471ed);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(18, 194, 233, 0.4);
}

.tab-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(18, 194, 233, 0.6);
}

.tab-button.active {
    background: linear-gradient(45deg, #ff6b9d, #00d4ff);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.6);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    text-align: left;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d4ff, #c471ed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.space-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.fact-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.fact-emoji {
    font-size: 3em;
    margin-bottom: 15px;
}

.fact-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #00d4ff;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(350px, 1fr));
    gap: 20px;
}

.content-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content-card h3 {
    color: #296cd1;
    margin-bottom: 10px;
}

.content-meta {
    color: #027e97;
    font-size: 0.9em;
    margin-top: 10px;
}

.age-filter {
    text-align: center;
    margin-bottom: 30px;
}

.age-filter select {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(45deg, #12c2e9, #c471ed);
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.cubesat-container {
    text-align: center;
    margin-top: 30px;
}

.cubesat-3d {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    perspective: 1000px;
}

.cubesat {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    margin: 50px auto;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    border: 2px solid #7f8c8d;
}

.cubesat::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(45deg, #34495e, #2c3e50);
    border-radius: 3px;
}

.cubesat::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    background: #3498db;
    border-radius: 50%;
    box-shadow: 40px 0 0 #e74c3c, 0 40px 0 #f39c12, 40px 40px 0 #2ecc71;
}

.solar-panel {
    position: absolute;
    width: 80px;
    height: 20px;
    background: linear-gradient(45deg, #1e3799, #3c6382);
    border: 1px solid #00d4ff;
}

.solar-panel-left {
    top: 90px;
    left: -90px;
    transform: rotateY(90deg);
}

.solar-panel-right {
    top: 90px;
    right: -90px;
    transform: rotateY(-90deg);
}

.antenna {
    position: absolute;
    width: 3px;
    height: 40px;
    background: #ff6b9d;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.antenna::after {
    content: "";
    position: absolute;
    top: 0;
    left: -5px;
    width: 13px;
    height: 13px;
    background: #00d4ff;
    border-radius: 50%;
}

@keyframes rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.component-arrow {
    position: absolute;
    width: 2px;
    height: 50px;
    background: #ff6b9d;
    transform-origin: bottom;
}

.component-label {
    position: absolute;
    background: rgba(255, 107, 157, 0.9);
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    white-space: nowrap;
}

.arrow1 {
    top: 20px;
    left: -60px;
    transform: rotate(-45deg);
}

.arrow2 {
    top: 80px;
    right: -60px;
    transform: rotate(45deg);
}

.arrow3 {
    bottom: 20px;
    left: -60px;
    transform: rotate(45deg);
}

.label1 {
    top: -10px;
    left: -150px;
}

.label2 {
    top: 60px;
    right: -180px;
}

.label3 {
    bottom: -10px;
    left: -160px;
}

.about-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.about-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b9d, #00d4ff);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
}

.rocket-embed {
    width: 50%;
    max-width: 500px;
    height: 200px;
    border-radius: 15px;
    border: none;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        min-width: 200px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .logo {
        font-size: 2em;
    }


    /* Space background */
    /* body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      color: white;
      background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
      line-height: 1.5;
      display: flex; /* make room for sidebar */
}

*/ body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    opacity: 0.4;
    z-index: -1;
}

/* Sidebar navigation */

/* Sidebar navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 120px;
    /* wider sidebar */
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    gap: 30px;
    /* more space between buttons */
    box-shadow: 2px 0 10px rgba(0, 212, 255, 0.4);
    z-index: 10;
}

/* Rocket buttons */
.rocket-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1em;
    /* larger label font */
    text-align: center;
    transition: transform 0.3s, color 0.3s;
}

.rocket-button i {
    font-size: 42px;
    /* bigger rocket icon */
    color: #00d4ff;
    margin-bottom: 6px;
    transition: transform 0.3s, text-shadow 0.3s, color 0.3s;
}

.rocket-button:hover i {
    transform: translateY(-6px);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.9);
    color: #ffffff;
}

/* Content wrapper adjusts to sidebar width */
.content {
    margin-left: 140px;
    /* match the wider sidebar */
    flex: 1;
    padding: 20px;
}

/* Responsive tweaks for mobile */
@media (max-width: 600px) {
    nav {
        width: 75px;
        gap: 20px;
        padding: 15px 0;
    }

    .rocket-button i {
        font-size: 36px;
        /* slightly larger for touch */
    }

    .rocket-button span {
        display: none;
        /* hide labels on small screens */
    }

    .content {
        margin-left: 90px;
    }
}

.big-text {
  font-size: 1.5em; /* or 24px */
  line-height: 1.6; /* optional for readability */
}


.big-text-blue {
  font-size: 1.5em; /* or 24px */
  color: #00d4ff;
  line-height: 1.6; /* optional for readability */
}

.medium-text {
    font-size: 1.1em;
    /* or 24px */
    line-height: 1.6;
    /* optional for readability */
}


.medium-text-blue {
    font-size: 1.1em;
    /* or 24px */
    color: #00d4ff;
    line-height: 1.6;
    /* optional for readability */
}

.highlight {
  color: #00d4ff; /* bright blue */
  font-weight: bold; /* optional for emphasis */
}

header {
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    font-size: clamp(2em, 5vw, 3em);
    background: linear-gradient(90deg, #00d4ff, #0077ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    margin-bottom: 10px;
}

header p {
    font-size: clamp(1em, 3vw, 1.2em);
}

section {
    max-width: 900px;
    margin: auto;
    padding: 25px 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.3);
}

section h2 {
    color: #00d4ff;
    margin-bottom: 10px;
    font-size: clamp(1.4em, 4vw, 2em);
}

section p {
    font-size: clamp(0.95em, 2.5vw, 1.1em);
}

.responsive-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;   /* optional: rounded corners */
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); /* optional: space glow */
}

ul ul {
  margin-left: 30px;  /* increases indentation of nested lists */
  list-style-type: circle; /* optional: change bullet style */
}

ul ul ul {
  margin-left: 50px;  /* even deeper indentation for 3rd level */
}

#nasa-news ul {
  list-style-type: none;
  padding: 0;
}

#nasa-news li {
  margin: 8px 0;
}

#nasa-news a {
  text-decoration: none;
  color: #00d4ff;
  font-weight: bold;
}

#nasa-news a:hover {
  color: #ffcc00;
}

.age-dropdown {
  background-color: white;   /* dropdown background */
  color: black;              /* text color */
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1em;
}

.age-dropdown:hover,
.age-dropdown:focus {
  background-color: #f0f0f0;
  color: black;
}

.link-button {
    background: linear-gradient(45deg, #12c2e9, #c471ed);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18, 194, 233, 0.5);
}

.button-container {
    display: flex;
    justify-content: center;
    /* centers horizontally */
    margin-top: 20px;
    /* optional spacing */
}