:root {
  /* Ultra-Minimalist Palette */
  --bg-color: #000000;
  --text-primary: #ffffff;
  --text-silver: #a0a0a0;
  --text-dim: #555555;
  
  /* Fonts */
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Interactive Cosmic Canvas */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
#planet-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

/* Main Content Layer */
#main-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Shared Utilities */
.section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 24px;
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.mono-text {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.silver-text { color: var(--text-silver); }

.massive-text {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 60px;
}

/* -------------------------------------
   HERO SECTION
   ------------------------------------- */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  width: 100%;
}

.sub-label {
  font-size: 1rem;
  color: var(--text-silver);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.hero-mission {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.5;
  color: var(--text-silver);
  max-width: 800px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* -------------------------------------
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-silver);
}

.small-text {
  font-size: 0.75rem !important;
  margin-top: 8px;
}

/* -------------------------------------
   WORK SECTION (3D STICKY)
   ------------------------------------- */
.scroll-section {
  height: 400vh; /* Plenty of scroll room for the sequence */
  position: relative;
  width: 100%;
}

.sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-layer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  pointer-events: none; /* Let clicks pass through unless on cards */
}

.work-title, .experience-title {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 60px;
  opacity: 0; /* Animated via GSAP */
}

/* Constellation Stars */
.project-star-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  text-decoration: none;
  color: var(--text-primary);
  pointer-events: auto;
  opacity: 0; /* Hidden initially, revealed by GSAP */
  transition: transform 0.3s ease;
}

.project-star-wrapper:hover {
  transform: translateX(15px);
}

.star-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 20px #00ffff, 0 0 40px #00ffff;
  animation: twinkle 2s infinite alternate ease-in-out;
  flex-shrink: 0;
}

@keyframes twinkle {
  0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 5px #ffffff, 0 0 10px #00ffff; }
  100% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 15px #ffffff, 0 0 30px #00ffff, 0 0 60px #00ffff; }
}

.star-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-cat {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.cards-container, .experience-container, .student-container, .skills-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 80%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  text-align: center;
}

.skills-container, .experience-container {
  align-items: flex-start;
  text-align: left;
}

.skills-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cards-container::-webkit-scrollbar, .experience-container::-webkit-scrollbar {
  display: none;
}



/* Shared animated elements */
.student-title, .student-desc, .skills-item {
  opacity: 0;
}

.exp-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.exp-company {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.exp-desc {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .cards-container, .experience-container, .student-container, .skills-container {
    width: 90%;
  }
}

/* -------------------------------------
   CONTACT SECTION
   ------------------------------------- */
.contact-wrapper {
  text-align: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 80px;
}

.contact-link {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-silver);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-link:hover {
  color: var(--text-primary);
  transform: translateX(10px);
}

/* -------------------------------------
   FOOTER
   ------------------------------------- */
.footer {
  width: 100%;
  padding: 60px 24px;
  text-align: center;
}

.footer .mono-text {
  font-size: 0.75rem;
}

/* -------------------------------------
   ANIMATIONS
   ------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
