/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS — DARK MODE (default)
═══════════════════════════════════════════════════════════════ */
:root,
[data-theme="dark"] {
  --bg:         #050810;
  --bg2:        #0c1120;
  --surface:    #111827;
  --border:     rgba(99,179,237,0.12);
  --accent:     #38bdf8;
  --accent2:    #818cf8;
  --accent3:    #34d399;
  --pink:       #f472b6;
  --text:       #e2e8f0;
  --muted:      #64748b;
  --bright:     #f8fafc;
  --card-bg:    #0c1120;
  --input-bg:   #111827;
  --shadow:     rgba(0,0,0,0.4);
  --nav-bg:     rgba(5,8,16,0.75);
}

[data-theme="light"] {
  --bg:         #f0f4f8;
  --bg2:        #ffffff;
  --surface:    #ffffff;
  --border:     rgba(56,189,248,0.18);
  --accent:     #0284c7;
  --accent2:    #6366f1;
  --accent3:    #059669;
  --pink:       #db2777;
  --text:       #1e293b;
  --muted:      #64748b;
  --bright:     #0f172a;
  --card-bg:    #ffffff;
  --input-bg:   #f1f5f9;
  --shadow:     rgba(0,0,0,0.08);
  --nav-bg:     rgba(240,244,248,0.85);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Django messages (portfolio contact form) */
.portfolio-messages {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: min(520px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.portfolio-msg {
  pointer-events: auto;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px var(--shadow);
}
.portfolio-msg--success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}
.portfolio-msg--error {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.35);
}
.portfolio-msg--warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}
.portfolio-msg--info {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  transition: background 0.35s, color 0.35s;
}
/* Custom cursor JS (script.js) only runs on the landing page — hide OS cursor there only */
body:not(.projects-app-shell) {
  cursor: none;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.3); border-radius: 2px; }

/* ═══════════════════════════════════════════════════════════════
   CUSTOM 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: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(56,189,248,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}
[data-theme="light"] .cursor { mix-blend-mode: multiply; background: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  backdrop-filter: blur(20px) saturate(1.4);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s, box-shadow 0.3s;
}
#navbar.scrolled {
  box-shadow: 0 4px 40px var(--shadow);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--bright);
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo .bracket { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  white-space: nowrap;
}
.nav-link:hover { color: var(--bright); background: rgba(56,189,248,0.08); }
.nav-link.active { color: var(--bright); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  cursor: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: rgba(56,189,248,0.08); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* Resume button */
.nav-resume-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent3);
  border: 1px solid rgba(52,211,153,0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  display: flex; align-items: center; gap: 0.4rem;
  white-space: nowrap;
}
.nav-resume-btn:hover { background: rgba(52,211,153,0.12); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.3rem;
  z-index: 190;
  transform: translateY(-120%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-drawer.open { transform: translateY(0); }
.mob-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mob-link:hover { color: var(--accent); }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════════════════════════════
   SECTIONS SHARED
═══════════════════════════════════════════════════════════════ */
section { padding: 2.5rem 4rem; }
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--bright);
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}
.section-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2rem;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 4rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-left { min-width: 0; }
.hero-right {
  min-width: 0;
  padding-top: 0.5rem;
}
#home h1 {
  margin-bottom: 0;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}
[data-theme="light"] .hero-grid-bg {
  background-image:
    linear-gradient(rgba(2,132,199,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2,132,199,0.07) 1px, transparent 1px);
}
@keyframes gridDrift { to { transform: translateY(60px); } }

.hero-glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.glow1 { width: 500px; height: 500px; background: rgba(56,189,248,0.08); top: -100px; right: 10%; }
.glow2 { width: 400px; height: 400px; background: rgba(129,140,248,0.07); bottom: -50px; left: 20%; }
.glow3 { width: 300px; height: 300px; background: rgba(244,114,182,0.05); top: 30%; right: 30%; }
[data-theme="light"] .glow1 { background: rgba(2,132,199,0.06); }
[data-theme="light"] .glow2 { background: rgba(99,102,241,0.05); }

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'DM Mono', monospace; font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(56,189,248,0.25);
  background: rgba(56,189,248,0.06);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.3rem;
  animation: fadeUp 0.6s ease forwards;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  background: var(--accent3);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.5)} }

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--bright);
  margin-bottom: 0.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.gradient-name {
  color: var(--accent);
}
.hero-subtitle {
  font-family: 'DM Mono', monospace; font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  margin-top: 0;
  animation: fadeUp 0.6s 0.2s ease both;
}
.typed-cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50%{opacity:0} }

.hero-desc {
  font-size: 1rem; color: var(--muted); line-height: 1.8;
  max-width: none; margin-bottom: 1.6rem;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* Social icons row */
.hero-socials {
  display: flex; gap: 0.6rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s 0.35s ease both;
}
.hero-social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.hero-social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56,189,248,0.08);
  transform: translateY(-2px);
}

.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 0;
  animation: fadeUp 0.6s 0.4s ease both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent);
  color: #050810;
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.9rem;
  padding: 0.8rem 1.8rem; border-radius: 8px; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(56,189,248,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(56,189,248,0.5); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--border);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 0.9rem;
  padding: 0.8rem 1.8rem; border-radius: 8px; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(56,189,248,0.05); }

.hero-stats {
  display: flex; gap: 2.5rem;
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.6s 0.5s ease both;
  flex-wrap: wrap;
}
.stat-num {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.7rem;
  color: var(--bright); display: block;
}
.stat-label {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
}

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

/* ═══════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════ */
#about { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

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

/* Photo */
.about-photo-wrap {
  position: relative;
  width: 220px; height: 220px;
  margin: 0 auto 1.5rem;
}
.about-photo {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--border);
  display: block;
  margin: 10px auto 0;
  position: relative; z-index: 1;
  transition: border-color 0.3s;
}
.about-photo-wrap:hover .about-photo { border-color: var(--accent); }
.about-photo-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--accent);
  padding: 3px;
}

.about-photo-badge {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  background: var(--bg2); border: 1px solid rgba(56,189,248,0.35);
  color: var(--accent); padding: 0.2rem 0.7rem; border-radius: 100px;
  white-space: nowrap; z-index: 2;
  display: flex; align-items: center; gap: 0.4rem;
}
.about-photo-dot {
  width: 5px; height: 5px; background: var(--accent); border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.about-name {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem;
  color: var(--bright); text-align: center; margin-bottom: 0.2rem;
}
.about-role {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: var(--accent); text-align: center; margin-bottom: 1.5rem;
  letter-spacing: 0.06em;
}
.about-contact-list { display: flex; flex-direction: column; gap: 0.8rem; }
.about-cv-download {
  margin-top: 1.25rem;
  width: 100%;
  max-width: 220px;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.75rem 1.2rem;
}
.contact-row {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--muted);
}
.contact-row svg { color: var(--accent); flex-shrink: 0; }

/* Tabs */
.about-tabs {
  display: flex; gap: 0; margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  background: none; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 400;
  color: var(--muted); padding: 0.7rem 1.4rem;
  cursor: none; position: relative; transition: color 0.2s;
}
.tab-btn.active { color: var(--bright); }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.3s ease; }

/* Skill bars */
.skill-item { margin-bottom: 1.5rem; }
.skill-item-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.skill-name { font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--accent); font-style: italic; }
.skill-desc { color: var(--text); font-size: 0.88rem; }
.skill-pct { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted); }
.skill-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
[data-theme="light"] .skill-bar { background: rgba(0,0,0,0.08); }
.skill-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); width: 0; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot { position: absolute; left: -1.9rem; top: 0.3rem; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }
.timeline-period { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--accent); margin-bottom: 0.2rem; }
.timeline-role { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1rem; color: var(--bright); margin-bottom: 0.15rem; }
.timeline-company { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.timeline-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* Education */
.edu-item { display: flex; gap: 1.2rem; margin-bottom: 1.5rem; padding: 1.4rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.2s; }
.edu-item:hover { border-color: rgba(56,189,248,0.3); }
.edu-icon { width: 42px; height: 42px; background: rgba(56,189,248,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }
.edu-degree { font-family: 'Syne', sans-serif; font-weight: 600; color: var(--bright); font-size: 0.95rem; }
.edu-school { color: var(--muted); font-size: 0.82rem; }
.edu-year { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--accent); margin-top: 0.3rem; }

/* ═══════════════════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════════════════ */
#skills { background: var(--bg); }
.skills-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.skill-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.8rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.skill-card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,0.3); box-shadow: 0 20px 60px var(--shadow); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-card-icon { font-size: 1.8rem; margin-bottom: 1rem; display: block; }
.skill-card-title { font-family: 'Syne', sans-serif; font-weight: 600; color: var(--bright); font-size: 1rem; margin-bottom: 0.8rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag { font-family: 'DM Mono', monospace; font-size: 0.68rem; padding: 0.2rem 0.6rem; border-radius: 4px; background: rgba(56,189,248,0.08); color: var(--accent); border: 1px solid rgba(56,189,248,0.15); }
.skill-tag.purple { background: rgba(129,140,248,0.08); color: var(--accent2); border-color: rgba(129,140,248,0.15); }
.skill-tag.green { background: rgba(52,211,153,0.08); color: var(--accent3); border-color: rgba(52,211,153,0.15); }
.skill-tag.pink { background: rgba(244,114,182,0.08); color: var(--pink); border-color: rgba(244,114,182,0.15); }

/* ═══════════════════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════════════════ */
#projects { background: var(--bg2); border-top: 1px solid var(--border); }
.projects-filter { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  padding: 0.4rem 1rem; border-radius: 100px; cursor: none;
  transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.06em;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(56,189,248,0.08); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  transition: transform 0.25s, border-color 0.25s, opacity 0.3s;
  position: relative; overflow: hidden;
}
.project-card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,0.3); }
.project-card.hidden { display: none; }
.project-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.2rem; }
.project-icon { font-size: 2rem; }
.project-links { display: flex; gap: 0.5rem; }
.project-link {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; color: var(--muted);
  text-decoration: none; font-size: 0.85rem; transition: border-color 0.2s, color 0.2s;
}
.project-link:hover { border-color: var(--accent); color: var(--accent); }
.project-title { font-family: 'Syne', sans-serif; font-weight: 600; color: var(--bright); font-size: 1.05rem; margin-bottom: 0.5rem; }
a.project-title {
  display: block; text-decoration: none; color: var(--bright);
  transition: color 0.2s;
}
a.project-title:hover { color: var(--accent); }
.project-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1.2rem; }
a.project-desc-link {
  display: block; text-decoration: none; color: inherit;
}
a.project-desc-link:hover .project-desc { color: var(--accent); }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
a.project-tech-link {
  display: block; text-decoration: none; color: inherit;
}
a.project-tech-link:hover .project-tech span { border-color: rgba(56,189,248,0.35); color: var(--accent); }
.project-tech span { font-family: 'DM Mono', monospace; font-size: 0.65rem; color: var(--muted); background: rgba(255,255,255,0.04); padding: 0.2rem 0.5rem; border-radius: 4px; border: 1px solid rgba(255,255,255,0.06); }
[data-theme="light"] .project-tech span { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
.project-badge { position: absolute; top: 1.2rem; right: 1.2rem; font-family: 'DM Mono', monospace; font-size: 0.6rem; padding: 0.2rem 0.5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-featured { background: rgba(244,114,182,0.12); color: var(--pink); border: 1px solid rgba(244,114,182,0.25); }

/* ═══════════════════════════════════════════════════════════════
   CERTIFICATIONS
═══════════════════════════════════════════════════════════════ */
#certifications { background: var(--bg); border-top: 1px solid var(--border); }
.certs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.cert-card {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem 1.8rem;
  transition: transform 0.2s, border-color 0.2s; text-decoration: none;
}
.cert-card:hover { transform: translateX(4px); border-color: rgba(56,189,248,0.3); }
.cert-logo { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; border: 1px solid var(--border); }
.cert-logo-svg svg { display: block; width: 28px; height: 28px; }
.cert-issuer { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--accent); margin-bottom: 0.2rem; }
.cert-name { font-family: 'Syne', sans-serif; font-weight: 600; color: var(--bright); font-size: 0.92rem; }
.cert-date { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.cert-arrow { margin-left: auto; color: var(--muted); font-size: 0.9rem; transition: color 0.2s, transform 0.2s; }
.cert-card:hover .cert-arrow { color: var(--accent); transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════
   RESUME
═══════════════════════════════════════════════════════════════ */
#resume { background: var(--bg2); border-top: 1px solid var(--border); }
.resume-wrapper { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: center; }
.resume-highlights { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.highlight-row { display: flex; align-items: center; gap: 0.8rem; font-size: 0.88rem; color: var(--muted); }
.highlight-row svg { color: var(--accent3); flex-shrink: 0; }
.resume-formats { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.download-btn { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.8rem; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; cursor: none; }
.download-btn-pdf { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #050810; box-shadow: 0 8px 32px rgba(56,189,248,0.25); }
.download-btn-pdf:hover { transform: translateY(-2px); box-shadow: 0 12px 48px rgba(56,189,248,0.4); }
.download-btn-docx { border: 1px solid var(--border); color: var(--text); background: transparent; }
.download-btn-docx:hover { border-color: var(--accent); background: rgba(56,189,248,0.05); }
.resume-preview { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; position: relative; overflow: hidden; }
.resume-preview::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(56,189,248,0.03), rgba(129,140,248,0.03)); }
.resume-preview-lines { position: relative; z-index: 1; }
.resume-line { height: 10px; background: rgba(255,255,255,0.06); border-radius: 5px; margin-bottom: 0.8rem; }
[data-theme="light"] .resume-line { background: rgba(0,0,0,0.07); }
.resume-line.short { width: 40%; }
.resume-line.medium { width: 70%; }
.resume-line.accent { background: rgba(56,189,248,0.2); width: 55%; }
.resume-line.heading { height: 18px; background: rgba(255,255,255,0.1); width: 35%; margin-bottom: 1.2rem; border-radius: 4px; }
[data-theme="light"] .resume-line.heading { background: rgba(0,0,0,0.1); }

/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */
#contact { background: var(--bg); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.contact-method { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.contact-method:hover { border-color: rgba(56,189,248,0.3); transform: translateX(4px); }
.contact-method-icon { width: 40px; height: 40px; background: rgba(56,189,248,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.contact-method-label { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--muted); }
.contact-method-value { color: var(--text); font-size: 0.9rem; }
.contact-code-block { font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--muted); line-height: 1.9; padding: 1.2rem 1.5rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; }
.cc-comment { color: var(--muted); }
.cc-green { color: var(--accent3); }
.cc-purple { color: var(--accent2); display: block; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.form-input, .form-textarea { background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.8rem 1rem; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; transition: border-color 0.2s; outline: none; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-input:focus, .form-textarea:focus { border-color: rgba(56,189,248,0.5); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { background: var(--accent); color: #050810; border: none; padding: 0.9rem 2rem; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.9rem; cursor: none; transition: box-shadow 0.2s, transform 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; align-self: flex-start; box-shadow: 0 0 24px rgba(56,189,248,0.3); }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(56,189,248,0.5); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
footer { border-top: 1px solid var(--border); padding: 1.8rem 4rem; display: flex; align-items: center; justify-content: space-between; background: var(--bg2); }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted); }
.footer-socials { display: flex; gap: 0.7rem; }
.social-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: border-color 0.2s, color 0.2s; }
.social-link:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .nav-links { gap: 0; }
  .nav-link { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
}

@media (max-width: 900px) {
  /* Match specificity of body:not(.projects-app-shell) so mobile landing shows OS cursor */
  body:not(.projects-app-shell) {
    cursor: auto;
  }
  .cursor, .cursor-ring { display: none; }
  #navbar { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-resume-btn { display: none; }

  section { padding: 2.25rem 1.5rem; }
  #home { padding: 6.5rem 1.5rem 2.25rem; }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-right { padding-top: 0; }
  #home h1 { font-size: 2.6rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-left { display: flex; flex-direction: column; align-items: center; }
  .skills-categories { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .resume-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .resume-preview { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1rem; padding: 1.5rem; text-align: center; }
}

@media (max-width: 600px) {
  .skills-categories { grid-template-columns: 1fr; }
  .hero-socials { flex-wrap: wrap; }
}
