/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
    background: #222;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    outline: 2px solid #ffd700;
}

/* Visually hidden utility class */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Root variables */
:root {
    --bg: #000000;
    --white: #ffffff;
    --yellow: #ffd700;
    --purple: #c800c8;
    --green: #00ff88;
    --cyan: #00ffff;
    --gray: #b0b0b0;
    --red: #ff0000;
}

/* Base styles */
body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Layout grid */
.container {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    min-height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    padding: 48px 4vw 32px 4vw;
    position: relative;
    z-index: 1;
}

/* Header */
.moonshot-title {
    color: var(--yellow) !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 2.6em;
    letter-spacing: 0.03em;
    margin: 0 0 5px 0;
    line-height: 1;
}
.moonshot-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.moonshot-title a:hover {
    color: var(--white);
}
.tagline {
    color: #fff;
    font-size: 1em;
    margin: 0 0 30px 0;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.tagline .green {
    color: var(--green);
}

/* Navigation */
.nav-block {
    margin-bottom: 2.5em;
}
.nav-links {
    display: block;
}
.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1em;
    margin-right: 1.5em;
    display: inline-block;
    transition: color 0.2s;
}
.nav-links a:last-child {
    margin-right: 0;
}
.nav-links a:hover {
    color: var(--white);
}
.nav-links a.current {
    color: var(--yellow);
    font-weight: bold;
}
.nav-links a.wip {
    color: #ff0000;
    cursor: default;
    pointer-events: none;
}
.nav-links a[href="play_area.html"] {
    color: var(--red);
}
.nav-links a[href="play_area.html"]:hover {
    color: var(--red);
    opacity: 0.8;
}

/* Main content */
.main-block {
    max-width: 700px;
    margin: 0 0 2.5em 48px;
    width: 100%;
}
@media (max-width: 800px) {
    .main-block {
        margin: 0 auto 1.5em auto;
    }
}
.main-text {
    margin-bottom: 1.2em;
    line-height: 1.7;
    font-size: 1em;
    text-align: left;
}
.main-text:last-child {
    margin-bottom: 0;
}
.main-text .cyan {
    color: var(--cyan);
}
.main-text .yellow {
    color: var(--yellow);
}
.main-text .purple {
    color: var(--purple);
}
.main-text .green {
    color: var(--green);
}

/* Footer links */
.bottom-links {
    align-self: end;
    margin-top: 0;
    margin-bottom: 0;
}
.bottom-links a {
    display: inline-block;
    margin-right: 1.5em;
    padding: 0.1em 0.5em;
    border-radius: 4px;
    font-weight: normal;
    font-size: 1em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.bottom-links a:last-child {
    margin-right: 0;
}
.bottom-links a.jafar {
    color: var(--yellow);
}
.bottom-links a.divyani {
    color: var(--cyan);
}
.bottom-links a.story {
    color: var(--purple);
}
.bottom-links a:hover {
    background: rgba(255,255,255,0.08);
}

/* Space Visuals (opt-in with .space-bg) */
.space-bg .space-visuals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60vh;
    pointer-events: none;
    z-index: 0;
}
.space-bg .moon {
    position: absolute;
    width: 49px;
    height: 49px;
    background: url('moon.png') center/contain no-repeat;
}
.space-bg .moon-speed {
    position: absolute;
    left: 100%;
    top: 40%;
    font-size: 12px;
    color: var(--yellow);
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 8px;
    pointer-events: none;
    white-space: nowrap;
}
.space-bg .earth {
    position: absolute;
    width: 84px;
    height: 84px;
    background: url('earth.png') center/contain no-repeat;
    top: 80vh;
}
.space-bg .earth-speed {
    position: absolute;
    left: 100%;
    top: 40%;
    font-size: 12px;
    color: var(--green);
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 8px;
    pointer-events: none;
    white-space: nowrap;
}
.space-bg .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--white);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}
.space-bg .star:nth-child(3n) {
    animation-delay: 0.5s;
    animation-duration: 4s;
}
.space-bg .star:nth-child(3n+1) {
    animation-delay: 1s;
    animation-duration: 2.5s;
}
.space-bg .star:nth-child(3n+2) {
    animation-delay: 1.5s;
    animation-duration: 3.5s;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}
@media (max-width: 700px) {
    .space-bg .moon {
        width: 40px;
        height: 40px;
    }
    .space-bg .earth {
        width: 60px;
        height: 60px;
    }
}

/* Responsive */
@media (max-width: 700px) {
    .container {
        padding: 32px 2vw 24px 2vw;
    }
    .moonshot-title {
        font-size: 2em;
    }
    .main-text {
        font-size: 1em;
    }
    .nav-links a, .bottom-links a {
        font-size: 1em;
    }
}

/* Blog post list styles */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: flex-start;
}
.blog-list > div {
    margin-bottom: 1em;
}
.blog-title {
    color: var(--white);
    font-size: 1em;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0.3em;
    transition: color 0.2s;
    text-decoration: none;
}
.blog-title:hover {
    color: var(--green);
}
.blog-article {
    display: none;
    background: #fff;
    color: #111;
    font-family: 'Courier New', Courier, monospace;
    padding: 2em 2em 1.5em 2em;
    border-radius: 18px;
    margin-top: 1.5em;
    font-size: 1em;
    line-height: 1.7;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
    max-width: 700px;
    width: 100%;
    margin-left: 0;
}

.quote-module {
    position: fixed;
    left: 2vw;
    bottom: 2vw;
    max-width: 600px;
    background: none;
    z-index: 20;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    line-height: 1.5;
    text-align: left;
    pointer-events: none;
}
.quote-module .quote-text {
    color: var(--purple);
    font-size: 1em;
    font-weight: normal;
    margin-bottom: 0.7em;
    pointer-events: auto;
}
.quote-module .quote-author {
    color: var(--yellow);
    font-size: 1em;
    margin-top: 0.5em;
    display: block;
    pointer-events: auto;
}
@media (max-width: 700px) {
    .quote-module {
        left: 4vw;
        bottom: 2vw;
        max-width: 90vw;
        font-size: 1em;
    }
}

@media (max-width: 700px) {
  .blog-article {
    max-width: 100%;
    width: 100%;
    padding: 1em 0.5em 1em 0.5em;
    border-radius: 10px;
    font-size: 1em;
    box-sizing: border-box;
    margin-left: 0;
  }
  .container {
    width: 100vw;
    padding: 16px 0 16px 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .main-block {
    margin-bottom: 1.5em;
    width: 100%;
    box-sizing: border-box;
  }
}

/* === Styles moved from resources.html === */
h2 {
    color: var(--yellow);
    font-size: 1em;
    margin: 0 0 0.7em 0;
    font-weight: normal;
    letter-spacing: 0.01em;
}
.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.resource-list li {
    margin-bottom: 1em;
    padding-left: 1.5em;
    position: relative;
}
.resource-list li:before {
    content: "\2192";
    color: var(--cyan);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.resource-list a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s;
}
.resource-list a:hover {
    color: var(--white);
}
.expandable-section {
    margin-top: 1.5em;
    border-left: 2px solid var(--cyan);
    padding-left: 1.5em;
}
.expandable-title {
    color: var(--purple);
    cursor: pointer;
    font-weight: normal;
    font-size: 1em;
    letter-spacing: 0.01em;
}
.expandable-title:hover {
    color: var(--white);
}
.expandable-content {
    display: none;
    margin-top: 1em;
}
.expandable-content.show {
    display: block;
}
.expandable-content a {
    color: var(--green);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8em;
    transition: color 0.2s;
}
.expandable-content a:hover {
    color: var(--white);
}
.quote-author {
    color: var(--gray);
    font-size: 1em;
    display: block;
    margin-top: 0.5em;
}
@media (max-width: 700px) {
    .main-block {
        max-width: 100%;
        font-size: 1em;
    }
}
@keyframes sunMiniOrbit {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-8px) translateX(8px); }
    50% { transform: translateY(0) translateX(16px); }
    75% { transform: translateY(8px) translateX(8px); }
    100% { transform: translateY(0) translateX(0); }
}
.sun-visual {
    position: absolute;
    left: 20px;
    top: 60vh;
    width: 60px;
    height: 60px;
    z-index: 0; /* Changed from 10 to 0 to stay behind content */
    animation: sunMiniOrbit 6s linear infinite;
    display: flex;
    align-items: center;
}
.sun-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 18px 2px #ffd70088;
}
.sun-labels {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
}
.sun-label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: var(--yellow);
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 8px;
    margin-bottom: 2px;
    white-space: nowrap;
}
.sun-temp {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: var(--purple);
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .sun-visual {
        width: 40px;
        height: 40px;
        top: 85vh; /* Moved lower to avoid text overlap */
        left: 10px;
        z-index: 0; /* Behind content on mobile */
    }
    .sun-labels {
        display: none; /* Hide labels on mobile to save space */
    }
}
/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .sun-visual {
        position: fixed; /* Fixed positioning works better on iOS */
        bottom: 80px; /* Position from bottom instead of top */
        top: auto;
        z-index: 0;
    }
}

/* LinkedIn link color and underline fix */
.jafar, .divyani {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}
.jafar:hover, .divyani:hover {
  color: var(--yellow);
  text-decoration: none;
}

/* About page name links as blocks */
.main-text a.jafar, .main-text a.divyani {
  display: block;
  margin-bottom: 0.5em;
  font-size: 1em;
}

/* Resources page title styling */
.resources-title {
  display: block;
  margin-bottom: 1em;
  color: var(--yellow);
} 

/* Sun Blog SVG Overlay Styles */
#sun-svg-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #111;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s;
}
#sun-svg-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
#sun-cta {
  font-family: monospace, 'Courier New', Courier;
  font-size: 2rem;
  color: #222;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  user-select: none;
  background: transparent;
}
@media (max-width: 600px) {
  #sun-svg { width: 100vw !important; height: 100vh !important; }
  #sun-cta { font-size: 1.2rem; }
} 

/* Blog date tag styles */
.blog-date {
  display: inline-block;
  font-family: monospace, 'Courier New', Courier;
  font-size: 0.8em;
  color: #999;
  margin-left: 1rem;
  margin-bottom: 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
  vertical-align: middle;
  opacity: 0.7;
  font-weight: normal;
} 