/* ===================================================
   DESIGN SYSTEM
   =================================================== */
:root {
  --bg-0: #050811;
  --bg-1: #090f1e;
  --bg-2: #0e1629;
  --bg-3: #131d35;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(99,179,237,0.35);

  --accent: #6CB2F0;
  --accent-2: #a78bfa;
  --accent-3: #34d399;

  --grad-start: #3b82f6;
  --grad-mid: #8b5cf6;
  --grad-end: #ec4899;

  --text-1: #f0f6ff;
  --text-2: #8fafc8;
  --text-3: #546e8a;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-code: 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-glow: 0 0 40px rgba(99,179,237,0.12);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
}

/* ===================================================
   RESET & BASE
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===================================================
   CURSOR GLOW
   =================================================== */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(108,178,240,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ===================================================
   SCROLLBAR
   =================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===================================================
   NAVBAR
   =================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 5%;
  height: 68px;
  background: rgba(5,8,17,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(5,8,17,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-right: auto;
}
.nav-logo .accent { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition-fast);
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}
.nav-link:hover { color: var(--text-1); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  margin-left: 2rem;
  padding: 0.5rem 1.2rem;
  background: var(--accent);
  color: var(--bg-0);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-cta:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108,178,240,0.3);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================================================
   HERO
   =================================================== */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 80px 5% 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #3b82f6, transparent);
  top: -10%; left: -10%;
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  top: 20%; right: 5%;
  animation-delay: -3s;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ec4899, transparent);
  bottom: 10%; left: 30%;
  animation-delay: -6s;
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-3);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-3); }
  50% { box-shadow: 0 0 16px var(--accent-3), 0 0 32px rgba(52,211,153,0.3); }
}
.hero-greeting {
  font-size: 1.1rem;
  color: var(--text-2);
  font-weight: 400;
  margin-bottom: 0.3rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-name {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.name-gradient {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-code);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.role-prefix, .role-suffix { color: var(--text-3); }
.hero-summary {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.hero-summary strong { color: var(--text-1); }
.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.btn-primary {
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 100px;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.5);
}
.btn-secondary {
  padding: 0.85rem 2rem;
  background: var(--surface);
  color: var(--text-1);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hero-socials {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.7s both;
}
.social-link {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  background: var(--accent);
  color: var(--bg-0);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108,178,240,0.3);
}

/* hero visual */
.hero-visual {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4rem;
  animation: fadeInRight 1s ease 0.4s both;
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
.avatar-ring {
  position: relative;
  width: 340px;
  height: 340px;
}
.avatar-inner {
  position: absolute;
  inset: 40px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.avatar-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, transparent 60%);
}
.avatar-code {
  font-family: var(--font-code);
  font-size: 0.78rem;
  line-height: 1.9;
  padding: 1.2rem 1.5rem;
  position: relative;
  z-index: 1;
}
.code-line { white-space: nowrap; }
.code-line.cl-indent { padding-left: 1.2em; }
.cl-kw { color: #c792ea; }
.cl-var { color: #82aaff; }
.cl-op { color: #89ddff; }
.cl-obj { color: #cdd3de; }
.cl-key { color: #f07178; }
.cl-str { color: #c3e88d; }
.cl-num { color: #f78c6c; }
.cl-bool { color: #ff5572; }

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: ringRotate linear infinite;
}
.ring-1 {
  inset: 10px;
  border-top-color: rgba(108,178,240,0.4);
  border-right-color: rgba(108,178,240,0.15);
  animation-duration: 8s;
}
.ring-2 {
  inset: 2px;
  border-bottom-color: rgba(167,139,250,0.35);
  border-left-color: rgba(167,139,250,0.1);
  animation-duration: 12s;
  animation-direction: reverse;
}
.ring-3 {
  inset: -8px;
  border-top-color: rgba(236,72,153,0.2);
  animation-duration: 18s;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.orbit-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.od-1 { top: 12px; right: 50%; margin-right: -5px; animation: orbitPulse 3s ease-in-out infinite; }
.od-2 { bottom: 20px; left: 15px; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); animation: orbitPulse 3s ease-in-out infinite 1s; }
.od-3 { right: 18px; top: 50%; margin-top: -5px; background: var(--accent-3); box-shadow: 0 0 12px var(--accent-3); animation: orbitPulse 3s ease-in-out infinite 2s; }
@keyframes orbitPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.2s both;
  transition: color var(--transition-fast);
}
.scroll-indicator:hover { color: var(--accent); }
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ===================================================
   CONTAINER & SECTIONS
   =================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
section {
  padding: 100px 0;
  position: relative;
}
.section-label {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.section-label.visible,
.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===================================================
   ABOUT
   =================================================== */
#about { background: var(--bg-1); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--text-2);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}
.about-text strong { color: var(--text-1); }
.about-lead {
  font-size: 1.1rem !important;
  color: var(--text-1) !important;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.highlight-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.highlight-icon { font-size: 1.4rem; }
.highlight-item div:last-child {
  display: flex;
  flex-direction: column;
}
.highlight-item strong { font-size: 0.95rem; color: var(--text-1); }
.highlight-item span { font-size: 0.8rem; color: var(--text-3); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.stat-card:hover::before { opacity: 1; }
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================================================
   SKILLS
   =================================================== */
#skills { background: var(--bg-0); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.skill-category.visible {
  opacity: 1;
  transform: translateY(0);
}
.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  background: var(--surface-hover);
}
.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.skill-cat-icon { font-size: 1.4rem; }
.skill-cat-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tag {
  padding: 5px 12px;
  background: rgba(108,178,240,0.08);
  border: 1px solid rgba(108,178,240,0.2);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  cursor: default;
  transition: var(--transition-fast);
  position: relative;
}
.skill-tag:hover {
  background: rgba(108,178,240,0.18);
  border-color: var(--accent);
  transform: scale(1.05);
}

/* ===================================================
   PROJECTS
   =================================================== */
#projects { background: var(--bg-1); }
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover {
  border-color: rgba(108,178,240,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(108,178,240,0.08);
}
.project-card:hover::before { opacity: 1; }

.project-card.featured {
  grid-column: 1 / -1;
  border-color: rgba(108,178,240,0.2);
  background: linear-gradient(135deg, rgba(108,178,240,0.04), var(--surface));
}
.project-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.project-type {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-period {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 400;
}
.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.project-desc {
  font-size: 0.92rem;
  color: var(--text-2);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.project-role {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-2);
}
.project-highlights {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.project-highlights li {
  font-size: 0.875rem;
  color: var(--text-2);
  padding-left: 1.1rem;
  position: relative;
}
.project-highlights li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-3);
  font-size: 0.8em;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-pill {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-code);
}
.tech-pill.react { background: rgba(97,218,251,0.1); color: #61dafb; border: 1px solid rgba(97,218,251,0.2); }
.tech-pill.node { background: rgba(104,160,99,0.1); color: #68a063; border: 1px solid rgba(104,160,99,0.2); }
.tech-pill.py { background: rgba(255,222,87,0.1); color: #ffd943; border: 1px solid rgba(255,222,87,0.2); }
.tech-pill.db { background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.tech-pill.html { background: rgba(240,101,41,0.1); color: #f97316; border: 1px solid rgba(240,101,41,0.2); }
.tech-pill.ai { background: rgba(167,139,250,0.1); color: #a78bfa; border: 1px solid rgba(167,139,250,0.2); }
.tech-pill.data { background: rgba(52,211,153,0.1); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }

/* ===================================================
   EDUCATION
   =================================================== */
#education { background: var(--bg-0); }
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.edu-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.edu-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.edu-logo {
  flex-shrink: 0;
  width: 80px; height: 80px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  display: flex;
  align-items: center;
  justify-content: center;
}
.edu-logo-inner {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}
.edu-info { flex: 1; }
.edu-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 0.3rem;
}
.edu-degree {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.edu-duration {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.edu-tags span {
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-2);
}
.edu-badge-wrap { flex-shrink: 0; }
.edu-year-badge {
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(167,139,250,0.15), rgba(59,130,246,0.15));
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-2);
}

/* ===================================================
   CONTACT
   =================================================== */
#contact { background: var(--bg-1); }
.contact-lead {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 3rem;
}
.contact-lead strong { color: var(--text-1); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  color: var(--text-1);
  opacity: 0;
  transform: translateY(16px);
}
.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.contact-card:not(.static):hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--accent); }
.contact-detail {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.contact-label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-value {
  font-size: 0.9rem;
  color: var(--text-1);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-arrow {
  color: var(--text-3);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}
.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ===================================================
   FOOTER
   =================================================== */
#footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-1);
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-3);
}
.footer-copy strong { color: var(--text-2); }
.footer-socials {
  display: flex;
  gap: 0.7rem;
}
.footer-socials a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}
.footer-socials a svg { width: 16px; height: 16px; }
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  #hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }
  .hero-visual { margin-left: 0; margin-top: 3rem; }
  .hero-cta-group { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-badge, .hero-greeting { text-align: center; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: 1; }
  .edu-card { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .avatar-ring { width: 260px; height: 260px; }
  .avatar-code { font-size: 0.68rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .skills-grid { grid-template-columns: 1fr; }
}