/* ============================================================
   TideSupreme · neubrutalism x neumorphism team portfolio
   ============================================================ */

:root {
  --bg: #e6e9f0;
  --bg-2: #e9ecf3;
  --text: #3c4458;
  --text-soft: #6b7488;
  --accent: #0b5cff;
  --accent-2: #3b82ff;
  --ink: #14181f;

  /* neumorphic shadows */
  --sh-dark: #c2c8d6;
  --sh-light: #ffffff;
  --d1: 6px;  --d2: 12px;

  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --maxw: 1120px;
}

[data-theme="dark"] {
  --bg: #2a2e38;
  --bg-2: #2d313c;
  --text: #e7ebf3;
  --text-soft: #9aa3b5;
  --accent: #4d8bff;
  --accent-2: #2f7bff;
  --ink: #0a0d13;
  --sh-dark: #1f222a;
  --sh-light: #353b48;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
a { color: inherit; text-decoration: none; }
strong { color: var(--accent-2); font-weight: 600; }

/* ---- neumorphic primitives ---- */
.neu {
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 20px;
  /* hard brutalist edge + soft neumorphic ambient */
  box-shadow: 7px 7px 0 var(--ink), 16px 16px 30px var(--sh-dark), -10px -10px 22px var(--sh-light);
  transition: box-shadow .25s ease, transform .25s ease, background .35s ease;
}
.neu-inset {
  background: var(--bg);
  box-shadow: inset 5px 5px 10px var(--sh-dark), inset -5px -5px 10px var(--sh-light);
}
.neu-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  border: 3px solid var(--ink); cursor: pointer;
  padding: .75rem 1.35rem; border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: box-shadow .15s ease, transform .15s ease, color .2s ease;
}
.neu-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.neu-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.neu-btn--accent { color: #fff; background: var(--accent); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 1rem 1.5rem;
  background: var(--bg);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 12px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  object-fit: cover; display: block;
}
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.5px; }
.brand__sup { color: var(--accent); }

.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { font-family: var(--f-display); font-weight: 500; font-size: .92rem; color: var(--text-soft); transition: color .2s; }
.nav__links a:hover { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: .8rem; }

/* theme toggle */
.theme-toggle { width: 60px; height: 34px; padding: 4px; border-radius: 18px; box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light); }
.theme-toggle__thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
  transition: transform .3s cubic-bezier(.4,1.4,.6,1);
}
[data-theme="dark"] .theme-toggle__thumb { transform: translateX(26px); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -1px; }
.section__lead { color: var(--text-soft); margin-top: .7rem; font-size: 1.02rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem 2rem; text-align: center; }
.pill {
  display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .5px; color: var(--accent); padding: .5rem 1.1rem; border-radius: 20px; margin-bottom: 1.6rem;
  box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);
}
.hero__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.05; letter-spacing: -2px; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 56ch; margin: 1.5rem auto 0; font-size: 1.15rem; color: var(--text-soft); }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* team photo as a brutalist post-it note */
.hero__showcase { position: relative; max-width: 700px; margin: 3.4rem auto 0; transform: rotate(-1.6deg); }
.hero__showcase::before { /* tape strip */
  content: ""; position: absolute; z-index: 2; top: -16px; left: 50%;
  width: 132px; height: 34px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(120, 200, 255, .42);
  border: 2px solid rgba(0, 0, 0, .3);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .15);
}
.hero__screen {
  background: #ffe45e; /* sticky-note yellow */
  border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  padding: 16px 16px 8px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero__showcase:hover .hero__screen { transform: translate(-3px, -3px); box-shadow: 16px 16px 0 var(--ink); }
.hero__screen img { width: 100%; height: auto; display: block; border: 3px solid var(--ink); border-radius: 12px; }
.hero__cap {
  font-family: "Permanent Marker", cursive; color: var(--ink);
  font-size: 1.25rem; text-align: center; margin-top: .6rem; transform: rotate(-1deg);
}
.hero__cap {
  margin-top: 1.3rem; font-family: var(--f-display); font-weight: 600;
  color: var(--text-soft); font-size: .98rem;
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3.5rem; }
.stat { padding: 1.6rem 1.2rem; text-align: center; }
.stat__num { display: block; font-family: var(--f-display); font-weight: 800; font-size: 2.4rem; color: var(--accent); letter-spacing: -1px; }
.stat__plus { font-size: 1.4rem; vertical-align: super; }
.stat__label { display: block; font-size: .82rem; color: var(--text-soft); margin-top: .4rem; line-height: 1.4; }

/* ============================================================
   PEOPLE
   ============================================================ */
.people { display: grid; gap: 1.8rem; }
.people--3 { grid-template-columns: repeat(3, 1fr); }
.people--2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
/* pyramid: 3 on top, 2 centred below */
.people--team { display: flex; flex-wrap: wrap; justify-content: center; }
.people--team .person { flex: 0 1 320px; cursor: pointer; }
.person { padding: 2rem 1.7rem; text-align: center; }
.person:hover, .card:hover, .advisor:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--ink), 20px 20px 34px var(--sh-dark), -10px -10px 22px var(--sh-light);
}
.avatar {
  width: 84px; height: 84px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--text-soft);
  background: var(--bg);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.avatar--accent { color: #fff; background: var(--accent); }
.avatar--photo {
  padding: 0; overflow: hidden;
  background-color: var(--accent);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 35%;
}
.avatar--sm { width: 56px; height: 56px; font-size: 1.05rem; margin: 0; flex: none; }
.person__name { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; }
.person__role { display: block; color: var(--accent); font-weight: 600; font-size: .85rem; margin: .25rem 0 .9rem; }
.person__bio { color: var(--text-soft); font-size: .95rem; }
.person__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.person__tags span {
  font-family: var(--f-display); font-size: .72rem; font-weight: 600; color: var(--text-soft);
  padding: .35rem .7rem; border-radius: 12px;
  box-shadow: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light);
}

/* ============================================================
   ADVISORS
   ============================================================ */
.advisors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.advisor { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; }
.advisor h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.advisor span { color: var(--text-soft); font-size: .85rem; }

/* ============================================================
   EXPERTISE CARDS
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.card { padding: 2rem; }
.card__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: var(--accent); margin-bottom: 1.1rem; }
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; margin-bottom: .5rem; }
.card p { color: var(--text-soft); font-size: .96rem; }

/* project showcase cards */
.project__top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.project__badge {
  font-family: var(--f-display); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: #fff; background: var(--accent);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: .3rem .6rem; border-radius: 9px;
}
.project__badge--alt { background: var(--ink); }
.project__repo {
  font-family: var(--f-display); font-weight: 700; font-size: .85rem; color: var(--text);
  background: var(--bg); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: .35rem .7rem; border-radius: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.project__repo:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.project__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.project__tags span {
  font-family: var(--f-display); font-size: .72rem; font-weight: 600; color: var(--text-soft);
  padding: .35rem .7rem; border-radius: 12px;
  box-shadow: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light);
}
.built__more {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1.8rem; padding: 1.6rem 1.8rem;
}
.built__more p { color: var(--text-soft); font-size: 1rem; max-width: 62ch; margin: 0; }
.built__more .neu-btn { flex: none; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 3.5rem 2rem; text-align: center; }
.cta__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -1px; }
.cta__sub { color: var(--text-soft); max-width: 50ch; margin: 1rem auto 2rem; font-size: 1.08rem; }
.cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.5rem 3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--text-soft); }
.footer__brand { font-family: var(--f-display); font-weight: 800; color: var(--text); }
.footer__note { font-size: .9rem; }

/* ============================================================
   LIGHTBOX (full photo)
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  padding: 6vh 1.5rem;
  background: rgba(8, 11, 18, .8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox__frame { margin: 0; text-align: center; }
.lightbox__frame img {
  max-width: min(90vw, 440px); max-height: 78vh; width: auto; height: auto; display: block;
  border: 4px solid var(--ink); border-radius: 20px;
  box-shadow: 10px 10px 0 var(--ink);
  background: var(--accent);
}
.lightbox__frame figcaption {
  margin-top: 1.1rem; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: #fff;
}
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--bg); color: var(--text);
  font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lightbox__close:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }

/* ============================================================
   REVEAL + RESPONSIVE
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .people--3, .people--2, .advisors, .cards { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
