/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
    /* Base purple palette — used for gradient accents */
    --purple:       #b48ec2;
    --purple-light: #d4b8de;
    --purple-dark:  #8a6499;
}

[data-theme="dark"] {
    --bg:           #16111e;
    --bg-2:         #1e1729;
    --bg-3:         #271e34;
    /* Borders: raised opacity so they're actually visible */
    --border:       rgba(180, 142, 194, 0.28);
    --border-hover: rgba(212, 184, 222, 0.65);
    /* Text hierarchy — all pass WCAG AA against dark bg */
    --text-1:       #f8f3fc;           /* 16.1:1 on #16111e ✓ */
    --text-2:       #e2d4ee;           /* 12.5:1 ✓ */
    --text-3:       #cbb8e0;           /* 8.8:1  ✓  (was #c0a8d6 — bumped up) */
    --text-4:       #a892be;           /* 5.2:1  ✓  (was #9880aa — bumped up) */
    /* Muted helper used inline */
    --muted:        #a892be;
    --nav-bg:       rgba(22, 17, 30, 0.97);
    --card-bg:      #1e1729;
    --input-bg:     #16111e;
    --input-bg-f:   #271e34;
    --stat-bg:      #271e34;
    --toggle-track: rgba(180, 142, 194, 0.28);
    --toggle-thumb: #b48ec2;
    --shadow-glow:  rgba(180, 142, 194, 0.22);
}

[data-theme="light"] {
    --bg:           #f9f3fc;
    --bg-2:         #f0e6f8;
    --bg-3:         #e4d2f0;
    /* Borders: stronger so cards are clearly separated on light bg */
    --border:       rgba(120, 80, 150, 0.20);
    --border-hover: rgba(100, 60, 130, 0.55);
    /* Text hierarchy — all pass WCAG AA against light bg */
    --text-1:       #130818;           /* 18.5:1 on #f9f3fc ✓ */
    --text-2:       #27113a;           /* 14.2:1 ✓ */
    --text-3:       #3e2558;           /* 9.4:1  ✓  (was #4a3260 — darkened slightly) */
    --text-4:       #5e3f80;           /* 5.8:1  ✓  (was #7a5e90 — significantly darker) */
    /* Muted helper used inline */
    --muted:        #5e3f80;
    --nav-bg:       rgba(249, 243, 252, 0.98);
    --card-bg:      #ffffff;
    --input-bg:     #f0e6f8;
    --input-bg-f:   #ffffff;
    --stat-bg:      #f0e6f8;
    --toggle-track: rgba(120, 80, 150, 0.18);
    --toggle-thumb: #7b4fa8;
    --shadow-glow:  rgba(120, 80, 150, 0.18);
    /* Redefine accent purples for light mode so they still pop */
    --purple:       #8a5aaa;           /* 5.1:1 on white ✓ */
    --purple-light: #a870c8;           /* 4.5:1 on white ✓ */
    --purple-dark:  #6b3d8c;           /* 6.8:1 on white ✓ */
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    transition: background 0.45s ease, color 0.45s ease;
}

[data-theme="dark"] {
    background-image:
        radial-gradient(ellipse 100% 70% at 90% 5%,  rgba(180, 142, 194, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 80%  60% at 5%  95%, rgba(138, 100, 153, 0.08) 0%, transparent 55%);
}

[data-theme="light"] {
    background-image:
        radial-gradient(ellipse 100% 70% at 90% 5%,  rgba(196, 160, 214, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 80%  60% at 5%  95%, rgba(160, 120, 180, 0.10) 0%, transparent 55%);
}

.container {
    width: 100%;
    max-width: 1300px;
    margin-left: 100px;
    margin-right: 40px;
    padding: 0;
}

section { padding: 130px 0; }

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px; left: 0;
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.project-card, .achievement-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
                transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.project-card.visible, .achievement-card.visible { opacity: 1; transform: translateY(0); }

.project-card:nth-child(1), .achievement-card:nth-child(1) { transition-delay: 0.05s; }
.project-card:nth-child(2), .achievement-card:nth-child(2) { transition-delay: 0.13s; }
.project-card:nth-child(3), .achievement-card:nth-child(3) { transition-delay: 0.21s; }
.project-card:nth-child(4) { transition-delay: 0.29s; }
.project-card:nth-child(5) { transition-delay: 0.37s; }

/* ═══════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background 0.45s ease, box-shadow 0.3s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    padding: 18px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-right: auto;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    margin-right: 32px;
}

.nav-links a {
    color: var(--text-3);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-1); }

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    border-radius: 2px;
}

/* ── THEME TOGGLE ── */
.theme-toggle { background: none; border: none; cursor: pointer; padding: 0; outline: none; flex-shrink: 0; }

.toggle-track {
    display: flex; align-items: center;
    width: 64px; height: 32px;
    border-radius: 50px;
    background: var(--toggle-track);
    border: 1.5px solid var(--border-hover);
    position: relative;
    transition: all 0.4s ease;
    padding: 3px;
}

.toggle-thumb {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 10px rgba(180, 142, 194, 0.55);
    position: relative;
}

[data-theme="light"] .toggle-thumb { transform: translateX(32px); }

.icon-sun, .icon-moon { position: absolute; width: 14px; height: 14px; color: #fff; transition: opacity 0.3s ease; }
[data-theme="dark"]  .icon-sun  { opacity: 0; }
[data-theme="dark"]  .icon-moon { opacity: 1; }
[data-theme="light"] .icon-sun  { opacity: 1; }
[data-theme="light"] .icon-moon { opacity: 0; }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
    padding: 15px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    color: #fff;
    box-shadow: 0 4px 18px rgba(180, 142, 194, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(180,142,194,0.6); }

.btn-secondary { background: transparent; color: var(--text-1); border: 2px solid var(--purple); }
.btn-secondary:hover { background: rgba(180,142,194,0.12); border-color: var(--purple-light); transform: translateY(-2px); }

.btn-full { width: 100%; text-align: center; margin-top: 8px; padding: 17px; font-size: 1rem; }

/* ═══════════════════════════════════════════════════
   SOCIAL ICONS
═══════════════════════════════════════════════════ */
.social-icons { display: flex; gap: 16px; align-items: center; margin-top: 32px; flex-wrap: wrap; }

.social-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; flex-shrink: 0;
}

.social-icon svg { width: 22px; height: 22px; }
/* Explicit white text on colored backgrounds so icons are readable in both themes */
.si-github   { background: #24292e; color: #ffffff; }
.si-linkedin { background: #0a66c2; color: #ffffff; }
.si-email    { background: #c4506a; color: #ffffff; }
/* Use currentColor so SVG paths inherit from parent color */
.social-icon svg path { fill: currentColor; }
.social-icon:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(180,142,194,0.45); }

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 140px 0 100px;
    position: relative; overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 12% 50%,  rgba(180,142,194,0.15) 0%, transparent 65%),
        radial-gradient(ellipse 50% 70% at 88% 18%,  rgba(212,184,222,0.09) 0%, transparent 60%),
        radial-gradient(ellipse 45% 40% at 58% 88%,  rgba(138,100,153,0.11) 0%, transparent 55%);
    pointer-events: none; z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-glow {
    position: absolute; top: -12%; left: -10%;
    width: 850px; height: 850px;
    background: radial-gradient(circle, rgba(180,142,194,0.13) 0%, rgba(212,184,222,0.06) 42%, transparent 70%);
    filter: blur(100px); pointer-events: none; border-radius: 50%; z-index: 0;
}

.hero-grid {
    display: grid; grid-template-columns: 58% 42%;
    gap: 60px; width: 100%; align-items: center;
}

.hero-left { opacity: 0; animation: fadeInUp 0.9s ease forwards 0.2s; }

.hero-eyebrow {
    display: inline-block; font-size: 0.9rem; font-weight: 600;
    color: var(--purple-light); margin-bottom: 22px;
    padding: 8px 20px; border-radius: 50px;
    background: rgba(180,142,194,0.1); border: 1px solid rgba(180,142,194,0.3);
}
[data-theme="light"] .hero-eyebrow { color: var(--purple-dark); background: rgba(107,61,140,0.09); border-color: rgba(107,61,140,0.30); }

.hero-left h1 { font-size: 3.8rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; color: var(--text-1); }

.name-gradient {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="light"] .name-gradient {
    background: linear-gradient(135deg, #6b3d8c, #9040b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-role { font-size: 1.3rem; color: var(--text-2); font-weight: 600; margin-bottom: 22px; }
.hero-intro { font-size: 1.05rem; color: var(--text-3); margin-bottom: 44px; line-height: 1.85; max-width: 92%; }
.cta-buttons { display: flex; gap: 16px; margin-bottom: 36px; }

.hero-right { display: flex; justify-content: center; align-items: center; opacity: 0; animation: fadeInUp 0.9s ease forwards 0.45s; }

.profile-frame { position: relative; width: 360px; height: 400px; }

.profile-image {
    width: 100%; height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 88% 100%, 0 100%);
    background: var(--bg-3); border: 2px solid rgba(180,142,194,0.5);
    overflow: hidden; animation: floatProfile 6s ease-in-out infinite;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 0 55px rgba(180,142,194,0.28);
    position: relative; z-index: 2;
}
.profile-image-inner { width: 100%; height: 100%; }
.profile-image-inner img { width: 100%; height: 100%; object-fit: cover; }

.profile-rings { position: absolute; inset: -24px; z-index: 1; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(180,142,194,0.3); animation: spinRing 20s linear infinite; }
.ring-1 { inset: 0; }
.ring-2 { inset: 16px; animation-direction: reverse; animation-duration: 14s; border-color: rgba(212,184,222,0.18); }

@keyframes spinRing    { to { transform: rotate(360deg); } }
@keyframes floatProfile { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes fadeInUp    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════ */

#about {
  padding: 120px 0;
  position: relative;
}

.hero-left h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* CENTER HEADER */
.about-header {
  text-align: center;
  margin-bottom: 70px;
}

.about-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.about-title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.about-accent {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), transparent);
  margin: 18px auto 0;
  border-radius: 3px;
}

/* MAIN GRID */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

/* LEFT STATS */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 20px;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.about-card h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-card p {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px var(--shadow-glow);
}

/* RIGHT CONTENT */
.about-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-2);
  margin-bottom: 0;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-stats {
    order: 2;
  }

  .about-content {
    order: 1;
  }
}

/* ════════════════════════════════════════
   TECH STACK — Professional Version
════════════════════════════════════════ */

#tech-stack {
  padding: 120px 0;
}

/* Header (LEFT aligned like About but not centered) */
.tech-header {
  margin-bottom: 60px;
}

.tech-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.tech-title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.tech-accent {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), transparent);
  margin-top: 18px;
  border-radius: 3px;
}

/* Grid Layout */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.tech-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.35s ease;
  overflow: hidden;
}

.tech-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px var(--shadow-glow);
  transform: translateY(-6px);
}

/* Category Title — matches the site's existing eyebrow/accent language */
.tech-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-light);
  /* Left accent bar — same as section underline gradient */
  border-left: 3px solid var(--purple);
  padding: 4px 0 4px 12px;
  background: none;
  align-self: flex-start;
  margin-bottom: 4px;
}

[data-theme="light"] .tech-heading {
  color: var(--purple-dark);
  border-left-color: var(--purple);
}

/* Small Tech Cards */
.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-item {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.25s ease;
  cursor: default;
}

.tech-item:hover {
  border-color: var(--purple);
  background: rgba(180,142,194,0.12);
  color: var(--text-1);
}

/* Responsive */
@media (max-width: 1100px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════
   PROFICIENCY — FINAL CLEAN VERSION
════════════════════════════════════════ */

#proficiency {
  padding: 90px 0; /* slightly reduced overall padding */
}

.proficiency-layout {
  display: flex;
  flex-direction: column;
  gap: 0; /* removed extra gap */
}

/* HEADER */
.proficiency-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px; /* reduced space under heading */
}

.prof-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 6px; /* tighter */
}

.proficiency-header .section-title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  display: inline-block;
  margin-bottom: 0;
}

.proficiency-header .section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), transparent);
  margin-top: 8px; /* reduced from 14px */
  border-radius: 2px;
}

/* BODY LAYOUT */
.proficiency-body {
  display: grid;
  grid-template-columns: 1fr 320px; /* slightly smaller SVG column */
  gap: 40px;
  align-items: center;
}

/* LEFT SIDE BARS */
.proficiency-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px; /* slightly tighter between bars */
}

.proficiency-item {
  display: flex;
  flex-direction: column;
}

.proficiency-label {
  margin-bottom: 8px;
}

.proficiency-label span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-1);
}

/* BAR WRAPPER */
.proficiency-bar-wrap {
  position: relative;
  width: 85%;
}

.proficiency-bar {
  width: 100%;
  height: 7px;
  background: rgba(180,142,194,0.1);
  border-radius: 100px;
  overflow: visible;
}

.proficiency-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(
    90deg,
    var(--purple-dark),
    var(--purple),
    var(--purple-light)
  );
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.proficiency-fill.animate {
  width: var(--width);
}

/* FLOATING PERCENTAGE */
.pct {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--purple-light);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease 1s;
}

.pct.visible {
  opacity: 1;
}

/* RIGHT SIDE SVG */
.proficiency-illustration {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* shift slightly left */
}

.proficiency-illustration svg {
  width: 100%;
  max-width: 300px; /* reduced size */
  filter: drop-shadow(0 0 24px rgba(180,142,194,0.16));
  animation: profFloat 6s ease-in-out infinite;
}

/* FLOAT ANIMATION */
@keyframes profFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

[data-theme="light"] .proficiency-bar {
  background: rgba(100,60,140,0.12);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .proficiency-body {
    grid-template-columns: 1fr;
  }

  .proficiency-illustration {
    display: none;
  }

  .proficiency-bar-wrap {
    width: 100%;
  }
}
/* ═══════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════ */

/* ── SECTION ── */
#projects { padding: 120px 0; }

/* ── HEADER ── */
.projects-header { margin-bottom: 64px; }

.projects-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
  display: block;
}

.projects-title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 18px 0;
}

.projects-accent {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light), transparent);
  border-radius: 2px;
}

/* ── GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
}

/* ── CARD BASE ── */
.pj-card {
  position: relative;
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 320px;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.38s ease;
  cursor: default;
  opacity: 0;
  transform: translateY(24px);
}

.pj-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pj-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px var(--c3, rgba(180, 142, 194, 0.18)),
              0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Glow orb top-right on hover */
.pj-card::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  top: -80px;
  right: -80px;
  filter: blur(55px);
  background: radial-gradient(circle, var(--c3, rgba(180, 142, 194, 0.12)), transparent 65%);
}
.pj-card:hover::before { opacity: 1; }

/* Bottom accent line on hover */
.pj-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c1, #b48ec2), var(--c2, #d4b8de), transparent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pj-card:hover::after { opacity: 1; }

/* ── PER-CARD ACCENT COLORS ── */
.pj-counterflow { --c1: #7c5cbf; --c2: #a87dd4; --c3: rgba(124, 92, 191, 0.15); }
.pj-ecycle      { --c1: #2e9e6a; --c2: #4ecb8e; --c3: rgba(46, 158, 106, 0.14); }
.pj-findora     { --c1: #1a7fd4; --c2: #5aaeef; --c3: rgba(26, 127, 212, 0.14); }
.pj-viowatch    { --c1: #c44040; --c2: #e87070; --c3: rgba(196, 64, 64, 0.13);  }
.pj-patrolpro   { --c1: #c97c1a; --c2: #f0a840; --c3: rgba(201, 124, 26, 0.14); }
.pj-astra       { --c1: #1e7acc; --c2: #63b8ff; --c3: rgba(30, 122, 204, 0.15); }

/* ── CARD HEADER ──
   Column layout: icon+title row on top, badge on second row
── */
.pj-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* icon + title sit side by side */
.pj-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── ICON ── */
.pj-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c1, #7c5cbf), var(--c2, #a87dd4));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--c3, rgba(124, 92, 191, 0.28));
}
.pj-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Project icon SVGs sit on a colored gradient bg - white stroke is always correct here */

/* ── TITLE ── */
.pj-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   BADGE — angled shape
   Flat / square on the LEFT side
   Arrow-point cut on the RIGHT side
   like: [████████████▶
══════════════════════════════════════════════════════ */
.pj-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  /* Flush to left card edge (card padding 28px) */
  margin-left: -28px;
  padding: 9px 32px 9px 28px;
  /* Flat left, arrow-point right */
  clip-path: polygon(
    0% 0%,
    calc(100% - 16px) 0%,
    100%              50%,
    calc(100% - 16px) 100%,
    0% 100%
  );
  border-radius: 0;
  border: none;
  white-space: nowrap;
  align-self: flex-start;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.pj-badge:hover {
  filter: brightness(1.1);
  transform: translateX(3px);
}

.pj-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Solid vivid colors exactly as in screenshots */
.pj-badge.winner   { background: #f0a830; color: #1a0800; } /* gold  — SIH Winner    */
.pj-badge.live     { background: #22c97a; color: #001a0a; } /* green — Live on Store */
.pj-badge.ai-badge { background: #38b6ff; color: #001226; } /* blue  — AI Assistant  */

/* ── DESCRIPTION ── */
.pj-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-3);
  flex-grow: 1;
  margin: 0;
}
[data-theme="light"] .pj-desc { color: var(--text-2); }

/* ── TECH STACK PILLS ── */
.pj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.pj-stack span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: border-color 0.25s;
}
.pj-card:hover .pj-stack span {
  border-color: rgba(180, 142, 194, 0.32);
}
[data-theme="light"] .pj-stack span { background: var(--bg-2); border-color: rgba(100,60,140,0.18); color: var(--text-2); }

/* ── STAGGER ANIMATION ── */
.pj-card:nth-child(1) { transition-delay: 0.04s; }
.pj-card:nth-child(2) { transition-delay: 0.08s; }
.pj-card:nth-child(3) { transition-delay: 0.12s; }
.pj-card:nth-child(4) { transition-delay: 0.16s; }
.pj-card:nth-child(5) { transition-delay: 0.20s; }
.pj-card:nth-child(6) { transition-delay: 0.24s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
  }
}

@media (max-width: 580px) {
  .projects-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .pj-card {
    min-height: unset;
    height: auto;
  }
  .pj-badge {
    font-size: 9px;
    padding: 6px 24px 6px 28px;
  }
}

/* ═══════════════════════════════════════════════════
   ACHIEVEMENTS — medal SVG icon
═══════════════════════════════════════════════════ */
#achievements {
  padding: 100px 0;
}

.achievements-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── LEFT ── */
.ach-left {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start; /* text stays left-aligned */
}

/* Center just the medal within the column */
.ach-big-medal {
  margin-top: 20px;
  align-self: center;
}

.ach-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple);
}

.ach-left .section-title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  white-space: nowrap;
  margin-bottom: 0;
}

.ach-left .section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), transparent);
  margin-top: 14px;
  border-radius: 2px;
}

.ach-subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
  text-decoration: none;
}

/* Big animated medal */
.ach-big-medal {
  position: relative;
  width: 160px;
  height: 160px;
}

/* Medal SVG — static, no float */
.ach-big-medal svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 24px rgba(245,200,66,0.3));
  /* No animation — medal stays still */
}

/* Orbit ring — also static, only the dot moves */
.medal-orbit {
  position: absolute;
  inset: -18px;
  border: 1px dashed rgba(245,200,66,0.2);
  border-radius: 50%;
  /* No rotation on the ring itself */
}

/* Dot orbits around the ring by rotating around the medal center */
.medal-orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  /* Offset back to center of ring, then rotate around it */
  transform-origin: 0 calc(50% + 18px + 80px); /* half orbit inset + half medal height */
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #f5c842;
  border-radius: 50%;
  box-shadow: 0 0 10px #f5c842;
  animation: dotOrbit 12s linear infinite;
}

@keyframes dotOrbit {
  from { transform: translateX(-50%) rotate(0deg)   translateY(0); }
  to   { transform: translateX(-50%) rotate(360deg) translateY(0); }
}

.medal-orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #f5c842;
  border-radius: 50%;
  box-shadow: 0 0 10px #f5c842;
  /* Sit at top-center of the orbit ring */
  top: -4px;
  left: calc(50% - 4px);
  /*
    Orbit ring is inset:-18px on a 160px element → ring diameter = 196px → radius = 98px
    Dot is 8px tall, positioned at top:-4px.
    transform-origin x: center of dot = 4px
    transform-origin y: dot center (4px) + distance to orbit center (98px) = 102px
  */
  transform-origin: 4px 102px;
  animation: dotOrbit 12s linear infinite;
}

@keyframes dotOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── LIGHT MODE: boost medal SVG visibility ── */
[data-theme="light"] .ach-big-medal svg {
    /* Amplify the faded gold fills & strokes via filter */
    filter:
        drop-shadow(0 0 18px rgba(200,140,0,0.45))
        drop-shadow(0 2px 8px rgba(180,110,0,0.3))
        saturate(1.6)
        brightness(0.82);
}

/* Orbit ring & dot also need more presence in light */
[data-theme="light"] .medal-orbit {
    border-color: rgba(180, 120, 0, 0.35);
}

[data-theme="light"] .medal-orbit-dot {
    background: #c8960a;
    box-shadow: 0 0 10px #c8960a;
}

/* badge — hidden */
.ach-count-badge { display: none; }

/* ── RIGHT: stacked horizontal cards ── */
.achievements-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Override old grid styles completely */
.achievement-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 30px;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* remove old ach-glow as a child — we replicate with ::before */
.ach-glow { display: none; }

.achievement-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180,142,194,0.04), transparent 55%);
  pointer-events: none;
}

/* Left accent bar revealed on hover */
.achievement-card::after {
  content: '';
  position: absolute;
  left: 0; top: 18%; height: 64%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--ach-top, #f5c842), var(--ach-bot, var(--purple)));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.achievement-card:hover {
  transform: translateX(7px);
  border-color: var(--border-hover);
}

.achievement-card:hover::after { opacity: 1; }

/* Per-card color vars */
.achievement-card:nth-child(1) {
  --ach-top: #f5c842; --ach-bot: #e8a020;
  --ach-medal: rgba(245,200,66,0.12);
  --ach-pill-bg: rgba(245,200,66,0.12);
  --ach-pill-border: rgba(245,200,66,0.3);
  --ach-pill-color: #f5c842;
  --ach-rank-color: #f5c842;
}
.achievement-card:nth-child(1):hover {
  box-shadow: 0 8px 40px rgba(245,200,66,0.1);
}

.achievement-card:nth-child(2) {
  --ach-top: #c8d6df; --ach-bot: #8faab5;
  --ach-medal: rgba(180,200,210,0.1);
  --ach-pill-bg: rgba(180,200,210,0.1);
  --ach-pill-border: rgba(180,200,210,0.3);
  --ach-pill-color: #b0bec5;
  --ach-rank-color: #b0bec5;
}
.achievement-card:nth-child(2):hover {
  box-shadow: 0 8px 40px rgba(180,200,210,0.08);
}

.achievement-card:nth-child(3) {
  --ach-top: #e8935a; --ach-bot: #cd7f32;
  --ach-medal: rgba(205,127,50,0.1);
  --ach-pill-bg: rgba(205,127,50,0.1);
  --ach-pill-border: rgba(205,127,50,0.3);
  --ach-pill-color: #cd7f32;
  --ach-rank-color: #cd7f32;
}
.achievement-card:nth-child(3):hover {
  box-shadow: 0 8px 40px rgba(205,127,50,0.1);
}

/* Medal icon */
.ach-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--ach-medal);
  flex-shrink: 0;
}

.ach-icon svg {
  width: 42px;
  height: 42px;
}

/* Body */
.ach-body { display: flex; flex-direction: column; gap: 6px; }

.ach-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
}

.ach-result {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
  background: var(--ach-pill-bg);
  border: 1px solid var(--ach-pill-border);
  color: var(--ach-pill-color);
  margin: 0;
}

.ach-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Rank number — hidden */
.ach-rank { display: none; }

/* Responsive */
@media (max-width: 860px) {
  .achievements-layout {
    grid-template-columns: 1fr;
  }
  .ach-left {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
  }
  .ach-big-medal { width: 120px; height: 120px; }
}

@media (max-width: 560px) {
  .achievement-card {
    grid-template-columns: 58px 1fr;
    padding: 20px;
    gap: 16px;
  }
  .ach-rank { display: none; }
  .ach-icon { width: 54px; height: 54px; }
  .ach-icon svg { width: 32px; height: 32px; }
}

/* ═══════════════════════════════════════════════════
   LEADERSHIP & MENTORING
═══════════════════════════════════════════════════ */

/* Icon + Title heading row — centered */
.leadership-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 40px;
    text-align: center;
}

.leadership-head-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leadership-head-icon i {
    font-size: 42px;
    color: transparent;
    -webkit-text-stroke: 1.8px var(--purple);
    filter: drop-shadow(0 0 10px rgba(180,142,194,0.55))
            drop-shadow(0 0 24px rgba(180,142,194,0.25));
}

/* Override section-title left alignment for this heading */
.leadership-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leadership-heading .section-title {
font-size: clamp(1.6rem, 2.4vw, 2.2rem);

}
.leadership-heading .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

/* Cards grid */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.leadership-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.leadership-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, var(--purple), var(--purple-light), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.leadership-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(180,142,194,0.08) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.5s;
    pointer-events: none;
}

.leadership-card:hover::before { opacity: 1; }
.leadership-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 24px 60px var(--shadow-glow);
}
.leadership-card:hover::after { transform: scale(1.5); }

.leadership-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.leadership-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(180,142,194,0.14), rgba(212,184,222,0.06));
    border: 1px solid rgba(180,142,194,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    flex-shrink: 0;
}

.leadership-icon-wrap i {
    font-size: 1.15rem;
    color: var(--purple-light);
    transition: color 0.3s;
}
[data-theme="light"] .leadership-icon-wrap i { color: var(--purple-dark); }

.leadership-card:hover .leadership-icon-wrap {
    border-color: var(--purple-light);
    background: linear-gradient(135deg, rgba(180,142,194,0.22), rgba(212,184,222,0.10));
    box-shadow: 0 6px 20px rgba(180,142,194,0.2);
}

.leadership-card:hover .leadership-icon-wrap i { color: #d4b8de; }

.leadership-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.leadership-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.leadership-badge.current {
    background: rgba(100,195,150,0.12);
    color: #4eb889;
    border: 1px solid rgba(100,195,150,0.3);
}
[data-theme="light"] .leadership-badge.current {
    color: #1d7a50;
    background: rgba(50,150,100,0.08);
    border-color: rgba(50,150,100,0.25);
}

.leadership-badge.past {
    background: rgba(180,142,194,0.1);
    color: var(--purple-light);
    border: 1px solid var(--border);
}

[data-theme="light"] .leadership-badge.past { color: var(--purple-dark); border-color: rgba(107,61,140,0.25); }

.leadership-year {
    font-size: 0.78rem;
    color: var(--text-4);
    font-weight: 600;
}

.leadership-role {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 5px 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.leadership-org {
    font-size: 0.82rem;
    color: var(--purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

[data-theme="light"] .leadership-org { color: var(--purple-dark); }

.leadership-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(180,142,194,0.35), transparent);
    margin: 16px 0;
    border-radius: 1px;
    position: relative;
    z-index: 1;
}

.leadership-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.leadership-points li {
    font-size: 0.875rem;
    color: var(--text-3);
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
    transition: color 0.3s;
}

.leadership-points li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--purple);
    line-height: 1.65;
    font-size: 0.8rem;
}

.leadership-card:hover .leadership-points li { color: var(--text-2); }

/* Responsive */
@media (max-width: 900px) {
    .leadership-grid { grid-template-columns: 1fr; }
    .leadership-head-icon { width: 64px; height: 64px; }
    .leadership-head-icon i { font-size: 56px; }
}
/* ═══════════════════════════════════════════════════
   EDUCATION SECTION
═══════════════════════════════════════════════════ */

/* Cap + Title inline at top */
.education-heading {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 36px;
}

.education-cap-icon {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-cap-icon i {
    font-size: 82px;
    color: var(--purple);
    opacity: 0.9;
    filter: drop-shadow(0 0 18px rgba(180,142,194,0.40));
}

.education-title {
    margin: 0 !important;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.education-title::after {
    display: none;
}

.education-heading {
    flex-wrap: wrap;
}

.education-heading .tech-accent {
    width: 44px;
    display: block;
    margin-top: 10px;
}

.edu-title-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    justify-content: center;
}

.edu-title-wrap .tech-accent {
    width: 44px;
    margin-top: 6px;
    margin-bottom: 0 !important;
}

/* Cards container — left padding pushes cards to the right */
.education-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 160px; /* <-- this indents cards to the right, matching screenshot */
}

/* Each row: small dot + card */
.edu-row {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 24px;
}

/* Small hollow circle */
.edu-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(180,142,194,0.5);
    background: rgba(180,142,194,0.07);
    justify-self: center;
    flex-shrink: 0;
}

/* Card */
.edu-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 32px;
    width: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.edu-row:hover .edu-card {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px var(--shadow-glow);
    border-color: var(--border-hover);
}

/* Badge + year */
.edu-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.edu-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(180,142,194,0.1);
    border: 1px solid rgba(180,142,194,0.26);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--purple-light);
    letter-spacing: 0.02em;
}
[data-theme="light"] .edu-badge {
    background: rgba(107,61,140,0.08);
    border-color: rgba(107,61,140,0.22);
    color: var(--purple-dark);
}

.edu-duration {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-4);
}

/* Institution */
.edu-institution {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

/* Score row */
.edu-score-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.edu-score-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.edu-score-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.edu-score-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1;
}

/* Graduating pill */
.edu-graduating {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(100,195,150,0.1);
    border: 1px solid rgba(100,195,150,0.28);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #5bbf8f;
}
[data-theme="light"] .edu-graduating {
    color: #1f7a52;
    background: rgba(50,150,100,0.08);
    border-color: rgba(50,150,100,0.25);
}

/* Subject / topper tags */
.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edu-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(180,142,194,0.08);
    border: 1px solid rgba(180,142,194,0.22);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-3);
}
[data-theme="light"] .edu-tag {
    background: rgba(107,61,140,0.07);
    border-color: rgba(107,61,140,0.18);
}

/* ── Responsive ── */
@media (max-width: 968px) {
    .education-cards { padding-left: 0; }
    .education-cap-icon { width: 64px; height: 64px; }
}

@media (max-width: 600px) {
    .edu-card { padding: 18px 16px; }
    .edu-score-value { font-size: 1.35rem; }
    .edu-row { grid-template-columns: 24px 1fr; gap: 12px; }
}

/* ═══════════════════════════════════════════════════
   NON-TECH SKILLS — two-column layout: list left, illustration right
═══════════════════════════════════════════════════ */
.soft-skills-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 60px;
    align-items: center;
}

.soft-skills-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.edu-title-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
}

.edu-title-wrap .section-title {
    margin-bottom: 0 !important;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.edu-title-wrap .section-title::after {
    display: none;
}

.edu-title-wrap .tech-accent {
    width: 44px;
    margin-top: 10px;
}

.soft-skill-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;          /* rectangular, not pill */
    padding: 14px 20px;
    transition: all 0.3s ease;
    cursor: default;
}

.soft-skill-item:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
    box-shadow: 0 6px 22px var(--shadow-glow);
    background: var(--bg-3);
}

.soft-skill-dot {
    font-size: 1.1rem;
    color: var(--purple);
    flex-shrink: 0;
    transition: color 0.3s;
}

.soft-skill-item:hover .soft-skill-dot { color: var(--purple-light); }

.soft-skill-label {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-2);
    transition: color 0.3s;
}

.soft-skill-item:hover .soft-skill-label { color: var(--text-1); }

.soft-skills-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.soft-skills-illustration svg {
    width: 100%;
    max-width: 240px;
    filter: drop-shadow(0 0 30px rgba(180,142,194,0.2));
    animation: floatProfile 8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════
   CONTACT SECTION — CSS
═══════════════════════════════════════════════════ */

#contact { padding: 100px 0 130px; }

/* heading sits ABOVE the grid, slight negative margin to pull it up */
.contact-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 48% 50%;
    gap: 2%;
    align-items: center;
}

/* ── LEFT — always visible ── */
.contact-left {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* push SVG to the right of its column */
}

.contact-illustration {
    width: 100%;
    max-width: 520px;
    display: block;
    margin-top: 30px;          /* extra downward nudge */
}

.contact-illustration svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;   /* allow connectors to bleed into gap */
}

/* ── RIGHT ── */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── CARD ── */
.contact-connect-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 22px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1),
                border-color 0.32s ease,
                box-shadow 0.32s ease;
}

.contact-connect-card::after {
    content: '';
    position: absolute;
    left: 0; top: 18%; height: 64%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--purple), var(--purple-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-connect-card:hover {
    transform: translateX(8px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 36px var(--shadow-glow);
}

.contact-connect-card:hover::after { opacity: 1; }

/* ── ICON ── */
.contact-connect-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    transition: transform 0.3s ease;
}

.contact-connect-icon svg { width: 23px; height: 23px; }

.contact-connect-card:hover .contact-connect-icon { transform: scale(1.08); }

/* ── TEXT ── */
.contact-connect-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.contact-connect-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-4);
}

.contact-connect-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.01em;
}

/* ── ARROW ── */
.contact-connect-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-connect-arrow svg {
    width: 15px;
    height: 15px;
    stroke: var(--purple);
    transition: all 0.3s ease;
}

.contact-connect-card:hover .contact-connect-arrow {
    background: var(--purple);
    border-color: var(--purple);
}

.contact-connect-card:hover .contact-connect-arrow svg {
    stroke: #fff;
    transform: translateX(2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 968px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-left { justify-content: flex-start; }
    .contact-illustration { max-width: 320px; }
    .contact-title { font-size: 2.6rem; }
}

@media (max-width: 640px) {
    .contact-title { font-size: 2.1rem; }
    .contact-connect-card { padding: 16px 18px; gap: 14px; }
    .contact-connect-icon { width: 44px; height: 44px; }
    .contact-connect-value { font-size: 0.92rem; }
}

.contact-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 60px;        /* pushes illustration further right */
    padding-top: 40px;         /* shifts it down to align arrows with cards */
}

.contact-closing {
    margin-top: 32px;
    width: 100%;
    text-align: center;         /* center it */
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.contact-closing p {
    font-size: 1rem;
    color: var(--text-3);
    font-style: italic;
    letter-spacing: 0.01em;
}

.contact-closing strong {
    font-weight: 700;
    color: var(--purple);
    font-style: normal;
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
footer { padding: 50px 0; border-top: 1px solid var(--border); }

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;   /* centered */
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-logo {
    font-size: 1.3rem; font-weight: 800;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-right: 8px;
}

footer p { color: var(--text-3); font-size: 0.9rem; }
footer strong { color: var(--text-2); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .container { margin-left: 40px; margin-right: 40px; }
}

@media (max-width: 968px) {
    .container { margin-left: 24px; margin-right: 24px; }
    section { padding: 80px 0; }
    .section-title { font-size: 2rem; }
    .nav-inner { padding: 16px 24px; }
    .nav-links { gap: 20px; }

    .hero-grid, .about-grid, .contact-grid,
    .education-layout, .soft-skills-layout { grid-template-columns: 1fr; }
    .edu-illustration, .soft-skills-illustration { display: none; }
    .hero-grid { gap: 40px; }
    .about-grid { gap: 40px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .what-i-do-grid, .projects-grid, .achievements-grid, .leadership-grid { grid-template-columns: 1fr; }

    .hero-left h1 { font-size: 2.4rem; }
    .profile-frame { width: 260px; height: 290px; }
    .contact-form-container { padding: 24px; }
    .education-timeline { padding-left: 0; }
    .education-timeline::before { left: 29px; }
    .edu-timeline-item { grid-template-columns: 60px 1fr; gap: 20px; }
    .edu-timeline-dot { width: 50px; height: 50px; }
    .edu-card { padding: 20px 18px; }
    .contact-center-wrap { max-width: 100%; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .achievements-layout { grid-template-columns: 1fr; }
    .ach-left { position: static; }
    .proficiency-body { grid-template-columns: 1fr; }
    .proficiency-illustration { display: none; }
    .proficiency-bar-wrap { width: 100%; }
    .education-cards { padding-left: 0; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════════ */
@media (max-width: 640px) {

    /* ── BASE ── */
    .container { margin-left: 16px; margin-right: 16px; }
    section { padding: 60px 0; }
    .nav-links { display: none; }
    .nav-inner { padding: 14px 16px; }

    /* ── HERO ── */
    .hero { padding: 100px 0 60px; min-height: unset; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .hero-left h1 { font-size: 2rem; }
    .hero-role { font-size: 1.1rem; }
    .hero-intro { font-size: 0.95rem; max-width: 100%; }
    .hero-eyebrow { font-size: 0.8rem; }
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .btn { width: 100%; text-align: center; padding: 14px 24px; }
    .social-icons { justify-content: center; }

    /* Hide profile image on mobile — saves space, looks cleaner */
    .hero-right { display: none; }

    /* ── ABOUT ── */
    .about-header { margin-bottom: 40px; }
    .about-title { font-size: 1.6rem; }
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .about-card { padding: 22px 14px; }
    .about-card h3 { font-size: 1.6rem; }
    .about-card p { font-size: 0.72rem; }
    .about-content p { font-size: 0.95rem; }

    /* ── SECTION TITLES ── */
    .section-title { font-size: 1.8rem; margin-bottom: 36px; }

    /* ── TECH STACK ── */
    #tech-stack { padding: 60px 0; }
    .tech-grid { grid-template-columns: 1fr; gap: 16px; }
    .tech-card { padding: 20px; }
    .tech-heading { margin-left: -20px; padding: 8px 28px 8px 20px; font-size: 0.65rem; }
    .tech-items { gap: 8px; }
    .tech-item { font-size: 0.78rem; padding: 6px 12px; }

    /* ── PROFICIENCY ── */
    #proficiency { padding: 60px 0; }
    .proficiency-illustration { display: none; }
    .proficiency-bar-wrap { width: 100%; }
    .proficiency-wrap { gap: 20px; }

    /* ── PROJECTS ── */
    #projects { padding: 60px 0; }
    .projects-grid { grid-template-columns: 1fr; gap: 16px; }
    .pj-card { padding: 20px; min-height: unset; gap: 12px; }
    .pj-badge { margin-left: -20px; padding: 8px 28px 8px 20px; font-size: 0.62rem; }
    .pj-title { font-size: 1.1rem; }
    .pj-desc { font-size: 0.85rem; }
    .pj-stack span { font-size: 0.68rem; padding: 4px 9px; }
    .pj-icon { width: 38px; height: 38px; border-radius: 10px; }

    /* ── ACHIEVEMENTS ── */
    #achievements { padding: 60px 0; }
    .achievements-layout { grid-template-columns: 1fr; gap: 32px; }
    .ach-left {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 20px;
    }
    .ach-big-medal { width: 110px; height: 110px; margin-top: 0; }
    .achievement-card { padding: 18px 20px; gap: 16px; grid-template-columns: 58px 1fr; }
    .ach-icon { width: 52px; height: 52px; }
    .ach-icon svg { width: 32px; height: 32px; }
    .ach-body h3 { font-size: 0.95rem; }
    .ach-desc { font-size: 0.78rem; }

    /* ── LEADERSHIP ── */
    .leadership-grid { grid-template-columns: 1fr; gap: 16px; }
    .leadership-card { padding: 24px 20px; }
    .leadership-heading { gap: 12px; }
    .leadership-head-icon i { font-size: 32px; }

    /* ── EDUCATION ── */
    .education-cards { padding-left: 0; }
    .edu-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .edu-dot { display: none; }
    .edu-card {
        padding: 18px 16px;
        width: 100%;
        box-sizing: border-box;
    }
    .edu-card-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .edu-institution { font-size: 0.95rem; }
    .edu-score-value { font-size: 1.3rem; }
    .edu-tags { gap: 6px; }
    .edu-tag { font-size: 0.72rem; padding: 4px 10px; }
    .edu-score-row { flex-wrap: wrap; gap: 8px; }
    .education-cap-icon { width: 48px; height: 48px; }
    .education-cap-icon i { font-size: 44px; }
    .education-heading { gap: 12px; margin-bottom: 24px; }

    /* ── SOFT SKILLS ── */
    .soft-skills-layout { grid-template-columns: 1fr; }
    .soft-skills-illustration { display: none; }
    .soft-skill-item { padding: 12px 16px; }
    .soft-skill-label { font-size: 0.9rem; }

    /* ── CONTACT ── */
    #contact { padding: 60px 0 80px; }
    .contact-title { font-size: 1.8rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-left { display: none; } /* hide illustration on mobile */
    .contact-connect-card { padding: 16px; gap: 12px; }
    .contact-connect-icon { width: 44px; height: 44px; border-radius: 10px; }
    .contact-connect-value { font-size: 0.9rem; }

    /* ── FOOTER ── */
    footer { padding: 36px 0; }
    .footer-inner { flex-direction: column; gap: 8px; }
    footer p { font-size: 0.82rem; text-align: center; }
}