/* ========================================
   DESIGN TOKENS & VARIABLES
   ======================================== */
:root {
  /* Colors — Academic dark theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.08);

  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;

  --accent-1: #667eea;
  --accent-2: #764ba2;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-glow: rgba(102, 126, 234, 0.4);

  --highlight-pink: #f093fb;
  --highlight-cyan: #00f2fe;
  --highlight-gold: #fee140;
  --highlight-green: #00c851;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-serif: 'Lora', serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vh, 140px);
  --container-max: 1200px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-1) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

::selection {
  background: var(--accent-1);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ========================================
   THREE.JS CANVAS
   ======================================== */
#three-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
#cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              border-color 0.3s ease;
  mix-blend-mode: difference;
}

/* ========================================
   SCROLL PROGRESS
   ======================================== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ========================================
   NAVIGATION
   ======================================== */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border-glass);
  transition: transform 0.4s var(--ease-out-expo), background 0.3s ease;
}

#main-nav.hidden { transform: translateY(-100%); }

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  color: var(--text-secondary);
  transition: color 0.3s ease, background 0.3s ease;
  letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.btn-glow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* ========================================
   SECTIONS — GENERAL
   ======================================== */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-pad) 40px;
}

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

.section-header { margin-bottom: 50px; }

.section-number {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-1);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-line {
  width: 60px; height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* ========================================
   REVEAL ANIMATION
   ======================================== */
.reveal-text {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   HERO SECTION
   ======================================== */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

.hero-content { max-width: 850px; }

.hero-greeting {
  font-size: 0.95rem;
  color: var(--accent-1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f0f0f5 0%, #667eea 50%, #764ba2 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  margin-bottom: 16px;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-divider {
  color: var(--accent-1);
  font-size: 1.5rem;
}

.hero-description {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto 32px;
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-metric {
  text-align: center;
}

.hero-metric-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-metric-plus {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-1);
}

.hero-metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-metric-sep {
  width: 1px;
  height: 40px;
  background: var(--border-glass);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 100px;
  border: none;
  cursor: none;
  transition: all 0.3s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-glass);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: var(--accent-1);
  transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
  animation: fadeInUp 1s ease 1.5s both;
}

.mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 11px;
  position: relative;
}

.wheel {
  width: 4px; height: 7px;
  background: var(--accent-1);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   ABOUT / BIOGRAPHY
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-text p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

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

.about-intro {
  font-size: 1.1rem !important;
  color: var(--text-primary) !important;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.stat { text-align: center; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.05em;
}

/* About Cards */
.about-card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateX(8px);
  border-color: var(--accent-1);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.card-icon { font-size: 1.8rem; margin-bottom: 10px; }

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========================================
   EXPERIENCE / TIMELINE
   ======================================== */
#experience { align-items: flex-start; }

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 2;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-1);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.timeline-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px 28px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  border-color: var(--accent-1);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.1);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(102, 126, 234, 0.15);
  color: var(--accent-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.timeline-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-card h4 {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.timeline-inst {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 10px;
}

.timeline-card > p:last-child {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   PUBLICATIONS
   ======================================== */
#publications { align-items: flex-start; }

/* Summary Cards */
.pub-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.pub-summary-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 20px 28px;
  text-align: center;
  flex: 1;
  min-width: 130px;
  transition: border-color 0.3s ease;
}

.pub-summary-card:hover { border-color: var(--accent-1); }

.pub-summary-card.accent {
  background: rgba(102, 126, 234, 0.08);
  border-color: rgba(102, 126, 234, 0.2);
}

.pub-summary-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.pub-summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Tabs */
.pub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.pub-tab {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--border-glass);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pub-tab:hover { border-color: var(--accent-1); color: var(--text-primary); }

.pub-tab.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

/* Publication List */
.pub-list {
  display: none;
}

.pub-list.active { display: block; }

.pub-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.3s ease;
}

.pub-item:last-child { border-bottom: none; }

.pub-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
}

.pub-year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-1);
  min-width: 48px;
  padding-top: 3px;
}

.pub-content { flex: 1; }

.pub-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.pub-authors strong { color: var(--highlight-cyan); }

.pub-venue {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 6px;
}

.pub-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-1);
  transition: color 0.2s ease;
}

.pub-link:hover { color: var(--highlight-cyan); }

.award-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(254, 225, 64, 0.15);
  color: var(--highlight-gold);
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

/* ========================================
   PATENTS & AWARDS
   ======================================== */
#patents { align-items: flex-start; }

.patents-awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.pa-column-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Patent Items */
.patent-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color 0.3s ease;
}

.patent-item:hover { border-color: var(--accent-1); }

.patent-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.patent-status.granted {
  background: rgba(0, 200, 81, 0.15);
  color: var(--highlight-green);
}

.patent-status.published {
  background: rgba(102, 126, 234, 0.15);
  color: var(--accent-1);
}

.patent-status.filed {
  background: rgba(254, 225, 64, 0.15);
  color: var(--highlight-gold);
}

.patent-item h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.patent-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Award Items */
.award-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  margin-bottom: 12px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.award-item:hover {
  border-color: var(--highlight-gold);
  transform: translateX(4px);
}

.award-icon { font-size: 1.6rem; flex-shrink: 0; }

.award-item h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.award-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================================
   EDUCATION
   ======================================== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.edu-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px 28px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s var(--ease-out-expo);
}

.edu-card:hover {
  border-color: var(--accent-1);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.12);
  transform: translateY(-6px);
}

.edu-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.edu-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-1);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.edu-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.edu-card h4 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.edu-thesis {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--accent-1);
}

.edu-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(102, 126, 234, 0.12);
  color: var(--accent-1);
  letter-spacing: 0.03em;
}

/* ========================================
   SKILLS
   ======================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.skill-category {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
  border-color: var(--accent-1);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.1);
}

.skill-category-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-items { display: flex; flex-direction: column; gap: 16px; }

.skill-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: auto auto;
  gap: 3px 10px;
  align-items: center;
}

.skill-icon {
  grid-row: 1 / 3;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-item span {
  font-size: 0.88rem;
  font-weight: 500;
}

.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
  width: 0%;
  transition: width 1.2s var(--ease-out-expo);
}

/* Certifications */
.certs-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.certs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.cert-chip:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.contact-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.contact-details { display: flex; flex-direction: column; gap: 10px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out-expo);
}

.contact-link:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
  transform: translateX(6px);
}

.contact-link-icon { font-size: 1.15rem; }

/* Contact Form */
.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  cursor: none;
}

.btn-arrow { transition: transform 0.3s var(--ease-out-expo); }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }

/* ========================================
   FOOTER
   ======================================== */
#main-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 40px;
  border-top: 1px solid var(--border-glass);
}

.footer-interests {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-interests span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-glass);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-glass);
}

#main-footer > p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .patents-awards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
  .section { padding: var(--section-pad) 20px; }
  #main-nav { padding: 14px 20px; }
  .nav-links, .nav-cta { display: none; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  .skills-grid,
  .edu-grid { grid-template-columns: 1fr; }

  .about-stats { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-metrics { gap: 16px; }
  .hero-metric-sep { width: 30px; height: 1px; }

  .pub-tabs { flex-wrap: wrap; }

  .timeline { padding-left: 30px; }
  .timeline::before { left: 8px; }
  .timeline-dot { left: -26px; width: 12px; height: 12px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.6rem; }
  .hero-title-wrapper { flex-direction: column; gap: 4px; }
  .hero-divider { display: none; }
  .about-stats { flex-direction: column; gap: 16px; }
  .pub-item { flex-direction: column; gap: 6px; }
  .pub-year { min-width: unset; }
}
