/* =========================================================
   Bellabeat Case Study — Portfolio site
   Palette: teal #2A9D8F · coral #E76F51 · dark #264653
            gold #E9C46A · green #8AB17D · cream #F4F1DE
   Self-contained: system fonts, no external dependencies.
   ========================================================= */

:root {
  --teal:  #2A9D8F;
  --coral: #E76F51;
  --dark:  #264653;
  --gold:  #E9C46A;
  --green: #8AB17D;
  --cream: #F8F6EF;
  --ink:   #21333b;
  --grey:  #5a6b73;
  --line:  #e4e0d4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38,70,83,.08);
  --max: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { font-weight: 800; font-size: 1.25rem; color: var(--dark); letter-spacing: -.02em; }
.nav__brand span { color: var(--teal); }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--grey); font-weight: 600; font-size: .92rem; }
.nav__links a:hover { color: var(--teal); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--dark); cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1c3640 60%, var(--teal) 140%);
  color: #fff;
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,196,106,.35), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero__kicker { color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 18px; }
.hero__title { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero__sub { margin-top: 22px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #dfe9ea; max-width: 640px; }
.hero__sub strong { color: #fff; }
.hero__meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; color: #9fb7bd; font-size: .9rem; }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(231,111,81,.35); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; }

/* ---------- SECTIONS ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--cream); }
.section__kicker { color: var(--coral); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--dark); font-weight: 800; letter-spacing: -.02em; margin-bottom: 26px; }
.lead { font-size: 1.12rem; color: var(--grey); max-width: 720px; }

.grid { display: grid; gap: 36px; }
.grid--2 { grid-template-columns: 1.3fr 1fr; align-items: center; }

.ticks { list-style: none; margin-top: 22px; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; font-weight: 600; color: var(--ink); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: .75rem;
  display: grid; place-items: center; font-weight: 800;
}

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card--quote { background: var(--dark); color: #fff; border: 0; }
.card--quote p { font-size: 1.3rem; font-style: italic; line-height: 1.45; color: #fff; }
.card--quote span { display: block; margin-top: 18px; color: var(--gold); font-weight: 700; font-size: .92rem; }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: var(--shadow); }
.stat__num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--teal); line-height: 1; }
.stat__lab { display: block; margin-top: 8px; color: var(--grey); font-size: .88rem; }

.callout { margin-top: 8px; background: #fff; border-left: 4px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; color: var(--ink); box-shadow: var(--shadow); }

/* ---------- PHASES ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
.phase { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.phase:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(38,70,83,.13); }
.phase__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 14px; }
.phase h3 { color: var(--dark); font-size: 1.25rem; margin-bottom: 8px; }
.phase p { color: var(--grey); font-size: .96rem; }
.phase:nth-child(2) .phase__n { background: var(--coral); }
.phase:nth-child(3) .phase__n { background: var(--dark); }
.phase:nth-child(4) .phase__n { background: var(--green); }
.phase:nth-child(5) .phase__n { background: var(--gold); color: var(--dark); }
.phase:nth-child(6) .phase__n { background: var(--coral); }

/* ---------- KPIS ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.kpi { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--coral); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); }
.kpi:nth-child(3) { border-top-color: var(--gold); }
.kpi__num { display: block; font-size: 2.6rem; font-weight: 800; color: var(--teal); line-height: 1; }
.kpi__lab { display: block; margin-top: 10px; font-weight: 700; color: var(--dark); }
.kpi__sub { display: block; margin-top: 4px; color: var(--grey); font-size: .85rem; }

/* ---------- FIGURES ---------- */
.figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.fig { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.fig img { width: 100%; height: auto; border-radius: 8px; display: block; }
.fig figcaption { margin-top: 14px; color: var(--grey); font-size: .95rem; }
.fig figcaption strong { color: var(--dark); }

/* ---------- RECOMMENDATIONS ---------- */
.recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
.rec { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow); }
.rec__n { position: absolute; top: -18px; left: 26px; width: 44px; height: 44px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(42,157,143,.4); }
.rec h3 { color: var(--dark); margin: 14px 0 10px; font-size: 1.2rem; }
.rec p { color: var(--grey); font-size: .96rem; }

/* ---------- DOWNLOADS ---------- */
.dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 30px 0 18px; }
.dlcard { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease; }
.dlcard:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(38,70,83,.14); text-decoration: none; }
.dlcard__ico { font-size: 1.8rem; }
.dlcard__t { font-weight: 800; color: var(--dark); }
.dlcard__d { color: var(--grey); font-size: .86rem; }
.dl__alt { color: var(--grey); font-size: .95rem; }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark); color: #cdd9db; padding: 50px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer strong { color: #fff; font-size: 1.1rem; }
.footer p { font-size: .9rem; margin-top: 4px; }
.footer__meta { text-align: right; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav__links { position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 0; display: none; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 24px; }
  .nav__toggle { display: block; }
  .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .figs { grid-template-columns: 1fr; }
  .recs { grid-template-columns: 1fr; gap: 30px; }
  .dl { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
}
@media (max-width: 460px) {
  .stats, .dl { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 78px; }
}

/* ---------- PROJECTS GRID (overview page) ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 10px; }
.project {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  color: inherit;
}
a.project:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(38,70,83,.15); text-decoration: none; }
.project__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--cream); overflow: hidden; }
.project__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.project__thumb--empty { display: grid; place-items: center; font-size: 3rem; border-bottom: 1px solid var(--line); }
.project__badge { position: absolute; top: 14px; left: 14px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.project__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.project__title { color: var(--dark); font-size: 1.3rem; line-height: 1.25; margin-bottom: 12px; }
.project__desc { color: var(--grey); font-size: .96rem; flex: 1; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.project__tags span { background: var(--cream); border: 1px solid var(--line); color: var(--grey); font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.project__link { color: var(--teal); font-weight: 800; font-size: .95rem; }
.project__link--muted { color: var(--grey); }
.project--soon { opacity: .85; }
.project--soon .project__title { color: var(--grey); }

@media (max-width: 860px) {
  .projects { grid-template-columns: 1fr; }
}

/* ---------- EDUCATION & CREDENTIALS (horizontal scroller) ---------- */
.creds {
  display: flex; gap: 26px;
  margin-top: 28px; padding: 6px 4px 22px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--teal) var(--line);
}
.creds::-webkit-scrollbar { height: 8px; }
.creds::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
.creds::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 999px; }

.cred {
  flex: 0 0 520px; width: 520px; max-width: 90vw; aspect-ratio: 1 / 1;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cred:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(38,70,83,.16); }
.cred__media { display: block; flex: 0 0 auto; background: var(--cream); border-bottom: 1px solid var(--line); }
.cred__media img { width: 100%; height: 168px; object-fit: cover; object-position: top center; display: block; }
.cred__media--edu { display: grid; place-items: center; height: 168px; font-size: 3.4rem; background: linear-gradient(135deg, var(--dark), var(--teal)); }
.cred__body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cred__title { color: var(--dark); font-size: 1.28rem; line-height: 1.22; margin-bottom: 3px; }
.cred__issuer { color: var(--teal); font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.cred__desc { color: var(--grey); font-size: .92rem; line-height: 1.55; flex: 1; }
.cred__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.cred__tags span { background: var(--cream); border: 1px solid var(--line); color: var(--grey); font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.cred__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.btn--dark { color: var(--dark); border: 1.5px solid var(--dark); }
.btn--dark:hover { background: var(--dark); color: #fff; }

/* ---------- SKILLSET ---------- */
.skillset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.skillset__label { color: var(--coral); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow); }
.chip--lang { background: var(--dark); color: #fff; border-color: var(--dark); }

@media (max-width: 860px) {
  .skillset { grid-template-columns: 1fr; gap: 24px; }
}
