/* ============================================================
   ANANTHAN PORTFOLIO — Comic Style + Light/Dark + Spotlight
   ============================================================ */

/* ── FONTS & TOKENS ───────────────────────────────────────── */
:root {
  --yellow:       #FFD700;
  --yellow-dark:  #F0B400;
  --yellow-light: #FFF3B0;
  --navy:         #1a1a2e;
  --navy-mid:     #16213e;
  --navy-light:   #0f3460;
  --ink:          #1a1a2e;
  --red-accent:   #E63946;
  --cyan-accent:  #4CC9F0;
  --white:        #ffffff;
  --off-white:    #fffef5;

  /* Light mode */
  --bg:           #fffef5;
  --bg-alt:       #fff8d6;
  --card-bg:      #ffffff;
  --text:         #1a1a2e;
  --text-muted:   #555577;
  --border:       #1a1a2e;
  --shadow:       4px 4px 0px #1a1a2e;
  --shadow-hover: 6px 6px 0px #1a1a2e;
  --nav-bg:       #ffffff;

  --font-comic:   'Bangers', cursive;
  --font-body:    'Nunito', sans-serif;
  --font-handwritten: 'Comic Neue', cursive;

  --radius:       6px;
  --transition:   0.25s ease;
}

[data-theme="dark"] {
  --bg:           #000000;
  --bg-alt:       #000000;
  --card-bg:      #0d0d1a;
  --text:         #ffffff;
  --text-muted:   #aaaacc;
  --border:       #FFD700;
  --shadow:       4px 4px 0px #FFD700;
  --shadow-hover: 6px 6px 0px #FFD700;
  --nav-bg:       #050510;
}

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

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

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── SPOTLIGHT OVERLAY (dark mode only) ───────────────────── */
#spotlight-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000000;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] #spotlight-overlay {
  display: block;
}

#spotlight-circle {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* Multi-layer radial gradient for realistic flashlight */
  background: radial-gradient(
    circle at center,
    rgba(255, 240, 180, 0.22) 0%,
    rgba(255, 230, 100, 0.13) 25%,
    rgba(255, 210, 50, 0.06) 50%,
    rgba(255, 200, 0, 0.02) 70%,
    transparent 100%
  );
  box-shadow:
    0 0 60px 30px rgba(255, 240, 180, 0.10),
    0 0 100px 60px rgba(255, 210, 50, 0.05),
    0 0 180px 100px rgba(255, 200, 0, 0.02);
  /* Cut hole in the black overlay using mix-blend-mode */
  mix-blend-mode: screen;
  top: -9999px;
  left: -9999px;
}

/* The actual cutout technique */
[data-theme="dark"] #spotlight-overlay {
  background: radial-gradient(
    circle 160px at var(--mx, -9999px) var(--my, -9999px),
    transparent 0%,
    transparent 42%,
    rgba(0,0,0,0.60) 58%,
    rgba(0,0,0,0.88) 72%,
    rgba(0,0,0,0.97) 85%,
    #000000 100%
  );
  pointer-events: none;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 3px solid var(--border);
  box-shadow: 0 3px 0 var(--yellow);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-comic);
  font-size: 1.6rem;
  letter-spacing: 2px;
  white-space: nowrap;
}
.logo-bracket { color: var(--yellow); }
.logo-name { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links a:hover {
  border-color: var(--border);
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 2px 2px 0 var(--border);
}

.resume-btn {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  border: 2px solid var(--border) !important;
  box-shadow: 3px 3px 0 var(--border) !important;
}
.resume-btn:hover {
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0 var(--border) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#theme-toggle {
  background: none;
  border: 2.5px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
#theme-toggle:hover {
  background: var(--yellow);
  transform: scale(1.05);
}
[data-theme="light"] .moon { display: none; }
[data-theme="dark"] .sun { display: none; }

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

/* ── CONTAINER & SECTION ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.alt-bg {
  background: var(--bg-alt);
  transition: background 0.4s ease;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: var(--font-handwritten);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-comic);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 3px;
  color: var(--text);
  text-shadow: 3px 3px 0 var(--yellow);
  -webkit-text-stroke: 1px var(--border);
  display: inline-block;
}

.title-underline {
  width: 80px;
  height: 5px;
  background: var(--yellow);
  border: 2px solid var(--border);
  margin: 1rem auto 0;
  border-radius: 3px;
}

/* ── COMIC CARD ───────────────────────────────────────────── */
.comic-card {
  position: relative;
  background: var(--card-bg);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: all var(--transition);
}

.comic-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.card-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--yellow);
  border-style: solid;
}
.card-corner.tl { top: -3px; left: -3px; border-width: 3px 0 0 3px; }
.card-corner.tr { top: -3px; right: -3px; border-width: 3px 3px 0 0; }
.card-corner.bl { bottom: -3px; left: -3px; border-width: 0 0 3px 3px; }
.card-corner.br { bottom: -3px; right: -3px; border-width: 0 3px 3px 0; }

/* ── COMIC PANEL ──────────────────────────────────────────── */
.comic-panel {
  background: var(--card-bg);
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.comic-panel:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

/* ── SPEECH BUBBLE ────────────────────────────────────────── */
.speech-bubble {
  position: relative;
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: 18px;
  padding: 0.6rem 1.2rem;
  display: inline-block;
  font-family: var(--font-handwritten);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 1rem;
  box-shadow: 3px 3px 0 var(--border);
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 28px;
  border: 8px solid transparent;
  border-top-color: var(--border);
}
.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 29px;
  border: 7px solid transparent;
  border-top-color: var(--white);
  z-index: 1;
}

.speech-bubble-right {
  position: relative;
  background: var(--yellow);
  border: 3px solid var(--border);
  border-radius: 14px;
  padding: 0.6rem 1rem;
  font-family: var(--font-handwritten);
  font-size: 0.85rem;
  color: var(--navy);
  box-shadow: 3px 3px 0 var(--border);
  text-align: center;
  margin-top: 1rem;
}
.speech-bubble-right::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--border);
}
.speech-bubble-right::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: var(--yellow);
  z-index: 1;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  border: 2.5px solid var(--border);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 4px 4px 0 var(--border);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border);
  background: var(--yellow-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  box-shadow: 4px 4px 0 var(--border);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text-muted);
  box-shadow: 3px 3px 0 var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--border);
  box-shadow: 4px 4px 0 var(--border);
  transform: translate(-2px, -2px);
}

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

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding-top: 68px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-halftone {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--yellow) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.18;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-name {
  font-family: var(--font-comic);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: 3px;
  color: var(--text);
  -webkit-text-stroke: 2px var(--border);
  margin-bottom: 1rem;
}

.hero-name .line1 { display: block; color: var(--navy); }
.hero-name .line2 {
  display: block;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--border);
  text-shadow: 4px 4px 0 var(--border);
}

.hero-title-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.hero-title-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--navy);
  color: var(--yellow);
  padding: 0.3rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme="dark"] .hero-title-tag {
  background: var(--yellow);
  color: var(--navy);
}

.hero-title-divider {
  font-weight: 900;
  color: var(--yellow);
  font-size: 1.2rem;
}

.hero-tagline {
  font-family: var(--font-handwritten);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  min-height: 1.8em;
}

.typed-cursor {
  animation: blink 0.8s step-end infinite;
  color: var(--yellow);
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.hero-socials {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-socials a {
  width: 42px;
  height: 42px;
  border: 2.5px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--card-bg);
  box-shadow: 3px 3px 0 var(--border);
  transition: all var(--transition);
  color: var(--text);
}
.hero-socials a:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--border);
}

/* ── AVATAR ───────────────────────────────────────────────── */
.hero-avatar-wrap {
  flex-shrink: 0;
}

.avatar-panel {
  position: relative;
  text-align: center;
}

.panel-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--yellow) 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: 0.15;
  border-radius: 12px;
  pointer-events: none;
}

.avatar-frame {
  position: relative;
  width: 300px;
  height: 300px;
  border: 4px solid var(--border);
  border-radius: 50%;
  overflow: hidden;
  background: var(--yellow-light);
  box-shadow: 6px 6px 0 var(--border), 10px 10px 0 var(--yellow);
  margin: 0 auto;
  cursor: pointer;
  transition: all var(--transition);
}
.avatar-frame:hover {
  transform: rotate(-2deg) scale(1.03);
  box-shadow: 8px 8px 0 var(--border), 14px 14px 0 var(--yellow);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comic-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-photo-hint {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  border-radius: 50%;
}
.avatar-frame:hover .avatar-photo-hint { opacity: 1; }
.avatar-photo-hint i { font-size: 2rem; }

.avatar-caption {
  margin-top: 1rem;
}

/* ── HERO SCROLL HINT ─────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-handwritten);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-arrow {
  font-size: 1.4rem;
  animation: bounce 1.6s ease-in-out infinite;
  color: var(--yellow);
  -webkit-text-stroke: 1px var(--border);
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── ABOUT ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
}
.about-text p strong { color: var(--text); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}
.stat-num {
  font-family: var(--font-comic);
  font-size: 2.8rem;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--border);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── SKILLS ───────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.skill-group {
  padding: 1.5rem;
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.skill-group-header i {
  font-size: 1.3rem;
  color: var(--yellow);
  background: var(--navy);
  padding: 0.5rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .skill-group-header i {
  background: var(--yellow);
  color: var(--navy);
}
.skill-group-header h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  transition: all var(--transition);
  letter-spacing: 0.5px;
  cursor: default;
}
.skill-tag:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 2px 2px 0 var(--border);
}
.skill-tag.primary {
  background: var(--yellow);
  color: var(--navy);
}
.skill-tag.primary:hover {
  background: var(--yellow-dark);
}

/* ── TIMELINE ─────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0; bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--yellow) 0, var(--yellow) 12px,
    transparent 12px, transparent 20px
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 1.8rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--border);
  box-shadow: 2px 2px 0 var(--border);
}

.timeline-card {
  padding: 1.8rem;
}

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

.exp-role {
  font-family: var(--font-comic);
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  color: var(--text);
}

.exp-company {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.2rem;
}

.exp-period {
  font-family: var(--font-handwritten);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--yellow);
  color: var(--navy);
  padding: 0.3rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.exp-points {
  padding-left: 1.2rem;
  list-style: disc;
  margin-bottom: 1.2rem;
}
.exp-points li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.exp-points li strong { color: var(--text); }

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.exp-tags span {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border: 2px solid var(--border);
  border-radius: 3px;
  background: var(--bg-alt);
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ── PROJECTS ─────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.project-card-inner {
  padding: 2rem;
}

.project-icon {
  width: 52px;
  height: 52px;
  background: var(--yellow);
  border: 3px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1rem;
  box-shadow: 3px 3px 0 var(--border);
  transition: all var(--transition);
}
.project-card:hover .project-icon {
  transform: rotate(-10deg) scale(1.1);
}

.project-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red-accent);
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-family: var(--font-comic);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tags span {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border: 2px solid var(--border);
  background: var(--bg);
  border-radius: 3px;
  color: var(--text-muted);
}

.project-pow {
  position: absolute;
  top: -8px;
  right: -8px;
  font-family: var(--font-comic);
  font-size: 1.1rem;
  letter-spacing: 2px;
  background: var(--red-accent);
  color: white;
  padding: 0.3rem 0.7rem;
  border: 3px solid var(--border);
  border-radius: 6px;
  transform: rotate(12deg);
  box-shadow: 2px 2px 0 var(--border);
  transition: all var(--transition);
}
.project-card:hover .project-pow {
  transform: rotate(18deg) scale(1.1);
}

/* ── LEADERSHIP ───────────────────────────────────────────── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.leadership-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}
.leadership-icon {
  width: 56px;
  height: 56px;
  background: var(--yellow);
  border: 3px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 auto 1rem;
  box-shadow: 3px 3px 0 var(--border);
  transition: all var(--transition);
}
.leadership-item:hover .leadership-icon {
  transform: rotate(-8deg) scale(1.05);
  background: var(--navy);
  color: var(--yellow);
}
[data-theme="dark"] .leadership-icon {
  background: var(--yellow);
  color: var(--navy);
}
[data-theme="dark"] .leadership-item:hover .leadership-icon {
  background: var(--navy-light);
  color: var(--yellow);
}
.leadership-item h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.leadership-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── EDUCATION ────────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.edu-card {
  text-align: center;
  padding: 2.5rem 2rem;
}
.edu-icon {
  width: 64px;
  height: 64px;
  background: var(--yellow);
  border: 3px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 0 auto 1.2rem;
  box-shadow: 4px 4px 0 var(--border);
}
.edu-card h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.edu-institute {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── BLOG ─────────────────────────────────────────────────── */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
}
.blog-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.blog-icon-wrap {
  font-size: 4rem;
  color: var(--text);
  flex-shrink: 0;
}
.blog-text h3 {
  font-family: var(--font-comic);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.blog-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.97rem;
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

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

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 2.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  color: var(--text);
}
.contact-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
  background: var(--yellow);
  color: var(--navy);
}
.contact-icon {
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy);
  flex-shrink: 0;
  transition: all var(--transition);
}
.contact-link:hover .contact-icon {
  background: var(--navy);
  color: var(--yellow);
}
.contact-link > div:last-child {
  display: flex;
  flex-direction: column;
}
.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.contact-link:hover .contact-label { color: var(--navy); }
.contact-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  transition: color var(--transition);
}
.contact-link:hover .contact-value { color: var(--navy); }

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

.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  box-shadow: 3px 3px 0 var(--yellow);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.form-status {
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
}
.form-status.success { color: #2ecc71; }
.form-status.error { color: var(--red-accent); }
.form-status.sending { color: var(--yellow); }

/* ── FOOTER ───────────────────────────────────────────────── */
#footer {
  background: var(--navy);
  border-top: 4px solid var(--yellow);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

#footer .logo-bracket { color: var(--yellow); }
#footer .logo-name { color: var(--white); }
#footer .nav-logo { font-size: 1.4rem; }

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-handwritten);
}

.footer-socials {
  display: flex;
  gap: 0.7rem;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.footer-socials a:hover {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
  transform: translateY(-3px);
}

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── MOBILE NAV OPEN ──────────────────────────────────────── */
.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0; right: 0;
  background: var(--nav-bg);
  border-bottom: 3px solid var(--border);
  padding: 1rem 2rem;
  gap: 0.5rem;
  z-index: 999;
  box-shadow: 0 6px 0 var(--yellow);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 2rem;
  }
  .hero-socials, .hero-cta-group, .hero-title-wrap {
    justify-content: center;
  }
  .speech-bubble { margin: 0 auto 1rem; }
  .hero-avatar-wrap { width: 100%; }
  .avatar-frame { width: 220px; height: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 3.5rem 0; }
  .hero-name { font-size: clamp(2.5rem, 10vw, 4rem); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-cta-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── PRINT FRIENDLY ───────────────────────────────────────── */
@media print {
  #spotlight-overlay, #navbar, .hero-scroll-hint { display: none !important; }
  body { background: white; color: black; }
}
