/* =========================
   styles.css (FULL)
   ONE background image: assets/images/bg.webp
   File: assets/css/styles.css
   ========================= */

/* =========================
   Design tokens
   ========================= */
:root {
  --bg: #fbf7f0;
  --ink: #3f3f3f;
  --muted: #3f3f3f;
  --card: #ffffff;
  --border: rgba(17, 17, 17, 0.12);

  --lavender: #dcd6f3;
  --peach: #e7a07e;
  --chip-bg: #f3efe6;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 18px;

  --container: 1120px;
  --header-h: 84px;

  /* controls where hero ends relative to viewport bottom */
  --fold-offset: -40px;

  /* SINGLE shared background image */
  --bg-canvas: url("../images/bg.webp");
}

/* =========================
   Base
   ========================= */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  opacity: 0.9;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

section {
  padding: 64px 0;
}

/* =========================
   Typography
   ========================= */
h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.8px;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: -0.3px;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

/* =========================
   Header (glass overlay + purple glow)
   ========================= */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;

  position: sticky;
  isolation: isolate; /* keeps pseudo-elements contained */
  overflow: clip; /* clips glow inside header (use hidden if needed) */
  /* overflow: hidden;  <- if Safari bugs with clip */

  background: rgba(251, 247, 240, 0.1);
  backdrop-filter: blur(2px) saturate(180%) contrast(110%);
  -webkit-backdrop-filter: blur(2px) saturate(180%) contrast(110%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);

  box-shadow:
    0 18px 60px rgba(170, 120, 255, 0.2),
    0 6px 22px rgba(210, 160, 255, 0.1);
}

#header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* glossy highlight */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.18) 45%,
    rgba(255, 255, 255, 0.05)
  );
  opacity: 0.9;
}

#header::after {
  content: "";
  position: absolute;
  inset: 0; /* no negative values */
  pointer-events: none;

  background:
    radial-gradient(
      640px 140px at 16% 20%,
      rgba(160, 115, 255, 0.26),
      transparent 70%
    ),
    radial-gradient(
      720px 160px at 86% 10%,
      rgba(210, 160, 255, 0.2),
      transparent 72%
    );
  filter: blur(12px);
  opacity: 0.95;
  z-index: 0;
}

#header .nav {
  position: relative;
  z-index: 1; /* above ::before/::after */
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

#header .brand {
  justify-self: start;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: rgba(17, 17, 17, 0.92);
  padding: 6px 0;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.35);
}

#header .brand:hover {
  opacity: 0.92;
}

#header .nav-center {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

#header .nav-link {
  position: relative;
  padding: 8px 6px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(17, 17, 17, 0.88);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.35);
}

#header .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: rgba(17, 17, 17, 0.75);
  border-radius: 2px;
  transition: width 180ms ease;
}

#header .nav-link:hover::after {
  width: 52px;
}
#header .nav-link[aria-current="page"]::after {
  width: 52px;
}

/* right column placeholder */
#header .nav::after {
  content: "";
  justify-self: end;
}

@media (max-width: 720px) {
  #header .nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding: 14px 0;
  }
  #header .brand {
    justify-self: center;
  }
  #header .nav-center {
    gap: 22px;
    flex-wrap: wrap;
  }
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 800;
  color: rgba(85, 85, 84, 0.95);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: rgba(85, 85, 84, 0.92);
  color: var(--bg);
  border-color: rgba(17, 17, 17, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.3);
}

/* =========================
   HERO (centered + clean fold line)
   ========================= */
#hero.hero {
  position: relative;
  overflow: hidden;

  /* hero flows behind sticky header */
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);

  /* true vertical centering */
  min-height: calc(100svh - var(--fold-offset));
  min-height: calc(100vh - var(--fold-offset));
  display: flex;
  align-items: center;
}

/* subtle tiny grey fold line (like mockup) */
#hero.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(17, 17, 17, 0.1);
  pointer-events: none;
  z-index: 2;
}

#hero .hero-bg {
  position: absolute;
  inset: -120px;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(
      900px 520px at 50% 50%,
      rgba(255, 255, 255, 0.55),
      transparent 70%
    ),
    var(--bg-canvas);
  background-size: cover;
  background-repeat: no-repeat;

  /* keeps the background visually continuous behind header */
  background-position: center top;

  opacity: 0.95;
}

#hero .container.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;

  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

#hero .hero-left {
  max-width: 560px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#hero .hero-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
  font-weight: 700;
}

#hero .hero-title {
  margin: 0 0 16px;
  font-size: clamp(52px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.9px;
  color: rgba(17, 17, 17, 0.72);
}

#hero .hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 20px;
}

/* HERO skill chips — liquid glass + cool blue glow (ONLY in hero) */
#hero .hero-chips {
  gap: 16px;
}

#hero .chip.pill {
  position: relative;
  overflow: hidden;
  padding: 14px 30px;
  border-radius: 999px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.18)
  );
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);

  /* purple border + glow */
  border: 1px solid rgba(175, 130, 255, 0.55);
  box-shadow:
    0 0 0 2px rgba(175, 130, 255, 0.16) inset,
    0 10px 26px rgba(0, 0, 0, 0.1),
    0 12px 34px rgba(175, 130, 255, 0.22);

  font-weight: 800;
  color: rgba(35, 35, 35, 0.8);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateZ(0);
}

#hero .chip.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      120% 90% at 20% 20%,
      rgba(255, 255, 255, 0.75),
      transparent 55%
    ),
    radial-gradient(
      90% 90% at 80% 0%,
      rgba(200, 160, 255, 0.28),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  opacity: 0.95;
}

#hero .chip.pill::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(210, 170, 255, 0.18)
  );
  opacity: 0.9;
}

#hero .chip.pill:hover {
  border-color: rgba(175, 130, 255, 0.75);
  box-shadow:
    0 0 0 2px rgba(175, 130, 255, 0.22) inset,
    0 14px 34px rgba(0, 0, 0, 0.12),
    0 18px 46px rgba(175, 130, 255, 0.3);
  transform: translateY(-1px);
}

#hero .hero-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

#hero .icon-pill {
  width: 56px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.18)
  );
  border: 1px solid rgba(140, 110, 255, 0.3);

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 26px rgba(160, 120, 255, 0.22);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

#hero .icon-pill::before {
  content: "";
  position: absolute;
  width: 56px;
  height: 44px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(
    120% 120% at 30% 25%,
    rgba(255, 255, 255, 0.55),
    transparent 55%
  );
  opacity: 0.9;
}

#hero .icon-pill:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.26) inset,
    0 0 32px rgba(160, 120, 255, 0.3);
}

#hero .icon-pill svg {
  width: 22px;
  height: 22px;
  fill: rgba(35, 35, 35, 0.7);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16));
}

#hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

#hero .hero-right {
  display: flex;
  justify-content: flex-end;
}

/* Photo: harmonic purple glow + glass rim */
#hero .hero-image{
  position: relative;
  width: min(420px, 38vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;

  /* glassy base */
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.40);

  /* subtle depth + purple aura */
  box-shadow:
    0 22px 60px rgba(0,0,0,0.16),
    0 0 42px rgba(170, 120, 255, 0.28),
    0 0 90px rgba(210, 160, 255, 0.22);

  transform: translateZ(0);
}

/* Soft “aura” behind the photo (bigger than the circle) */
#hero .hero-image::before{
  content:"";
  position:absolute;
  inset: -26px;                 /* makes glow extend outside */
  border-radius: 999px;
  pointer-events:none;
  z-index: 0;

  background:
    radial-gradient(circle at 30% 25%,
      rgba(255,255,255,0.55), transparent 55%),
    radial-gradient(circle at 60% 70%,
      rgba(160,120,255,0.35), transparent 62%),
    radial-gradient(circle at 70% 40%,
      rgba(210,160,255,0.28), transparent 70%);
  filter: blur(16px);
  opacity: 0.95;
}

/* Rim highlight (makes it feel like glass) */
#hero .hero-image::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events:none;
  z-index: 2;
/*
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.55),
      rgba(255,255,255,0.10) 55%,
      rgba(255,255,255,0.06));
  box-shadow: 0 0 0 2px rgba(175,130,255,0.10) inset;*/
}

/* keep the image above the aura */
#hero .hero-image img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


#hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero .hero-links {
  display: none !important;
}

/* =========================
   About grid
   ========================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-grid > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.about-grid ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

/* =========================
   Filters (portfolio)
   ========================= */
.portfolio-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.filter-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip {
  border: 1px solid var(--border);
  background: var(--chip-bg);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: rgba(17, 17, 17, 0.35);
}

/* =========================
   Projects cards (mockup style)
   ========================= */
#portfolio .portfolio-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* card container */
#portfolio .project-card{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;

  border-radius: 18px;
  overflow: hidden;

  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(17,17,17,0.10);

  box-shadow:
    0 18px 44px rgba(0,0,0,0.10),
    0 0 0 1px rgba(255,255,255,0.35) inset;

  padding: 16px 16px 14px;
}

/* subtle inner glow like the mock */
#portfolio .project-card::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(220,214,243,0.55), transparent 55%),
    radial-gradient(120% 120% at 85% 35%, rgba(231,160,126,0.35), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12));
  opacity: 0.55;
}

/* kill the old right-side tools summary box */
#portfolio .project-card::after{ display: none; }

/* header image: wide banner */
#portfolio .project-image{
  width: 100%;
  height: 128px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,0.10);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,0.55), transparent 55%),
    radial-gradient(120% 120% at 80% 50%, rgba(175,130,255,0.22), transparent 60%),
    rgba(255,255,255,0.45);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
}

#portfolio .project-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

/* title + description */
#portfolio .project-card h3{
  position: relative;
  z-index: 1;
  margin: 2px 0 0;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.78);
}

#portfolio .project-card p{
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(17,17,17,0.62);
  line-height: 1.55;
}

/* tool chips under the description */
#portfolio .project-card .mini-chip-row{
  position: relative;
  z-index: 1;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#portfolio .mini-chip{
  position: relative;
  overflow: hidden;
  padding: 8px 12px;
  border-radius: 999px;

  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(17,17,17,0.10);

  box-shadow:
    0 10px 22px rgba(0,0,0,0.06),
    0 0 0 1px rgba(255,255,255,0.22) inset;

  font-weight: 800;
  font-size: 12px;
  color: rgba(17,17,17,0.68);
}

#portfolio .mini-chip::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(120% 90% at 20% 20%, rgba(255,255,255,0.70), transparent 55%),
    radial-gradient(90% 90% at 80% 0%, rgba(200,160,255,0.18), transparent 60%);
  opacity: 0.9;
}

#portfolio{
  padding-top: 36px; /* kills the huge top gap */
}

#portfolio h2{
  margin-bottom: 14px; /* closer to mock rhythm */
}

.portfolio-filters{
  margin: 10px 0 22px; /* reduces space before cards */
}

/* responsive: 2 columns then 1 */
@media (max-width: 980px){
  #portfolio .portfolio-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  #portfolio .portfolio-grid{ grid-template-columns: 1fr; }
  #portfolio .project-image{ height: 120px; }
}

/* =========================
   Contact (mockup style: single glass card)
   ========================= */
#contact{
  padding: 56px 0; /* tighter, avoids huge gaps */
}

#contact h2{
  margin-bottom: 18px;
}

/* unified glass container: 2 columns (download | links) */
.contact-actions{
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 0;
  align-items: stretch;

  padding: 18px 22px;
  border-radius: 22px;

  background:
    radial-gradient(120% 120% at 18% 0%, rgba(220, 214, 243, 0.45), transparent 55%),
    radial-gradient(120% 120% at 85% 35%, rgba(231, 160, 126, 0.25), transparent 60%),
    rgba(255,255,255,0.35);

  border: 1px solid rgba(17,17,17,0.10);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.10),
    0 0 0 1px rgba(255,255,255,0.35) inset;

  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

/* vertical divider like the mock */
.contact-actions::after{
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 1px;
  background: rgba(17,17,17,0.08);
  pointer-events: none;
}

/* ===== Left: download block ===== */
.contact-download{
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 18px;
  align-items: center;

  padding: 10px 10px;
  border-radius: 18px;
}

.contact-download:hover{
  background: rgba(255,255,255,0.14);
}

.contact-download .icon-square{
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;

  background:
    radial-gradient(120% 120% at 30% 25%, rgba(255,255,255,0.70), transparent 55%),
    radial-gradient(120% 120% at 70% 70%, rgba(175,130,255,0.28), transparent 62%),
    rgba(255,255,255,0.40);

  border: 1px solid rgba(175, 130, 255, 0.32);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.08),
    0 0 0 1px rgba(255,255,255,0.26) inset,
    0 0 26px rgba(160,120,255,0.18);
}

.contact-download .icon-square svg{
  width: 26px;
  height: 26px;
  fill: rgba(17,17,17,0.72);
}

.contact-download .contact-title{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: rgba(17,17,17,0.74);
  line-height: 1.15;
}

.contact-download .contact-sub{
  display: inline-block;
  margin-top: 6px;
  font-weight: 800;
  color: rgba(17,17,17,0.62);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-download .contact-sub:hover{
  color: rgba(17,17,17,0.74);
}

/* ===== Right: links block ===== */
.contact-links{
  padding: 10px 0 10px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.contact-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.contact-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-weight: 800;
  color: rgba(17,17,17,0.62);
  text-decoration: none;
  white-space: nowrap;
}

.contact-link:hover{
  color: rgba(17,17,17,0.74);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-link svg{
  width: 18px;
  height: 18px;
  fill: rgba(17,17,17,0.62);
}

.contact-link:hover svg{
  fill: rgba(17,17,17,0.74);
}

.contact-sep{
  opacity: 0.35;
  transform: translateY(-1px);
}

/* responsive: stack inside the same glass card */
@media (max-width: 820px){
  .contact-actions{
    grid-template-columns: 1fr;
  }

  .contact-actions::after{ display: none; }

  .contact-links{
    padding: 14px 10px 10px;
  }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
  #hero.hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 56px;
  }

  #hero .container.hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  #hero .hero-right {
    justify-content: flex-start;
  }
  #hero .hero-image {
    width: min(300px, 72vw);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* --- HERO layout hard-fix --- */
#hero .container.hero-inner {
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 56px;
}

#hero .hero-left {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#hero .hero-chips {
  margin: 0;
}

#hero .hero-social {
  margin-top: 6px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#hero .hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#hero .hero-image {
  width: min(420px, 38vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
}

/* --- IMPORTANT: your icon pill pseudo-element needs a positioned parent --- */
#hero .icon-pill {
  position: relative;
  overflow: hidden;
}

/* keep the pseudo highlight anchored correctly */
#hero .icon-pill::before {
  inset: 0;
  width: auto;
  height: auto;
}

/* --- Responsive: stack correctly --- */
@media (max-width: 900px) {
  #hero .container.hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #hero .hero-right {
    justify-content: flex-start;
  }

  #hero .hero-image {
    width: min(320px, 72vw);
  }
}

/* =========================
   ABOUT (airy mockup layout)
   ========================= */
#about.about{
  padding: 72px 0;
}

.about-inner{
  position: relative;
}

.about-layout{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.about-title{
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.6px;
  color: rgba(17,17,17,0.78);
}

.about-title-rule{
  display: block;
  height: 1px;
  width: 100%;
  background: rgba(17,17,17,0.10);
}

.about-block{
  padding: 0;
  margin: 0 0 28px;
}

.about-h3{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.25px;
  color: rgba(17,17,17,0.74);
}

.about-ico{
  font-size: 18px;
  opacity: 0.85;
  transform: translateY(1px);
}

.about-h3-rule{
  flex: 1;
  height: 1px;
  background: rgba(17,17,17,0.10);
  margin-left: 12px;
}

.about-list{
  margin: 0 0 18px;
  padding-left: 18px;
  color: rgba(17,17,17,0.62);
  line-height: 1.6;
}

.about-list li{
  margin: 8px 0;
}

.about-quote{
  margin: 0 0 34px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(17,17,17,0.08);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(220, 214, 243, 0.55), transparent 55%),
    radial-gradient(120% 120% at 85% 35%, rgba(231, 160, 126, 0.35), transparent 60%),
    rgba(255,255,255,0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.08);
}

.about-quote p{
  margin: 0;
  font-size: 18px;
  color: rgba(17,17,17,0.66);
}

.about-quote strong{
  color: rgba(17,17,17,0.78);
}

/* =========================
   Skills accordion (clean, not card-y)
   ========================= */
.skills{
  display: grid;
  gap: 12px;
}

.skill-group{
  border-top: 1px solid rgba(17,17,17,0.10);
  padding-top: 12px;
}

.skill-group:last-child{
  border-bottom: 1px solid rgba(17,17,17,0.10);
  padding-bottom: 12px;
}

.skill-group > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 800;
  color: rgba(17,17,17,0.70);
  padding: 10px 0;
}

.skill-group > summary::-webkit-details-marker{ display: none; }

.skill-group-body{
  padding: 6px 0 2px;
  display: grid;
  gap: 10px;
}

.skill-item{
  border-left: 2px solid rgba(175, 130, 255, 0.22);
  padding-left: 12px;
}

.skill-item > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: rgba(17,17,17,0.62);
  padding: 6px 0;
}

.skill-item > summary::-webkit-details-marker{ display: none; }

.skill-item ul,
.skill-group-body ul.flat{
  margin: 0;
  padding-left: 18px;
  color: rgba(17,17,17,0.58);
  line-height: 1.6;
}

.skill-item ul li,
.skill-group-body ul.flat li{
  margin: 8px 0;
}

.skills-note{
  margin: 8px 0 0;
  color: rgba(17,17,17,0.48);
  font-style: italic;
}

/* chevron (no external icons needed) */
.chev{
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(17,17,17,0.50);
  border-bottom: 2px solid rgba(17,17,17,0.50);
  transform: rotate(45deg);
  transition: transform 160ms ease, opacity 160ms ease;
  opacity: 0.75;
}

details[open] > summary .chev{
  transform: rotate(-135deg);
  opacity: 0.9;
}

/* hover polish */
.skill-group > summary:hover,
.skill-item > summary:hover{
  color: rgba(17,17,17,0.74);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px){
  .about-layout{
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-quote{
    margin-bottom: 22px;
  }
}

/* =========================
   PORTFOLIO (mockup layout)
   ========================= */

#portfolio .container { position: relative; }

/* filters: stacked (Tools row then Skills row) */
.portfolio-filters{
  display: grid;
  grid-template-columns: 1fr; /* single column (2 rows) */
  gap: 18px;
  margin: 18px 0 26px;
}

.filter-group{
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.filter-group h3{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: rgba(17,17,17,0.70);
  letter-spacing: -0.2px;
}

.chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

/* Filter chips: match hero glass pills */
.chip{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  padding: 12px 18px;

  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.18));
  border: 1px solid rgba(175, 130, 255, 0.42);

  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);

  box-shadow:
    0 0 0 2px rgba(175, 130, 255, 0.12) inset,
    0 10px 22px rgba(0,0,0,0.08),
    0 14px 30px rgba(175, 130, 255, 0.14);

  cursor: pointer;
  font-weight: 800;
  color: rgba(35,35,35,0.72);
  letter-spacing: 0.2px;

  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.chip::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(120% 90% at 20% 20%, rgba(255,255,255,0.70), transparent 55%),
    radial-gradient(90% 90% at 80% 0%, rgba(200,160,255,0.22), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
  opacity: 0.95;
}

.chip:hover{
  transform: translateY(-1px);
  border-color: rgba(175, 130, 255, 0.60);
  box-shadow:
    0 0 0 2px rgba(175, 130, 255, 0.16) inset,
    0 14px 28px rgba(0,0,0,0.10),
    0 18px 44px rgba(175, 130, 255, 0.18);
}

/* Active chip: clear “selected” state */
.chip.is-active{
  background: rgba(85,85,84,0.92);
  color: rgba(255,255,255,0.94);
  border-color: rgba(175, 130, 255, 0.70);
  box-shadow:
    0 0 0 2px rgba(175, 130, 255, 0.20) inset,
    0 16px 32px rgba(0,0,0,0.12),
    0 22px 54px rgba(175, 130, 255, 0.26);
}

.chip.is-active::before{
  opacity: 0.55; /* keep highlight subtle on dark fill */
}
