@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #FEF7FF;
  --bg2:       #F3EDF7;
  --bg3:       #EDE7F1;
  --surface:   #E6E0E9;
  --text:      #1D1B20;
  --muted:     #49454F;
  --border:    #CAC4D0;
  --accent:    #D946A6;
  --accent-h:  #B8358A;
  --accent-c:  #FFD7F2;
  --accent-co: #5E114D;
  --purple:    #8B4FA8;
  --g1: #F9A826;
  --g2: #D946A6;
  --g3: #5E3A99;
  --shadow: rgba(217,70,166,.12);
  --shadow2: rgba(0,0,0,.14);
  --radius: 32px;
  --nav-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #141218;
    --bg2:       #211F26;
    --bg3:       #2B2930;
    --surface:   #36343B;
    --text:      #E6E0E9;
    --muted:     #CAC4D0;
    --border:    #49454F;
    --accent:    #E75CB8;
    --accent-h:  #F47BC9;
    --accent-c:  #4A235A;
    --accent-co: #FFD7F2;
    --purple:    #A165BE;
    --g1: #FBBD3E;
    --g2: #E75CB8;
    --g3: #7C52B8;
    --shadow: rgba(231,92,184,.20);
    --shadow2: rgba(0,0,0,.40);
  }
}

/* Override via JS toggle */
[data-theme="dark"] {
  --bg:#141218; --bg2:#211F26; --bg3:#2B2930; --surface:#36343B;
  --text:#E6E0E9; --muted:#CAC4D0; --border:#49454F;
  --accent:#E75CB8; --accent-h:#F47BC9; --accent-c:#4A235A; --accent-co:#FFD7F2;
  --purple:#A165BE; --g1:#FBBD3E; --g2:#E75CB8; --g3:#7C52B8;
  --shadow:rgba(231,92,184,.20); --shadow2:rgba(0,0,0,.40);
}
[data-theme="light"] {
  --bg:#FEF7FF; --bg2:#F3EDF7; --bg3:#EDE7F1; --surface:#E6E0E9;
  --text:#1D1B20; --muted:#49454F; --border:#CAC4D0;
  --accent:#D946A6; --accent-h:#B8358A; --accent-c:#FFD7F2; --accent-co:#5E114D;
  --purple:#8B4FA8; --g1:#F9A826; --g2:#D946A6; --g3:#5E3A99;
  --shadow:rgba(217,70,166,.12); --shadow2:rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s, color .3s;
  min-height: 100vh;
}

/* ── PROGRESS BAR ── */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1000;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  border-radius: 0 3px 3px 0;
  transition: width .1s linear;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

nav .container {
  display: flex; justify-content: space-between; align-items: center;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 26px; font-weight: 700;
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none;
  padding: 6px 14px; border-radius: 24px;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.logo:hover { transform: scale(1.05); }

.nav-pills {
  display: flex; gap: 4px; align-items: center;
  background: var(--bg2); padding: 5px; border-radius: 100px;
  box-shadow: 0 2px 8px var(--shadow);
}

.nav-pills a {
  color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 100px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.nav-pills a:hover, .nav-pills a.active {
  background: var(--accent-c); color: var(--accent); transform: scale(1.04);
}

.theme-btn {
  background: var(--bg2); border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 18px; margin-left: 6px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.theme-btn:hover { background: var(--accent-c); color: var(--accent); transform: rotate(180deg) scale(1.1); }

/* ── CONTAINER ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── GRADIENT TEXT ── */
.grad {
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.btn-primary {
  background: linear-gradient(135deg, var(--g2), var(--purple));
  color: #fff; box-shadow: 0 4px 14px var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px var(--shadow); }
.btn-primary:active { transform: scale(.98); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-c); transform: scale(1.03); }
.btn-ghost {
  background: transparent; color: var(--accent);
  padding: 10px 20px;
}
.btn-ghost:hover { background: var(--accent-c); }

/* ── CHIPS / BADGES ── */
.chip {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.chip-accent {
  background: linear-gradient(135deg, var(--g2), var(--purple));
  color: #fff; box-shadow: 0 2px 8px var(--shadow);
}
.chip-surface { background: var(--bg3); color: var(--muted); }
.chip-tag {
  background: var(--bg2); color: var(--accent);
  border: 1px solid var(--border);
}

/* ── SECTION TAG ── */
.section-tag {
  display: inline-block; background: var(--bg3); color: var(--accent);
  padding: 7px 18px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 14px; box-shadow: 0 2px 6px var(--shadow);
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 44px; font-weight: 700; line-height: 1.15; margin-bottom: 12px;
}
.section-header { margin-bottom: 44px; }

/* ── CARDS ── */
.card {
  background: var(--bg2); border-radius: var(--radius);
  overflow: hidden; transition: all .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 40px var(--shadow2);
  border-radius: 40px;
}
.card-img {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  overflow: hidden; position: relative;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover; opacity: .85;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s;
}
.card:hover .card-img img { transform: scale(1.08); opacity: 1; }
.card-body { padding: 28px; }
.card-body h3 {
  font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; margin: 10px 0 8px;
}
.card-body p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.card-meta { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ── FILTER CHIPS ── */
.filter-row { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-chip {
  background: var(--bg2); color: var(--muted);
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--border); cursor: pointer;
  font-size: 13px; font-weight: 600;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  font-family: 'Poppins', sans-serif;
}
.filter-chip:hover { background: var(--bg3); transform: scale(1.04); }
.filter-chip.active { background: var(--accent-c); color: var(--accent); border-color: var(--accent); }

/* ── STAT CHIPS ── */
.stats-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 44px; }
.stat-chip {
  background: var(--bg2); padding: 12px 22px; border-radius: 100px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.stat-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 16px var(--shadow); }
.stat-icon { font-size: 22px; }
.stat-val { display: block; font-size: 19px; font-weight: 700; color: var(--accent); }
.stat-lbl { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }

/* ── SKILL BADGES ── */
.skills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.skill {
  background: linear-gradient(135deg, var(--g2), var(--purple));
  color: #fff; padding: 7px 15px; border-radius: 100px;
  font-size: 12px; font-weight: 600; box-shadow: 0 2px 8px var(--shadow);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.skill:hover { transform: translateY(-2px); box-shadow: 0 4px 14px var(--shadow); }

/* ── FAB ── */
.fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--g2), var(--purple));
  border-radius: 20px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  box-shadow: 0 8px 24px var(--shadow2); z-index: 200;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.fab:hover { transform: scale(1.12) rotate(90deg); border-radius: 28px; }

/* ── SNACKBAR ── */
.snack {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface); color: var(--text);
  padding: 14px 24px; border-radius: 100px;
  box-shadow: 0 8px 24px var(--shadow2);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transition: all .3s cubic-bezier(.4,0,.2,1); z-index: 999;
  font-size: 14px; font-weight: 500;
}
.snack.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── FOOTER ── */
footer {
  padding: 44px 0; border-top: 1px solid var(--border);
  text-align: center; color: var(--muted); font-size: 13px;
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ── SECTIONS ── */
section { padding: 80px 0; }

/* ── PAGE TRANSITION ── */
.page-fade { animation: fadeUp .45s cubic-bezier(.4,0,.2,1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; padding: 80px 0;
}
.hero h1 {
  font-family: 'Poppins', sans-serif; font-size: 64px; font-weight: 700;
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -.02em;
}
.hero .tagline { font-size: 20px; color: var(--muted); line-height: 1.55; margin-bottom: 30px; }
.hero-visual {
  height: 460px; border-radius: 44px; overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  box-shadow: 0 12px 40px var(--shadow2);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── NEWSLETTER ── */
.newsletter {
  background: linear-gradient(135deg, var(--g2), var(--purple));
  padding: 60px; border-radius: 44px; text-align: center; color: #fff;
  box-shadow: 0 12px 40px var(--shadow2); margin: 0 0 80px;
}
.newsletter h2 { font-family:'Poppins',sans-serif; font-size: 36px; margin-bottom: 12px; }
.newsletter p { font-size: 17px; opacity: .95; margin-bottom: 28px; }
.nl-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.nl-input {
  flex: 1; min-width: 220px; padding: 14px 22px; border-radius: 100px;
  border: none; font-size: 14px; background: rgba(255,255,255,.95);
  color: var(--text); font-family: 'Poppins', sans-serif;
}
.nl-input::placeholder { color: var(--muted); }
.nl-btn {
  background: #fff; color: var(--accent); padding: 14px 28px;
  border-radius: 100px; border: none; font-weight: 700; cursor: pointer;
  font-size: 14px; transition: all .25s; font-family: 'Poppins', sans-serif;
}
.nl-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* ── ABOUT PAGE ── */
.about-block {
  background: var(--bg2); padding: 48px; border-radius: 44px;
  box-shadow: 0 4px 16px var(--shadow); position: relative; overflow: hidden;
}
.about-block::before {
  content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%;
  background: linear-gradient(180deg, var(--g1), var(--g2), var(--g3));
  border-radius: 44px 0 0 44px;
}
.about-block p { font-size: 17px; line-height: 1.85; margin-bottom: 20px; color: var(--muted); }
.about-block p:first-of-type { color: var(--text); font-size: 18px; }

.xp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 16px; }
.xp-card {
  background: var(--bg2); border-radius: 24px; padding: 28px;
  box-shadow: 0 2px 8px var(--shadow); border-left: 3px solid var(--accent);
}
.xp-card .year { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.xp-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.xp-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── PROJECT PAGE ── */
.project-hero {
  height: 440px; border-radius: 44px; overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  box-shadow: 0 12px 40px var(--shadow2); margin-bottom: 56px; position: relative;
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.project-hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 44px;
  background: linear-gradient(to top, rgba(20,18,24,.7) 0%, transparent 60%);
}
.project-hero-overlay h1 { font-size: 52px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.project-hero-overlay .tagline { font-size: 18px; color: rgba(255,255,255,.85); }
.project-body { max-width: 760px; }
.project-body h2 { font-family:'Poppins',sans-serif; font-size: 26px; font-weight: 700; margin: 40px 0 14px; }
.project-body p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
.project-body ul { padding-left: 20px; margin-bottom: 18px; }
.project-body li { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 6px; }
.project-sidebar {
  background: var(--bg2); border-radius: 28px; padding: 28px;
  box-shadow: 0 2px 8px var(--shadow); position: sticky; top: calc(var(--nav-h) + 20px);
}
.project-sidebar h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sidebar-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sidebar-row:last-child { border-bottom: none; }
.sidebar-row span:first-child { color: var(--muted); }
.sidebar-row span:last-child { font-weight: 600; }
.project-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }

/* ── ARTICLE PAGE ── */
.article-header { max-width: 760px; margin: 60px auto 0; }
.article-header .article-tag { margin-bottom: 16px; }
.article-header h1 { font-family:'Poppins',sans-serif; font-size: 48px; font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.article-header .article-meta-line { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.article-header .article-meta-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.article-cover {
  max-width: 900px; margin: 0 auto 60px; border-radius: 36px; overflow: hidden;
  height: 420px; background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  box-shadow: 0 12px 40px var(--shadow2);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.article-content { max-width: 700px; margin: 0 auto; font-family: 'Lora', Georgia, serif; }
.article-content h2 { font-family:'Poppins',sans-serif; font-size: 26px; font-weight: 700; margin: 44px 0 16px; }
.article-content h3 { font-family:'Poppins',sans-serif; font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.article-content p { font-size: 18px; line-height: 1.85; color: var(--muted); margin-bottom: 22px; }
.article-content p:first-of-type { color: var(--text); font-size: 20px; font-weight: 400; }
.article-content blockquote {
  border-left: 4px solid var(--accent); padding: 18px 24px; margin: 30px 0;
  background: var(--bg2); border-radius: 0 16px 16px 0;
  font-style: italic; font-size: 19px; color: var(--text);
}
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 22px; }
.article-content li { font-size: 17px; color: var(--muted); line-height: 1.8; margin-bottom: 6px; }

/* ── CONTACT PAGE ── */
.contact-card {
  background: var(--bg2); padding: 52px; border-radius: 44px;
  max-width: 680px; box-shadow: 0 4px 16px var(--shadow);
}
.contact-card p { font-size: 18px; line-height: 1.75; margin-bottom: 32px; color: var(--muted); }
.contact-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.contact-info-item {
  background: var(--bg2); border-radius: 24px; padding: 24px;
  box-shadow: 0 2px 8px var(--shadow); transition: all .25s;
}
.contact-info-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px var(--shadow); }
.contact-info-item .ci-icon { font-size: 28px; margin-bottom: 10px; }
.contact-info-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-info-item p { font-size: 13px; color: var(--muted); margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .hero-visual { height: 280px; border-radius: 32px; order: -1; }
  .hero h1 { font-size: 44px; }
  .project-layout { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 34px; }
  .newsletter { padding: 40px 28px; }
  .nav-pills a { font-size: 12px; padding: 7px 13px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 34px; }
  .article-header h1 { font-size: 32px; }
  .project-hero-overlay h1 { font-size: 34px; }
  .about-block, .contact-card { padding: 28px; }
}
