/* styles.css */

:root {
  --bg: #02050d;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --accent: #5bbcff;
  --accent-soft: rgba(91, 188, 255, 0.15);
  --image-placeholder: linear-gradient(
    145deg,
    rgba(91, 188, 255, 0.18) 0%,
    rgba(30, 60, 120, 0.35) 50%,
    rgba(10, 20, 45, 0.6) 100%
  );
  --section-pad-x: clamp(1.25rem, 5vw, 5rem);
  --section-pad-y: clamp(5rem, 12vw, 11rem);
  --radius-lg: 32px;
  --radius-md: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  pointer-events: none;

  background-image:
    url("https://grainy-gradients.vercel.app/noise.svg");
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem var(--section-pad-x);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  z-index: 1000;

  background: rgba(2, 5, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.5rem;
  max-width: min(72vw, 52rem);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  align-items: center;

  padding: 7rem var(--section-pad-x) 6rem;
  position: relative;
}

.hero-gradient {
  position: absolute;

  width: 1000px;
  height: 1000px;

  right: -300px;
  top: -300px;

  background:
    radial-gradient(circle,
    rgba(91,188,255,0.22),
    transparent 70%);

  filter: blur(100px);
}

.hero-content {
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: clamp(0.65rem, 1.6vw, 0.8rem);
  line-height: 1.6;
  max-width: 36rem;
}

.hero-title {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  word-break: break-word;
}

.hero-description {
  margin-top: 1.75rem;
  max-width: 42rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  color: var(--muted);
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary-btn,
.secondary-btn {
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.3s ease;
}

.primary-btn {
  background: white;
  color: black;
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.secondary-btn {
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.08);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: var(--section-pad-x);

  display: flex;
  align-items: center;
  gap: 12px;

  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

.section {
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
}

.section-header {
  margin-bottom: 80px;
  max-width: 900px;
}

.section-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  font-size: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.glass-card {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(91, 188, 255, 0.2);
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.about-main {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.about-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--image-placeholder);
  overflow: hidden;
  flex-shrink: 0;
}

.about-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-image.is-hidden {
  display: none;
}

.image-placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 0;
}

.image-orbit {
  position: absolute;
  border: 1px solid rgba(91, 188, 255, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-1 {
  inset: -12px;
}

.orbit-2 {
  inset: -24px;
  opacity: 0.5;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.about-text p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.large-paragraph {
  font-size: 1.1rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.7 !important;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mini-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.mini-image-wrap {
  position: relative;
  width: 100%;
  height: 11rem;
  background: var(--image-placeholder);
  flex-shrink: 0;
}

.mini-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-image.is-hidden {
  display: none;
}

.mini-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.mini-content h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.mini-content p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-item {
  padding: 42px;
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.timeline-item h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.timeline-item p {
  color: var(--muted);
  line-height: 1.8;
}

.tags,
.project-tags {
  margin-top: 1.5rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-tags {
  margin-top: auto;
  padding-top: 1.25rem;
}

.tags span,
.project-tags span {
  padding: 10px 18px;

  border-radius: 999px;

  background: rgba(255,255,255,0.05);

  border: 1px solid rgba(255,255,255,0.06);

  font-size: 0.85rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 32px;
}

.project-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.project-card p {
  line-height: 1.8;
  color: var(--muted);
}

.project-glow {
  position: absolute;
  width: 300px;
  height: 300px;

  background:
    radial-gradient(circle,
    rgba(91,188,255,0.15),
    transparent 70%);

  top: -100px;
  right: -100px;

  filter: blur(40px);
}

.contact-card {
  padding: clamp(2rem, 4vw, 3.5rem);
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card a {
  color: white;
  text-decoration: none;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  word-break: break-word;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-main {
    grid-template-columns: 1fr;
  }

  .about-image-container {
    max-width: 280px;
    margin: 0 auto;
  }

  .nav-links {
    gap: 0.35rem 1rem;
    max-width: 65vw;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .scroll-indicator {
    display: none;
  }

  .timeline-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .publication-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .publication-year {
    font-size: 1.25rem;
  }

  .leadership-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    max-width: 100%;
    justify-content: flex-start;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }
}

.publication-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.publication-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.publication-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}

.publication-content {
  min-width: 0;
}

.publication-content h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.publication-content p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 12px;
}

.publication-location {
  color: rgba(255,255,255,0.45);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 32px;
}

.leadership-card {
  overflow: hidden;
  transition: 0.4s ease;
}

.leadership-card:hover {
  transform: translateY(-8px);
}

.leadership-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--image-placeholder);
}

.leadership-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadership-image.is-hidden {
  display: none;
}

.leadership-content {
  padding: 30px;
}

.leadership-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.leadership-role {
  display: inline-block;
  margin-bottom: 20px;

  color: var(--accent);

  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leadership-content p {
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
}

.honors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 24px;
}

.honor-card {
  padding: 32px;
}

.honor-year {
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.honor-card h3 {
  line-height: 1.4;
  font-size: 1.05rem;
  font-weight: 600;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 28px;
}

.skills-column {
  padding: 36px;
}

.skills-column h3 {
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tags span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Scroll margin for fixed nav anchor jumps */
section[id] {
  scroll-margin-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-card:hover,
  .leadership-card:hover {
    transform: none;
  }
}