/* ==========================================================================
   Design System & Modern CSS Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #080b11;
  --bg-secondary: #0f1523;
  --bg-tertiary: #161f36;
  --card-bg: rgba(18, 26, 44, 0.65);
  --card-hover-bg: rgba(28, 38, 64, 0.85);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-hover-border: rgba(99, 102, 241, 0.4);

  /* Vibrant Accents */
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --glow-blue: rgba(59, 130, 246, 0.25);
  --glow-cyan: rgba(6, 182, 212, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Layout & Transitions */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Particle Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* Ambient Radial Glow Backdrops */
.ambient-glow-1 {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.ambient-glow-2 {
  position: absolute;
  top: 1400px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cyan-gradient-text {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   Navigation Bar (Glassmorphism)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: var(--max-width);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  top: 0.5rem;
  background: rgba(10, 15, 28, 0.92);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand .brand-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon-link {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 0.5rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-icon-link:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.hero-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

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

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.25rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--glow-blue);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Hero Visual / Terminal Card */
.hero-visual {
  position: relative;
}

.terminal-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.15);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.terminal-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(6, 182, 212, 0.2);
}

.terminal-header {
  background: rgba(10, 15, 28, 0.9);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.terminal-line {
  margin-bottom: 0.5rem;
}

.terminal-prompt {
  color: var(--accent-cyan);
  margin-right: 0.5rem;
}

.terminal-key {
  color: var(--accent-indigo);
}

.terminal-val {
  color: #a5f3fc;
}

.terminal-success {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   Research Focus & Expertise Cards
   ========================================================================== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.research-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

.research-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.1);
}

.research-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.research-card:hover .card-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
}

.research-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.research-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Interactive Projects Showcase
   ========================================================================== */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 0.6rem 1.35rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--glow-blue);
}

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

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-hover-border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(99, 102, 241, 0.15);
}

.project-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #0b101d;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.06);
}

.project-overlay-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
}

.project-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.project-link:hover {
  color: #fff;
  transform: translateX(3px);
}

/* ==========================================================================
   Tech Stack & Skills Grid
   ========================================================================== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.skill-category-card:hover {
  border-color: var(--card-hover-border);
  background: var(--card-hover-bg);
  transform: translateY(-4px);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1rem;
}

.skill-category-header i {
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

.skill-category-header h3 {
  font-size: 1.2rem;
}

.skill-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.skill-badge:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  color: #fff;
  transform: scale(1.04);
}

/* ==========================================================================
   Education & Experience Timeline
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-indigo), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 2.75rem;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

.timeline-content {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  border-color: var(--card-hover-border);
  background: var(--card-hover-bg);
  transform: translateX(4px);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.timeline-org {
  color: var(--text-accent);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #05080e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

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

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 4px 15px var(--glow-blue);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 2.25rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-title {
    font-size: 2.85rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    width: calc(100% - 1.5rem);
    padding: 0.75rem 1.25rem;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.98);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    display: none;
    margin-top: 0.5rem;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Education & Academic Cards
   ========================================================================== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.education-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

.education-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-degree {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-school {
  color: var(--accent-cyan);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edu-badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

.edu-thesis {
  background: rgba(10, 15, 28, 0.65);
  border-left: 3px solid var(--accent-indigo);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
  font-size: 0.925rem;
  color: #cbd5e1;
  line-height: 1.6;
}

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

.edu-courses-title {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}

.edu-courses-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.course-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.course-chip .grade {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: 600;
}

.honors-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.honors-icon {
  font-size: 1.8rem;
  color: #fbbf24;
}

.honors-text h4 {
  font-size: 1rem;
  color: #f8fafc;
  margin-bottom: 0.2rem;
}

.honors-text p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
}

/* ==========================================================================
   Sequential "Train-Style" Education & Experience Timeline with Logos
   ========================================================================== */
.seq-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.seq-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 32px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-indigo), rgba(99, 102, 241, 0.2));
  z-index: 0;
}

.seq-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}

.seq-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  transform: translateX(6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(99, 102, 241, 0.15);
}

.seq-logo-box {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.seq-card:hover .seq-logo-box {
  border-color: var(--accent-cyan);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.seq-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seq-content {
  flex-grow: 1;
}

.seq-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seq-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.seq-subtitle {
  color: var(--accent-cyan);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.seq-badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.seq-desc {
  background: rgba(10, 15, 28, 0.6);
  border-left: 3px solid var(--accent-indigo);
  padding: 0.9rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.85rem 0 1.15rem;
  font-size: 0.925rem;
  color: #cbd5e1;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .seq-card {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .seq-timeline::before {
    left: 20px;
  }
}

/* ==========================================================================
   Enhanced Larger Logo Box for Sequential Timeline
   ========================================================================== */
.seq-timeline::before {
  left: 44px;
}

.seq-logo-box {
  width: 88px;
  height: 88px;
  min-width: 88px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  transition: var(--transition-smooth);
}

.seq-card:hover .seq-logo-box {
  border-color: var(--accent-cyan);
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.45);
}

.seq-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 640px) {
  .seq-timeline::before {
    left: 24px;
  }
}

/* ==========================================================================
   Certifications & Specializations Grid
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

.cert-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(6, 182, 212, 0.15);
}

.cert-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent-cyan);
}

.cert-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.cert-info p {
  color: var(--text-muted);
  font-size: 0.825rem;
  font-family: var(--font-mono);
  margin: 0;
}

/* ==========================================================================
   Contact / Academic Inquiries Section
   ========================================================================== */
.contact-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.15);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.contact-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.contact-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Secondary Button in Project Card */
.project-btn-secondary {
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.project-btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Reveal Animation */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Academic Advisor Links */
.academic-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-smooth);
}

.academic-link i {
  font-size: 0.75rem;
}

.academic-link:hover {
  color: #fff;
  text-decoration: underline;
  transform: translateY(-1px);
}

/* Enhanced JSON Syntax Highlighting for Terminal */
.json-container {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.json-row {
  display: table-row;
  line-height: 1.65;
}

.json-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.json-ln {
  display: table-cell;
  width: 28px;
  text-align: right;
  padding-right: 14px;
  color: #475569;
  user-select: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.json-code {
  display: table-cell;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.json-key { color: #38bdf8; font-weight: 500; }
.json-str { color: #34d399; }
.json-brace { color: #c084fc; font-weight: 600; }
.json-bracket { color: #f472b6; font-weight: 600; }
.json-bool { color: #fbbf24; font-weight: 600; }
.json-colon { color: #94a3b8; }
.json-comma { color: #64748b; }

/* ==========================================================================
   Advanced Interactive IDE Card with Tabs, Python Syntax & Live Run Output
   ========================================================================== */
.terminal-card {
  background: rgba(11, 17, 33, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7), 0 0 50px rgba(99, 102, 241, 0.18);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.terminal-header {
  background: rgba(7, 11, 22, 0.98);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.75rem;
}

.terminal-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ide-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.ide-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.ide-tab.active {
  background: rgba(30, 41, 59, 0.85);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.ide-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ide-btn-run {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.ide-btn-run:hover {
  background: rgba(16, 185, 129, 0.3);
  color: #fff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Python Syntax Highlighting Tokens */
.py-kw { color: #f43f5e; font-weight: 600; } /* def, class, return, import, from */
.py-cls { color: #fbbf24; font-weight: 600; } /* Class names */
.py-func { color: #60a5fa; } /* Function names */
.py-self { color: #f472b6; font-style: italic; } /* self */
.py-str { color: #34d399; } /* Strings */
.py-num { color: #a78bfa; } /* Numbers */
.py-comment { color: #64748b; font-style: italic; } /* Comments */
.py-param { color: #e2e8f0; }
.py-op { color: #38bdf8; }

/* Simulation Console Output Drawer */
.sim-console {
  background: #050811;
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: #cbd5e1;
  display: none;
  max-height: 140px;
  overflow-y: auto;
}

.sim-console.active {
  display: block;
  animation: slideDown 0.35s ease;
}

.sim-line {
  margin-bottom: 0.35rem;
  display: flex;
  gap: 0.5rem;
}

.sim-prefix { color: #10b981; }
.sim-val { color: #38bdf8; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Option 1: Academic Research & Affiliations Profile Card
   ========================================================================== */
.academic-profile-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(99, 102, 241, 0.12);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.academic-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.academic-profile-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(6, 182, 212, 0.2);
  transform: translateY(-4px);
}

.apc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.apc-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.apc-logo-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.apc-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.apc-badge {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-weight: 600;
}

.apc-degrees {
  margin-bottom: 1.5rem;
}

.apc-degree-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.apc-degree-icon {
  color: var(--accent-indigo);
  font-size: 1.1rem;
  margin-top: 2px;
}

.apc-degree-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.apc-degree-text span {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.apc-pillars-title {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.85rem;
}

.apc-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.apc-pillar-item {
  background: rgba(10, 15, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  transition: var(--transition-smooth);
}

.apc-pillar-item:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(99, 102, 241, 0.3);
  color: #fff;
  transform: translateX(4px);
}

.apc-pillar-item i {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

.apc-footer {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.9rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.825rem;
  color: #a7f3d0;
  font-weight: 500;
}

.apc-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

.apc-status-banner {
  margin: 0.25rem 0 1rem 0;
  padding: 0.65rem 0.95rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.825rem;
  color: #a7f3d0;
  font-weight: 500;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.12);
}

.apc-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Design (Screen Optimization)
   ========================================================================== */

/* Prevent horizontal overflow on mobile browsers */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-badge {
    margin: 0 auto 1.25rem;
  }
  .hero-description {
    margin: 0 auto 2rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-title {
    font-size: 2.85rem;
  }
  .academic-profile-card {
    max-width: 580px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  /* Navigation Bar Mobile Optimization */
  .navbar {
    width: calc(100% - 1.5rem);
    top: 0.75rem;
    padding: 0.75rem 1.15rem;
  }

  .nav-brand span:first-child {
    font-size: 1.25rem;
  }

  .brand-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.85rem;
    display: none;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(99, 102, 241, 0.2);
    animation: mobileMenuSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-sm);
    width: 100%;
    display: block;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(99, 102, 241, 0.15);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
  }

  .nav-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
  }

  /* Section Spacings & Typography */
  .container {
    padding: 0 1.15rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
  }

  .section-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 0.925rem;
    line-height: 1.55;
  }

  /* Hero Section */
  .hero-section {
    padding: 6.5rem 0 3.5rem;
    min-height: auto;
  }

  .hero-content {
    text-align: left;
  }

  .hero-badge {
    margin: 0 0 1.15rem 0;
    font-size: 0.775rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-title {
    font-size: clamp(2.15rem, 8vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    line-height: 1.4;
  }

  .hero-description {
    font-size: 0.925rem;
    line-height: 1.6;
    margin: 0 0 1.75rem 0;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.925rem;
  }

  /* Academic Profile Card on Mobile */
  .academic-profile-card {
    padding: 1.4rem 1.15rem;
    border-radius: var(--radius-md);
    max-width: 100%;
  }

  .apc-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .apc-logo-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .apc-badge {
    font-size: 0.725rem;
    padding: 0.25rem 0.6rem;
  }

  .apc-status-banner {
    font-size: 0.785rem;
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
    margin: 0.2rem 0 0.85rem 0;
  }

  .apc-divider {
    margin-bottom: 1rem;
  }

  .apc-degree-item {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .apc-degree-icon {
    font-size: 1rem;
    margin-top: 2px;
  }

  .apc-degree-text strong {
    font-size: 0.875rem;
  }

  .apc-degree-text span {
    font-size: 0.775rem;
  }

  .apc-pillars-title {
    font-size: 0.75rem;
    margin-bottom: 0.65rem;
  }

  .apc-pillars {
    gap: 0.55rem;
    margin-bottom: 0;
  }

  .apc-pillar-item {
    padding: 0.55rem 0.75rem;
    font-size: 0.825rem;
    gap: 0.65rem;
  }

  /* Education & Experience Timelines */
  .seq-timeline {
    padding-left: 0;
  }

  .seq-timeline::before {
    display: none;
  }

  .seq-card {
    flex-direction: column;
    padding: 1.35rem 1.15rem;
    gap: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
  }

  .seq-logo-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .seq-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
  }

  .seq-title {
    font-size: 1.15rem;
  }

  .seq-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }

  .seq-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .seq-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .edu-courses-title {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .edu-courses-list {
    gap: 0.45rem;
  }

  .course-chip {
    font-size: 0.775rem;
    padding: 0.35rem 0.65rem;
  }

  /* Project Filter Tabs - Mobile App Swipeable Carousel */
  .project-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.5rem 0.85rem 0.5rem;
    margin: 0 -0.5rem 1.75rem -0.5rem;
    scrollbar-width: none;
  }

  .project-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 1.1rem;
    font-size: 0.825rem;
  }

  /* Projects Grid on Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    border-radius: var(--radius-md);
  }

  .project-img-wrapper {
    height: 195px;
  }

  .project-overlay-badge {
    font-size: 0.725rem;
    padding: 0.25rem 0.6rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .project-content {
    padding: 1.35rem 1.15rem;
  }

  .project-title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.65rem;
  }

  .project-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1.15rem;
  }

  .project-tags {
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .project-tag {
    font-size: 0.725rem;
    padding: 0.25rem 0.55rem;
  }

  .project-footer {
    padding-top: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .project-link {
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-sm);
  }

  /* Research Areas on Mobile */
  .research-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .research-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .research-card h3 {
    font-size: 1.15rem;
  }

  .research-card p {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  /* Skills on Mobile */
  .skills-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .skill-category-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .skill-category-header h3 {
    font-size: 1.1rem;
  }

  .skill-items-list {
    gap: 0.45rem;
  }

  .skill-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  /* Contact on Mobile */
  .contact-card {
    padding: 2.25rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .contact-title {
    font-size: 1.65rem;
    margin-bottom: 0.65rem;
  }

  .contact-desc {
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
  }

  .contact-links {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .contact-link-item {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
  }

  /* Footer on Mobile */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@keyframes mobileMenuSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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