@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap'); /*[cite: 1] */
/* =========================
   GLOBAL RESET & VARIABLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy-blue: #0b1d3a;
  --navy-blue-dark: #08162c;
  --medium-blue: #1a2a50;
  --card-bg: rgba(255, 255, 255, 0.06);
  --border-soft: rgba(255, 255, 255, 0.15);
  --accent: #4da3ff;
  --text-light: #e9eef6;
  --text-muted: #b8c2d8;
}
/* Safe top padding for all main content */
 .academics, .projects, .extracurriculars {
  padding-top: 120px; /* leaves room for fixed navbar */
}

/* Section anchor fix to avoid navbar covering titles */
.section-title::before {
  content: "";
  display: block;
  height: 90px; /* equal or slightly more than navbar height */
  margin-top: -90px;
}

/* =========================
   BODY & FLEX WRAPPER
========================= */
html, body {
  height: 100%;
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--navy-blue-dark);
  color: var(--text-light);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  scroll-padding-top: 80px;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(8, 22, 44, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid var(--border-soft);
}

.logo {
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* =========================
   JOURNEY RAIL (right-side progress line)
========================= */
.milestone-rail {
  position: fixed;
  right: 14px;
  top: 0;
  bottom: 0;
  height: 100vh;
  width: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 200px 0 96px;
  z-index: 950;
}

/* the white line the dots sit on */
.milestone-line {
  position: absolute;
  top: 207px;
  bottom: 103px;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* the filled portion of the line — grows with scroll progress */
.milestone-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--fill, 0%);
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
  transition: height 0.08s linear;
}

.milestone {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(10, 16, 32, 0.9), 0 0 10px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
}

.milestone:hover {
  transform: scale(1.4);
  background: #fff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(10, 16, 32, 0.9), 0 0 16px rgba(56, 189, 248, 0.6);
}

.milestone.active {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-color: #fff;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.25), 0 0 18px rgba(56, 189, 248, 0.8);
  transform: scale(1.25);
}

/* soft pulse ring around the current checkpoint */
.milestone.active::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.55);
  animation: milestonePulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes milestonePulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* label that appears next to a dot on hover / when active */
.milestone-label {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.milestone:hover .milestone-label,
.milestone.active .milestone-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* tiny vertical caption above the line — sits clear of it */
.milestone-rail::before {
  content: "EXPERIENCES";
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  pointer-events: none;
}

@media (max-width: 900px) {
  .milestone-rail {
    right: 8px;
    width: 14px;
    padding: 110px 0 72px;
  }
  .milestone-line {
    top: 117px;
    bottom: 79px;
  }
  .milestone-label {
    display: none;
  }
  .milestone-rail::before {
    display: none;
  }
}

/* =========================
   LANDING / ABOUT SECTION
========================= */
.landing {
  padding: 120px 60px 70px;
  background: linear-gradient(180deg, var(--navy-blue) 0%, var(--navy-blue-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 70px;
}

/* Hero row (photo + intro text) inside the stacked landing */
.landing-hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  width: 100%;
  max-width: 1150px;
}

.landing-image {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
}

.landing-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.landing-text {
  flex: 1;
  max-width: 900px;
}

.landing-text h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.landing-text h1 span {
  color: var(--accent);
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tagline {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 35px;
}

/* =========================
   ABOUT CARDS & SKILLS
========================= */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align:center;
}

.about-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
/* ===== EXTRACURRICULAR CARDS — full design lives in the EXTRACURRICULARS
   section block further down this file (single source of truth) ===== */

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.about-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   SKILLS - simple chips grouped by category
========================================= */
.skills-showcase {
  max-width: 900px;
  margin: 0 auto;
}

.skills-category {
  margin-bottom: 36px;
}

.skills-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 18px;
  text-align: center;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--card-bg);
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.skill-chip:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(77, 163, 255, 0.15);
}

.skill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

/* =========================
   HOBBIES & GITHUB
========================= */
.hobbies, .github-link {
  margin-bottom: 15px;
}

.hobbies h3, .github-link a {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.hobbies p, .github-link a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.github-link a:hover {
  text-decoration: underline;
}

/* =========================
   QUOTES SECTION
========================= */
.quotes-section {
  padding: 40px 60px 60px; /* pulled closer up */
  background-color: var(--navy-blue);
  text-align: center;
  position: relative;
  z-index: 1;
}

.quotes-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.quote-slideshow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

/* The quote itself lives in a glass speech bubble */
.quote-bubble {
  max-width: 640px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 26px 34px 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.quote-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.quote-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Smooth slide for quote changes */
.quote-bubble.slide-right { animation: quote-in-right 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.quote-bubble.slide-left  { animation: quote-in-left  0.55s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes quote-in-right {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes quote-in-left {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Arrows in circular glass bubbles */
.prev, .next {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.prev:hover, .next:hover {
  transform: scale(1.12);
  background: rgba(56, 189, 248, 0.18);
  border-color: #60a5fa;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

/* =========================
   ACADEMICS & REPORT CARDS
========================= */
.academics {
  padding: 120px 60px 60px;
  flex: 1;
  animation: fadeIn 1.8s ease forwards;
}

.section-title {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.academics-intro {
  max-width: 900px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 auto 40px auto;
  text-align: center;
}

.report-images img {
  flex: 1 1 calc(50% - 10px);
  max-width: 500px;
  height: auto;
  border-radius: 10px;
}

.pdf-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.pdf-link a:hover {
  text-decoration: underline;
}

.year-selector {
  margin-bottom: 20px;
  padding: 6px 10px;
  font-size: 1rem;
}

.center-link {
  display: flex;
  justify-content: center;
}

/* =========================
   CERTIFICATES — sleek liquid glass
========================= */
.certificates {
  padding: 120px 50px;
  position: relative;
  background: var(--navy-blue);
  color: var(--text-light);
}

/* ambient light blobs behind the glass */
.certificates::before,
.certificates::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  pointer-events: none;
}
.certificates::before {
  width: 440px;
  height: 440px;
  top: 80px;
  left: 3%;
  background: #2563eb;
}
.certificates::after {
  width: 400px;
  height: 400px;
  bottom: 60px;
  right: 4%;
  background: #0d9488;
}

.cert-category {
  position: relative;
  z-index: 1;
  margin-bottom: 90px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.cert-category.active {
  opacity: 1;
  transform: translateY(0);
}

.cert-category h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.category-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

/* ---- Liquid glass certificate card ---- */
.cert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  padding: 14px 14px 16px;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* specular highlight along the top edge */
.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  pointer-events: none;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.32);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.28);
}

/* ---- Certificate photo sits directly in the glass card — one frame only ---- */
.cert-photo-wrap {
  position: relative;
}

.cert-card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #0d1626;
  border-radius: 16px;
  cursor: zoom-in;
  transition: transform 0.45s ease, filter 0.3s ease;
}

.cert-card:hover .cert-frame img {
  transform: scale(1.03);
}

.cert-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  text-align: left;
  margin: 14px 4px 6px;
}

.cert-card h3::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 4px;
  background: linear-gradient(180deg, #60a5fa, #34d399);
  flex-shrink: 0;
}

/* description text under every certificate title */
.cert-desc {
  font-size: 0.87rem;
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.55;
  text-align: left;
  margin: 0 4px 2px;
}

/* optional verify link under the description */
.cert-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 4px 2px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.45);
  background: rgba(96,165,250,0.12);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cert-link-chip:hover {
  background: rgba(96,165,250,0.28);
  transform: translateY(-2px);
}

/* glass tags overlaid on certificate photos (admin-managed) */
.cert-tags-overlay {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

/* ---- Hover-to-expand certificate (click also works) ---- */
.cert-card:hover img,
.cert-card:focus img {
  transform: scale(1.05);
  filter: brightness(1.04);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .certificates {
    padding: 80px 20px;
  }
  .cert-frame img {
    height: 240px;
  }
}
/* =========================
   FOOTER
========================= */
.footer {
  background: var(--medium-blue);
  text-align: center;
  padding: 22px;
  margin-top: auto; 
}


/* =========================
   FADE-IN KEYFRAMES
========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SCROLL REVEAL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.6s ease, transform 1.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 800px) {
  .academics, .certificates {
    padding: 120px 20px 40px;
  }
  .report-card {
    flex: 1 1 100%;
  }
  .report-images img {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* =========================
   PROJECTS SECTION
========================= */
.projects {
  padding: 120px 60px 60px; /* top padding to avoid navbar overlap */
  background-color: var(--navy-blue-dark);
  color: var(--text-light);
}

.projects .section-title {
  font-size: 2.6rem;
  margin-bottom: 20px;
  color: var(--accent);
  text-align: center;
}

.projects .academics-intro {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 50px auto;
  text-align: center;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---- Projects List (vertical stack) ---- */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 40px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Each project row: left card + right details ---- */
.project-row {
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: center;
}

/* ---- Left Column: Visual Card ---- */
.project-card-visual {
  flex: 0 0 48%;
  min-width: 0;
  position: relative;
  cursor: pointer;
}

/* Hover glow behind the card */
.project-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 2.5rem;
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.project-card-visual:hover .project-glow {
  opacity: 0.3;
}

/* The main gradient card */
.project-card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 2.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, #4b439c, #2c2661, #16132e);
  padding: 40px 40px 0 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.project-card-visual:hover .project-card-inner {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 20px 40px -10px rgba(75, 67, 156, 0.4);
}

/* Title inside the gradient card */
.project-card-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
  padding-right: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---- Mock Browser Window ---- */
.project-browser {
  width: 100%;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
  background: #181825;
  margin-top: auto;
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.browser-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red    { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #27c93f; }

.browser-content {
  background: linear-gradient(135deg, #2a2456, #141226);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browser-content img {
  width: 100%;
  height: 330px;
  object-fit: contain;
  padding: 12px 12px 0;
  box-sizing: border-box;
  display: block;
}

/* ---- Varied window tints — each project row gets its own color ---- */
.projects-list .project-row:nth-of-type(4n+1) .project-browser { background: #1b2436; }
.projects-list .project-row:nth-of-type(4n+1) .browser-content { background: linear-gradient(160deg, #1d2f4f, #0d1524); }

.projects-list .project-row:nth-of-type(4n+2) .project-browser { background: #15251c; }
.projects-list .project-row:nth-of-type(4n+2) .browser-content { background: linear-gradient(160deg, #163624, #0a1811); }

.projects-list .project-row:nth-of-type(4n+3) .project-browser { background: #122730; }
.projects-list .project-row:nth-of-type(4n+3) .browser-content { background: linear-gradient(160deg, #123944, #081a20); }

.projects-list .project-row:nth-of-type(4n) .project-browser { background: #20242f; }
.projects-list .project-row:nth-of-type(4n) .browser-content { background: linear-gradient(160deg, #2a2f3f, #12151d); }

/* ---- Right Column: Project Details ---- */
.project-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
}

.project-details-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.project-accent-bar {
  width: 4px;
  height: 28px;
  background: var(--accent);
  border-radius: 4px;
  flex-shrink: 0;
}

.project-details-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.project-details-desc {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 20px 0;
  max-width: 560px;
}

/* ---- Project link buttons (Check out style) ---- */
.project-details .project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.project-details .project-link:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ---- Reveal animation ---- */
.project-row.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-row.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .project-row {
    flex-direction: column;
    gap: 30px;
  }
  .project-card-visual {
    flex: none;
    width: 100%;
  }
  .project-card-inner {
    padding: 24px 24px 0 24px;
  }
  .project-card-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  .browser-content img {
    height: 230px;
  }
  .projects {
    padding: 100px 20px 40px;
  }
  .projects .section-title {
    font-size: 2.2rem;
  }
}

/* =========================
   EXTRACURRICULARS — liquid glass showcase
========================= */
.extracurriculars {
  padding: 100px 40px 70px;
  position: relative;
}

/* soft ambient light blobs behind the glass */
.extracurriculars::before,
.extracurriculars::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
}
.extracurriculars::before {
  width: 420px;
  height: 420px;
  top: 60px;
  left: 4%;
  background: #2563eb;
}
.extracurriculars::after {
  width: 380px;
  height: 380px;
  bottom: 40px;
  right: 6%;
  background: #0d9488;
}

.extra-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 30px;
  max-width: 1280px;
  margin: 50px auto 0;
}

/* ---- Liquid glass card ---- */
.extra-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 18px 18px 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* specular highlight along the top edge */
.extra-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  pointer-events: none;
}

/* moving sheen on hover */
.extra-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 60%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: rotate(10deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.extra-card:hover::after {
  left: 130%;
}

.extra-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ---- Photo — fully visible in a glass frame ---- */
.extra-photo {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.extra-photo img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #0d1626;
  transition: transform 0.45s ease;
  cursor: zoom-in;
}

/* subtle glass reflection over the photo */
.extra-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent);
  pointer-events: none;
}

.extra-card:hover .extra-photo img {
  transform: scale(1.03);
}

/* ---- Little glass tags overlaying the photo ---- */
.extra-tags {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.glass-tag {
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.tag-blue   { border-color: rgba(96,165,250,0.6); color: #bfdbfe; }
.tag-green  { border-color: rgba(52,211,153,0.6); color: #a7f3d0; }
.tag-orange { border-color: rgba(251,146,60,0.6); color: #fed7aa; }

/* ---- Body under the photo ---- */
.extra-body {
  padding: 18px 8px 0;
}

.extra-body h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  text-align: left;
}

/* short punchy lead line under the title — gives each activity a voice */
.extra-lead {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, #93c5fd, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* fuller story paragraph under the lead */
.extra-desc {
  margin: 0 0 14px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.8);
  text-align: left;
}

/* highlight bullets — what was actually done in each activity */
.extra-points {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.extra-point {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.78);
  text-align: left;
}

.extra-point::before {
  content: "+";
  position: absolute;
  left: 0;
  top: -1px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.extra-body h3::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, #60a5fa, #34d399);
  flex-shrink: 0;
}

.extra-body p {
  max-width: none;
  margin: 0;
  line-height: 1.7;
  text-align: left;
  font-size: 0.97rem;
  color: rgba(226, 232, 240, 0.8);
}

/* SECTION TITLE & TEXT */
.extracurriculars .section-title,
.extracurriculars p.academics-intro {
  max-width: 900px;
  margin: 0 auto 35px auto;
  text-align: center;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .extra-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .extracurriculars {
    padding: 70px 20px 40px;
  }

  .extra-photo img {
    height: 240px;
  }
}
/* =========================
   CONTACT — liquid glass panel
========================= */
.contact-page {
  padding: 120px 40px 90px;
  position: relative;
}

/* ambient light behind the glass */
.contact-page::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  top: 10%;
  left: 50%;
  transform: translateX(-70%);
  border-radius: 50%;
  background: #2563eb;
  filter: blur(110px);
  opacity: 0.22;
  pointer-events: none;
}

.contact-page .section-title {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.contact-page .academics-intro {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 36px;
  align-items: stretch;
  flex-wrap: wrap;
}

/* ---- Glass form panel ---- */
.contact-form {
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 38px 34px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  max-width: 640px;
  width: 100%;
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

/* specular top edge */
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  pointer-events: none;
}

.contact-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ---- Glass side info panel ---- */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.contact-info p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.75);
  margin: 0;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.contact-info-item:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(96,165,250,0.5);
  transform: translateX(4px);
}

.contact-info-item svg {
  flex-shrink: 0;
  stroke: #60a5fa;
}

/* ---- Inputs - frosted inner glass ---- */
.contact-form .input-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  flex: 1 1 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(96,165,250,0.7);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

/* ---- Submit - glass gradient pill ---- */
.submit-btn {
  padding: 15px 34px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0d9488);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  align-self: flex-start;
  transition: transform 0.25s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.confirmation-message {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #4da3ff;
  display: none;
  font-weight: 500;
}

/* =========================
   POPUP CONFIRMATION
========================= */
.confirmation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 29, 58, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.confirmation-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.confirmation-popup .popup-content {
  background-color: var(--navy-blue-dark);
  padding: 25px 35px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border-soft);
  max-width: 400px;
  width: 90%;
}

.confirmation-popup .popup-content h2 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.confirmation-popup .popup-content p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.confirmation-popup .popup-content button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background-color: var(--accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.confirmation-popup .popup-content button:hover {
  background-color: #4da3ff;
  transform: translateY(-2px);
}

@keyframes popupFade {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.confirmation-popup.active .popup-content {
  animation: popupFade 0.4s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-page {
    padding: 100px 20px 60px;
  }

  .contact-form .input-group {
    flex-direction: column;
  }
}

/* =========================
   (extracurricular image rules moved into the main EXTRACURRICULARS block)
========================= */
/* =========================
   MY ROLE PAGE SPECIFICS
========================= */

/* Shared Section Utilities */
.role-section {
  padding: 100px 40px;
}
.role-section.dark-bg {
  background-color: var(--navy-blue);
}
.section-container {
  max-width: 1100px;
  margin: 0 auto;
}
.text-center {
  text-align: center;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 50px;
}

/* Hero / Manifesto */
.role-hero {
  padding: 140px 40px 20px;
  background: linear-gradient(180deg, var(--navy-blue-dark) 0%, var(--navy-blue) 100%);
  display: flex;
  justify-content: center;
  text-align: center;
}
.role-hero-content {
  max-width: 900px;
}
.role-hero-content h1 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.role-hero-content .subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 30px;
}
.role-hero-content strong {
  color: var(--accent);
  font-weight: 600;
}

/* Values Strip (Pills) */
.values-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}
.value-pill {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15), inset 0 0 12px rgba(56, 189, 248, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.value-pill:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: #3b82f6;
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
}

/* =========================
   ANALYTICS WINDOW — My Role hero (Uiverse by bachira)
========================= */
.role-hero-content {
  max-width: 1000px;
}
.analytics-window {
  width: 100%;
  background-color: rgba(20, 28, 45, 0.88);
  border-radius: 16px;
  border: 1px solid #333e50;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}
.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #333e50;
  flex-wrap: wrap;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.window-controls {
  display: flex;
  gap: 8px;
}
.dot-red    { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green  { background-color: #27c93f; }
.window-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.date-badge {
  background-color: rgba(217, 186, 72, 0.15);
  color: #d9ba48;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.privacy-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8c9baf;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.window-body {
  position: relative;
  padding: 42px 48px 48px;
  background-image: radial-gradient(#333e50 1px, transparent 1px);
  background-size: 24px 24px;
  text-align: center;
}
/* Role content inside the window */
.role-window-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 26px;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.role-window-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto;
}
.role-window-text strong {
  color: #7dd3fc;
  font-weight: 700;
}
@media (max-width: 700px) {
  .window-body { padding: 28px 20px 34px; }
  .role-window-title { font-size: 1.55rem; }
  .header-right { gap: 12px; }
}

/* Reflection Cards */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
/* 1. Remove width limits */
  width: 100%; 
  max-width: none !important; 
 
 /* 2. Make it fill the screen height */
  min-height: 80vh; 
 
 /* 3. Padding to keep cards away from the very edge of the glass */
  padding: 40px;
}
.role-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  padding: 30px 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
}
.role-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.role-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}
.role-card h3 {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 15px;
}
.role-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   MY JOURNEY — INTERACTIVE BOOK (past experiences)
  ============================================================ */
.journey-section {
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Hierarchy Section */
.hierarchy-section {
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hierarchy-top {
  width: 100%;
  max-width: 600px;
  min-width: 0;
}

.role-node {
  text-align: center;
}

.hierarchy-middle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
  max-width: 1410px;
  margin: 0 auto;
  align-items: stretch;
}

.hierarchy-bottom {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hierarchy-node {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 30px 20px 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: visible;
}

/* Allow wallet cards to pop out of leadership-node */
.leadership-node {
  overflow: visible;
}

/* Override heavy role-section padding inside hierarchy cards */
.hierarchy-node .role-section {
  padding: 20px 10px;
  width: 100%;
}

/* Remove the 90px anchor spacer inside hierarchy cards */
.hierarchy-node .section-title::before {
  display: none;
}

/* Smaller title inside hierarchy cards */
.hierarchy-node .section-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* Book title aligned with spine (left) */
.book-node .section-title {
  text-align: center;
  width: 100%;
}
.book-node .academics-intro {
  text-align: center;
  width: 100%;
}

.book-node {
  width: 100%;
  padding: 10px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: clip;
}

.plan-node {
  width: 100%;
}

/* Hierarchy Lines */
.hierarchy-lines-container {
  width: 100%;
  max-width: 1000px;
  height: 40px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: center;
}

.hierarchy-lines {
  width: 100%;
  height: 100%;
}

.hierarchy-lines path {
  animation: drawLine 2s ease-out forwards;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.bottom-lines {
  height: 40px;
}

/* ============================================================
   MY JOURNEY — INTERACTIVE BOOK (past experiences)
  ============================================================ */
/* ============================================================
   MY JOURNEY — INTERACTIVE BOOK (past experiences)
  ============================================================ */
.journey-section .interactive-book-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 340px;
  margin-top: 10px;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
  position: relative;
}

.journey-section .book {
  --background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #3b82f6 100%);
  --accent: linear-gradient(135deg, #60a5fa, #3b82f6);
  --shadow: rgba(37, 99, 235, 0.4);
  --text: #1e293b;
  --page-bg: #ffffff;
  position: relative;
  width: 333px;
  height: 500px;
  perspective: 1200px;
  margin-left: calc(50% - 11px);
  margin-right: auto;
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
  filter: drop-shadow(0 20px 30px rgba(37, 99, 235, 0.35));
}

.journey-section .book:has(.page-toggle:checked) {
  transform: translateX(0);
}

.journey-section .book:hover:not(:has(.page-toggle:checked)) {
  transform: translateY(-8px);
  filter: drop-shadow(0 25px 35px rgba(37, 99, 235, 0.45));
}

.journey-section .book-cover-right,
.journey-section .book-cover-left {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--background);
  border-radius: 12px;
  box-shadow: 0 25px 50px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.2);
  z-index: -2;
  transition: box-shadow 0.3s ease;
}

.journey-section .book-cover-left {
  transform-origin: left center;
  transform: rotateY(-180deg);
  border-radius: 12px;
  z-index: -3;
}

.journey-section .book:hover .book-cover-right,
.journey-section .book:hover .book-cover-left {
  box-shadow: 0 30px 60px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.25);
}

.journey-section .book-spine {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 22px;
  background: linear-gradient(90deg, #1e3a5f 0%, #2563eb 30%, #2563eb 50%, #2563eb 70%, #1e3a5f 100%);
  border-radius: 10px 0 0 10px;
  z-index: 10;
  box-shadow: -3px 0 12px rgba(79, 70, 229, 0.5), inset 2px 0 4px rgba(255,255,255,0.1);
}

.journey-section .book::before,
.journey-section .book::after {
  content: "";
  position: absolute;
  bottom: 0px;
  width: 120px;
  height: 20px;
  box-shadow: 0 25px 15px rgba(37, 99, 235, 0.3);
  z-index: -4;
  transition: box-shadow 0.3s ease;
}
.journey-section .book::before {
  left: 10px;
  transform: rotate(-3deg);
}
.journey-section .book::after {
  right: 10px;
  transform: rotate(3deg);
}

.journey-section .book:hover::before,
.journey-section .book:hover::after {
  box-shadow: 0 30px 20px rgba(37, 99, 235, 0.4);
}

.journey-section .page-toggle {
  display: none;
}

.journey-section .page {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 22px;
  right: 12px;
  cursor: pointer;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.journey-section .page:hover .front,
.journey-section .page:hover .back {
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.18), -2px -2px 8px rgba(0, 0, 0, 0.08);
}

.journey-section .front,
.journey-section .back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  box-sizing: border-box;
  color: var(--text);
  overflow: hidden;
}

.journey-section .front {
  background: linear-gradient(225deg, transparent 24px, var(--page-bg) 24.5px);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15), -1px -1px 5px rgba(0, 0, 0, 0.05);
}

.journey-section .back {
  background: linear-gradient(135deg, transparent 24px, var(--page-bg) 24.5px);
  transform: rotateY(180deg);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.15), 1px -1px 5px rgba(0, 0, 0, 0.05);
}

.journey-section .front::after,
.journey-section .back::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 40%, transparent 60%);
  pointer-events: none;
}

.journey-section .front::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 30px; height: 30px;
  background: linear-gradient(225deg, #e2e8f0 48%, #cbd5e1 52%);
  box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.12);
  border-bottom-left-radius: 6px;
}

.journey-section .back::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #e2e8f0 48%, #cbd5e1 52%);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.12);
  border-bottom-right-radius: 6px;
}

.journey-section .text-content {
  padding: 20px 20px 40px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  font-family: 'Caveat', cursive;
}
.journey-section .text-content p {
  font-size: 18px !important;
  line-height: 1.55;
  margin: 0 0 8px 0;
  color: #334155;
}
.journey-section .text-content h2 {
  color: #2563eb;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
  border-bottom: 2px solid rgba(37, 99, 235, 0.3);
  padding-bottom: 8px;
}

.journey-section .page:hover .text-content h2 {
  color: #2563eb;
  border-bottom-color: rgba(79, 70, 229, 0.5);
}

.journey-section .text-content p {
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 8px 0;
  color: #334155;
}

.journey-section .text-content p:last-of-type {
  margin-bottom: 0;
}

.journey-section .page-number {
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-size: 11px;
  color: #3b82f6;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.1);
  padding: 3px 8px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.journey-section .page:hover .page-number {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.15);
}

.journey-section label[for="page1"] { z-index: 3; }
.journey-section label[for="page2"] { z-index: 2; }
.journey-section label[for="page3"] { z-index: 1; }

.journey-section #page1:checked ~ label[for="page1"] { transform: rotateY(-180deg); z-index: 1; }
.journey-section #page2:checked ~ label[for="page2"] { transform: rotateY(-180deg); z-index: 2; }
.journey-section #page3:checked ~ label[for="page3"] { transform: rotateY(-180deg); z-index: 3; }

@media (max-width: 600px) {
  .journey-section {
    padding: 90px 20px 60px;
  }
  .journey-section .book {
    transform: scale(0.85);
  }
  .journey-section .book:has(.page-toggle:checked) {
    transform: scale(0.85);
  }
  .hierarchy-middle {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hierarchy-lines-container {
    display: none;
  }
}

/* Plan of Action Steps */
/* Vertical Timeline */
.vertical-timeline-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.poa-timeline {
  position: relative;
  padding-left: 60px;
}

/* Remove the old timeline container line */
.poa-timeline::before {
  display: none;
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
  text-align: left;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Draw connecting lines between nodes (stops at the last node) */
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 24px;
  height: calc(100% + 40px);
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), #2563eb);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
  border-radius: 2px;
  z-index: 1;
}

.timeline-node {
  position: absolute;
  left: -60px;
  top: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  z-index: 2;
  border: 3px solid var(--bg-dark, #0f172a);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.5);
}

.timeline-card {
  background: var(--navy-blue-dark);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 25px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-card:hover {
  transform: translateX(5px);
  border-color: var(--accent);
}

.timeline-title {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

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

/* Final Statement Box */
.final-statement-section {
  padding: 60px 40px 100px;
  display: flex;
  justify-content: center;
  background-color: var(--navy-blue-dark);
}
.final-statement-box {
  background: linear-gradient(135deg, var(--medium-blue) 0%, var(--navy-blue) 100%);
  border: 1px solid var(--accent);
  padding: 50px;
  border-radius: 20px;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
/* A subtle glow effect for the final box */
.final-statement-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.accent-title {
  color: var(--accent);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.final-statement-box p {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.8;
  font-style: italic;
}

/* Responsive tweaks for My Role */
@media (max-width: 768px) {
  .role-hero h1 { font-size: 2.2rem; }
  .role-hero .subtitle { font-size: 1.1rem; }
  .timeline-card { text-align: center; }
  .poa-timeline { padding-left: 40px; }
  .timeline-node { left: -50px; width: 40px; height: 40px; font-size: 0.85rem; }
  .timeline-item:not(:last-child)::before { left: -30px; }
  .final-statement-box { padding: 30px 20px; }
  .final-statement-box p { font-size: 1.1rem; }
}

/* =========================
   FULL REVAMP — CONTINUOUS AURORA THEME
========================= */
/* The bright gradient is gone. Instead: a deep-space base with slow-
   drifting aurora glows. The glow layer is FIXED, so it stays in place
   while scrolling — every page reads as ONE continuous surface. */

:root {
  --accent: #60a5fa;
}

/* 1. Deep-space base + fixed aurora glows (behind all content) */
html {
  background-color: #090a0f;
}

body {
  background: transparent; /* the fixed starfield behind everything shows through */
}

/* 2. No solid panels — everything flows over the aurora */
.landing,
.quotes-section,
.certificates,
.projects,
.extracurriculars,
.academics,
.contact-page,
.role-hero,
.role-section,
.role-section.dark-bg,
.final-statement-section,
.impact-wrapper,
.roadmap-section,
.ultra-heavy-wrapper,
.impact-deep-dive,
.roadmap-massive,
.dna-matrix,
.final-manifesto {
  background: transparent;
}

/* 3. Glass navbar */
.navbar {
  background: rgba(6, 11, 26, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 4. Glass cards */
.about-card,
.cert-card,
.role-card,
.project-card,
.extra-card,
.contact-form,
.contact-info,
.report-card,
.timeline-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.12);
}

/* 5. Gradient shimmer titles */
.section-title,
.landing-text h1 span {
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 50%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: title-shimmer 6s linear infinite;
}

@keyframes title-shimmer {
  to { background-position: 200% center; }
}

/* 6. Glass footer */
.footer {
  background: rgba(6, 11, 26, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 7. Gradient buttons & links */
.project-card .project-link,
.submit-btn {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  border: none;
}

.project-card .project-link:hover,
.submit-btn:hover {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.pdf-link a {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 8. Hero photo: glowing gradient ring */
.landing-image img {
  border: 3px solid transparent;
  background: linear-gradient(135deg, #60a5fa, #3b82f6) border-box;
  box-shadow: 0 0 45px rgba(56, 189, 248, 0.35), 0 0 90px rgba(168, 85, 247, 0.25);
}

/* =========================
   HERO ENTRANCE — glitch photo, typed name, bash box
========================= */
/* Glitch-in for the profile photo (no clip-path — that caused a box around the photo) */
.landing-image img {
  animation: glitch-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes glitch-in {
  0%   { opacity: 0; transform: translateX(-50px) scale(0.85); filter: blur(6px); }
  10%  { opacity: 1; transform: translateX(8px) skewX(-6deg); filter: hue-rotate(70deg) saturate(4); }
  16%  { transform: translateX(-8px) skewX(5deg); filter: hue-rotate(-60deg) saturate(5) contrast(1.3); }
  22%  { transform: translateX(5px); filter: invert(0.12) hue-rotate(30deg); }
  28%  { transform: translateX(-4px) skewX(-3deg); filter: saturate(3); }
  36%  { transform: translateX(2px); filter: hue-rotate(-30deg); }
  45%  { transform: translateX(0) skewX(0); filter: none; }
  100% { opacity: 1; transform: none; filter: none; }
}

/* Blinking caret after typed text */
.typing-caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: #60a5fa;
  border-radius: 1px;
  animation: caret-blink 1s step-end infinite;
}
/* keep the caret blinking even inside the gradient name span */
.landing-text h1 span.typing-caret {
  animation: caret-blink 1s step-end infinite;
  background: #60a5fa;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* Terminal bash box (Uiverse by Manish-Tamang) holding the intro text */
.bash-box {
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  max-width: 780px;
  margin: 0 0 30px;
  text-align: left;
  overflow: hidden;
}

.bash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.bash-dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.bash-title {
  margin: 0;
  color: #8b949e;
  font-size: 0.8rem;
}

.bash-body {
  padding: 18px 20px 20px;
}

.bash-cmd {
  margin: 0 0 10px;
  color: #3ddc84;
  font-size: 0.9rem;
}

.bash-out {
  margin: 0 0 10px;
  color: #e6edf3;
  font-size: 0.9rem;
  line-height: 1.65;
}
.bash-out:last-of-type {
  margin-bottom: 16px;
}

.bash-cursor {
  color: #3ddc84;
  animation: caret-blink 1s step-end infinite;
}

/* 9. Finishing touches */
::selection {
  background: rgba(56, 189, 248, 0.35);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #090a0f;
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

/* =========================
   ONE-PAGE REVAMP — smooth scroll + pop-up reveals
========================= */
html {
  scroll-behavior: smooth;
}

/* Pop-up reveal: snappier than the original, with a subtle scale */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* The academics section used a load-time fadeIn animation;
   let the scroll reveal control it on the single page. */
.academics {
  animation: none;
}

.wrap_card {
  position: relative;
  overflow: visible;
  width: var(--w-wrap-card);
  height: calc(var(--h-card) * 1.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout Controls — cards are BIG, per the reference */
  --w-card: 380px;
  --h-card: 500px;
  --rotate-card: 14deg;
  --insetX-card: 145px;
  --t-card: 40px;
  --w-wrap-card: calc(var(--w-card) + (var(--insetX-card) * 2.8));
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  overflow: hidden;
  /* no auto-rotation — the arrows trigger each move */
  border-radius: var(--round);
  background: var(--bg);
  order: var(--order);
  width: var(--w-card);
  height: var(--h-card);
  z-index: var(--z1);
  top: var(--t1);
  left: var(--l1);
  right: var(--r1);
  transform: var(--trans1);
  box-shadow: 
    0 20px 40px -10px var(--accent-glow),
    0 10px 20px -10px rgba(0, 0, 0, 0.5);
  --pd: 12px;
  --round: 28px;
  --x1: 0px;
  --x2: calc(var(--w-wrap-card) - var(--w-card));
  --to-left: rotate(calc(var(--rotate-card) * -1)) scale(0.9);  /* zooms out as it leaves the front */
  --to-center: calc((var(--w-wrap-card) - var(--w-card)) / 2);
  --to-right: rotate(calc(var(--rotate-card) * 1)) scale(0.9);   /* zooms out as it leaves the front */
  transition: top 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              left 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              right 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Glass Card Inner Container */
.content {
  background: linear-gradient(160deg, var(--card-tint-hi) 0%, var(--card-tint-lo) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 3px solid var(--accent-color); /* bold outline around each card */
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.05);
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--round);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Keeps Header top, Content middle, Footer bottom */
  padding: 26px 22px;
  box-sizing: border-box;
  text-align: left; /* Ensures text aligns properly */
  overflow: hidden;
}

/* Glossy diagonal sheen across each card (like the reference) */
.content::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 38%,
    transparent 58%
  );
  pointer-events: none;
  z-index: 3;
}

/* Decorative Glow Orb inside each card */
.card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent-color);
  filter: blur(50px);
  opacity: 0.4;
  pointer-events: none;
}

/* Header & Badge */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  z-index: 2;
}

.card-badge {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Typography */
.card-title {
  font-size: 24px;
  font-weight: 800; /* bold */
  line-height: 1.2;
  margin: 14px 0 10px 0;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* Fix Colliding Footer Text */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.card-stat {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #ffffff;
}

.card-btn {
  position: relative; /* for the hover tooltip */
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Fun tooltip — appears after hovering the button for 2 seconds */
.btn-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(8, 15, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 12px;
  white-space: normal;
  width: max-content;
  max-width: 210px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
  line-height: 1.4;
}

.card-btn.show-tip .btn-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.card-stat {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
}

/* Rich Vibrant Professional Gradients */
.card:nth-child(1) {
  --order: 1;
  --accent-color: #60a5fa;
  --accent-light: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --card-tint-hi: rgba(125, 211, 252, 0.3);
  --card-tint-lo: rgba(3, 105, 161, 0.5);
  --bg: linear-gradient(160deg, rgba(125, 211, 252, 0.35), rgba(3, 105, 161, 0.55));
  --z1: 3; --t1: 0; --l1: var(--to-center); --r1: var(--to-center); --trans1: rotate(0deg) scale(1.06); /* zooms in as it reaches the front */
  --z2: 1; --t2: var(--t-card); --l2: var(--x1); --r2: var(--x2); --trans2: var(--to-left);
  --z3: 0; --t3: calc(var(--t-card) * 1.5); --l3: var(--x1); --r3: var(--x2); --trans3: var(--to-left);
  --z4: 0; --t4: calc(var(--t-card) * 1.5); --l4: var(--x2); --r4: var(--x1); --trans4: var(--to-right);
  --z5: 1; --t5: var(--t-card); --l5: var(--x2); --r5: var(--x1); --trans5: var(--to-right);
}

.card:nth-child(2) {
  --order: 2;
  --accent-color: #818cf8;
  --accent-light: #a5b4fc;
  --accent-glow: rgba(129, 140, 248, 0.25);
  --card-tint-hi: rgba(165, 180, 252, 0.3);
  --card-tint-lo: rgba(67, 56, 202, 0.5);
  --bg: linear-gradient(160deg, rgba(165, 180, 252, 0.35), rgba(67, 56, 202, 0.55));
  --z1: 1; --t1: var(--t-card); --l1: var(--x2); --r1: var(--x1); --trans1: var(--to-right);
  --z2: 3; --t2: 0; --l2: var(--to-center); --r2: var(--to-center); --trans2: rotate(0deg) scale(1.06); /* zooms in as it reaches the front */
  --z3: 1; --t3: var(--t-card); --l3: var(--x1); --r3: var(--x2); --trans3: var(--to-left);
  --z4: 0; --t4: calc(var(--t-card) * 1.5); --l4: var(--x1); --r4: var(--x2); --trans4: var(--to-left);
  --z5: 0; --t5: calc(var(--t-card) * 1.5); --l5: var(--x2); --r5: var(--x1); --trans5: var(--to-right);
}

.card:nth-child(3) {
  --order: 3;
  --accent-color: #34d399;
  --accent-light: #6ee7b7;
  --accent-glow: rgba(52, 211, 153, 0.25);
  --card-tint-hi: rgba(110, 231, 183, 0.28);
  --card-tint-lo: rgba(4, 120, 87, 0.5);
  --bg: linear-gradient(160deg, rgba(110, 231, 183, 0.33), rgba(4, 120, 87, 0.55));
  --z1: 0; --t1: calc(var(--t-card) * 1.5); --l1: var(--x2); --r1: var(--x1); --trans1: var(--to-right);
  --z2: 1; --t2: var(--t-card); --l2: var(--x2); --r2: var(--x1); --trans2: var(--to-right);
  --z3: 3; --t3: 0; --l3: var(--to-center); --r3: var(--to-center); --trans3: rotate(0deg) scale(1.06); /* zooms in as it reaches the front */
  --z4: 1; --t4: var(--t-card); --l4: var(--x1); --r4: var(--x2); --trans4: var(--to-left);
  --z5: 0; --t5: calc(var(--t-card) * 1.5); --l5: var(--x1); --r5: var(--x2); --trans5: var(--to-left);
}

.card:nth-child(4) {
  --order: 4;
  --accent-color: #f43f5e;
  --accent-light: #fda4af;
  --accent-glow: rgba(244, 63, 94, 0.25);
  --card-tint-hi: rgba(253, 164, 175, 0.3);
  --card-tint-lo: rgba(190, 18, 60, 0.5);
  --bg: linear-gradient(160deg, rgba(253, 164, 175, 0.35), rgba(190, 18, 60, 0.55));
  --z1: 0; --t1: calc(var(--t-card) * 1.5); --l1: var(--x1); --r1: var(--x2); --trans1: var(--to-left);
  --z2: 0; --t2: calc(var(--t-card) * 1.5); --l2: var(--x2); --r2: var(--x1); --trans2: var(--to-right);
  --z3: 1; --t3: var(--t-card); --l3: var(--x2); --r3: var(--x1); --trans3: var(--to-right);
  --z4: 3; --t4: 0; --l4: var(--to-center); --r4: var(--to-center); --trans4: rotate(0deg) scale(1.06); /* zooms in as it reaches the front */
  --z5: 1; --t5: var(--t-card); --l5: var(--x1); --r5: var(--x2); --trans5: var(--to-left);
}

.card:nth-child(5) {
  --order: 5;
  --accent-color: #fbbf24;
  --accent-light: #fde047;
  --accent-glow: rgba(251, 191, 36, 0.25);
  --card-tint-hi: rgba(253, 224, 71, 0.3);
  --card-tint-lo: rgba(180, 83, 9, 0.5);
  --bg: linear-gradient(160deg, rgba(253, 224, 71, 0.35), rgba(180, 83, 9, 0.55));
  --z1: 1; --t1: var(--t-card); --l1: var(--x1); --r1: var(--x2); --trans1: var(--to-left);
  --z2: 0; --t2: calc(var(--t-card) * 1.5); --l2: var(--x1); --r2: var(--x2); --trans2: var(--to-left);
  --z3: 0; --t3: calc(var(--t-card) * 1.5); --l3: var(--x2); --r3: var(--x1); --trans3: var(--to-right);
  --z4: 1; --t4: var(--t-card); --l4: var(--x2); --r4: var(--x1); --trans4: var(--to-right);
  --z5: 3; --t5: 0; --l5: var(--to-center); --r5: var(--to-center); --trans5: rotate(0deg) scale(1.06); /* zooms in as it reaches the front */
}

/* Keyframe Cycle */
@keyframes rotating {
  0%, 100% {
    z-index: var(--z1);
    top: var(--t1);
    left: var(--l1);
    right: var(--r1);
    transform: var(--trans1);
  }
  20% {
    z-index: var(--z2);
    top: var(--t2);
    left: var(--l2);
    right: var(--r2);
    transform: var(--trans2);
  }
  40% {
    z-index: var(--z3);
    top: var(--t3);
    left: var(--l3);
    right: var(--r3);
    transform: var(--trans3);
  }
  60% {
    z-index: var(--z4);
    top: var(--t4);
    left: var(--l4);
    right: var(--r4);
    transform: var(--trans4);
  }
  80% {
    z-index: var(--z5);
    top: var(--t5);
    left: var(--l5);
    right: var(--r5);
    transform: var(--trans5);
  }
}

/* Stage Lighting Effects */
.lines {
  position: absolute;
  inset: auto 0 0; /* at the very bottom — never intersects the moving cards */
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
  /* soft glow rising from the floor toward the cards */
  background: radial-gradient(
    60% 100% at 50% 100%,
    rgba(168, 85, 247, 0.32) 0%,
    rgba(56, 189, 248, 0.14) 55%,
    transparent 78%
  );
}

/* Soft blurred glow under the ledge */
.lines::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 16px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.5),
    rgba(168, 85, 247, 0.8),
    rgba(251, 191, 36, 0.5)
  );
  filter: blur(12px);
}

/* Crisp glowing ground line, clear of the cards */
.lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  border-radius: 12px;
  background: linear-gradient(90deg, #60a5fa, #3b82f6, #fbbf24);
  box-shadow: 0 8px 26px rgba(168, 85, 247, 0.6);
}

/* Pin the thin accent lines to the floor with the ledge */
.line {
  bottom: 10px;
}

.line {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.line::before,
.line::after {
  content: "";
  position: absolute;
  inset: auto;
  background: linear-gradient(
    to right,
    transparent,
    var(--line-color, #60a5fa),
    transparent
  );
  filter: var(--blur-line);
  width: var(--w-line);
  height: var(--h-line);
}

.line:nth-child(1)::before {
  --blur-line: blur(8px);
  --w-line: 80%;
  --h-line: 4px;
  --line-color: #60a5fa;
}

.line:nth-child(1)::after {
  --w-line: 80%;
  --h-line: 1px;
  --line-color: #818cf8;
}

/* =========================
   HOBBIES & GITHUB CARD — sits below the rotating cards
========================= */
.hobbies-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 26px 32px;
  text-align: center;
  max-width: 560px;
  width: 100%;
  box-sizing: border-box;
}

.hobbies-card h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
}

.hobbies-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.hobbies-card .hobbies-github {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: filter 0.2s ease;
}

.hobbies-card .hobbies-github:hover {
  filter: brightness(1.3);
}

/* =========================
   CARD BLOCK — title + arrows, centered with the page
========================= */
.cards-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.cards-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  /* transparent/glassy: the starfield shows through the letters */
  color: transparent;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.6), rgba(168, 85, 247, 0.7), rgba(56, 189, 248, 0.6));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-shimmer 6s linear infinite;
}

.cards-row {
  position: relative;
  display: flex;
  justify-content: center;
  width: fit-content;
}

.cards-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cards-nav:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgba(56, 189, 248, 0.18);
  border-color: #60a5fa;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.35);
}

#cardsPrev { left: -8px; }
#cardsNext { right: -8px; }

/* =========================
   RESPONSIVE — big cards scale down gracefully
========================= */
@media (max-width: 1100px) {
  .landing {
    padding: 115px 24px 70px;
    gap: 55px;
  }
  .landing-hero {
    flex-direction: column;
    align-items: center;
    gap: 45px;
  }
  .landing-text {
    max-width: 100%;
  }
  .wrap_card {
    --w-card: 300px;
    --h-card: 400px;
    --insetX-card: 110px;
    --t-card: 34px;
  }
}

@media (max-width: 800px) {
  .wrap_card {
    --w-card: 220px;
    --h-card: 300px;
    --insetX-card: 80px;
    --t-card: 30px;
  }
  .content {
    padding: 18px 15px;
  }
  .card-badge {
    font-size: 11px;
    padding: 5px 11px;
  }
  .card-icon {
    width: 36px;
    height: 36px;
  }
  .card-title {
    font-size: 19px;
    margin: 10px 0 7px 0;
  }
  .card-desc {
    font-size: 12px;
  }
  .card-stat,
  .card-btn {
    font-size: 11px;
  }
  .card-glow {
    width: 90px;
    height: 90px;
    top: -25px;
    right: -25px;
  }
}

@media (max-width: 560px) {
  .wrap_card {
    --w-card: 150px;
    --h-card: 205px;
    --insetX-card: 48px;
    --t-card: 22px;
  }
  .content {
    padding: 14px 12px;
  }
  .card-badge {
    font-size: 9px;
    padding: 4px 9px;
  }
  .card-icon {
    width: 30px;
    height: 30px;
  }
  .card-title {
    font-size: 16px;
    margin: 8px 0 5px 0;
  }
  .card-desc {
    font-size: 10.5px;
  }
  .card-stat,
  .card-btn {
    font-size: 10px;
  }
  .card-glow {
    width: 80px;
    height: 80px;
    top: -20px;
    right: -20px;
  }
  .cards-nav {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
}


/* ============================================================
   LEADERSHIP WALLET
   ============================================================ */

.leadership-wallet {
  position: relative;
  width: 360px;
  height: 340px;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: transform 0.4s ease;
  margin: 200px auto 0;
}
/* Move the entire wallet down when any card is active */
.leadership-wallet.has-active-card {
  transform: translateY(100px);
}
.leadership-wallet::after {
  content: "Click a card to read reflection";
  position: absolute;
  bottom: -45px;
  font-style: italic;
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
}

/* Click Me Bubble */
.lw-click-bubble {
  position: absolute;
  top: -210px;
  background: #3b82f6;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  animation: lwBounce 2s infinite ease-in-out;
  transition: opacity 0.3s;
  z-index: 100;
}

.lw-click-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: #3b82f6 transparent transparent transparent;
}

.leadership-wallet.has-active-card .lw-click-bubble {
  opacity: 0;
  pointer-events: none;
}

@keyframes lwBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes lwSlideIntoPocket {
  0% { transform: translateY(-100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes lwFadeInTooltip {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Wallet Back */
.lw-wallet-back {
  position: absolute;
  bottom: 0;
  width: 360px;
  height: 230px;
  background: #152230;
  border-radius: 26px 26px 70px 70px;
  z-index: 5;
  box-shadow: inset 0 25px 35px rgba(0, 0, 0, 0.4), inset 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Cards Base Settings */
.lw-card {
  position: absolute;
  width: 330px;
  height: 180px;
  left: 15px;
  border-radius: 18px;
  padding: 24px;
  box-sizing: border-box;
  color: white;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 -6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s;
  animation: lwSlideIntoPocket 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

/* Tooltip floating above popped out card */
.lw-card.is-active::before {
  content: "Click to put back ↩";
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  animation: lwFadeInTooltip 0.4s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.lw-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.lw-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.lw-icon {
  font-size: 26px;
}

.lw-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lw-label {
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.lw-value {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.lw-reflection-wrapper {
  margin-top: 4px;
}

.lw-reflection-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  font-style: italic;
}

/* Individual Card Positions */
.lw-vision {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  bottom: 290px;
  z-index: 10;
  animation-delay: 0.1s;
}

.lw-empathy {
  background: linear-gradient(135deg, #059669, #047857);
  bottom: 220px;
  z-index: 20;
  animation-delay: 0.2s;
}

.lw-resilience {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  bottom: 150px;
  z-index: 30;
  animation-delay: 0.3s;
}

.lw-integrity {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #0f172a;
  bottom: 80px;
  z-index: 40;
  animation-delay: 0.4s;
}
.lw-integrity .lw-label { color: #475569; }
.lw-integrity .lw-reflection-text { font-weight: 500; }

/* Pocket */
.lw-pocket {
  position: absolute;
  bottom: 0;
  width: 360px;
  height: 200px;
  z-index: 50;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  transition: 0.4s;
}

.lw-pocket-content {
  position: absolute;
  top: 55px;
  width: 100%;
  text-align: center;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lw-balance-stars {
  color: #94a3b8;
  font-size: 22px;
  font-weight: 600;
  transition: 0.3s;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.lw-balance-real {
  color: #60a5fa;
  font-size: 24px;
  font-weight: 700;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  transform: translateY(10px);
  transition: 0.3s ease-in-out;
}

.lw-eye-icon-wrapper {
  margin-top: 10px;
  height: 24px;
  width: 24px;
  position: relative;
  opacity: 0.3;
  transition: 0.3s;
}
.lw-eye-icon {
  position: absolute;
  top: 0;
  left: 0;
  stroke: #60a5fa;
  transition: 0.3s;
}

/* Wallet Hover */
.leadership-wallet:not(.has-active-card):hover { transform: translateY(-5px); }
.leadership-wallet:not(.has-active-card):hover .lw-eye-icon-wrapper { opacity: 1; }
.leadership-wallet:not(.has-active-card):hover .lw-balance-stars { opacity: 0; }
.leadership-wallet:not(.has-active-card):hover .lw-balance-real { opacity: 1; transform: translateY(0); }
.leadership-wallet:not(.has-active-card):hover .lw-eye-slash { opacity: 0; transform: scale(0.5); }
.leadership-wallet:not(.has-active-card):hover .lw-eye-open { opacity: 1; transform: scale(1.1); }

.leadership-wallet:not(.has-active-card):hover .lw-vision { transform: translateY(-40px) rotate(-4deg); }
.leadership-wallet:not(.has-active-card):hover .lw-empathy { transform: translateY(-25px) rotate(-2deg); }
.leadership-wallet:not(.has-active-card):hover .lw-resilience { transform: translateY(-10px) rotate(2deg); }
.leadership-wallet:not(.has-active-card):hover .lw-integrity { transform: translateY(10px) rotate(4deg); }

/* Card Click State */
.lw-vision.is-active { transform: translateY(-50px) scale(1.1) !important; z-index: 100 !important; }
.lw-empathy.is-active { transform: translateY(-60px) scale(1.1) !important; z-index: 100 !important; }
.lw-resilience.is-active { transform: translateY(-70px) scale(1.1) !important; z-index: 100 !important; }
.lw-integrity.is-active { transform: translateY(-80px) scale(1.1) !important; z-index: 100 !important; }

/* Show reflection text ONLY on the active card */
.lw-card.is-active .lw-reflection-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* Dim the pocket when a card is opened */
.leadership-wallet.has-active-card .lw-pocket {
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5)) brightness(0.7);
}
/* Pocket */
.lw-pocket {
  position: absolute;
  bottom: 0;
  width: 360px;
  height: 200px;
  z-index: 50;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  transition: 0.4s;
}

.lw-pocket-content {
  position: absolute;
  top: 55px;
  width: 100%;
  text-align: center;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lw-balance-stars {
  color: #94a3b8;
  font-size: 22px;
  font-weight: 600;
  transition: 0.3s;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.lw-balance-real {
  color: #60a5fa;
  font-size: 24px;
  font-weight: 700;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover/Active states for balance swap */
.leadership-wallet.has-active-card .lw-balance-stars {
  opacity: 0;
}

.leadership-wallet.has-active-card .lw-balance-real {
  opacity: 1;
}

/* ==========================================
   ACADEMIC RECORD — year tabs + clean grid
========================================= */
#academic .academic-box {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--navy-blue);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 40px 36px;
}

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.year-tab {
  padding: 9px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.year-tab:hover {
  border-color: var(--accent);
  color: var(--text-light);
  transform: translateY(-2px);
}

.year-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(77, 163, 255, 0.35);
}

#academic .report-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 28px;
}

#academic .report-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

#academic .report-card.hidden {
  display: none;
}

#academic .report-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

#academic .report-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}

#academic .report-card h2 {
  font-size: 1.05rem;
}

.report-year-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(77, 163, 255, 0.12);
  border: 1px solid rgba(77, 163, 255, 0.3);
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
}

#academic .report-card h2 {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
  line-height: 1.3;
}

#academic .report-images {
  padding: 10px 12px 0;
}

#academic .report-images img {
  width: 100%;
  height: 560px;
  object-fit: contain;
  object-position: top center;
  background: #eef2f7;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  transition: transform 0.3s ease;
  display: block;
  cursor: zoom-in;
}

#academic .report-card:hover .report-images img {
  transform: scale(1.02);
}

#academic .pdf-link {
  padding: 14px 16px 16px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.report-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--accent);
  background: rgba(77, 163, 255, 0.12);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: zoom-in;
  transition: all 0.25s ease;
}

.report-zoom-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(77, 163, 255, 0.35);
}

#academic .pdf-link a {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

#academic .pdf-link a:hover {
  color: #7db8ff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  #academic .report-cards-container {
    grid-template-columns: 1fr;
  }
  #academic .report-images img {
    height: 420px;
  }
  .projects-list .project-row:nth-of-type(4n+1) .browser-content,
  .projects-list .project-row:nth-of-type(4n+2) .browser-content,
  .projects-list .project-row:nth-of-type(4n+3) .browser-content,
  .projects-list .project-row:nth-of-type(4n) .browser-content { background: #1a2233; }
  .projects-list .project-row:nth-of-type(4n+1) .project-browser,
  .projects-list .project-row:nth-of-type(4n+2) .project-browser,
  .projects-list .project-row:nth-of-type(4n+3) .project-browser,
  .projects-list .project-row:nth-of-type(4n) .project-browser { background: #161d2b; }
}

/* =========================
   IMAGE LIGHTBOX / MODAL PREVIEW
========================= */
.image-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1.5px solid var(--border-soft);
  object-fit: contain;
  background: rgba(15, 23, 42, 0.95);
  animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
  margin-top: 14px;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: -8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-soft);
  color: var(--text-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
  transform: rotate(90deg);
}

/* ---- Prev / next arrows for flipping through a category's images ---- */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10002;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(37, 99, 235, 0.55);
  border-color: rgba(96, 165, 250, 0.7);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.lightbox-counter {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(226, 232, 240, 0.8);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 14px;
  border-radius: 999px;
  pointer-events: none;
}

/* Zoom toggle inside the lightbox — click to magnify further */
.lightbox-img {
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.lightbox-img.zoomed {
  cursor: zoom-out;
  transform: scale(1.75);
}


/* ---- Project feature points (+ list) ---- */
.project-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.project-point:hover {
  color: var(--text-light);
}

.project-point-plus {
  color: var(--accent);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.project-point p {
  margin: 0;
  line-height: 1.65;
}

/* ---- Project tech badges ---- */
.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 500;
  color: #d3d9e3;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.project-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Zig-zag flip for alternating rows ---- */
.project-row--flip .project-card-visual {
  order: 2;
}

.project-row--flip .project-details {
  order: 1;
}

@media (max-width: 900px) {
  .project-row--flip .project-card-visual {
    order: 0;
  }
  .project-row--flip .project-details {
    order: 1;
  }
}
