/* =========================================================
   ISHAAN DWIVEDI – Personal Portfolio
   ========================================================= */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0e1a;
  --bg2:         #0d1226;
  --bg3:         #111827;
  --surface:     #141c2f;
  --surface2:    #1a2540;
  --border:      #1f2d4a;
  --accent:      #00d4ff;
  --accent2:     #7c3aed;
  --accent3:     #10b981;
  --text:        #e2e8f0;
  --text-muted:  #8892b0;
  --text-dim:    #4a5568;
  --white:       #ffffff;
  --red:         #ff5f57;
  --yellow:      #febc2e;
  --green:       #28c840;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,212,255,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.5);
  --transition:  0.3s ease;
  --font-code:   'Fira Code', monospace;
  --font-main:   'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

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

::selection { background: var(--accent2); color: var(--white); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 3px; }

/* ── PARTICLES CANVAS ── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 70px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-logo {
  font-family: var(--font-code);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
}
.nav-logo .bracket { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-muted);
  counter-increment: nav-item;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }

.nav-resume-btn {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-resume-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── SECTION LAYOUT ── */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.section-title .accent {
  font-family: var(--font-code);
  color: var(--accent);
  font-size: 0.75em;
  margin-right: 0.5rem;
}

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,212,255,0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(0,212,255,0.08);
  transform: translateY(-2px);
  color: var(--accent);
}

.full-width { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 2rem 60px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-content { flex: 1; max-width: 580px; }
.hero-image-wrapper {
  flex: 0 0 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Terminal window */
.terminal-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.terminal-title {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.dot {
  width: 13px; height: 13px;
  border-radius: 50%;
}
.dot.red    { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green  { background: var(--green); }

.terminal-body { padding: 1.25rem 1.5rem; }

.terminal-line {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.prompt { color: var(--accent3); margin-right: 8px; }

.hero-name {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 0.35rem 0 0.7rem;
  background: linear-gradient(90deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-family: var(--font-code);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent);
  margin-bottom: 0.4rem;
  min-height: 2em;
}

.cursor {
  display: inline-block;
  animation: blink 1s step-start infinite;
  color: var(--accent);
}
.blinking-cursor {
  animation: blink 1s step-start infinite;
  color: var(--accent3);
}
@keyframes blink { 50% { opacity: 0; } }

.hero-passion {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero image */
.hero-glow {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 50px rgba(0,212,255,0.25);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-img:hover {
  transform: scale(1.04);
  box-shadow: 0 0 70px rgba(0,212,255,0.4);
}

.hero-badge {
  margin-top: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}
.status-dot { color: var(--green); font-size: 0.65rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-text strong { color: var(--text); }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.fact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color var(--transition);
}
.fact:hover { border-color: var(--accent); }
.fact-icon { font-size: 1.1rem; }

/* Code card */
.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-code);
  border-bottom: 1px solid var(--border);
}
.code-card-header span:last-child { margin-left: 8px; }

.code-snippet {
  font-family: var(--font-code);
  font-size: 0.85rem;
  padding: 1.25rem 1.5rem;
  line-height: 1.9;
  white-space: pre;
  overflow-x: auto;
}
.json-key  { color: #ff79c6; }
.json-str  { color: #f1fa8c; }
.json-bool { color: #bd93f9; }

/* ─────────────────────────────────────────
   SKILLS
───────────────────────────────────────── */
#skills { background: var(--bg); }

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.skill-category:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.skill-cat-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.skill-chip:hover {
  border-color: var(--accent);
  color: var(--white);
  background: rgba(0,212,255,0.05);
}
.skill-chip i { font-size: 1.1rem; }

/* ─────────────────────────────────────────
   EXPERIENCE
───────────────────────────────────────── */
#experience { background: var(--bg2); }

.timeline {
  position: relative;
  margin-top: 2.5rem;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: none;
}

.timeline-dot {
  position: absolute;
  left: -2.45rem;
  top: 20px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg2);
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.timeline-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.job-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.company {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.company-icon { width: 18px; height: 18px; }

.date-badge {
  font-family: var(--font-code);
  font-size: 0.8rem;
  background: rgba(0,212,255,0.08);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.job-points {
  list-style: none;
  margin-bottom: 1rem;
}
.job-points li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}
.job-points li::before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  top: 4px;
}
.job-points strong { color: var(--accent); }

/* ─────────────────────────────────────────
   TAGS (shared)
───────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

.tag {
  font-family: var(--font-code);
  font-size: 0.78rem;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--accent2);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

/* ─────────────────────────────────────────
   PROJECTS
───────────────────────────────────────── */
#projects { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0,212,255,0.12);
}
.project-card.featured {
  grid-column: span 2;
  flex-direction: row;
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
}
.project-card.featured .project-img-wrap {
  flex: 0 0 300px;
  max-height: 280px;
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card.featured .project-img { height: 100%; }
.project-card:hover .project-img { transform: scale(1.06); }

.project-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}
.featured-badge {
  font-size: 0.8rem;
  background: rgba(0,212,255,0.9);
  color: var(--bg);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
}

.project-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.project-desc strong { color: var(--accent); }

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.project-link {
  font-family: var(--font-code);
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition);
}
.project-link:hover { color: var(--accent); }
.project-link.live { color: var(--accent3); }
.project-link.live:hover { color: var(--green); }

/* ─────────────────────────────────────────
   EDUCATION
───────────────────────────────────────── */
#education { background: var(--bg2); }

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition);
}
.edu-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.edu-icon { font-size: 2.2rem; }

.edu-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.edu-sub {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.edu-school, .edu-date {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.edu-highlights { margin-top: 0.75rem; }

.certs { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.5rem; }
.cert-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cert-item strong { color: var(--text); font-size: 0.93rem; }
.cert-item p { font-size: 0.8rem; color: var(--text-dim); }
.cert-logo { width: 24px; height: 24px; flex-shrink: 0; font-size: 1.3rem; }

/* ─────────────────────────────────────────
   RESUME
───────────────────────────────────────── */
#resume { background: var(--bg); }

/* Card wrapper */
.resume-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

/* macOS-style header */
.resume-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface2);
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.resume-card-filename {
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 8px;
  flex: 1;
}
.resume-card-actions { display: flex; gap: 0.5rem; }
.resume-icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  width: 32px; height: 32px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
}
.resume-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Body */
.resume-card-body {
  padding: 2rem 2.5rem;
}

/* Section blocks */
.resume-section-block {
  margin-bottom: 2.5rem;
}
.resume-section-block:last-child {
  margin-bottom: 0;
}

.resume-section-heading {
  font-family: var(--font-code);
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.resume-section-heading i {
  font-size: 0.95rem;
}

/* Reusable panel (card inside card) */
.resume-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.resume-panel:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,212,255,0.08);
}

/* Profile text */
.resume-profile-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Timeline inside resume */
.resume-timeline {
  position: relative;
  padding-left: 1.5rem;
}
.resume-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
}
.resume-timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.resume-timeline-item:last-child {
  margin-bottom: 0;
}
.resume-timeline-dot {
  position: absolute;
  left: -1.95rem;
  top: 18px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg2);
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

/* Panel header (role + date) */
.resume-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.resume-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.15rem;
}
.resume-company {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Bullet points (matches .job-points) */
.resume-points {
  list-style: none;
  margin-bottom: 0.75rem;
  padding: 0;
}
.resume-points li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}
.resume-points li::before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  top: 3px;
}
.resume-points strong {
  color: var(--accent);
}

/* Skills grid */
.resume-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.resume-skill-group {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}
.resume-skill-group:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.resume-skill-label {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.resume-skill-label i {
  color: var(--accent);
  font-size: 0.8rem;
}

/* Education grid */
.resume-edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.resume-edu-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.resume-edu-item:hover {
  transform: translateY(-3px);
}
.resume-edu-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.resume-edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: center;
}

/* Awards list */
.resume-awards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.resume-award-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.resume-award-item:hover {
  transform: translateX(4px);
}
.resume-award-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.resume-award-item strong {
  color: var(--white);
  font-size: 0.93rem;
  display: block;
  margin-bottom: 0.15rem;
}
.resume-award-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Footer / download bar */
.resume-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--surface2);
  border-top: 1px solid var(--border);
}
.resume-download-btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
#contact { background: var(--bg2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 2.5rem;
}

.contact-intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-intro strong { color: var(--text); }

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.contact-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  color: var(--text);
}
.contact-link strong { color: var(--white); display: block; }
.contact-link p { font-size: 0.85rem; }

.contact-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-icon.linkedin { background: rgba(10,102,194,0.15); color: #0a66c2; }
.contact-icon.github   { background: rgba(255,255,255,0.06); color: var(--white); }
.contact-icon.twitter  { background: rgba(0,0,0,0.2); color: var(--white); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-code);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-note {
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
  color: var(--accent3);
}
.form-hint {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.form-hint strong { color: var(--accent); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-logo {
  font-family: var(--font-code);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-logo .bracket { color: var(--accent); }

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.heart { color: #ef4444; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}
.footer-links a:hover { color: var(--accent); transform: translateY(-3px); }

.footer-copy { font-size: 0.82rem; color: var(--text-dim); }

/* ─────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(0,212,255,0.4);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-3px); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  #hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
    padding-top: 100px;
  }
  .hero-content { max-width: 100%; }
  .hero-image-wrapper { flex: none; }
  .hero-actions { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .education-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-card.featured { flex-direction: column; grid-column: span 1; }
  .project-card.featured .project-img-wrap { flex: none; max-height: none; }
}

@media (max-width: 700px) {
  .nav-links, .nav-resume-btn { display: none; }
  .hamburger { display: flex; }
  #navbar { padding: 0 1.5rem; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1rem; }
  .nav-resume-btn.open { display: block; }

  section { padding: 70px 0; }
  .timeline { padding-left: 1.5rem; }
  .timeline-dot { left: -1.9rem; }

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

  .resume-download-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .resume-card-body { padding: 1.5rem 1rem; }
  .resume-panel-header { flex-direction: column; }
  .resume-skills-grid { grid-template-columns: 1fr; }
  .resume-edu-grid { grid-template-columns: 1fr; }
  .resume-card-footer { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-img { width: 240px; height: 240px; }
  .about-facts { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   SCROLL ANIMATION HELPER
───────────────────────────────────────── */
/* ── Hobbies ─────────────────────────────────── */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.hobby-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.hobby-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.12);
  border-color: var(--accent);
}
.hobby-wide {
  grid-column: 1 / -1;
}
.hobby-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.hobby-emoji {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(0,212,255,0.3));
}
.hobby-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-code);
}
.hobby-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.hobby-desc strong {
  color: var(--accent);
}

/* Song lists */
.song-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.song-column h4 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-family: var(--font-code);
}
.song-column h4 i { margin-right: 0.4rem; }
.song-list {
  list-style: none;
  padding: 0;
}
.song-list li {
  margin-bottom: 0.4rem;
}
.song-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0;
}
.song-list a:hover {
  color: var(--accent);
  transform: translateX(3px);
}
.song-list a i {
  font-size: 0.75rem;
  color: var(--accent2);
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.song-list a:hover i {
  color: #ff0000;
}

/* Chord badges */
.chord-badge {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.chord {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.85rem;
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chord:hover {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0,212,255,0.2);
}

/* Hobby media */
.hobby-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}
.hobby-card:hover .hobby-media {
  border-color: var(--accent);
}
.hobby-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.4s ease;
}
.hobby-card:hover .hobby-img {
  transform: scale(1.03);
}
.hobby-img.chess-board {
  max-height: 300px;
  object-fit: contain;
  background: #f0d9b5;
  padding: 0;
}
.hobby-caption {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  font-style: italic;
  font-family: var(--font-code);
}

/* Hobby YouTube links */
.hobby-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
}
.hobby-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255,0,0,0.12);
  border: 1px solid rgba(255,0,0,0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}
.hobby-link-btn i {
  color: #ff0000;
  font-size: 0.85rem;
}
.hobby-link-btn:hover {
  background: rgba(255,0,0,0.2);
  border-color: #ff0000;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,0,0,0.15);
}
.hobby-link-btn.valorant-btn {
  background: rgba(255,70,85,0.12);
  border-color: rgba(255,70,85,0.3);
}
.hobby-link-btn.valorant-btn:hover {
  background: rgba(255,70,85,0.2);
  border-color: #ff4655;
}
.hobby-link-btn.cs2-btn {
  background: rgba(245,166,35,0.12);
  border-color: rgba(245,166,35,0.3);
}
.hobby-link-btn.cs2-btn i {
  color: #f5a623;
}
.hobby-link-btn.cs2-btn:hover {
  background: rgba(245,166,35,0.2);
  border-color: #f5a623;
}

/* Gaming duo */
.gaming-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.game-poster {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}
.game-poster:hover {
  border-color: var(--accent);
}
.game-poster .hobby-img {
  max-height: 180px;
}
.game-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-code);
  letter-spacing: 1px;
}

@media (max-width: 700px) {
  .song-lists { grid-template-columns: 1fr; }
  .hobbies-grid { grid-template-columns: 1fr; }
  .gaming-duo { grid-template-columns: 1fr; }
  .hobby-links { flex-direction: column; align-items: flex-start; }
}

/* ── LinkedIn Posts ───────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.post-card {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(100, 255, 218, 0.08);
  border-color: var(--accent);
}
.post-icon {
  font-size: 2rem;
  color: #0a66c2;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.post-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--heading);
}
.post-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted, var(--text));
  margin-bottom: 0.75rem;
}
.post-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}
.post-link i { margin-left: 0.25rem; font-size: 0.75rem; }

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: none;
}
