/* ============================================================
   Giyanis — Personal Portfolio
   Design system: purple, clean, modern, mobile-first
   ============================================================ */

:root {
  --bg: #f5f3ff;
  --bg-tint: #ede9fe;
  --surface: #ffffff;
  --text: #2e1065;
  --text-soft: #6d28d9;
  --text-muted: #7c6a9f;
  --accent: #6d28d9;
  --accent-strong: #4c1d95;
  --accent-glow: rgba(109, 40, 217, 0.14);
  --line: #e2dcf4;
  --radius: 20px;
  --shadow: 0 10px 40px rgba(76, 29, 149, 0.10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

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

.container {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
  background: transparent;
}
.nav--scrolled {
  background: rgba(245, 243, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav__brand-dot { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav__links a:hover { color: var(--accent-strong); }
.nav__links .nav__cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}
.nav__links .nav__cta:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 0;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero__orb--one {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -100px;
  background: rgba(139, 92, 246, 0.30);
}
.hero__orb--two {
  width: 340px;
  height: 340px;
  bottom: -80px;
  left: -120px;
  background: rgba(196, 181, 253, 0.45);
}
.hero__inner {
  position: relative;
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}
.hero__eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero__title-soft { color: var(--text-soft); font-style: italic; }
.hero__amp {
  color: var(--accent);
  font-style: italic;
}
.hero__desc {
  margin-top: 24px;
  max-width: 540px;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__ticker {
  position: relative;
  margin-top: 90px;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hero__ticker-track {
  display: inline-flex;
  animation: ticker 26s linear infinite;
  padding: 16px 0;
}
.hero__ticker-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-soft);
  padding-inline: 14px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--tint {
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
}
.section--final {
  background: radial-gradient(800px 400px at 50% 110%, rgba(139, 92, 246, 0.14), transparent 70%);
  text-align: center;
}
.section__tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 640px;
}
.section__title--center {
  max-width: 620px;
  margin-inline: auto;
}
.section__sub {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 560px;
  font-size: 1.05rem;
}
.section__sub--center {
  margin-inline: auto;
  max-width: 480px;
}
.section__cta { margin-top: 32px; }

/* ---------- Traits ---------- */
.traits {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trait {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.trait:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(76, 29, 149, 0.16);
}
.trait__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
  background: var(--bg-tint);
  border-radius: 14px;
  margin-bottom: 18px;
}
.trait h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.trait p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Quotes ---------- */
.quotes {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}
.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text);
}
.quote figcaption {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
}

/* ---------- Family ---------- */
.family {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.family__card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.family__card:hover { transform: translateY(-4px); }
.family__emoji {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  background: var(--bg-tint);
  border-radius: 50%;
}
.family__card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.family__card p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
}
.footer__heart { display: inline-block; }
.footer p { color: var(--text-soft); font-weight: 600; }
.footer__small {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__ticker-track { animation: none; }
  .trait:hover, .family__card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .traits, .quotes { grid-template-columns: 1fr; }
  .family { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav__links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav__links a {
    padding: 13px 16px;
    border-radius: 12px;
  }
  .nav__links a:hover { background: var(--bg-tint); }
  .nav__links .nav__cta {
    text-align: center;
    margin-top: 6px;
  }
  .section { padding: 84px 0; }
  .hero { min-height: 100svh; padding-top: 110px; }
  .hero__ticker { margin-top: 70px; }
  .hero__actions .btn { flex: 1 1 100%; text-align: center; }
}
