/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --accent: #5b8dee;
  --accent-2: #a78bfa;
  --accent-glow: rgba(91,141,238,0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: 0.18s ease-out;

  --nav-h: 64px;
}

/* Dark theme (default) */
.dark {
  --bg: #080c14;
  --bg-2: #0d1321;
  --bg-3: #111827;
  --surface: #141c2e;
  --surface-2: #1a2540;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text: #e8ecf4;
  --text-muted: #7d8fa8;
  --text-dim: #4a5568;
  --card-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* Light theme */
.light {
  --bg: #f5f7fc;
  --bg-2: #eef1f8;
  --bg-3: #e8ecf5;
  --surface: #ffffff;
  --surface-2: #f0f3fc;
  --border: rgba(0,0,0,0.07);
  --border-hover: rgba(0,0,0,0.15);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --card-shadow: 0 8px 40px rgba(15,23,42,0.1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
strong { font-weight: 600; color: var(--text); }

/* =============================================
   CURSOR
   ============================================= */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, opacity 0.3s;
}
.cursor-follower {
  position: fixed; width: 32px; height: 32px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: all 0.25s ease-out;
  opacity: 0.5;
}
@media (hover: none) { .cursor, .cursor-follower { display: none; } }

/* =============================================
   LOADER
   ============================================= */
.loader {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-bar {
  width: 60px; height: 2px; background: var(--border);
  border-radius: 2px; overflow: hidden; margin: 0 auto 16px;
}
.loader-bar::after {
  content: ''; display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: loaderAnim 1.2s ease-in-out infinite;
}
@keyframes loaderAnim {
  0% { width: 0; margin-left: 0; }
  50% { width: 100%; margin-left: 0; }
  100% { width: 0; margin-left: 100%; }
}
.loader-text {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; color: transparent;
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.nav.scrolled {
  background: rgba(8,12,20,0.85);
  border-color: var(--border);
}
.light .nav.scrolled {
  background: rgba(245,247,252,0.9);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; display: flex; align-items: center;
  padding: 0 24px; gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; color: transparent;
  margin-right: auto;
}
.nav-links {
  list-style: none; display: flex; gap: 28px;
}
.nav-links a {
  font-size: 0.88rem; color: var(--text-muted); position: relative;
  padding-bottom: 3px;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: ''; position: absolute;
  left: 0; bottom: 0; width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width var(--transition-fast);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.btn-cv {
  padding: 7px 16px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.btn-cv:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; background: none; border: none;
}
.nav-burger span {
  display: block; height: 1.5px; background: var(--text-muted);
  border-radius: 2px; transition: all var(--transition-fast);
}
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-2); z-index: 99;
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  transition: transform var(--transition);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { font-size: 1rem; color: var(--text-muted); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 500; font-size: 0.9rem;
  border: none;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-muted); font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* =============================================
   SECTION LAYOUT
   ============================================= */
main { padding-top: var(--nav-h); }
.section {
  max-width: 1100px; margin: 0 auto;
  padding: 100px 24px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.visible { opacity: 1; transform: translateY(0); }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 40px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  max-width: 1200px; margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  position: relative;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none; opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease both;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 6px rgba(34,197,94,0.6); }
  50% { box-shadow: 0 0 14px rgba(34,197,94,0.9); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 10px;
  animation: fadeInUp 0.9s ease 0.1s both;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; color: transparent;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-muted); margin-bottom: 4px;
  animation: fadeInUp 0.9s ease 0.2s both;
}
.hero-tagline {
  font-size: 0.95rem; color: var(--text-muted);
  max-width: 480px; margin-bottom: 32px;
  animation: fadeInUp 0.9s ease 0.3s both;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px;
  animation: fadeInUp 0.9s ease 0.4s both;
}
.hero-stats {
  display: flex; gap: 32px;
  animation: fadeInUp 0.9s ease 0.5s both;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat span { font-size: 0.78rem; color: var(--text-muted); }
.hero-visual {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  height: 420px;
  animation: fadeIn 1.2s ease 0.3s both;
}
.avatar-ring { position: relative; }
.avatar {
  width: 160px; height: 160px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  color: #fff; position: relative; z-index: 2;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px dashed var(--border-hover);
  animation: spin linear infinite;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.orbit-1 { width: 240px; height: 240px; animation-duration: 12s; }
.orbit-2 { width: 320px; height: 320px; animation-duration: 20s; animation-direction: reverse; }
.orbit-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); display: block;
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
}
@keyframes spin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.floating-chips {
  position: absolute; inset: 0;
  pointer-events: none;
}
.chip {
  position: absolute; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip i { color: var(--accent); font-size: 0.75rem; }
.chip-1 { top: 15%; left: 0; animation-delay: 0s; }
.chip-2 { top: 30%; right: -10px; animation-delay: 1.5s; }
.chip-3 { bottom: 30%; left: -10px; animation-delay: 3s; }
.chip-4 { bottom: 15%; right: 5%; animation-delay: 4.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.7rem; color: var(--text-dim);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { opacity: 0.3; transform: scaleY(0.8); } 50% { opacity: 1; transform: scaleY(1); } }

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-text strong { color: var(--text); }
.about-langs { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.lang-item { display: flex; align-items: center; gap: 12px; }
.lang-name { width: 80px; font-size: 0.85rem; color: var(--text); }
.lang-bar-wrap { flex: 1; height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.lang-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.5s cubic-bezier(0.4,0,0.2,1); }
.lang-level { font-size: 0.75rem; color: var(--text-muted); width: 110px; text-align: right; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.about-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.about-card-icon { font-size: 1.4rem; margin-bottom: 10px; }
.about-card h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.about-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* =============================================
   SKILLS
   ============================================= */
.skills-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px;
  transition: border-color var(--transition-fast);
}
.skill-group:hover { border-color: var(--border-hover); }
.skill-group-title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.skill-group-title i { font-size: 0.8rem; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-pill {
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-muted);
  transition: all var(--transition-fast);
}
.skill-pill:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--text); }

/* =============================================
   PROJECTS
   ============================================= */
.projects-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.projects-header .section-title { margin-bottom: 0; }
.project-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
  transition: all var(--transition-fast);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent-glow); border-color: var(--accent); color: var(--text);
}
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: default;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--card-shadow);
}
.project-card.hidden { display: none; }
.project-top { display: flex; align-items: center; justify-content: space-between; }
.project-category {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
}
.project-badge {
  padding: 3px 10px; border-radius: 999px; font-size: 0.7rem;
}
.badge-completed { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-inprogress { background: rgba(234,179,8,0.1); color: #f59e0b; border: 1px solid rgba(234,179,8,0.3); }
.project-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.project-desc { font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.project-pub { font-size: 0.75rem; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.project-pub i { font-size: 0.7rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.project-tag {
  padding: 3px 9px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--border);
  font-size: 0.73rem; color: var(--text-muted);
}
.project-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.project-role { font-size: 0.75rem; color: var(--text-dim); }
.project-link {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--text-muted);
  transition: all var(--transition-fast);
}
.project-link:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

/* =============================================
   EXPERIENCE / TIMELINE
   ============================================= */
.timeline { position: relative; margin-bottom: 64px; }
.timeline::before {
  content: ''; position: absolute;
  left: 14px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  display: grid; grid-template-columns: 44px 1fr; gap: 20px;
  margin-bottom: 32px;
}
.timeline-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; margin-top: 2px;
}
.timeline-dot-inner {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.timeline-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 20px;
  transition: border-color var(--transition-fast);
}
.timeline-content:hover { border-color: var(--border-hover); }
.timeline-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.timeline-role { font-weight: 600; font-size: 0.96rem; }
.timeline-type {
  padding: 2px 10px; border-radius: 999px; font-size: 0.7rem;
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(91,141,238,0.3); white-space: nowrap;
}
.timeline-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.timeline-tasks { list-style: none; font-size: 0.83rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.timeline-tasks li::before { content: '→ '; color: var(--accent); }

.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  transition: border-color var(--transition-fast);
}
.edu-card:hover { border-color: var(--accent); }
.edu-icon { font-size: 1.6rem; margin-bottom: 12px; }
.edu-degree { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.edu-institution { font-size: 0.85rem; color: var(--accent); margin-bottom: 4px; }
.edu-period { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 10px; }
.edu-details { font-size: 0.83rem; color: var(--text-muted); }

/* =============================================
   PUBLICATIONS
   ============================================= */
.pub-list { display: flex; flex-direction: column; gap: 18px; }
.pub-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px 28px;
  display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.pub-card:hover { border-color: var(--accent); transform: translateX(6px); }
.pub-number {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--border); line-height: 1;
}
.pub-title { font-weight: 600; font-size: 0.97rem; margin-bottom: 8px; line-height: 1.4; }
.pub-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pub-venue { color: var(--accent); }
.pub-role-badge {
  padding: 2px 10px; border-radius: 999px; font-size: 0.7rem;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted);
}
.pub-doi a { color: var(--text-dim); font-size: 0.78rem; }
.pub-doi a:hover { color: var(--accent); }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.contact-sub { color: var(--text-muted); margin-bottom: 32px; font-size: 0.95rem; }
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.88rem;
}
.contact-link-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.9rem; flex-shrink: 0;
}
.contact-link-label { font-size: 0.73rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-link-value { color: var(--text-muted); }
.contact-link-value a:hover { color: var(--accent); }

.contact-form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }
.contact-form input, .contact-form textarea {
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 0.88rem;
  outline: none; transition: border-color var(--transition-fast);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; }
.form-note { font-size: 0.72rem; color: var(--text-dim); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; color: transparent;
}
.footer p { font-size: 0.8rem; color: var(--text-dim); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--text-muted);
  transition: all var(--transition-fast);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

/* =============================================
   SCROLL-TO-TOP
   ============================================= */
.scroll-top {
  position: fixed; bottom: 28px; right: 24px; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border: none; font-size: 0.85rem;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .skills-container { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-tagline, .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { height: 300px; }
  .about-grid, .contact-grid, .education-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .skills-container { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .pub-card { grid-template-columns: 1fr; }
  .pub-number { display: none; }
}
@media (max-width: 480px) {
  .about-cards { grid-template-columns: 1fr; }
  .skills-container { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .floating-chips { display: none; }
}
