/* ==========================================================================
   Clinical Biotech Portfolio Stylesheet
   Pendyala YuvaRaj — Computational Biology & Scientific Software
   Aesthetic: Clinical High-End Medical 3D / Clean Alabaster / Surgical Teal & Indigo
   ========================================================================== */

/* Design Tokens */
:root {
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Color Palette matching reference mockup */
  --bg-page: #F8FAFD;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F8FAFC;
  
  --text-primary: #0B132B;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  --accent-teal: #0D9488;
  --accent-teal-hover: #0F766E;
  --accent-teal-light: #CCFBF1;
  --accent-cyan: #06B6D4;
  --accent-indigo: #6366F1;
  --accent-emerald: #10B981;

  --border-card: #E2E8F0;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(13, 148, 136, 0.35);

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 8px 24px -4px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 16px 36px -6px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(13, 148, 136, 0.08);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  /* 8px Spacing Scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;

  --container-max: 1200px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sleek Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-page);
}

/* Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-cyan), var(--accent-indigo));
  z-index: 10000;
  transition: width 0.05s ease-out;
}

/* Fixed 3D WebGL Background Canvas */
#webgl-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Page Wrapper */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ==========================================================================
   Header & Navbar (Matches Reference Mockup)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 64px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
  background: rgba(248, 250, 253, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(248, 250, 253, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-link .brand-arrow {
  font-size: 0.8rem;
  margin-left: 2px;
  color: var(--text-muted);
  vertical-align: super;
  transform: translateY(-6px);
  display: inline-block;
  font-family: var(--font-body);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: transparent;
  border: 1px solid #1E293B;
  border-radius: var(--radius-sm);
  color: #1E293B;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-resume:hover {
  background: #1E293B;
  color: #FFFFFF;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-primary {
  background-color: var(--accent-teal);
  color: #FFFFFF;
  border: 1px solid var(--accent-teal);
}

.btn-primary:hover {
  background-color: var(--accent-teal-hover);
  border-color: var(--accent-teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-outline {
  background-color: #FFFFFF;
  color: #0F172A;
  border: 1px solid #0F172A;
}

.btn-outline:hover {
  background-color: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   Hero Section (Clean, Open, Text Sits Directly on Page)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-3) 0 var(--space-2) 0;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100svh - 96px);
  width: 100%;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  margin-top: auto;
  margin-bottom: auto;
}

.hero-text-block {
  max-width: 560px;
}

/* Eyebrow Technical Tag */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent-teal);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

/* Display Headline - Balanced, Clamped to 3 lines, No Awkward Breaks */
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  max-width: 540px;
  text-wrap: balance;
}

.hero-title-line {
  display: block;
}

@media (min-width: 993px) {
  .hero-title-line.no-break {
    white-space: nowrap;
  }
}

/* Bio Leadoff */
.hero-lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* 3D Visual Frame on the Right with Background Glow & Engineering Grid */
.hero-visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  pointer-events: none;
}

.hero-visual-frame::before {
  content: '';
  position: absolute;
  inset: -10% -18% -10% -12%;
  background-image: 
    radial-gradient(circle at 70% 45%, rgba(45, 212, 191, 0.35) 0%, rgba(45, 212, 191, 0.12) 30%, transparent 54%),
    radial-gradient(rgba(148, 163, 184, 0.28) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  background-position: center, center;
  opacity: 0.95;
  pointer-events: none;
  z-index: -1;
}

/* Floating Technical Genomic HUD Markers Matching IMAGE 2 */
.hud-marker {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748B;
  opacity: 0.72;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  user-select: none;
}

.hud-marker-1 {
  top: 10%;
  right: 26%;
}

.hud-marker-2 {
  top: 24%;
  right: 10%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hud-label-group {
  text-align: right;
  line-height: 1.35;
}

.hud-leader-svg {
  margin-top: -6px;
  overflow: visible;
}

.hud-marker-3 {
  bottom: 26%;
  left: 16%;
}

.hud-marker-4 {
  bottom: 20%;
  right: 28%;
}

.hud-line-horiz {
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: rgba(148, 163, 184, 0.55);
}

.hud-line-diag {
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: rgba(148, 163, 184, 0.55);
  transform: rotate(-30deg);
}

@media (max-width: 1100px) {
  .hud-marker {
    display: none !important;
  }
}

/* ==========================================================================
   Metrics Strip (Flat on page background matching IMAGE 2)
   ========================================================================== */
.metrics-strip {
  width: 100%;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--space-4) 0 var(--space-2) 0;
  margin-top: auto;
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.95) 0%, #F8FAFD 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.metric-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 var(--space-4);
}

.metric-column:not(:last-child) {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.metric-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 2.5vw, 2.3rem);
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.metric-caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   Generic Content Section Layouts
   ========================================================================== */
.content-section {
  position: relative;
  padding: var(--space-10) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-6);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--accent-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  text-wrap: balance;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   Clean Cards (About Section)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-4);
}

.clean-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.clean-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.coursework-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.coursework-heading {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

/* ==========================================================================
   Featured Projects (Clean Filterable Cards with Subtle Hover Tilt)
   ========================================================================== */
.filter-bar {
  display: inline-flex;
  gap: 6px;
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: var(--space-5);
}

.filter-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-4);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.project-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-teal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.project-desc {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

.btn-card-action {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-teal);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.btn-card-action:hover {
  color: var(--accent-teal-hover);
}

.project-ext-link {
  color: var(--text-muted);
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.project-ext-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Technical Skills Matrix
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.skill-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Leadership, Experience & Certifications
   ========================================================================== */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.exp-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.exp-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.exp-org {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--accent-teal);
  margin-bottom: var(--space-2);
}

.exp-desc {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.exp-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: center;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.contact-item:hover {
  color: var(--accent-teal);
}

.contact-actions-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 43, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(11, 19, 43, 0.25);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-5);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.modal-spec-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-teal);
  background: var(--accent-teal-light);
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: var(--space-3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-4) 0;
  background: #FFFFFF;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-3);
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero-visual-frame {
    display: none;
  }

  .about-grid, .contact-card {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .metric-column:nth-child(2) {
    border-right: none;
  }

  .metric-column:nth-child(3), .metric-column:nth-child(4) {
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-2);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .page-wrapper {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .site-header {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .site-header nav,
  .nav-links {
    display: none !important;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hud-marker {
    display: none !important;
  }

  .btn-resume {
    padding: 6px 14px;
    font-size: 0.825rem;
    white-space: nowrap;
  }

  .hero-title {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
    line-height: 1.16;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-title-line {
    white-space: normal !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    padding: var(--space-3) 0;
  }

  .metric-column {
    padding: 0 var(--space-1);
  }

  .metric-value {
    font-size: 1.55rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .exp-card {
    flex-direction: column;
  }
}

/* Respect Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-word {
    transform: none !important;
    opacity: 1 !important;
  }
}
