/* ===================================================
   GABIGA PORTFOLIO — Design System
   =================================================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Design Tokens ── */
:root {
  --bg:        #FAFAF8;
  --surface:   #F0EFEB;
  --text:      #111111;
  --muted:     #6B6B6B;
  --border:    #E2E1DC;
  --accent:    #2563EB;
  --accent-lt: #EFF6FF;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10);

  --max-w: 1100px;
  --nav-h: 68px;
}

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

.surface { background-color: var(--surface); }

.overline {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.section__sub {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

.section__cta {
  text-align: center;
  margin-top: 48px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: var(--r-full);
  font-size: .9rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn--sm { padding: 9px 18px; font-size: .82rem; }

.link-arrow {
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent);
}
.link-arrow:hover { text-decoration: underline; }

/* ── Tags / Pills ── */
.tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text);
  font-size: .78rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ───────────────────────────────────────
   NAV
   ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250, 250, 248, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  background: var(--text) !important;
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: var(--r-full);
}
.nav__cta:hover { opacity: .85; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────────────────────
   HERO
   ─────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  background: var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 64px;
}

.hero__portrait {
  position: relative;
}
.hero__portrait img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg);
  outline: 1px solid var(--border);
}

.hero__text { max-width: 580px; }

.hero__name {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero__sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

/* ───────────────────────────────────────
   METRICS GRID
   ─────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.metric-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.metric-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.surface .metric-card { background: var(--bg); }

.metric-card__num {
  display: block;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.metric-card__label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ───────────────────────────────────────
   YOUTUBE VIDEOS
   ─────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: var(--shadow-md);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.video-thumb:hover img { transform: scale(1.04); }

.video-thumb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.video-thumb:hover .video-thumb__overlay { background: rgba(0,0,0,.1); }

.video-thumb__play {
  width: 54px;
  height: 54px;
  background: rgba(0,0,0,.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  transition: transform .25s, background .25s;
  backdrop-filter: blur(3px);
}
.video-thumb:hover .video-thumb__play {
  transform: scale(1.12);
  background: rgba(0,0,0,.72);
}

.video-card__stat {
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* ───────────────────────────────────────
   PRODUCTS
   ─────────────────────────────────────── */
.product-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 56px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.product-featured__img img {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-featured__text h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.product-featured__text p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card__num {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.product-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.product-card p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ───────────────────────────────────────
   EMAIL
   ─────────────────────────────────────── */
.email-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.email-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px 16px;
}

.email-chart__label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
}

.email-chart svg {
  width: 100%;
  height: 100px;
  display: block;
}

.email-chart__axis {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--muted);
  margin-top: 8px;
}

.email-funnel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.funnel-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.funnel-step__icon {
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.funnel-step strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.funnel-step p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ───────────────────────────────────────
   SOCIAL
   ─────────────────────────────────────── */
.social-platform {
  margin-bottom: 56px;
}
.social-platform:last-child { margin-bottom: 0; }

.social-platform__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.social-platform__header span {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

.social-icon {
  width: 22px;
  height: 22px;
  fill: var(--text);
  flex-shrink: 0;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.reel-grid--tiktok {
  grid-template-columns: repeat(3, 1fr);
}

.reel-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform .2s;
}
.reel-card:hover { transform: translateY(-4px); }

.reel-card__thumb {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.reel-card__thumb--ig {
  background: linear-gradient(165deg, #f09433 0%, #e6683c 20%, #dc2743 45%, #cc2366 70%, #bc1888 100%);
}

.reel-card__thumb--tiktok {
  background: linear-gradient(160deg, #010101 0%, #161616 60%, #1c1c1c 100%);
}

.reel-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.reel-card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
  z-index: 1;
  transition: background .2s;
}

.reel-card:hover .reel-card__thumb::before { background: rgba(0,0,0,.18); }

.reel-card__play {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.reel-card:hover .reel-card__play {
  background: rgba(255,255,255,.28);
  transform: scale(1.1);
}

.reel-card__badge {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 10px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.35);
  border-radius: var(--r-full);
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}

.reel-card__label {
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

/* ───────────────────────────────────────
   ABOUT / SKILLS
   ─────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about__bio h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about__bio p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.lang-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 500;
}

.skill-group {
  margin-bottom: 36px;
}

.skill-group h4 {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tool-item__name {
  font-size: .85rem;
  font-weight: 500;
}

.tool-item__bar {
  height: 4px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.tool-item__fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease .2s;
}

.tool-item__fill.animated {
  transform: scaleX(1);
}

/* ───────────────────────────────────────
   DOCUMENTS
   ─────────────────────────────────────── */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: box-shadow .2s, transform .2s;
}

.doc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.doc-card__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-lt);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.doc-card__info {
  flex: 1;
  min-width: 0;
}

.doc-card__name {
  font-size: .9rem;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.doc-card__type {
  font-size: .74rem;
  color: var(--muted);
}

.doc-card__dl {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}

.doc-card:hover .doc-card__dl {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ───────────────────────────────────────
   FOOTER
   ─────────────────────────────────────── */
.footer {
  background: var(--text);
  color: #fff;
  padding: 64px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}

.footer__logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  display: block;
  margin-bottom: 8px;
}

.footer__left p {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  margin-bottom: 20px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__contact a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color .2s;
}
.footer__contact a:hover { color: #fff; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer__links a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}
.footer__links a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: center;
}

.footer__bottom span {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ───────────────────────────────────────
   REVEAL ANIMATIONS
   ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───────────────────────────────────────
   RESPONSIVE — Mobile ( ≤ 768px )
   ─────────────────────────────────────── */
@media (max-width: 768px) {

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    box-shadow: var(--shadow-md);
  }

  .nav__links.open { display: flex; }

  .nav__links a {
    padding: 14px 24px;
    font-size: .95rem;
    color: var(--text);
    width: 100%;
  }

  .nav__cta {
    margin: 8px 24px 0;
    padding: 12px 24px !important;
    text-align: center;
    border-radius: var(--r-full) !important;
  }

  .nav__burger { display: flex; }

  .hero {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 48px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero__portrait {
    display: flex;
    justify-content: center;
  }

  .hero__portrait img {
    width: 180px;
    height: 180px;
  }

  .hero__sub { margin: 0 auto 28px; }
  .hero__tags { justify-content: center; }

  .section { padding: 64px 0; }

  .metrics-grid { grid-template-columns: 1fr; gap: 12px; }
  .video-grid { grid-template-columns: 1fr; }
  .product-featured { grid-template-columns: 1fr; gap: 32px; padding: 28px 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .email-visual { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }

  /* Horizontal scroll for social reels */
  .social-platform .reel-grid,
  .social-platform .reel-grid--tiktok {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .social-platform .reel-grid::-webkit-scrollbar,
  .social-platform .reel-grid--tiktok::-webkit-scrollbar { display: none; }

  .social-platform .reel-card {
    flex: 0 0 44vw;
    max-width: 176px;
    scroll-snap-align: start;
  }

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

  .social-platform__header { flex-wrap: wrap; }
  .social-platform__header span { flex: 0 0 100%; order: -1; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__links { align-items: flex-start; }
}

@media (max-width: 480px) {
  .reel-grid { grid-template-columns: 1fr 1fr; }
  .hero__name { font-size: 2.4rem; }
}
