/* ============================================================
   style.css — Modern Linear/Vercel Pure CSS System
   ============================================================ */

:root {
  --bg-color: #070a14;
  --bg-card: rgba(13, 19, 33, 0.65);
  --bg-card-hover: rgba(22, 31, 53, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.5);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  --accent-cyan: #06b6d4;
  --accent-violet: #a855f7;
  --accent-emerald: #10b981;
  --glow-radial: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.22), rgba(168, 85, 247, 0.12) 45%, transparent 70%);
  --grid-opacity: 0.04;
  --shadow-card: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

.light-theme {
  --bg-color: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #ffffff;
  --border-color: rgba(203, 213, 225, 0.7);
  --border-hover: rgba(99, 102, 241, 0.6);
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  --primary: #4f46e5;
  --primary-hover: #3730a3;
  --primary-light: rgba(79, 70, 229, 0.08);
  --accent-cyan: #0284c7;
  --accent-violet: #7c3aed;
  --accent-emerald: #059669;
  --glow-radial: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.12) 40%, rgba(124, 58, 237, 0.08) 75%, transparent 90%);
  --grid-opacity: 0.05;
  --shadow-card: 0 10px 30px -8px rgba(99, 102, 241, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Background Effects & Neural Canvas */
.background-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.radial-glow {
  position: absolute;
  pointer-events: none;
  filter: blur(90px);
  border-radius: 50%;
  opacity: 0.65;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.radial-glow.glow-1 {
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: var(--glow-radial);
  animation: floatGlow1 18s ease-in-out infinite alternate;
}

.radial-glow.glow-2 {
  top: 30%;
  left: -150px;
  width: 700px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.14), transparent 70%);
  animation: floatGlow2 22s ease-in-out infinite alternate;
}

.radial-glow.glow-3 {
  top: 60%;
  right: -150px;
  width: 750px;
  height: 650px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.13), transparent 70%);
  animation: floatGlow3 20s ease-in-out infinite alternate;
}

.radial-glow.glow-4 {
  top: 85%;
  left: 25%;
  width: 700px;
  height: 550px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
  animation: floatGlow1 26s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow1 {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-45%) translateY(35px) scale(1.08); }
  100% { transform: translateX(-55%) translateY(-25px) scale(0.94); }
}

@keyframes floatGlow2 {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-45px) translateX(45px); }
  100% { transform: translateY(35px) translateX(-25px); }
}

@keyframes floatGlow3 {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(50px) scale(1.1); }
  100% { transform: translateY(-35px) scale(0.92); }
}

.svg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: var(--grid-opacity);
  z-index: 0;
}

/* Unified Scroll Animations across All Sections */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  will-change: transform, opacity;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Containers */
.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad {
  padding: 5rem 0;
  position: relative;
  z-index: 10;
}

/* Headers */
.section-header {
  margin-bottom: 2.5rem;
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 600px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.light-theme .navbar.scrolled {
  background: rgba(248, 250, 252, 0.85);
}

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

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo .dot {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn, .mobile-menu-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle-btn:hover, .mobile-menu-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.mobile-menu-btn {
  display: none;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  z-index: 10;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--primary-light);
  border: 1px solid var(--border-hover);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

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

/* Avatar */
.hero-avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  border-radius: 2rem;
  background: linear-gradient(45deg, var(--primary), #a855f7, #06b6d4);
  opacity: 0.35;
  filter: blur(20px);
  transition: opacity 0.3s ease;
}

.avatar-frame {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.hero-avatar-wrapper:hover .avatar-img {
  transform: scale(1.05);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.quick-facts-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.quick-facts-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

.fact-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Experience Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -1.95rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--primary);
}

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
}

.experience-card:hover {
  border-color: var(--border-hover);
}

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

.exp-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.exp-company {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.exp-bullets {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn, .skill-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .skill-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active, .skill-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.3);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.project-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.project-card-year {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.project-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.project-github-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.code-unavailable {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  padding: 0.4rem 0.6rem;
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.project-card:hover .project-card-title {
  color: #a5b4fc;
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.project-skill-tag {
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.project-card:hover .project-skill-tag {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-main);
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.project-details-btn {
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--text-main);
  padding: 0.45rem 0.95rem;
  border-radius: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-details-btn i {
  color: var(--primary);
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.project-details-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.project-details-btn:hover i {
  color: #ffffff;
  transform: translateX(4px);
}

.project-card:hover .project-details-btn {
  border-color: var(--primary);
}

.project-code-link {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.view-details-txt {
  color: var(--primary);
  font-weight: 600;
}

/* Publications List */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

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

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

.pub-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.pub-venue {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.award-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.subsection-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.award-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 0.25rem;
}

.award-card-event {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

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

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.skill-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-light);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.skill-card-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.skill-card-count {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.skill-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cert-icon-box {
  font-size: 1.75rem;
}

.cert-category-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-hover);
}

.cert-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.cert-footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Contact */
.text-center { text-align: center; }
.contact-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0.5rem auto 2rem;
}

.btn-large {
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  border-radius: 14px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0 2rem;
}

.footer-socials a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--primary);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 18, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  overflow-y: auto;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85);
  transform: scale(0.94) translateY(18px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Modal Header */
.modal-header {
  padding: 1.75rem 4rem 1rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

/* Project Photo Gallery */
.project-gallery-wrapper {
  padding: 1.25rem 1.75rem 0.5rem 1.75rem;
}

.gallery-main-stage {
  position: relative;
  width: 100%;
  height: 380px;
  background: rgba(8, 12, 22, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-main-img:hover {
  transform: scale(1.02);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.gallery-nav-btn.prev { left: 0.75rem; }
.gallery-nav-btn.next { right: 0.75rem; }

.gallery-stage-bar {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.gallery-counter {
  pointer-events: auto;
  padding: 0.35rem 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gallery-expand-btn {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.gallery-expand-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.gallery-thumbs-container {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.75rem 0.25rem 0.25rem 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 52px;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  background: #000;
}

.gallery-thumb.active, .gallery-thumb:hover {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 8, 15, 0.95);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-backdrop.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-body {
  padding: 1.5rem 1.75rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-no-img-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
}

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

.modal-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.text-emerald { color: #10b981; }
.text-amber { color: #f59e0b; }
.text-indigo { color: #6366f1; }

.modal-highlights-list {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 850px) {
  .hero-container, .about-grid {
    grid-template-columns: 1fr;
  }
  .hero-avatar-wrapper {
    order: -1;
  }
  .avatar-frame {
    width: 220px;
    height: 220px;
  }
  .hero-name {
    font-size: 2.75rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* Complete Premium Light Theme Design Overhaul */
.light-theme {
  background-color: #f8fafc;
  color: #0f172a;
}

.light-theme .background-ambient {
  opacity: 0.95;
}

.light-theme .navbar {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px rgba(148, 163, 184, 0.1);
}

.light-theme .nav-link {
  color: #475569;
}

.light-theme .nav-link:hover,
.light-theme .nav-link.active {
  color: #4f46e5;
}

.light-theme .nav-logo {
  color: #0f172a;
}

.light-theme .project-card,
.light-theme .experience-card,
.light-theme .pub-card,
.light-theme .skill-card,
.light-theme .cert-card,
.light-theme .quick-facts-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.light-theme .project-card:hover,
.light-theme .experience-card:hover,
.light-theme .pub-card:hover,
.light-theme .skill-card:hover,
.light-theme .cert-card:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2), 0 8px 16px -4px rgba(99, 102, 241, 0.1);
}

.light-theme .project-card-title {
  color: #0f172a;
}

.light-theme .project-card:hover .project-card-title {
  color: #4f46e5;
}

.light-theme .project-card-desc {
  color: #475569;
}

.light-theme .project-skill-tag,
.light-theme .skill-tag,
.light-theme .award-tag {
  background: rgba(79, 70, 229, 0.07);
  color: #4338ca;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.light-theme .project-card:hover .project-skill-tag {
  background: rgba(79, 70, 229, 0.14);
  border-color: rgba(79, 70, 229, 0.4);
  color: #3730a3;
}

.light-theme .project-category-badge {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.3);
}

.light-theme .project-card-year {
  background: rgba(241, 245, 249, 0.9);
  border-color: #cbd5e1;
  color: #64748b;
}

.light-theme .project-details-btn {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.3);
  color: #4338ca;
}

.light-theme .project-details-btn:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.light-theme .project-github-btn {
  background: rgba(241, 245, 249, 0.9);
  border-color: #cbd5e1;
  color: #1e293b;
}

.light-theme .project-github-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.light-theme .filter-btn,
.light-theme .skill-filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: #cbd5e1;
  color: #475569;
}

.light-theme .filter-btn:hover,
.light-theme .skill-filter-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

.light-theme .filter-btn.active,
.light-theme .skill-filter-btn.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.light-theme .modal-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: #cbd5e1;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.light-theme .modal-header {
  border-bottom-color: #e2e8f0;
}

.light-theme .modal-title {
  color: #0f172a;
}

.light-theme .gallery-main-stage {
  background: rgba(241, 245, 249, 0.95);
  border-color: #cbd5e1;
}

.light-theme .gallery-thumb {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.light-theme .modal-close {
  background: rgba(241, 245, 249, 0.9);
  border-color: #cbd5e1;
  color: #1e293b;
}

.light-theme .modal-close:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

.light-theme .btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.light-theme .btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: #cbd5e1;
  color: #0f172a;
}

.light-theme .btn-secondary:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
