/* ============================
  styles.css — Designed + Decorative
  Replace your current styles.css with this
   - Works with body classes: index-page, about-page, projects-page, interests-page
   - No HTML changes required (optional snippets below)
   ============================ */

/* ---------- root & reset ---------- */
:root{
  --max-w: 980px;
  --radius: 14px;
  --muted: #d9d9ef;
  --ease: cubic-bezier(.16,.84,.3,1);
  --card-pad: 20px;
}

/* Generic page backgrounds (fallback) */
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  min-height:100vh;
  color: #111;
  transition: background 400ms var(--ease);
}

/* ---------- PAGE THEMES (keep these) ---------- */
/* HOME (light blue) */
.index-page { background: linear-gradient(135deg,#d9e8ff 0%, #c5d7ff 40%, #b9b3ff 100%); }

/* ABOUT (soft yellow) */
.about-page { background: linear-gradient(135deg,#fff9e6 0%, #fff2c6 45%, #ffe9a8 100%); }

/* PROJECTS (light pink) */
.projects-page { background: linear-gradient(135deg,#ffebf0 0%, #ffdbe8 45%, #ffc6df 100%); }

/* INTERESTS (mint/cream) */
.interests-page { background: linear-gradient(135deg,#eaffef 0%, #f7ffe8 45%, #fffde8 100%); }

/* ---------- Decorative blobs & texture (per-page pseudo elements) ---------- */
/* general blob base to be combined with each page's accent colors */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
  opacity: 0.75;
  background-image:
    radial-gradient(30% 20% at 10% 25%, rgba(255,255,255,0.26), transparent 20%),
    radial-gradient(30% 25% at 90% 70%, rgba(255,255,255,0.20), transparent 25%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 6px, transparent 6px 40px);
  transition: opacity 320ms var(--ease), background 320ms var(--ease);
}

/* subtle page-specific colored blobs (adds soft shapes) */
.index-page::after,
.about-page::after,
.projects-page::after,
.interests-page::after {
  content: "";
  position: fixed;
  inset: -10% -10% auto auto;
  width: 48vw;
  height: 62vh;
  pointer-events: none;
  z-index: 0;
  filter: blur(36px);
  opacity: 0.55;
  transition: opacity 360ms var(--ease);
}

/* index blue blob */
.index-page::after {
  right: -8vw; top: -10vh;
  background: radial-gradient(closest-side, rgba(75,90,255,0.28) 0%, rgba(135,146,255,0.18) 35%, transparent 70%);
}

/* about warm yellow blob */
.about-page::after {
  right: -6vw; top: -6vh;
  background: radial-gradient(closest-side, rgba(255,215,112,0.30) 0%, rgba(255,235,160,0.18) 40%, transparent 70%);
}

/* projects pink blob */
.projects-page::after {
  right: -6vw; top: -6vh;
  background: radial-gradient(closest-side, rgba(255,113,169,0.26) 0%, rgba(255,186,215,0.18) 40%, transparent 70%);
}

/* interests mint blob */
.interests-page::after {
  right: -6vw; top: -6vh;
  background: radial-gradient(closest-side, rgba(120,255,205,0.26) 0%, rgba(200,255,220,0.18) 40%, transparent 70%);
}

/* ---------- container & layout ---------- */
.container { width: 92%; max-width: var(--max-w); margin: 0 auto; position: relative; z-index:1; }

/* topbar */
.topbar { display:flex; justify-content:space-between; align-items:center; padding:14px 20px; margin-top:18px; }
.logo { text-decoration:none; font-weight:700; font-size:18px; display:inline-block; padding:6px 8px; border-radius:8px; }

/* ---------- hero card ---------- */
.page-hero { min-height: calc(100vh - 40px); display:flex; align-items:center; justify-content:center; padding:32px 16px; }
.hero-card {
  width: min(760px, 96%);
  padding: 34px;
  border-radius: 18px;
  background: rgba(255,255,255,0.65);
  box-shadow: 0 14px 60px rgba(10,10,20,0.12);
  position: relative;
  overflow: visible;
  z-index: 2;
  backdrop-filter: blur(6px) saturate(120%);
}

/* left accent line for card */
.hero-card::before,
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(0,0,0,0.06));
  transform-origin: left center;
  z-index: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) inset;
}

/* override accent color per page */
.index-page .hero-card::before { background: linear-gradient(180deg,#1b1a4d,#6f6be3); }
.about-page .hero-card::before { background: linear-gradient(180deg,#3a2e00,#b8892a); }
.projects-page .hero-card::before { background: linear-gradient(180deg,#660029,#e86aa8); }
.interests-page .hero-card::before { background: linear-gradient(180deg,#004d34,#47b789); }

/* photo */
.photo-frame { width: 180px; height: 220px; border-radius:50%; margin:0 auto 20px; overflow:hidden; border:4px solid rgba(255,255,255,0.65); box-shadow: 0 10px 30px rgba(10,10,30,0.08); background: #fff; }
.photo-frame img { width:100%; height:100%; object-fit:fill; display:block; }

/* name + subtitle */
.name { font-size:30px; margin:6px 0 4px 0; font-weight:800; letter-spacing:0.6px; color: #111; }
.subtitle { margin:6px 0 10px 0; color: #333; font-weight:600; }

/* tag bar */
.tag-bar { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-top:12px; }
.tag {
  padding:8px 14px; border-radius:999px; font-weight:700; text-decoration:none; display:inline-block;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.9); color: #222;
  box-shadow: 0 6px 22px rgba(20,20,30,0.06);
}

/* per page tag color outlines (stronger) */
.index-page .tag { border-color: rgba(27,26,77,0.16); }
.about-page .tag { border-color: rgba(58,46,0,0.16); }
.projects-page .tag { border-color: rgba(102,0,41,0.16); }
.interests-page .tag { border-color: rgba(0,77,52,0.16); }

/* ---------- content pages & cards ---------- */
.page-content .content { padding: 18px 0 60px; }
.card {
  position: relative;
  background: rgba(255,255,255,0.9);
  padding: var(--card-pad);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15,20,30,0.06);
  margin: 18px 0;
  overflow: visible;
}

/* card accent line left (match hero) */
.card::before {
  content:"";
  position:absolute; left:0; top:0; bottom:0; width:6px; border-radius:12px 0 0 12px; z-index:0;
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.02);
}
.index-page .card::before { background: linear-gradient(180deg,#1b1a4d,#6f6be3); }
.about-page .card::before { background: linear-gradient(180deg,#3a2e00,#b8892a); }
.projects-page .card::before { background: linear-gradient(180deg,#660029,#e86aa8); }
.interests-page .card::before { background: linear-gradient(180deg,#004d34,#47b789); }

/* card headings */
.card h2 { margin-top:0; font-size:18px; margin-bottom:10px; display:flex; align-items:center; gap:10px; color:#222; font-weight:800; }

/* small circular marker for section title (colored) */
.card h2::before {
  content:"";
  width:10px; height:10px; border-radius:50%;
  display:inline-block;
  transform: translateY(-1px);
}
.index-page .card h2::before { background:#1b1a4d; }
.about-page .card h2::before { background:#3a2e00; }
.projects-page .card h2::before { background:#660029; }
.interests-page .card h2::before { background:#004d34; }

/* paragraph & list colors */
.card p, .card li { color:#2f2f2f; line-height:1.55; margin:8px 0; font-size:15px; }
.card ul { padding-left:18px; margin:6px 0; }

/* ---------- skill grid with progress bars ---------- */
.skill-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:8px; }
.skill { padding:8px 6px; background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.5)); border-radius:10px; box-shadow: 0 6px 20px rgba(10,10,20,0.03); }
.skill h3 { margin:0 0 6px 0; font-size:15px; color:#111; }
.skill .skill-bar { height:10px; background: rgba(0,0,0,0.06); border-radius:999px; overflow:hidden; }
.skill .skill-fill { height:100%; width:0%; border-radius:999px; transition: width 900ms cubic-bezier(.2,.9,.3,1); background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02)); }

/* fill colors by page */
.index-page .skill .skill-fill { background: linear-gradient(90deg,#1b1a4d,#6f6be3); }
.about-page .skill .skill-fill { background: linear-gradient(90deg,#a66f1f,#3a2e00); }
.projects-page .skill .skill-fill { background: linear-gradient(90deg,#e86aa8,#660029); }
.interests-page .skill .skill-fill { background: linear-gradient(90deg,#47b789,#004d34); }

/* auto-animate width when in DOM (if you want to set percentages via inline style or class) */
.skill[data-level] .skill-fill {
  width: attr(data-level percentage); /* attr() for CSS not widely supported for width; use JS or inline style if you need exact */
}
/* fallback: if no JS, set some example widths via classes (provide in HTML) */
.skill .skill-fill.w-80 { width:80%; }
.skill .skill-fill.w-70 { width:70%; }
.skill .skill-fill.w-50 { width:50%; }

/* ---------- hobbies chips ---------- */
.hobby-chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.chip {
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px; background: rgba(0,0,0,0.05);
  font-weight:600; color:#222; box-shadow: 0 6px 20px rgba(10,10,20,0.03);
}
.index-page .chip { background: linear-gradient(90deg, rgba(27,26,77,0.10), rgba(111,107,227,0.05)); }
.about-page .chip { background: linear-gradient(90deg, rgba(58,46,0,0.10), rgba(184,137,42,0.06)); }
.projects-page .chip { background: linear-gradient(90deg, rgba(102,0,41,0.10), rgba(232,106,168,0.05)); }
.interests-page .chip { background: linear-gradient(90deg, rgba(0,77,52,0.10), rgba(71,183,137,0.05)); }

/* ---------- project item hover depth ---------- */
.project { transition: transform 280ms var(--ease), box-shadow 280ms var(--ease); border-radius:10px; padding:10px; }
.project:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(10,10,30,0.08); }


/* ---------- responsive ---------- */
@media (max-width:850px) {
  .skill-grid { grid-template-columns: 1fr; }
  .hero-card { padding:22px; }
  .card { padding:14px; }
}
@media (prefers-reduced-motion:reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- small helpers (if you want to force heading color darker) ---------- */
.index-page h2, .index-page h3, .index-page .logo { color:#111 !important; }
.about-page h2, .about-page h3, .about-page .logo { color:#2b1f00 !important; }
.projects-page h2, .projects-page h3, .projects-page .logo { color:#3d001b !important; }
.interests-page h2, .interests-page h3, .interests-page .logo { color:#003822 !important; }



/* ============================
   EXTRA DESIGNS & DECORATIONS
   (Safe to place at bottom)
   ============================ */

/* --- wavy strip at top & bottom of pages --- */
.page-hero::before,
.page-content::before {
  content: "";
  position: fixed;
  left: -10%;
  right: -10%;
  top: -40px;
  height: 60px;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 0 120%, transparent 0, transparent 28px, rgba(255,255,255,0.35) 29px, transparent 30px),
    radial-gradient(circle at 50% 120%, transparent 0, transparent 28px, rgba(255,255,255,0.35) 29px, transparent 30px),
    radial-gradient(circle at 100% 120%, transparent 0, transparent 28px, rgba(255,255,255,0.35) 29px, transparent 30px);
  opacity: 0.45;
}

.page-hero::after,
.page-content::after {
  content: "";
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -40px;
  height: 60px;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 0 -20%, transparent 0, transparent 28px, rgba(255,255,255,0.35) 29px, transparent 30px),
    radial-gradient(circle at 50% -20%, transparent 0, transparent 28px, rgba(255,255,255,0.35) 29px, transparent 30px),
    radial-gradient(circle at 100% -20%, transparent 0, transparent 28px, rgba(255,255,255,0.35) 29px, transparent 30px);
  opacity: 0.45;
}

/* --- extra decoration on HERO card corners --- */
.hero-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 18px;
  width: 60px;
  height: 60px;
  border-radius: 24px;
  opacity: 0.45;
  z-index: -1;
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,0.85), transparent 55%);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* add a small corner chip on opposite side */
.hero-card .corner-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  color: #333;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* if you haven't added .corner-chip in HTML yet, it's safe to ignore;
   it will only show if you create e.g.:
   <span class="corner-chip">Portfolio</span> inside .hero-card
*/

/* --- small floating “bubble” for each card --- */
.card::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  right: 18px;
  top: 14px;
  opacity: 0.25;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), transparent 55%);
}

/* page-specific tint for the card bubble */
.index-page .card::after { box-shadow: 0 10px 28px rgba(27,26,77,0.20); }
.about-page .card::after { box-shadow: 0 10px 28px rgba(58,46,0,0.20); }
.projects-page .card::after { box-shadow: 0 10px 28px rgba(102,0,41,0.20); }
.interests-page .card::after { box-shadow: 0 10px 28px rgba(0,77,52,0.20); }

/* --- subtle dotted texture inside cards --- */
.card {
  background-image:
    radial-gradient(circle at 2px 2px, rgba(0,0,0,0.03) 1px, transparent 0),
    linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.9));
  background-size: 12px 12px, 100% 100%;
}

/* --- tag (buttons) — add slight gradient + shadow for design --- */
.tag {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.90));
}

.tag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.5), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.tag:hover::after {
  opacity: 1;
}

/* --- give tags a light “press” animation on click --- */
.tag:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}

/* --- cards lift slightly on hover to feel more “designed” --- */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

/* keep transitions smooth */
.card,
.hero-card {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

/* turn off fancy stuff if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-hero::before,
  .page-hero::after,
  .page-content::before,
  .page-content::after { display: none; }
}



/* ============================
   SECTION TABS (PROJECT PAGE)
   ============================ */
.section-tabs {
  display: flex;
  gap: 12px;
  margin: 20px auto 30px;
  width: 100%;
  max-width: 900px;
  justify-content: center;
}

.section-tabs .stab {
  text-decoration: none;
  padding: 8px 18px;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(255,255,255,0.6);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

.section-tabs .stab:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* active highlight */
.section-tabs .stab.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

/* ============================
   FIX: PROJECT TABS COLOR
   ============================ */

/* default stab styles */
.section-tabs .stab {
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent);
  border: 2px solid var(--accent);
}

/* hover */
.section-tabs .stab:hover {
  background: var(--accent);
  color: white;
}

/* active */
.section-tabs .stab.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

/* PROJECTS PAGE specific fallback (important override) */
.projects-page .stab {
  color: #660029 !important;
  border-color: #660029 !important;
}

.projects-page .stab:hover {
  background: #660029 !important;
  color: white !important;
}

.projects-page .stab.active {
  background: #660029 !important;
  color: white !important;
}

/* ===========================================
   FORMAL FULL-PAGE HOME LAYOUT
   =========================================== */

/* Center full-page content */
.home-container {
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

/* Profile photo */
.home-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Name styling */
.home-name {
  margin-top: 20px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}

/* Subtitle */
.home-title {
  font-size: 18px;
  margin-top: 6px;
  color: #222;
  font-weight: 500;
}

/* Box container */
.home-boxes {
  margin-top: 45px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

/* Individual rectangular box */
.home-box {
  background: rgba(255,255,255,0.65);
  padding: 24px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover animation */
.home-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Title inside box */
.home-box h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

/* Small mini doodle inside box */
.box-doodle {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 20px;
  opacity: 0.35;
}

/* Responsive */
@media (max-width: 600px) {
  .home-name { font-size: 26px; }
  .home-title { font-size: 16px; }
}

/* ===========================================
   FULL-PAGE HOME LAYOUT FIX
   =========================================== */

/* Make the entire first page take full height */
.home-container {
  min-height: 100vh;           /* full screen height */
  display: flex;
  flex-direction: column;
  justify-content: center;     /* vertical centering */
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  box-sizing: border-box;
}

/* Fix spacing between elements */
.home-photo {
  margin-bottom: 20px;
}

.home-name {
  margin-top: 10px;
  margin-bottom: 6px;
}

.home-title {
  margin-bottom: 35px;
}

/* Boxes take full width proportionally */
.home-boxes {
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
}

/* Make boxes taller and more balanced */
.home-box {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================================================
   GLASSMORPHISM + GRADIENT BORDER (PREMIUM BOX STYLE)
   ========================================================= */

.home-box {
  position: relative;
  background: rgba(255, 255, 255, 0.18);       /* frosted glass */
  backdrop-filter: blur(18px) saturate(180%);  /* blur effect */
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-radius: 20px;
  padding: 28px;
  min-height: 150px;

  /* gradient border */
  border: 2.5px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: border-box;
  background-image:
    linear-gradient(to top right, rgba(255,255,255,0.10), rgba(255,255,255,0)),
    linear-gradient(135deg, #ff85ec, #7aa0ff);  /* pink → blue gradient */

  /* shadow + depth */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.14),
    0 6px 16px rgba(0, 0, 0, 0.08);

  text-decoration: none;
  display: block;
  color: var(--accent);
  transition: 0.35s ease;
}

/* Hover animation */
.home-box:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.20),
    0 8px 20px rgba(0, 0, 0, 0.10);
  background-image:
    linear-gradient(to top right, rgba(255,255,255,0.25), rgba(255,255,255,0)),
    linear-gradient(135deg, #7aa0ff, #ff85ec); /* invert gradient on hover */
}

/* Title inside */
.home-box h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--accent);
  font-weight: 700;
}

/* Description inside */
.home-box p {
  color: #333;
  font-size: 14px;
  margin-top: 4px;
}

/* Minimal doodle in the corner */
.box-doodle {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 20px;
  opacity: 0.45;
  transition: 0.35s ease;
}

/* Doodle movement on hover */
.home-box:hover .box-doodle {
  transform: rotate(12deg) scale(1.15);
  opacity: 0.65;
}

/* ===========================================================
   PREMIUM: Glassmorphism + Adaptive Gradient Borders (final)
   Paste at the end of myResume.css
   =========================================================== */

/* ---- define defaults and per-page gradient variables ---- */
:root{
  --card-radius: 18px;
  --glass-alpha: 0.18;
  --glass-blur: 16px;
  --card-min-height: 140px;
  --accent-color: #1b1a4d; /* fallback */
}

/* page-specific gradient (used as border gradient) */
.index-page  { --card-gradient: linear-gradient(135deg,#6f9bff,#7aa0ff 60%, #b7a6ff); --accent-color:#1b1a4d; }
.about-page  { --card-gradient: linear-gradient(135deg,#ffd37a,#ffda8a 60%, #ffdba0); --accent-color:#3a2e00; }
.projects-page{ --card-gradient: linear-gradient(135deg,#ff9ab2,#ff8fbf 60%, #e86aa8); --accent-color:#660029; }
.interests-page{ --card-gradient: linear-gradient(135deg,#90f0c6,#aef0d0 60%, #c7ffd9); --accent-color:#004d34; }

/* ---- shared home-box styles (glass + gradient border) ---- */
.home-box {
  position: relative;
  display: block;                 /* make whole card clickable */
  text-decoration: none;
  color: inherit;

  /* glass body */
  background: rgba(255,255,255,var(--glass-alpha));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: var(--card-radius);
  padding: 26px;
  min-height: var(--card-min-height);
  box-sizing: border-box;

  /* dual-layer background to create a gradient border */
  border: 2.5px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image:
    linear-gradient(to top right, rgba(255,255,255,0.14), rgba(255,255,255,0.06)),
    var(--card-gradient);

  /* depth */
  box-shadow:
    0 10px 34px rgba(12,16,24,0.10),
    0 4px 12px rgba(12,16,24,0.06);

  transition: transform .36s cubic-bezier(.16,.84,.3,1), box-shadow .36s ease, background-image .36s ease;
  overflow: hidden;
  color: #222;
}

/* title + description */
.home-box h3 { margin: 8px 0 6px; font-size: 19px; color: var(--accent-color); font-weight: 700; }
.home-box p  { margin: 0; color: rgba(10,10,10,0.72); font-size: 14px; line-height: 1.45; }

/* small doodle in corner */
.box-doodle {
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 18px;
  opacity: 0.38;
  transition: transform .36s ease, opacity .36s ease;
  color: var(--accent-color);
}

/* hover: lift + stronger glow + gradient invert */
.home-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 22px 80px rgba(12,16,24,0.16),
    0 8px 28px rgba(12,16,24,0.08);
  /* subtle invert of gradient direction on hover for liveliness */
  background-image:
    linear-gradient(to top right, rgba(255,255,255,0.22), rgba(255,255,255,0.08)),
    linear-gradient(315deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    var(--card-gradient);
}
.home-box:hover .box-doodle {
  transform: rotate(14deg) scale(1.12);
  opacity: 0.62;
}

/* small colored underline that uses page accent */
.home-box::after{
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 4px;
  border-radius: 4px;
  opacity: 0.9;
  background: linear-gradient(90deg, rgba(255,255,255,0.0), var(--accent-color), rgba(255,255,255,0.0));
  transform-origin: center;
  transition: transform .36s ease, opacity .36s ease;
}
.home-box:hover::after { transform: scaleX(1.02); opacity: 1; }

/* responsive: grid spacing + min height adjustments */
.home-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; width:100%; max-width: 960px; }
@media (max-width:700px) {
  .home-box { min-height: 120px; padding: 18px; }
  .box-doodle { top:10px; right:10px; font-size:16px; }
}

/* accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .home-box, .home-box:hover, .box-doodle { transition: none !important; transform: none !important; animation: none !important; }
}

/* ==============================
   INDEX PAGE: Soft Slate / Blue-Grey (Option A)
   Add at the end of myResume.css
   ============================== */

.index-page {
  /* soft formal gradient background */
  background: linear-gradient(180deg, #f3f6fa 0%, #e8edf3 100%) !important;
  --accent-color: #3a4a5a;    /* slate accent for headings, accents */
  --card-gradient: linear-gradient(135deg,#c8d6ea,#b9c9ee 60%, #d6cfff);
}

/* Make sure body padding for index is controlled (full page look) */
.index-page .home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Photo: subtle border matching the formal theme */
.home-photo img {
  border: 6px solid rgba(255,255,255,0.85);
  box-shadow: 0 12px 36px rgba(42,57,72,0.08);
  background: #fff;
}

/* Name: use the slate accent and slightly reduce case harshness */
.home-name {
  color: var(--accent-color);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.6px;
  margin-top: 18px;
}

/* Subtitle: muted slate */
.home-title {
  color: rgba(58,74,90,0.78); /* softer than pure black */
  margin-top: 6px;
  font-weight: 500;
}

/* Boxes: soften glass body and make border gradient cool & muted */
.home-box {
  background: rgba(255,255,255,0.72);    /* slightly more opaque for readability */
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  border-radius: 16px;
  padding: 22px;
  min-height: 140px;
  color: rgba(20,28,36,0.95);
  /* use page-specific gradient (index uses --card-gradient set above) */
  background-image:
    linear-gradient(to top right, rgba(255,255,255,0.12), rgba(255,255,255,0.06)),
    var(--card-gradient);
  box-shadow:
    0 8px 28px rgba(34,49,63,0.06),
    0 4px 10px rgba(34,49,63,0.03);
}

/* home-box title & text */
.home-box h3 {
  color: var(--accent-color);
  font-size: 18.5px;
  font-weight: 700;
}
.home-box p {
  color: rgba(34,49,63,0.72);
}

/* tiny box doodles: muted slate */
.box-doodle { color: rgba(58,74,90,0.28); }

/* hover: keep subtle and formal (no loud glow) */
.home-box:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(34,49,63,0.10),
    0 8px 22px rgba(34,49,63,0.05);
  background-image:
    linear-gradient(to top right, rgba(255,255,255,0.16), rgba(255,255,255,0.08)),
    var(--card-gradient);
}

/* Underline / small accents use the index accent */
.home-box::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.0), var(--accent-color), rgba(255,255,255,0.0));
}

/* ensure the homepage container fills and centers on small screens too */
@media (max-width: 700px) {
  .index-page .home-container { padding: 30px 16px; }
  .home-name { font-size: 26px; }
  .home-box { min-height: 120px; padding: 16px; }
}

/* reduce motion user preference respected */
@media (prefers-reduced-motion: reduce) {
  .home-box, .home-box:hover { transition: none !important; transform: none !important; }
}

/* =========================================
   PC/MOBILE RESPONSIVE LAYOUT LIKE NYU SITE
   ========================================= */

/* Wrapper covers full page with side colors */
.center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #79d8db;   /* SIDE COLOR (TEAL) */
  padding: 0;
}

/* Center white card */
.center-card {
  background: white;
  width: 60%;
  max-width: 650px;
  min-height: 100vh;
  padding: 60px 50px;
  text-align: center;
  box-sizing: border-box;
  border-left: 1px solid rgba(0,0,0,0.06);
  border-right: 1px solid rgba(0,0,0,0.06);
  background-image: url("subtlepaper.png"); /* OPTIONAL PAPER TEXTURE */
  background-size: cover;
}

/* Photo */
.center-card .home-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

/* Name */
.center-card .home-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #333;
  margin-bottom: 5px;
}

/* Subtitle */
.center-card .home-title {
  color: #666;
  font-size: 16px;
  margin-bottom: 35px;
}

/* Boxes inside card */
.center-card .home-boxes {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Buttons (simple NYU style) */
.center-card .home-box {
  padding: 15px;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 6px;
  transition: 0.25s ease;
  text-decoration: none;
}

.center-card .home-box:hover {
  background: #f0f0f0;
}

.center-card .home-box h3 {
  margin-bottom: 4px;
  color: #333;
  font-weight: 600;
}

.center-card .home-box p {
  color: #666;
  font-size: 13px;
}

/* Remove doodles (NYU style is clean) */
.box-doodle { display: none; }

/* -----------------------------------------
   MOBILE VIEW — Only center card is visible
   ----------------------------------------- */
@media (max-width: 820px) {
  .center-wrapper {
    background: white;    /* remove side colors */
    padding: 0;
  }

  .center-card {
    width: 100%;
    min-height: 100vh;
    border: none;
    padding: 40px 20px;
  }
}

/* ====== Full-bleed side color + centered white card ====== */
/* Put this at the very end of myResume.css to ensure it overrides older rules */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  /* single page background color (soft teal/slate) */
  background: #79d8db;   /* change to your preferred blue/teal */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* outer wrapper fills viewport and centers the card */
.center-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* keep card from stretching vertically */
  padding: 40px 0;         /* space above/below card */
  box-sizing: border-box;
}

/* main centered card */
.center-card {
  background: #ffffff;            /* only the card is white */
  width: 640px;                   /* fixed centered column width */
  max-width: calc(100% - 48px);   /* keep margin on very small screens */
  border-radius: 4px;
  padding: 56px 40px;
  box-shadow: 0 20px 60px rgba(12,16,24,0.10);
  box-sizing: border-box;
  /* ensure card does not try to fill whole viewport */
  align-self: center;
}

/* make sure we never see page-level white gaps around sides */
body > :not(.center-wrapper) {
  /* if you accidentally left a header or other element, hide its background */
  background: transparent !important;
}

/* MOBILE: remove teal gutters and let the card fill width */
@media (max-width: 820px) {
  body { background: #ffffff; } /* mobile shows only white (center card) */
  .center-wrapper { padding: 20px 0; }
  .center-card {
    width: 100%;
    max-width: 720px;
    padding: 32px 20px;
    border-radius: 0;
    box-shadow: none;
  }
}
.home-college a {
  color: rgb(100, 106, 216);         /* match your design */
  font-size: 0.95rem;
  text-decoration: underline;
}

/* ===== LIGHT COLORED BOXES ===== */
.home-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  display: block;
  backdrop-filter: blur(6px);
  transition: 0.25s ease;
}

.home-box h3 {
  color: #a18585;
  margin-bottom: 6px;
  font-weight: 600;
}

.home-box p {
  color: #e9e9e9;
  font-size: 0.95rem;
  line-height: 1.4;
}

.home-box:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-4px);
}

/* ===== Scoped index-only home styling (paste at end of myResume.css) ===== */
/* Only applies when the <body> has class="index-page" (no changes to other pages) */

.index-page .center-wrapper { background: linear-gradient(180deg, #f3f6fa 0%, #e8edf3 100%); }
.index-page .center-card { background: #ffffff; box-shadow: 0 20px 60px rgba(12,16,24,0.10); }

/* Photo / name / subtitle on index only */
.index-page .center-card .home-photo img { border:6px solid rgba(255,255,255,0.85); box-shadow:0 12px 36px rgba(42,57,72,0.08); }
.index-page .center-card .home-name  { color: var(--accent-color, #3a4a5a); }
.index-page .center-card .home-title { color: rgba(58,74,90,0.78); }

/* Home boxes — index page only: softened/light colored boxes */
.index-page .center-card .home-box {
  background: rgba(255,255,255,0.72);
  color: rgba(20,28,36,0.95);
  border-radius: 14px;
  padding: 20px;
  min-height: 140px;
  box-shadow: 0 8px 28px rgba(34,49,63,0.06);
  background-image: linear-gradient(to top right, rgba(255,255,255,0.12), rgba(255,255,255,0.06)), var(--card-gradient, linear-gradient(135deg,#c8d6ea,#b9c9ee));
}

/* Index-only titles lighter/muted */
.index-page .center-card .home-box h3 { color: rgba(58,74,90,0.92); font-size:18.5px; font-weight:700; }
.index-page .center-card .home-box p  { color: rgba(34,49,63,0.72); }

/* College link under subtitle — index only */
.index-page .home-college a { color: var(--accent-color, #0d6dcc); font-weight:600; text-decoration:underline; }

/* keep hover subtle and index-only */
.index-page .center-card .home-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(7, 10, 14, 0.1);
}

.index-page .home-college a {
  color: rgba(16, 103, 190, 0.85);   /* soft formal slate */
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
 text-decoration-style: underline;

}

.index-page .home-college a:hover {
  text-decoration: underline;
}
.index-page {
    background: linear-gradient(180deg, #e8eeff 0%, #193c92 100%) !important;
}

/* Social icons at bottom of card */
.social-footer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 28px;
  padding-bottom: 10px;
}

.social-footer .icon {
  width: 32px;
  height: 32px;
  fill: #3a4a5a;     /* matches your homepage accent */
  opacity: 0.85;
  transition: 0.25s ease;
}

.social-footer .icon:hover {
  opacity: 1;
  transform: translateY(-3px);
  fill: #2c3947;
}
/* Introduction card styling */
.card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  color: #2d2d2d;
  margin-bottom: 12px;
}

/* card hover effect */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

/* ===== GLASSMORPHIC CARDS FOR ABOUT PAGE ===== */
.about-page .card {
  background: rgba(255, 255, 255, 0.25);    /* frosted transparency */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);

  padding: 24px;
  margin: 24px auto;
  width: 100%;
  max-width: 960px;

  transition: 0.38s ease;
}

/* Hover lift effect */
.about-page .card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Headings inside glass cards */
.about-page .card h2 {
  font-size: 20px;
  font-weight: 800;
  color: #3a2e00;   /* matches your about-page theme */
  margin-bottom: 12px;
}

/* Text inside glass cards */
.about-page .card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.85);
}


.about-page .card {
  background: #f7f8fa !important;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  backdrop-filter: none !important;
}
 .home-photo img {
  width: 180px;   /* increase or decrease */
  height: 180px;
}

.home-photo {
  margin-top: 20px;
  margin-bottom: 10px;
}

.center-card .home-photo img {
  object-position: center top;
}

/* Fix spacing between cards on About page */
.about-page .card {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

/* Remove extra gap above the first card */
.about-page .card:first-of-type {
  margin-top: 0 !important;
}

/* ===== Water-pipe model — about page only ===== */
.about-page .water-pipe-section { padding: 28px 16px 60px; }
.about-page .pipe-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1100px;
  margin: 18px auto;
  box-sizing: border-box;
}

/* step bubble (card) */
.about-page .pipe-step {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-page .step-bubble {
  width: 100%;
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 10px 30px rgba(12,16,24,0.06);
  text-align: center;
  border-left: 6px solid rgba(58,46,0,0.06); /* subtle accent */
}
.about-page .step-bubble h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--accent-color);
}
.about-page .step-bubble p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

/* connectors */
.about-page .pipe-connector { width: 160px; height: 40px; display:flex; align-items:center; justify-content:center; }
.about-page .pipe-svg { width: 100%; height: 28px; color: rgba(50,60,80,0.12); overflow:visible; }
.about-page .pipe-path { stroke: rgba(58,46,0,0.12); stroke-linecap:round; }
.about-page .pipe-connector .flow-dot { fill: rgba(58,46,0,0.22); opacity: 0; }

/* animated flow: moving dot */
@keyframes flowMove {
  0% { transform: translateX(0); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(420px); opacity: 0; }
}
.about-page .pipe-connector .flow-dot {
  animation: flowMove 2.6s linear infinite;
  transform-origin: 0 0;
}

/* alternate subtle color for pipes to match about page tone */
.about-page { --pipe-color: rgba(58,46,0,0.08); }
.about-page .pipe-path { stroke: var(--pipe-color); }

/* responsive: stack vertically on small screens */
@media (max-width:900px) {
  .about-page .pipe-container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 0 12px;
  }
  .about-page .pipe-connector { width: 100%; height: 36px; display:flex; justify-content:center; }
  .about-page .pipe-svg { transform: rotate(90deg); width: 36px; height: 100%; }
  .about-page .flow-dot { animation: flowMove 2.6s linear infinite; }
  .about-page .pipe-step { flex: 1 1 auto; }
  .about-page .step-bubble { text-align: left; padding-left: 18px; }
}

/* optional: make steps clickable like cards */
.about-page .pipe-step a { text-decoration: none; color: inherit; display:block; }

/* accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .about-page .pipe-connector .flow-dot { animation: none; opacity: 0; }
}

/* ===== STORY MODE (About) ===== */
.story-mode { padding: 36px 18px 80px; box-sizing: border-box; --accent: var(--accent-color, #3a2e00); }
.story-mode .story-inner { max-width: 1100px; margin: 0 auto; position: relative; }

/* Header hero */
.story-hero { text-align: center; margin-bottom: 28px; }
.story-hero h1 { margin: 6px 0 6px; font-size: 28px; letter-spacing: .6px; color: var(--accent); }
.story-hero .muted { color: rgba(30,30,30,0.6); margin: 0 0 6px; }
.story-hero .lead { color: rgba(30,30,30,0.72); margin: 0 0 14px; }

/* floating nav on right */
.story-nav { position: sticky; top: 120px; float: right; position: absolute; right: -120px; top: 40px; }
.story-nav ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.story-nav li {
  background: rgba(255,255,255,0.92); padding:8px 12px; border-radius:10px; cursor:pointer;
  box-shadow: 0 8px 20px rgba(10,10,20,0.06); font-weight:700; color:var(--accent);
}
.story-nav li.active { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10,10,20,0.09); }

/* chapter layout */
.story-chapter { padding: 28px 0; display:block; min-height: 220px; box-sizing:border-box; }
.story-card {
  margin: 0 auto; max-width: 880px;
  background: rgba(255,255,255,0.98); border-radius: 14px;
  padding: 22px; box-shadow: 0 12px 36px rgba(10,10,20,0.06); border-left: 6px solid rgba(58,46,0,0.08);
  transform-origin: center; will-change: transform, opacity;
}

/* skill grid */
.skill-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.skill-grid div { background: rgba(250,250,250,0.6); padding:12px; border-radius:8px; color:#222; }

/* project list */
.project-list { margin:10px 0 0; padding-left:18px; color:#333; }

/* reveal animations */
.reveal { opacity: 0; transform: translateY(18px) scale(0.995); transition: opacity .6s ease, transform .6s cubic-bezier(.16,.84,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* CTA */
.story-card .cta { margin-top: 14px; font-weight:700; }
.story-card .cta a { color: var(--accent); text-decoration: underline; }

/* responsive: stack nav below content, keep everything readable */
@media (max-width: 980px) {
  .story-nav { position: static; margin: 8px auto 20px; right:auto; display:flex; justify-content:center; }
  .story-nav ul { flex-direction:row; gap:8px; }
  .story-nav li { padding:6px 10px; font-size:13px; }
  .story-card { padding:18px; margin: 0 12px; }
  .skill-grid { grid-template-columns: 1fr; }
}

/* accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ======================================
   ABOUT PAGE — GRADIENT STORY MODE CARDS
   ====================================== */

.about-page .story-card {
  color: #222;
  padding: 26px;
  border-radius: 18px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.25);
}

/* INTRO — blue gradient */
#intro .story-card {
  background: linear-gradient(135deg, #d6e6ff, #bcd3ff);
}

/* BACKGROUND — mint gradient */
#background .story-card {
  background: linear-gradient(135deg, #d9fff0, #b9ffe6);
}

/* EDUCATION — warm gold gradient */
#education .story-card {
  background: linear-gradient(135deg, #fff2cc, #ffe7a8);
}

/* SKILLS — purple / lavender gradient */
#skills-sm .story-card {
  background: linear-gradient(135deg, #e8ddff, #d3c5ff);
}

/* PROJECTS — peach / coral gradient */
#projects .story-card {
  background: linear-gradient(135deg, #ffe1d9, #ffc8bd);
}

/* GOAL — aqua → soft pink blend */
#goal .story-card {
  background: linear-gradient(135deg, #d0fff9, #ffd9f1);
}

/* Intro – Soft Blue Mist */
#intro .story-card {
  background: linear-gradient(135deg, #e7eeff, #d0dbff);
}

/* Background – Mint Glow */
#background .story-card {
  background: linear-gradient(135deg, #ddfff3, #c6ffe9);
}

/* Education – Warm Vanilla */
#education .story-card {
  background: linear-gradient(135deg, #fff4d6, #ffe8b8);
}

/* Skills – Lavender Cloud */
#skills-sm .story-card {
  background: linear-gradient(135deg, #f0e5ff, #e0d2ff);
}

/* Projects – Peach Rose */
#projects .story-card {
  background: linear-gradient(135deg, #ffe4dd, #ffcfc3);
}

/* Goal – Sky Blossom */
#goal .story-card {
  background: linear-gradient(135deg, #d9faff, #e8e4ff);
}

.about-page {
  background: linear-gradient(135deg, #58b6b9, #d4e4ff, #c8d7ff);
}

/* ===== Interests — advanced effects (3D tilt + parallax blobs) ===== */

/* ===== Interests — guaranteed-applied styles ===== */
.interests-container,
.interests-container * { -webkit-font-smoothing:antialiased; }

/* base container */
.interests-container {
  position: relative !important;
  perspective: 1200px !important;
  padding: 36px 18px !important;
  overflow: visible !important;
  --blob-x: 0px;
  --blob-y: 0px;
}

/* background blobs */
.interests-container::before,
.interests-container::after {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  pointer-events: none !important;
  filter: blur(36px) !important;
  opacity: 0.32 !important;
  transition: transform 0.6s ease !important;
}
.interests-container::before {
  width: 360px; height: 260px;
  left: -60px; top: -40px;
  background: radial-gradient(circle at 30% 30%, rgba(123,201,255,0.90), rgba(123,201,255,0.35), transparent 50%) !important;
  transform: translate(var(--blob-x), var(--blob-y)) !important;
}
.interests-container::after {
  width: 420px; height: 320px;
  right: -80px; bottom: -40px;
  background: radial-gradient(circle at 70% 70%, rgba(255,200,180,0.90), rgba(255,200,180,0.30), transparent 50%) !important;
  transform: translate(calc(var(--blob-x) * -0.6), calc(var(--blob-y) * -0.6)) !important;
}

/* grid stacking above blobs */
.interest-grid { position: relative !important; z-index: 2 !important; display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:22px; }

/* card base (guaranteed) */
.interest-card {
  position: relative !important;
  transform-style: preserve-3d !important;
  backface-visibility: hidden !important;
  will-change: transform !important;
  padding: 24px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.72)) !important;
  box-shadow: 0 18px 46px rgba(8,10,20,0.10) !important;
  border: 1px solid rgba(255,255,255,0.65) !important;
  transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s cubic-bezier(.2,.9,.3,1) !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

/* icon and content */
.interest-card .icon { font-size:40px !important; margin-bottom:12px !important; transform: translateZ(30px) !important; transition: transform .28s ease !important; }
.interest-card h3 { margin:0 0 8px !important; font-size:18px !important; color: #0d3b2e !important; }
.interest-card p  { margin:0; color: #1b3f36 !important; font-size:14px !important; line-height:1.45 !important; }

/* hover + selected */
.interest-card:hover { transform: translateY(-14px) scale(1.01) !important; box-shadow: 0 32px 90px rgba(8,10,20,0.18) !important; }
.interest-card.selected { transform: translateY(-18px) scale(1.03) !important; box-shadow: 0 40px 120px rgba(8,12,24,0.22) !important; }

/* disable heavy transforms on touch/mobile */
@media (pointer: coarse), (max-width:880px) {
  .interests-container { perspective: none !important; }
  .interests-container::before, .interests-container::after { display:none !important; }
  .interest-card, .interest-card:hover { transform:none !important; box-shadow:0 10px 30px rgba(0,0,0,0.08) !important; }
  .interest-card .icon { transform:none !important; }
}
html { scroll-behavior: smooth; }

/* adjust if you have a fixed header — change 80px to your header height */
#skills { scroll-margin-top: 80px; }

/* ==========================
   FORCE: single unified page background (fix two-tone split)
   Paste this at the very end of myResume.css
   ========================== */

/* make sure html/body fill viewport */
html, body {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* UNIFIED full-bleed background (change colors below to your preferred tones) */
:root {
  --page-bg-1: #ffe4ef;  /* top color */
  --page-bg-2: #ffdbe8;  /* bottom color */
}

/* Main background applied to the root so nothing splits the page */
html, body {
  background: linear-gradient(180deg, var(--page-bg-1) 0%, var(--page-bg-2) 100%) fixed !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure page content containers are transparent so root background shows through */
.page-content,
.content,
.container,
.center-wrapper,
.center-card,
.page-hero,
.page-content .card,
.page-content .card * {
  background: transparent !important;
  background-image: none !important;
}

/* Hide any pseudo elements that might be drawing colored bands */
html::before, html::after,
body::before, body::after,
.center-wrapper::before, .center-wrapper::after,
.page-hero::before, .page-hero::after,
.page-content::before, .page-content::after,
.card::before, .card::after,
.center-card::before, .center-card::after {
  display: none !important;
  content: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* Keep the card backgrounds white / glass as intended but above the page background */
.center-card, .hero-card, .card {
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 10px 36px rgba(12,16,24,0.06) !important;
  border-radius: 10px !important;
  position: relative !important; /* ensure it sits above root bg */
  z-index: 1 !important;
}

/* If you have a center wrapper that previously used borders (the vertical lines),
   hide the borders so they don't create visible separators */
.center-card, .center-wrapper {
  border-left: none !important;
  border-right: none !important;
}

/* Mobile safety: remove gutters on small screens */
@media (max-width: 900px) {
  html, body { background-attachment: scroll !important; }
  .center-card { margin: 0 auto !important; width: 95% !important; }
}

/* small accessibility: restore reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== Fix for .interests-page background + animated blob placement ===== */

/* page gradient for interests page (safe, non-destructive) */
.interests-page {
  background: linear-gradient(180deg, #e9ffef 0%, #d9ffe4 40%, #cbffda 100%) !important;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ensure animated background container sits behind everything on this page */
.interests-page .animated-bg,
.interests-page .inline-animated-gradient {
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

/* blob visual (if you are using .blob inside .animated-bg) */
.interests-page .animated-bg .blob,
.interests-page .inline-animated-gradient .blob,
.interests-page .blob {
  position: absolute !important;
  width: 480px !important;
  height: 480px !important;
  border-radius: 50% !important;
  filter: blur(60px) !important;
  opacity: 0.55 !important;
  transform: translate(-10%, -10%) !important;
  background: radial-gradient(circle at 30% 30%, #7fffd0, #b0ffe4) !important;
  will-change: transform !important;
}

/* keep main card visible above page background */
.interests-page .center-wrapper,
.interests-page .center-card,
.interests-page .hero-card,
.interests-page main.container,
.interests-page .page-content {
  background: transparent !important; /* allow root page bg to show behind card edges */
  position: relative !important;
  z-index: 1 !important;
}

/* preserve card whiteness */
.interests-page .center-card,
.interests-page .card,
.interests-page .hero-card {
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 10px 36px rgba(12,16,24,0.06) !important;
  border-radius: 10px !important;
}

/* hide stray pseudo-elements that may paint stripes */
.interests-page::before, .interests-page::after,
.interests-page .center-wrapper::before, .interests-page .center-wrapper::after,
.interests-page .page-content::before, .interests-page .page-content::after {
  display: none !important;
  content: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* responsive fallback: remove huge blobs on small screens */
@media (max-width: 900px) {
  .interests-page .animated-bg .blob,
  .interests-page .blob {
    width: 260px !important;
    height: 260px !important;
    filter: blur(40px) !important;
    opacity: 0.45 !important;
  }
}
.projects-page {
    background: linear-gradient(135deg, #dceeff, #f3f9ff);
}

/* ensure full-bleed unified background on projects page only */
.projects-page,
.projects-page .page-content,
.projects-page .container,
.projects-page .center-wrapper,
.projects-page .center-card,
.projects-page .page-hero {
  background: transparent !important;
}

/* keep main cards readable above the new page bg */
.projects-page .card,
.projects-page .hero-card,
.projects-page .center-card {
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 10px 36px rgba(12,16,24,0.06) !important;
  z-index: 1 !important;
  position: relative !important;
}


/* Projects page background — Peach Rose (page-only) */
html.projects-page,
body.projects-page,
.projects-page {
  background: linear-gradient(135deg, #ffe4ef 0%, #ffdbe8 60%) fixed !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
/* Put blobs behind everything and stop them from creating stripes */
body::before, body::after,
.projects-page::after, .interests-page::after {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  opacity: 0.45 !important;
  filter: blur(42px) !important;
}

/* cards opaque so underlying color change won't show through */
.card, .hero-card, .center-card { background: rgba(255,255,255,0.98) !important; }

/* ===== FINAL OVERRIDE: single unified Projects background (EOF) ===== */
html, body {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force the projects page background only (won't change card colors) */
html.projects-page, body.projects-page, .projects-page {
  background: linear-gradient(135deg, #dceeff 0%, #f3f9ff 100%) fixed !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  background-image: none !important; /* removes layered root backgrounds if any */
}

/* Make sure page containers are transparent so the root bg shows through */
.page-content, .content, .container, .center-wrapper, .center-card, .page-hero {
  background: transparent !important;
  background-image: none !important;
}

/* Hide pseudo-elements that may paint stripes or colored bands */
html::before, html::after,
body::before, body::after,
.page-hero::before, .page-hero::after,
.page-content::before, .page-content::after,
.center-wrapper::before, .center-wrapper::after,
.card::before, .card::after,
.center-card::before, .center-card::after {
  display: none !important;
  content: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* Keep cards opaque white above the page background so they don't show color through */
.card, .hero-card, .center-card {
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 10px 36px rgba(12,16,24,0.06) !important;
  z-index: 1 !important;
  position: relative !important;
}

/* mobile safety */
@media (max-width: 900px) {
  html, body { background-attachment: scroll !important; }
}

/* === REVERT: restore per-page backgrounds and remove the global pink override ===
   Place this as the very last lines of myResume.css
*/
html, body {
  /* remove forced global background so per-page rules win */
  background: transparent !important;
  background-image: none !important;
  background-attachment: scroll !important;
  height: auto !important;
}

/* ensure main containers show their own backgrounds as designed */
.page-content,
.content,
.container,
.center-wrapper,
.center-card,
.page-hero {
  background: transparent !important;
  background-image: none !important;
}

/* restore per-page background themes (these match your original design) */
.index-page  { background: linear-gradient(135deg,#d9e8ff 0%, #c5d7ff 40%, #b9b3ff 100%) !important; }
.about-page  { background: linear-gradient(135deg,#fff9e6 0%, #fff2c6 45%, #ffe9a8 100%) !important; }
.projects-page{ background: linear-gradient(135deg,#3e6e9b 0%, #43617e 60%) !important; }
.interests-page { background: linear-gradient(135deg,#eaffef 0%, #f7ffe8 45%, #fffde8 100%) !important; }

/* make sure page pseudo-elements used for decoration are not forcing full-bleed stripes */
html::before, html::after,
body::before, body::after,
.page-hero::before, .page-hero::after,
.page-content::before, .page-content::after,
.center-wrapper::before, .center-wrapper::after {
  /* allow these only if they are intentionally used by a specific page */
  display: none !important;
  content: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* Restore colored cards only on Projects page */
.projects-page .card {
  background: rgba(255,255,255,0.88); /* semi-white glass */
  backdrop-filter: blur(8px);
  border-left: 6px solid #66002933;
}

.projects-page #projects.card {
  background: linear-gradient(135deg,#ffe0ef,#ffd2e9) !important;
}

.projects-page #education.card {
  background: linear-gradient(135deg,#fff2cc,#ffe4a3) !important;
}

.projects-page #experience.card {
  background: linear-gradient(135deg,#d4ffea,#baffd6) !important;
}

.projects-page #skills.card {
  background: linear-gradient(135deg,#e5e0ff,#d5ccff) !important;
}

.projects-page #career-highlights.card {
  background: linear-gradient(135deg,#ffd8df,#ffc8d5) !important;
}
/* ======= Restore and protect per-page themes (place at EOF of myResume.css) ======= */

/* Make index-page explicit and highest-priority so global html/body rules can't override it */
html.index-page,
body.index-page,
.index-page {
  background: linear-gradient(180deg, #f3f6fa 0%, #e8edf3 100%) !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Keep the full-page 'center-wrapper' layout for index, and ensure it shows the index bg */
.index-page .center-wrapper,
.index-page .home-container {
  background: transparent !important;
}

/* Keep index home card styles as intended (restore accent color) */
.index-page .home-name,
.index-page .home-title,
.index-page .home-box h3 {
  color: var(--accent-color, #3a4a5a) !important;
}

/* Make sure index page boxes remain glassy & readable (override any global .home-box rewrite) */
.index-page .home-box {
  background: rgba(255,255,255,0.72) !important;
  -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
  backdrop-filter: blur(12px) saturate(120%) !important;
  box-shadow: 0 8px 28px rgba(34,49,63,0.06) !important;
  color: rgba(20,28,36,0.95) !important;
}

/* Ensure cards remain above the page background and not altered globally */
.index-page .card,
.index-page .hero-card,
.index-page .center-card {
  background-image:
    linear-gradient(to top right, rgba(255,255,255,0.12), rgba(255,255,255,0.06)),
    var(--card-gradient, linear-gradient(135deg,#c8d6ea,#b9c9ee)) !important;
  background-color: rgba(255,255,255,0.9) !important;
  box-shadow: 0 10px 36px rgba(12,16,24,0.06) !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Small safety: remove any inline 'background: none' that some script might set (re-assert index bg) */
/* placeholder selector name to explain intent — DO NOT include in CSS directly */

/* ========== end of per-page index overrides ========== */
/* quick: center cards run — safe override */

/* ===== ONLY shift the 3 home cards slightly left ===== */
.home-boxes {
    margin-left: -20px !important;   /* adjust this number */
}
