/* ==========================================================================
   MUHAMMAD USAMA — AI & MACHINE LEARNING RESEARCHER PORTFOLIO
   ========================================================================== */

:root {
  --bg-deep-black: #050507;
  --bg-dark-burgundy: #100609;
  --color-red-accent: #ff2a3f;
  --color-red-glow: rgba(255, 42, 63, 0.4);
  --color-red-subtle: rgba(255, 42, 63, 0.12);
  --color-text-light: #ffffff;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --glass-bg: rgba(13, 16, 24, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-red: rgba(255, 42, 63, 0.35);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --radius-card: 20px;
  --radius-pill: 100px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  background-color: var(--bg-deep-black);
  color: var(--color-text-light);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Fixed Fullscreen Background Canvas Layer */
#scroll-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  object-fit: cover;
  pointer-events: none;
  display: block;
  will-change: transform;
}

/* Atmospheric Red Glow Layer Behind Canvas */
.red-atmosphere-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 70% 35%, rgba(180, 10, 30, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(120, 5, 20, 0.18) 0%, transparent 50%);
}

/* Dark Mirror / Glass Texture Layer */
.mirror-overlay-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.15) 0%, rgba(5,5,7,0.75) 100%);
}

/* Preloader Overlay */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-deep-black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-brand {
  font-weight: 800;
  letter-spacing: 0.15em;
  font-size: 1.2rem;
  color: var(--color-text-light);
}

.loader-bar-container {
  width: 240px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

#loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-red-accent), #ff7b88);
  transition: width 0.1s ease;
}

#loader-text {
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   MODERN SCROLL-DIRECTION FLOATING PILL NAVIGATION BAR
   ========================================================================== */
.nav-header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.nav-header.nav-hidden {
  transform: translate3d(0, -140%, 0);
}

.nav-header.nav-visible {
  transform: translate3d(0, 0, 0);
}

.nav-pill-container {
  pointer-events: auto;
  width: calc(100% - 48px);
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.nav-header.nav-scrolled .nav-pill-container {
  border-color: rgba(255, 42, 63, 0.25);
  box-shadow: 0 12px 35px rgba(255, 42, 63, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--color-red-accent);
  color: #000;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.8rem;
}

.logo-text {
  color: var(--color-text-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-light);
}

.nav-btn-contact {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 42, 63, 0.12);
  border: 1px solid rgba(255, 42, 63, 0.3);
  color: var(--color-red-accent) !important;
}

.nav-btn-contact:hover {
  background: var(--color-red-accent);
  color: #000 !important;
  box-shadow: 0 0 15px var(--color-red-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--color-text-light);
  transition: var(--transition-smooth);
}

/* Site Wrapper Layer */
.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   IMAGE-DRIVEN VISUAL CARDS & HOVER SYSTEM
   ========================================================================== */
.glass-card {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 20, 30, 0.7) 0%, rgba(9, 11, 17, 0.85) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  transition: var(--transition-smooth);
  overflow: hidden;
  will-change: transform, box-shadow;
}

/* Light Sweep Sheen Effect on Hover */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 3;
}

.glass-card:hover::before {
  left: 140%;
}

.glass-card:hover {
  border-color: var(--glass-border-red);
  transform: translate3d(0, -6px, 0) scale(1.03);
  box-shadow: 0 16px 40px rgba(255, 42, 63, 0.2);
}

/* Visual Panel Layering */
.visual-panel {
  position: relative;
}

.card-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  will-change: transform;
}

.glass-card:hover .card-bg-layer {
  transform: scale(1.06) translate3d(0, -2px, 0);
  opacity: 0.75;
}

.card-gradient-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.35) 0%, rgba(8, 10, 16, 0.92) 100%);
  pointer-events: none;
}

.card-content-layer {
  position: relative;
  z-index: 2;
}

/* Dynamic Image Background Classes */
.about-bg-image {
  background-image: radial-gradient(circle at 70% 30%, rgba(255, 42, 63, 0.3) 0%, transparent 70%), linear-gradient(135deg, #121828 0%, #05070e 100%);
}

.highlight-bg-1 {
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 42, 63, 0.25) 0%, transparent 60%), linear-gradient(135deg, #181022 0%, #090610 100%);
}

.highlight-bg-2 {
  background-image: radial-gradient(circle at 80% 50%, rgba(56, 189, 248, 0.2) 0%, transparent 60%), linear-gradient(135deg, #0e1828 0%, #050912 100%);
}

.research-bg-image {
  background-image: radial-gradient(circle at 85% 20%, rgba(255, 42, 63, 0.25) 0%, transparent 60%), linear-gradient(135deg, #141824 0%, #060810 100%);
}

.proj-bg-1 {
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 42, 63, 0.35) 0%, transparent 60%), linear-gradient(135deg, #121626 0%, #060810 100%);
}

.proj-bg-2 {
  background-image: radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.28) 0%, transparent 60%), linear-gradient(135deg, #0d1828 0%, #050810 100%);
}

.proj-bg-3 {
  background-image: radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.28) 0%, transparent 60%), linear-gradient(135deg, #181024 0%, #080512 100%);
}

/* ==========================================================================
   MULTI-DIRECTIONAL STAGGERED ENTRANCE ANIMATIONS
   ========================================================================== */
[data-anim] {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-anim="slide-left"] {
  transform: translate3d(-45px, 0, 0);
}

[data-anim="slide-right"] {
  transform: translate3d(45px, 0, 0);
}

[data-anim="slide-bottom"] {
  transform: translate3d(0, 45px, 0);
}

[data-anim="scale-up"] {
  transform: scale(0.9) translate3d(0, 25px, 0);
}

[data-anim="heading-reveal"] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

[data-anim].in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Section Common Styling */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.label-number {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--color-red-accent);
  font-weight: 600;
}

.label-text {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-red {
  color: var(--color-red-accent);
}

.font-mono {
  font-family: var(--font-code);
}

.mb-40 {
  margin-bottom: 40px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
}

.hero-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 620px; /* Constrained left block ensuring portrait face is 100% visible */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(255, 42, 63, 0.1);
  border: 1px solid rgba(255, 42, 63, 0.25);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-red-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-red-accent);
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.badge-text {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-red-accent);
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.highlight-red {
  color: var(--color-red-accent);
  text-shadow: 0 0 30px rgba(255, 42, 63, 0.4);
}

.hero-degree {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary-red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--color-red-accent);
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
  box-shadow: 0 0 20px rgba(255, 42, 63, 0.3);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-primary-red:hover {
  background: #ff4757;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 42, 63, 0.5);
}

.btn-primary-red:hover .btn-arrow {
  transform: translateX(5px);
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-ghost:hover {
  color: var(--color-text-light);
}

.hero-quick-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  max-width: 560px;
}

.quick-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text-light);
  font-family: var(--font-code);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  font-weight: 500;
}

.quick-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
}

.about-main-card {
  padding: 40px;
}

.about-bio {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 20px;
  margin-bottom: 36px;
}

.about-details-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.detail-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-card {
  padding: 30px;
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

.highlight-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.highlight-card p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================================================
   RESEARCH SECTION (STRONGEST CONTENT SECTION)
   ========================================================================== */
.research-section {
  padding: 100px 0;
}

.research-hero-card {
  padding: 50px;
}

.conference-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-red-accent);
  margin-bottom: 16px;
}

.research-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.research-authors {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 42, 63, 0.08);
  border: 1px solid rgba(255, 42, 63, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--color-red-accent);
  font-weight: 600;
  margin-bottom: 40px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-red-accent);
  border-radius: 50%;
}

.research-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.info-heading {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.research-info p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  text-align: center;
}

.metric-val {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-code);
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-top: 4px;
}

/* Benchmark Bar Visualizer */
.benchmark-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benchmark-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.model-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.winner-badge {
  background: var(--color-red-accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-xgboost {
  background: linear-gradient(90deg, var(--color-red-accent), #ff7b88);
  box-shadow: 0 0 12px var(--color-red-glow);
}

/* ==========================================================================
   PROJECTS SECTION & VISUAL CARDS
   ========================================================================== */
.projects-section {
  padding: 100px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.project-card-content {
  position: relative;
  z-index: 2;
}

.project-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-red-accent);
}

.project-arrow-icon {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.project-card:hover .project-arrow-icon {
  color: var(--color-red-accent);
  transform: translateX(6px);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--color-text-light);
}

.project-desc {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tech-tags span {
  font-family: var(--font-code);
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-section {
  padding: 100px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-category-card {
  padding: 30px;
}

.span-full {
  grid-column: 1 / -1;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.category-title svg {
  width: 22px;
  height: 22px;
}

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

.skill-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.skill-pill.highlight {
  background: rgba(255, 42, 63, 0.1);
  border-color: rgba(255, 42, 63, 0.3);
  color: var(--color-red-accent);
}

.skill-pill:hover {
  background: rgba(255, 42, 63, 0.2);
  border-color: var(--color-red-accent);
  color: var(--color-text-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */
.experience-section {
  padding: 100px 0;
}

.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto 80px auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, var(--color-red-accent), rgba(255, 42, 63, 0.1));
  transition: height 1s ease-out;
}

.timeline-item {
  position: relative;
  padding: 30px 30px 30px 60px;
  margin-left: 10px;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 36px;
  width: 12px;
  height: 12px;
  background-color: var(--color-red-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-red-accent);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.role-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.org-name {
  display: block;
  color: var(--color-red-accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 2px;
}

.time-period {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  white-space: nowrap;
}

.role-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Honors Grid */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.honor-card {
  padding: 30px;
}

.honor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.honor-header svg {
  width: 24px;
  height: 24px;
}

.honor-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.honor-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.honor-list li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   CONTACT SECTION & FOOTER
   ========================================================================== */
.contact-section {
  padding: 100px 0;
}

.contact-box {
  padding: 60px;
}

.contact-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.contact-tag {
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-red-accent);
  letter-spacing: 0.15em;
}

.contact-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin: 12px 0;
  letter-spacing: -0.02em;
}

.contact-subtext {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 16px;
}

.contact-card .card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
}

.card-info {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  font-weight: 600;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  color: var(--color-text-light);
}

.brand-desc {
  font-size: 0.78rem;
  color: var(--color-text-dim);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS & BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid, .research-body-grid, .skills-grid, .honors-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-content-grid {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-header {
    top: 12px;
  }

  .nav-pill-container {
    width: calc(100% - 32px);
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 70px);
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    border-left: 1px solid rgba(255, 42, 63, 0.2);
    transition: right 0.4s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

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

  .about-details-list {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    flex-direction: column;
    gap: 4px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-quick-stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-stat-divider {
    width: 100%;
    height: 1px;
  }
}
