/* ═══════════════════════════════════════
   THEME VARIABLES
   ═══════════════════════════════════════ */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1520;
  --bg-card: #111827;
  --bg-card-hover: #162032;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #00d4ff;
  --accent-hover: #00b8e0;
  --accent-dim: rgba(0, 212, 255, 0.08);
  --accent-glow: rgba(0, 212, 255, 0.15);
  --border: #1e293b;
  --border-light: #253042;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(10, 14, 23, 0.85);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-dim: rgba(2, 132, 199, 0.06);
  --accent-glow: rgba(2, 132, 199, 0.12);
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(248, 250, 252, 0.9);
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

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

ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 12px;
  border-radius: 2px;
}

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

.subsection-title {
  font-size: 1.35rem;
  margin: 3rem 0 1.5rem;
  color: var(--text-primary);
}

.accent-dot { color: var(--accent); }

/* ═══════════════════════════════════════
   DOT-MATRIX BACKGROUND
   ═══════════════════════════════════════ */

.section {
  padding: 100px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--accent-dim) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.5;
}

.section-alt {
  background-color: var(--bg-secondary);
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-logo:hover { color: var(--text-primary); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.3) 0%,
    rgba(10, 14, 23, 0.6) 60%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.4) 0%,
    rgba(248, 250, 252, 0.7) 60%,
    var(--bg-primary) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.2s forwards;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.4s forwards;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeInUp 0.6s 0.6s forwards;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.7s forwards;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.75s forwards;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.8s forwards;
}

.hero-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.6s 1s forwards;
}

.hero-socials a {
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: all var(--transition);
}
.hero-socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 0.6s 1.4s forwards;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0e17;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #0a0e17;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 3rem;
}

.about-eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-grid-reza {
  grid-template-columns: 320px 1fr;
}

.about-sidebar {
  display: grid;
  gap: 16px;
}

.about-card,
.about-quick-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.about-name {
  font-size: 1.1rem;
  margin-top: 14px;
}

.about-role {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.about-links a {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.about-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.about-quick-info h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.about-quick-info ul {
  display: grid;
  gap: 8px;
}

.about-quick-info li {
  color: var(--text-secondary);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-quick-info i {
  color: var(--accent);
  width: 14px;
}

.photo-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  position: relative;
  margin: 0 auto;
}

.photo-wrapper::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.3;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.position-card {
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 2rem 0;
}

.position-badge {
  display: inline-block;
  background: var(--accent);
  color: #0a0e17;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.position-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.position-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
}

.tag:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   WORK EXPERIENCE — MINIMAL TIMELINE
   ═══════════════════════════════════════ */

.exp-list {
  margin-top: 3rem;
  display: grid;
  gap: 16px;
}

.exp-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all var(--transition);
}

.exp-item:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.exp-body {
  width: 100%;
}

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.exp-top h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.exp-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 2px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exp-org {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 2px;
}

.exp-date {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: 20px;
  padding: 4px 10px;
}

.exp-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.exp-points {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
}

.exp-points li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding-left: 18px;
  position: relative;
  margin-bottom: 5px;
  line-height: 1.5;
}

.exp-points li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
}

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

.chip {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-primary);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all var(--transition);
}

.section-alt .chip {
  background: var(--bg-card);
}

.chip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════
   VISUAL PLACEHOLDERS
   ═══════════════════════════════════════ */

.visual-placeholder {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  background: rgba(0,0,0,0.3);
  padding: 6px 16px;
  border-radius: 4px;
}

.visual-microscopy {
  background: linear-gradient(135deg, #1a0e2e 0%, #0d2137 30%, #0a1628 60%, #1a0e2e 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

.visual-microscopy::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(138, 43, 226, 0.1) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 30%);
}

.visual-depthmap {
  background: linear-gradient(135deg, #00008b 0%, #0077b6 20%, #00b4d8 40%, #90e0ef 55%, #ffd166 70%, #ef476f 85%, #7b2d8e 100%);
}

.visual-depthmap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(0,0,0,0.2) 0%, transparent 40%);
}

/* ═══════════════════════════════════════
   EDUCATION
   ═══════════════════════════════════════ */

.education-grid {
  display: grid;
  gap: 24px;
  margin-top: 3rem;
}

.edu-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.edu-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.edu-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.edu-degree {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.edu-dates {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.edu-institution {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 4px;
}

.edu-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.edu-details p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.edu-thesis { font-style: italic; }

.edu-logo-placeholder {
  display: none; /* Hidden until real logos are added */
}

/* Awards */
.awards-grid {
  display: grid;
  gap: 16px;
}

.award-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: all var(--transition);
}

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

.award-icon {
  color: #f59e0b;
  font-size: 1.3rem;
  min-width: 24px;
}

.award-card h4 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

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

/* ═══════════════════════════════════════
   PUBLICATIONS
   ═══════════════════════════════════════ */

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.pub-filter {
  padding: 8px 20px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.pub-filter:hover,
.pub-filter.active {
  background: var(--accent);
  color: #0a0e17;
  border-color: var(--accent);
}

.pub-list {
  display: grid;
  gap: 16px;
}

.pub-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.pub-card.hidden {
  display: none;
}

.pub-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

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

.pub-content h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

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

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

.pub-citations {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.pub-citations i {
  font-size: 0.7rem;
}

.pub-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--transition);
}

.pub-link:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.pub-scholar {
  text-align: center;
  margin-top: 2.5rem;
}

/* ═══════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════ */

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

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

.project-visual {
  height: 180px;
  overflow: hidden;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-visual img {
  transform: scale(1.05);
}

.project-visual .visual-placeholder {
  height: 100%;
  border-radius: 0;
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.project-links a:hover {
  color: var(--accent-hover);
  transform: translateX(2px);
}

/* ═══════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════ */

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

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

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

.skill-group h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-group h3 i {
  color: var(--accent);
  font-size: 1.1rem;
}

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

.skill-chip {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
}

.section-alt .skill-chip {
  background: var(--bg-secondary);
}

.skill-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all var(--transition);
}

.footer-socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

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

/* ═══════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════ */

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #0a0e17;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 100;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

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

/* Reveal on scroll: default visible for no-JS safety */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.3rem;
  }

  .nav-hamburger { display: flex; z-index: 1001; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .photo-wrapper {
    width: 180px;
    height: 180px;
  }

  .exp-top {
    flex-direction: column;
    gap: 4px;
  }

  .exp-date {
    font-size: 0.8rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

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

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

  .pub-card {
    flex-direction: column;
    gap: 8px;
  }

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

  .section { padding: 72px 0; }

  .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .edu-card { flex-direction: column; padding: 20px; }

  .exp-item { padding: 18px; }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}
