/* ============================
  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: 170px; height: 170px; border-radius:50%; margin:0 auto 18px; 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:cover; 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;
}

