* {
  box-sizing: border-box;
}

:root {
  /* Typography */
  --font-primary: "Playfair Display", serif;
  --font-scondary: "Montserrat", sans-serif;

  /* Global Effects */
  --image-mask: linear-gradient(to left bottom, black 0%, transparent 100%);
  --active-glow: 255, 255, 255;

  /*Transition effects*/
  --trans-bg: #000000;
  --trans-text: #ffffff;
  --trans-font: "Platfair Display", sans-serif;

  /* Timeline Variables */
  --bg-color: #050505;
  --line-color: #00f2ff;
  --line-glow: #00f2ff;
  --text-color: #ffffff;
  --node-size: clamp(320px, 40vw, 520px);

  /* Footer Variables */
  --footer-bg: #121212;
  --footer-text: #a0a0a0;
  --footer-heading: #ffffff;
  --accent-color: #2053d5;
  --border-color: #2a2a2a;
  --spacing-unit: clamp(1rem, 2vw, 2rem);
  --max-width: 1200px;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background-color: #050505;
  font-family: var(--font-scondary);
  overflow-x: hidden;
  overscroll-behavior: none;
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01s !important;
    animation-duration: 0.01s !important;
  }
}

/* =========================================
   2. UTILITIES & EFFECTS
   ========================================= */

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.9px);
  -webkit-backdrop-filter: blur(5.9px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Diagonal light reflection for glass */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: linear-gradient(
    10deg,
    transparent 30%,
    rgba(255, 255, 255, 2) 50%,
    transparent 60%
  );
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

/* Background Noise */
/* .bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -50;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
} */

/* Background Vignette */
.bg-vignette {
  background: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #222121 70%);
  position: absolute;
  inset: 0;
  z-index: -49;
}

#kinetic-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--trans-bg);
  z-index: 9999; 
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: none; 
  opacity: 0;
  visibility: hidden;
}

#kinetic-transition.is-active {
  pointer-events: all;
  visibility: visible;
}

/* Grid layout for the kinetic typography */
.kinetic-grid {
  display: grid;
  width: 100vmax;
  height: 100vmax;
  justify-content: center;
  align-content: center;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* Individual text lines */
.trans-line {
  white-space: nowrap;
  font-family: var(--trans-font);
  font-weight: bold;
  font-size: clamp(5rem, 15vh, 12rem);
  line-height: 0.8;
  color: var(--trans-text);
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  user-select: none;
  will-change: transform, opacity;
}

.trans-line.odd {
  transform: translateX(-10%);
}

.trans-line.even {
  transform: translateX(10%);
}

.fa-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.125em; 
  pointer-events: none;
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */

.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  position: fixed;
  top: 0;
  width: 100%;
  padding: clamp(0.5rem, 1vh, 1rem) clamp(0.5rem, 2vw, 1.5rem);
  align-items: center;
  background: transparent;
  z-index: 100;
  will-change: transform;
}

/* Logo */
.logo {
  height: clamp(3rem, 12vh, 6rem);
  width: auto;
  display: flex;
  align-items: center;
  font-weight: bold;
  color: white;
  mix-blend-mode: difference;
}

/* Nav Links */
.nav-links {
  position: fixed;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  pointer-events: auto;
  padding: 0.8rem clamp(0.8rem, 2vw, 1.5rem);
  border-radius: 0.5rem;
  white-space: nowrap;
  max-width: 90vw;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: clamp(0.7rem, 0.9vw, 1rem);
  letter-spacing: 1px;
  position: relative;
}

/* Hover Underline */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/*Sparkle*/
.highlight-link {
  position: relative;
  display: inline-block;
}

.sp-left::before,
.sp-left::after,
.sp-right::before,
.sp-right::after {
  content: "✦";
  position: absolute;
  color: var(--line-color); 
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  animation: sparkle-anim 2s ease-in-out infinite;
}

/* Top Left */
.sp-left::before {
  top: -15px;
  left: -10px;
  animation-delay: 0s;
}

/* Bottom Left */
.sp-left::after {
  bottom: -8px;
  left: -15px;
  animation-delay: 1s;
}

/* Top Right */
.sp-right::before {
  top: -10px;
  right: -15px;
  animation-delay: 0.5s;
}

/* Bottom Right */
.sp-right::after {
  bottom: -8px;
  right: -15px;
  animation-delay: 1.5s;
}

@keyframes sparkle-anim {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(90deg);
    text-shadow: 0 0 10px var(--line-color);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(180deg);
  }
}

/* =========================================
   5. HERO SECTION
   ========================================= */

.desktop-hero-section {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  perspective: 2000px;
  contain: layout;
}

.hero-header-text {
  font-family: var(--font-scondary);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  background: linear-gradient(
    to bottom,
    rgb(10, 10, 10, 1),
    rgb(142, 154, 170, 1)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: clamp(0.5rem, 3vw, 2.5rem);
  padding-top: 10vh;
  margin-bottom: clamp(2rem, 6vh, 5rem);
  text-transform: uppercase;
  z-index: 60;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Canvas Wrapper */
.desktop-canvas {
  position: relative;
  width: 90%;
  max-width: 1300px;
  height: 70vh;
  min-height: clamp(400px, 50vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
  overflow: visible;
  border-radius: 24px;
}

/* Glass Background Layer */
.canvas-glass-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.85),
    rgba(30, 30, 30, 0.4)
  );
  backdrop-filter: blur(6px) saturate(200%);
  -webkit-backdrop-filter: blur(6px) saturate(200%);
  border-radius: 24px;
  box-shadow:
    0 30px 40px -10px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  pointer-events: none;
  transition: box-shadow 0.4s ease;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.desktop-canvas.glow-active {
  box-shadow: 0 0 60px 15px rgba(var(--active-glow), 0.35);
}

/* "Breath" Background Glow */
/* .desktop-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 120%,
    transparent 75%,
    rgba(var(--active-glow), 0.8) 80%,
    rgb(255, 255, 255, 0.9) 84%,
    rgb(255, 255, 255, 0.9) 86%,
    rgba(var(--active-glow), 0.8) 90%,
    transparent 95%
  );
  opacity: 1;
  transition: --active-glow 0.6s ease;
  pointer-events: none;
} */

.canvas-cursor-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--active-glow), 0.15) 0%,
    transparent 70%
  );
  margin-top: -300px;
  margin-left: -300px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--tx, 50vw), var(--ty, 50vh), 0);
  transition: opacity 0.5s ease;
  will-change: transform;
}

.desktop-canvas:hover .canvas-cursor-light {
  opacity: 1;
}

/* Grid Layout */
.hero-grid {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0 clamp(1rem, 4vw, 3rem);
  align-items: center;
  justify-content: space-between;
  z-index: 2; 
  transform-style: preserve-3d;
}

/* Hero Item */
.hero-item {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  contain: layout style;
  transition: flex-grow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: flex-grow;
  perspective: 1000px;
}

.hero-item:hover {
  z-index: 50;
}

/* Character/Letter */
.hero-char {
  font-family: var(--font-primary);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.915);

  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    filter 0.4s ease,
    color 0.4s ease,
    text-shadow 0.4s ease;
  will-change: transform, opacity, filter;
  pointer-events: none;
  z-index: 10;
}

.hero-grid:has(.hero-item:hover) .hero-char {
  opacity: 0.1;
  filter: blur(6px);
  transform: scale(0.9) translateZ(-20px);
}

.hero-item:hover .hero-char {
  opacity: 1;
  filter: blur(0);
  transform: scale(1.1) translateZ(40px);
  color: white;
  text-shadow:
    0 0 20px rgba(var(--theme), 0.8),
    0 0 40px rgba(var(--theme), 0.4);
  animation: letterGlow 2s ease-in-out infinite alternate;
}

@keyframes letterGlow {
  from {
    text-shadow:
      0 0 20px rgba(var(--theme), 0.8),
      0 0 40px rgba(var(--theme), 0.4);
  }
  to {
    text-shadow:
      0 0 30px rgba(var(--theme), 1),
      0 0 60px rgba(var(--theme), 0.6),
      0 0 100px rgba(var(--theme), 0.3);
  }
}

/* Image Backdrop */
.hero-img-backdrop {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(200px, 30vw, 350px);
  aspect-ratio: 300/550;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.55) translateZ(0);
  transition:
    opacity 0.3s ease,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
  will-change: transform, opacity;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-img-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.1) saturate(1);
  transform: scale(1.1);
  transition:
    filter 0.5s ease,
    transform 0.5s ease;
  will-change: filter, transform;
}

.hero-item:hover .hero-img-backdrop {
  opacity: 1;
  transform: translate(-50%, -50%) scale(0.75) translateZ(100px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(var(--theme), 0.5);
}

.hero-item:hover .hero-img-backdrop img {
  filter: contrast(1) saturate(1.2);
  transform: scale(1);
}

/* Scientist Card */
.scientist-card {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: clamp(220px, 70vw, 300px);
  transform: translateX(-50%) translateY(20px) scale(0.95);
  opacity: 0;
  transform-origin: bottom center;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--theme);
  border-radius: 12px;
  padding: 1.25rem;
  pointer-events: none;
  z-index: 100;
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.hero-item:hover .scientist-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1) translateZ(110px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  pointer-events: auto;
}

/* Card Helpers */
.card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.sc-name {
  margin: 0 0 0.5rem;
  font-family: var(--font-primary);
  font-size: clamp(1.1rem, 1.5vw, 1.6rem);
  color: white;
}
.sc-achievements {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: #ccc;
  line-height: 1.4;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

/* =========================================
   6. ABOUT SECTION
   ========================================= */

.about_interactive {
  position: relative;
  width: 100%;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  z-index: 10;
}

.text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  text-align: left;
}

.section-title {
  font-family: var(--font-primary, serif);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 2rem;
  color: orangered;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: inline-block;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.text-content p {
  font-family: var(--font-scondary, sans-serif);
  font-size: clamp(1.1rem, 1.4vw, 1.6rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin: 0;
}

.frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  perspective: 1000px;
}

.frame-bottom {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.photo {
  width: clamp(200px, 18vw, 260px);
  height: auto;
  aspect-ratio: 3/4;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.photo:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  z-index: 5;
}

.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 240/260;
  object-fit: contain;
  object-position: top;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.photo h3 {
  font-family: var(--font-scondary, sans-serif);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin: 0.5rem 0 0 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

/* =========================================
   7. TEAM SECTION (Glass Glow Style)
   ========================================= */

.team-section-glass {
  min-height: 100vh;
  padding: clamp(4rem, 10vh, 8rem) 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  position: relative;
  z-index: 1;
}

.team-header-container {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  font-weight: 300;
  letter-spacing: 1px;
}

.glass-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 2.5rem);
  width: 100%;
  max-width: 1200px;
  padding-bottom: 4rem;
}

.glass-team-grid .glass-card-wrapper:last-child:nth-child(odd) {
  grid-column: 1 / span 2;
  justify-self: center;
  width: 100%;
  max-width: calc(50% - 1rem);
}

.glass-card {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(0);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    background-color 0.4s ease,
    border-color 0.4s ease;
  will-change: transform;
  transform: translateZ(0) translateY(0);
  backface-visibility: hidden;
}

.glass-card:hover {
  transform: translateY(-6px) translateZ(0);
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Glow Effects */
.glow-blob {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  width: 140px;
  height: 50px;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.5;
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: -1;
  pointer-events: none;
}

.glass-card:hover .glow-blob {
  opacity: 0.8;
  transform: translateX(-50%) scale(1.1);
}

.glow-blue {
  background: #3b82f6;
}
.glow-amber {
  background: #f59e0b;
}
.glow-purple {
  background: #8b5cf6;
}
.glow-pink {
  background: #ec4899;
}

.text-blue {
  color: rgba(59, 130, 246, 0.9);
}
.text-amber {
  color: rgba(245, 158, 11, 0.9);
}
.text-purple {
  color: rgba(139, 92, 246, 0.9);
}
.text-pink {
  color: rgba(236, 72, 153, 0.9);
}

/* Card Content */
.card-image-box {
  width: 35%;
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.card-image-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: brightness(1.1) saturate(1.1);
  transition: filter 0.5s ease;
  scale: 1.08;
}

.glass-card:hover .card-image-box img {
  filter: brightness(1.15) saturate(1.15);
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.card-vertical-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.card-info-box {
  flex: 1;
  padding: clamp(1rem, 1.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.card-name {
  font-size: clamp(0.75rem, 1.2vw, 1.4rem);
  font-weight: 600;
  color: white;
  margin: 0;
  letter-spacing: 0.5px;
  font-family: var(--font-scondary);
}

.card-role {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.card-socials a {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.card-socials a:hover {
  color: white;
}

/* =========================================
   8. TIMELINE SECTION
   ========================================= */

.viewport-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  contain: strict;
}

.timeline {
  margin-top: -50vh; 
  position: relative;
  z-index: 10;
  pointer-events: none; 
}

.scroll-container {
  display: flex;
  height: 100%;
  width: max-content;
  position: relative;
  will-change: transform;
}

#scroll-height-spacer {
  display: none !important;
}

.svg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

#timeline-svg path {
  fill: none;
  stroke: var(--line-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px var(--line-glow))
    drop-shadow(0 0 15px rgba(39, 210, 202, 0.4));
}

.event-node {
  position: absolute;
  width: clamp(300px, 40vw, 600px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  opacity: 0;
  z-index: 20;
  pointer-events: none;
}

.image-mask {
  width: 50%;
  height: auto;
  aspect-ratio: 7/5;
  max-height: 30vh;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
  border: 1px solid rgba(0, 242, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.event-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: -5%;
  left: -5%;
  scale: 1.1;
  filter: contrast(1.2);
  transition: filter 0.5s ease;
}

.meta-data {
  max-height: none;
  overflow: visible;
  flex: 1;
  text-align: left;
  padding: 0 0.5rem;
}

.year-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--line-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-family: var(--font-primary);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 600;
  color: wheat;
}

p {
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.progress-ui {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  z-index: 50;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--line-color);
  box-shadow: 0 0 10px var(--line-color);
}

/* =========================================
   9. FOOTER SECTION
   ========================================= */

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 1rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-color);
  contain: content;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(2rem, 6vw, 6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  margin-bottom: 0.5rem;
}

.footer-heading {
  color: var(--footer-heading);
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  margin-bottom: 1rem;
  max-width: 30ch;
}

.footer-email {
  color: var(--footer-heading);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.footer-email:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

address {
  font-style: normal;
}

.footer-social-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #888;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.footer-social-links a:hover {
  color: #ccc;
  transform: translateY(-3px);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--footer-heading);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  color: #fff;
  transform: translateY(-3px);
}

.map-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  height: 100px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) invert(90%);
  transition: filter 0.3s ease;
}

.map-wrapper:hover iframe {
  filter: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1rem var(--spacing-unit);
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* =========================================
   10. MOBILE RESPONSIVE STYLES
   ========================================= */

/*===NAV SECTION===*/

@media (max-width: 767px) {
  .navbar {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.6rem 0.8rem;
  }

  .logo {
    justify-self: center;
  }

  .nav-links {
    position: relative;
    left: auto;
    transform: none;
    justify-content: center;
    width: 100%;
    margin-top: 0.4rem;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 1rem 5%;
  }
  .logo {
    justify-self: center;
    height: 3rem;
  }
  .nav-links {
    position: relative;
    left: auto;
    transform: none;
    justify-content: center;
    width: 100%;
    gap: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .nav-links a {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }
}

/* --- HERO SECTION --- */

/* Tablet and below */
@media (max-width: 1024px) {
  .desktop-canvas {
    width: 95%;
    height: 70dvh;
    min-height: 400px;
  }

  .desktop-canvas::before {
    display: none;
  }

  .hero-grid {
    padding: 0 1.5rem;
  }

  .hero-header-text {
    font-size: 2.4rem;
    letter-spacing: 1.5rem;
    padding-top: 6rem;
    margin-bottom: 3rem;
  }

  /* .hero-char {
    font-size: 6rem;
  } */
  .hero-img-backdrop {
    width: 250px;
    height: 450px;
  }
  .scientist-card {
    width: 220px;
    padding: 1rem;
  }
  /* .sc-name {
    font-size: 1.1rem;
  } */
  .sc-achievements {
    font-size: 0.75rem;
  }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
  .desktop-hero-section {
    height: auto;
    min-height: 100dvh;
    padding: 2rem 0;
  }
  .desktop-canvas {
    width: 95%;
    height: auto;
    min-height: unset;
    flex-direction: column;
    padding: 2rem 0;
  }

  .desktop-canvas::before {
    display: none;
  }

  .hero-grid {
    flex-direction: column;
    padding: 1.2rem 1rem;
    gap: 2rem;
    height: auto;
    touch-action: pan-y;
  }
  .hero-header-text {
    font-size: 2rem;
    letter-spacing: 0.9rem;
    padding-top: 4vh;
    margin-bottom: 2.5rem;
  }
  .hero-item {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: auto 1fr; 
    gap: 1rem;
    width: 100%;
    min-height: 8rem;
    align-items: stretch;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    touch-action: pan-y;
    pointer-events: none;
  }
  .hero-char {
    grid-column: 1 / -1;
    justify-self: center;
    position: relative;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.2);
    z-index: 1;
    pointer-events: none;
  }

  .hero-img-backdrop {
    grid-column: 1 / 2;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    aspect-ratio: auto;
    margin: 0;
    left: auto;
    top: auto;
    transform: translateY(20px);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
  }
  .hero-img-backdrop img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0%;
    transform: scale(1.25);
  }
  /* Scientist card on mobile */
  .scientist-card {
    grid-column: 2 / 3;
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    left: auto;
    bottom: auto;
    transform: translateY(20px); 
    opacity: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    pointer-events: none;
  }
  /* Hide elements that rely on hover/tap on mobile */
  .hero-item:hover .hero-img-backdrop,
  .hero-item:active .hero-img-backdrop,
  .hero-item:hover .scientist-card,
  .hero-item:active .scientist-card {
    /* These are handled by ScrollTrigger on mobile */
    opacity: 0;
    transform: translateY(20px);
  }
  .card-header {
    font-size: 0.65rem;
  }
  .sc-name {
    /* font-size: 1rem; */
    margin-bottom: 0.375rem;
  }
  .sc-achievements {
    font-size: 0.7rem;
  }
  .sc-achievements li {
    margin-bottom: 2px;
  }
  .canvas-cursor-light {
    display: none;
  }
  .canvas-glass-bg {
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .desktop-hero-section {
    padding: 6rem 0;
    height: auto;
    min-height: 100dvh;
  }
  .desktop-canvas {
    width: 100%;
    padding: 1rem 0;
    border-radius: 0;
  }
  .canvas-glass-bg {
    border-radius: 0;
  }
  .hero-grid {
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .hero-header-text {
    font-size: 1.75rem;
    letter-spacing: 0.8rem;
    padding-top: 2.5vh;
    margin-bottom: 2rem;
  }
  .hero-item {
    gap: 0.75rem;
  }
  .hero-img-backdrop {
    width: 100%;
    height: 100%;
    transform: translateY(20px);
  }
  .hero-item:hover .hero-img-backdrop,
  .hero-item:active .hero-img-backdrop {
    transform: translateY(20px);
  }
  .scientist-card {
    width: 100%;
    padding: 0.6rem;
    bottom: auto;
  }
  .sc-name {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  .sc-achievements {
    font-size: 0.6rem;
  }
  .card-header {
    font-size: 0.6rem;
    margin-bottom: 0.375rem;
  }
  .sc-achievements li {
    margin-bottom: 1px;
  }
  .sc-achievements li::before {
    margin-right: 6px;
  }
  /* Mobile Layout Fixes */
  /* .desktop-hero-section {
    padding-top: 130px; 
    height: auto;
    min-height: 100dvh;
  } */
}

/* --- ABOUT SECTION --- */
 @media (max-width: 1024px) {
  .about_interactive {
    grid-template-columns:1fr 1fr;
    padding: 4rem 2rem;
    gap: 3rem;
    text-align: center;
  }

  .text-content {
    align-items: center;
    padding: 0;
  }

  .text-content p {
    text-align: center;
  }

  .frame {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .frame-bottom {
    width: 100%; 
    gap: 2rem;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .about_interactive {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
    height: auto;
    min-height: auto;
    text-align: center;
  }
  .text-content {
    padding: 0;
    align-items: center;
  }
  .text-content p {
    text-align: center;
    font-size: 1.1rem;
  }
  .photo {
    width: 100%;
    max-width: 240px;
    height: auto;
    padding: 10px;
  }
  .photo img {
    height: auto;
    width: 100%;
    aspect-ratio: 240/260; 
  }

  .frame > .photo {
    width: clamp(200px, 60vw, 260px);
  }

  .frame-bottom {
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
  }

  .frame-bottom .photo {
    width: 48%;
    max-width: 200px; 
    min-width: 130px;
  }
  .photo h3 {
    font-size: 0.9rem; 
  }
}

@media (max-width: 360px) {

  .frame-bottom {
    flex-wrap: wrap;
  }
  .frame-bottom .photo {
    width: 100%;
    max-width: 240px;
  }
}

/* --- TEAM SECTION --- */

/* Tablet Styles (max-width: 1024px) */
@media (max-width: 1024px) {
  .glass-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .glass-card {
    flex-direction: row;
  }
  .card-image-box {
    width: 40%;
  }
  .card-image-box img {
    filter: opacity(1);
  }
  .card-info-box {
    padding: 1.2rem;
  }
  .card-name {
    font-size: 0.8rem;
  }
  .card-role {
    font-size: 0.6rem;
  }
  .card-desc {
    -webkit-line-clamp: 3;
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) {
  .glass-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem; 
  }
  .glass-team-grid .glass-card-wrapper:last-child:nth-child(odd) {
    max-width: calc(50% - 0.5rem);
  }
  .glass-card-wrapper {
    height: auto;
    min-height: auto;
  }
  .glass-card {
    flex-direction: column;
    height: 100%;
    aspect-ratio: auto;
  }
  .card-image-box {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    min-height: 180px;
  }
  .card-image-box img {
    object-position: top center;
    /* filter: none; */
  }
  .card-vertical-line {
    display: none;
  }
  .card-info-box {
    padding: 1rem;
    flex: 1;
    justify-content: flex-start;
  }
  .card-name {
    font-size: 0.85rem;
  }
  .card-role {
    font-size: 0.65rem;
  }
  .card-desc {
    -webkit-line-clamp: 3;
    font-size: 0.65rem;
  }
  .card-socials {
    margin-top: auto;
  }
}

@media (max-width: 480px) {
  .glass-team-grid {
    gap: 0.75rem;
  }
  .glass-team-grid .glass-card-wrapper:last-child:nth-child(odd) {
    max-width: calc(50% - 0.375rem);
  }
  .card-info-box {
    padding: 0.75rem;
  }
  .card-name {
    font-size: 0.7rem;
  }
  .card-desc {
    -webkit-line-clamp: 3;
    font-size: 0.65rem;
  }
}

/* --- TIMELINE SECTION --- */

@media (max-width: 1024px) {
  /* --- TIMELINE SECTION --- */
  .event-node {
    gap: 1.2rem;
  }

  .image-mask {
    width: 45%;
    max-height: 25vh;
  }

  /* .meta-data h2 {
    Handled by clamp
    font-size: 1.6rem;
  } */

  .meta-data .year-label {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .meta-data p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 0.4rem;
  }
}

@media (max-width: 768px) {
  .event-node {
    width: 280px; 
    flex-direction: column; 
    gap: 0.8rem;
  }
  .image-mask {
    width: 100%;
    max-height: 20dvh;
  }
  .meta-data {
    text-align: center;
    max-height: 15dvh;
    overflow: hidden;
  }
}

/* --- FOOTER SECTION --- */

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1.5rem;
  }
  .footer-col p {
    max-width: 100%;
  }
  .footer-social-links {
    gap: 0.75rem;
  }
  .footer-social-links a {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .map-wrapper {
    height: 120px;
    min-height: auto;
    aspect-ratio: auto;
  }
  .footer-heading {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
}
