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

:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f1a;
  --bg-3: #141425;
  --surface: #1a1a2e;
  --surface-2: #1e1e35;
  --border: rgba(99, 102, 241, 0.15);
  --border-2: rgba(255,255,255,0.06);
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --green: #10b981;
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent-glow); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
#navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-bracket { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex: 1;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(99,102,241,0.12);
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.lang-toggle {
  background: rgba(99,102,241,0.15);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { background: rgba(99,102,241,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: all 0.3s;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}
.hero-center {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 4rem;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: floatGlow 8s ease-in-out infinite;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: floatGlow 10s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  max-width: 600px;
  flex: 1;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-avatar-row { animation: slideUp 0.55s cubic-bezier(0.4,0,0.2,1) both; animation-delay: 0.1s; opacity: 0; }
.hero-name       { animation: slideUp 0.55s cubic-bezier(0.4,0,0.2,1) both; animation-delay: 0.25s; opacity: 0; }
.hero-title-wrap { animation: slideUp 0.55s cubic-bezier(0.4,0,0.2,1) both; animation-delay: 0.4s; opacity: 0; }
.hero-desc       { animation: slideUp 0.55s cubic-bezier(0.4,0,0.2,1) both; animation-delay: 0.55s; opacity: 0; }
.hero-tags       { animation: slideUp 0.55s cubic-bezier(0.4,0,0.2,1) both; animation-delay: 0.7s; opacity: 0; }
.hero-cta        { animation: slideUp 0.55s cubic-bezier(0.4,0,0.2,1) both; animation-delay: 0.85s; opacity: 0; }
.hero-stats      { animation: slideUp 0.55s cubic-bezier(0.4,0,0.2,1) both; animation-delay: 1s; opacity: 0; }
.hero-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(99,102,241,0.4);
  box-shadow: 0 0 20px rgba(99,102,241,0.25);
  flex-shrink: 0;
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--green);
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 70%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.hero-title-wrap { margin-bottom: 1.25rem; }
.hero-title-static {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent);
  font-weight: 500;
  font-family: var(--mono);
}
.hero-desc {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 520px;
}
.hero-link {
  color: var(--accent-3);
  text-decoration: none;
  border-bottom: 1px solid rgba(6,182,212,0.4);
  transition: all 0.2s;
}
.hero-link:hover {
  color: #fff;
  border-bottom-color: var(--accent-3);
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.tag {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--mono);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99,102,241,0.08);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-visual {
  flex: 0 0 auto;
  animation: slideUp 0.6s cubic-bezier(0.4,0,0.2,1) both;
  animation-delay: 0.5s;
  opacity: 0;
}
.terminal-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 360px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99,102,241,0.1);
}
.terminal-header {
  background: var(--surface);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-2);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-3);
  margin-left: 0.5rem;
}
.terminal-body {
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.8;
}
.terminal-line { display: flex; gap: 0.5rem; }
.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-out { color: var(--text-2); padding-left: 1rem; }
.t-green { color: var(--green); }
.t-blue { color: var(--accent-3); }
.t-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  padding-left: 1rem;
}
@keyframes blink { 50% { opacity: 0; } }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.scroll-text {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  animation: bounce 1.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ─── SECTIONS ─── */
section:not(#hero) {
  padding: 6rem 0;
  border-top: 1px solid var(--border-2);
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--mono);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 40%, var(--text-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  margin-bottom: 4rem;
}
.about-text p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 0.975rem;
}
.about-text strong { color: var(--text); font-weight: 600; }
.about-terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99,102,241,0.08);
}
.about-terminal-header {
  background: var(--surface);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-2);
}
.about-terminal-body {
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.9;
}
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.info-card:hover { border-color: var(--border); }
.highlight-card { border-color: rgba(99,102,241,0.25); background: rgba(99,102,241,0.06); }
.info-icon { font-size: 1.3rem; flex-shrink: 0; }
.info-label { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.1rem; }
.info-value { font-size: 0.875rem; font-weight: 500; color: var(--text); }

.skills-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.skill-group-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  margin-bottom: 1rem;
}
.skill-bar-item { margin-bottom: 0.9rem; }
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}
.skill-bar-label span:last-child { color: var(--accent); font-weight: 600; font-family: var(--mono); }
.skill-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-fill.animated { width: var(--w); }
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-tag {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 0.78rem;
  font-family: var(--mono);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: default;
}
.tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99,102,241,0.08);
}

/* ─── CV / TIMELINE ─── */
#cv { background: var(--bg-2); }
.cv-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.cv-col-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.cv-col-title svg { color: var(--accent); }

.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  transform: translateX(-4px);
}
.timeline-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(99,102,241,0.6);
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.timeline-content:hover { border-color: var(--border); }
.tl-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.tl-company-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--mono);
}
.tl-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.tl-company { font-size: 0.8rem; color: var(--text-2); }
.tl-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--mono);
  flex-shrink: 0;
}
.tl-badge.current {
  background: rgba(16,185,129,0.15);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.3);
}
.tl-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 0.8rem;
  font-family: var(--mono);
}
.tl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.tl-list li {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-left: 1rem;
  position: relative;
}
.tl-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tl-tags span {
  font-size: 0.7rem;
  font-family: var(--mono);
  background: rgba(99,102,241,0.1);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.edu-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.edu-icon { font-size: 1.8rem; }
.edu-degree { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.edu-school { font-size: 0.8rem; color: var(--accent); }
.edu-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--mono);
  margin-bottom: 0.9rem;
}
.edu-project-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.edu-project-item {
  font-size: 0.8rem;
  color: var(--text-2);
  padding: 0.2rem 0;
}

.cert-list { display: flex; flex-direction: column; gap: 0.75rem; }
.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: border-color 0.2s;
}
.cert-card:hover { border-color: var(--border); }
.cert-icon { font-size: 1.4rem; flex-shrink: 0; }
.cert-title { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.cert-issuer { font-size: 0.75rem; color: var(--text-3); font-family: var(--mono); margin-bottom: 0.4rem; }
.cert-desc { font-size: 0.78rem; color: var(--text-2); }
.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.cert-tags span {
  font-size: 0.7rem;
  background: rgba(99,102,241,0.1);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--mono);
}

.ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.ref-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0.85rem;
  transition: border-color 0.2s;
}
.ref-card:hover { border-color: var(--border); }
.ref-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--mono);
}
.ref-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.ref-role { font-size: 0.72rem; color: var(--accent); }
.ref-company { font-size: 0.72rem; color: var(--text-3); }

/* ─── PROJECTS ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.project-card:hover::before { opacity: 1; }
.project-card.featured {
  grid-column: span 2;
  border-color: rgba(99,102,241,0.25);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
}
.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.project-icon { font-size: 2rem; }
.project-meta { display: flex; align-items: center; gap: 0.5rem; }
.project-category {
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(99,102,241,0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: var(--mono);
}
.featured-badge {
  font-size: 0.72rem;
  color: var(--accent-2);
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: var(--mono);
}
.project-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.project-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.project-link {
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--accent-3);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.project-link:hover {
  background: rgba(6,182,212,0.18);
  border-color: rgba(6,182,212,0.4);
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tags span {
  font-size: 0.72rem;
  font-family: var(--mono);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
}

/* ─── COLLAB ─── */
#collab { background: var(--bg-2); }
.collab-intro {
  text-align: center;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
}
.collab-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.collab-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s;
  text-align: center;
}
.collab-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.collab-icon { font-size: 2.5rem; margin-bottom: 0.9rem; }
.collab-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.collab-card p { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; margin-bottom: 1rem; }
.collab-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.collab-tags span {
  font-size: 0.72rem;
  font-family: var(--mono);
  background: rgba(99,102,241,0.1);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
}
.collab-cta {
  text-align: center;
}
.collab-cta p {
  color: var(--text-2);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

/* ─── CONTACT ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.contact-info > p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
}
.contact-link-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-link-label { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.contact-link-val { font-size: 0.875rem; color: var(--text); text-decoration: none; }
a.contact-link-val:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--text-2); }
.form-group input, .form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-3); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border-2);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-2);
}
.footer-copy { font-size: 0.8rem; color: var(--text-3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-cards { flex-direction: row; flex-wrap: wrap; }
  .info-card { flex: 1; min-width: 200px; }
  .skills-grid { grid-template-columns: 1fr; }
  .cv-layout { grid-template-columns: 1fr; }
  .collab-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.featured { grid-column: span 1; }
  .hero-center { flex-direction: column; text-align: center; gap: 2.5rem; }
  .hero-content { max-width: 100%; }
  .hero-avatar-row { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: flex; justify-content: center; }
  .terminal-card { width: 100%; max-width: 400px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: 1fr; }
  .collab-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .collab-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
}