/* ---------- Theme tokens ---------- */
:root {
  --blue: #0b4fe0;
  --blue-deep: #0a2fa3;
  --sky: #1aa0ff;
  --pink: #ec0890;
  --pink-light: #ff4fa8;
  --purple: #7a0a9a;

  --bg: #ffffff;
  --bg-soft: #f4f7ff;
  --card: #ffffff;
  --text: #0d1b4c;
  --muted: #55608a;
  --border: #e3e8f7;
  --shadow: 0 10px 30px rgba(13, 40, 120, .08);

  --radius: 20px;
  --maxw: 1100px;
}

:root[data-theme="dark"] {
  --bg: #070b1f;
  --bg-soft: #0d1430;
  --card: #111a3a;
  --text: #eef2ff;
  --muted: #a3acd0;
  --border: #1f2a52;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
.pink { color: var(--pink); }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, calc((100% - var(--maxw)) / 2));
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--blue); }
:root[data-theme="dark"] .brand { color: #5b8cff; }
.brand b { color: var(--pink); margin-left: 4px; }
.brand-mark { width: 34px; height: 34px; }
.brand-mark.small { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--pink); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-moon { display: none !important; }
:root[data-theme="dark"] .icon-sun { display: none !important; }
:root[data-theme="dark"] .icon-moon { display: block !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid; place-items: center;
  text-align: center;
  padding: 80px 16px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-mark { width: 150px; height: 150px; margin: 0 auto 18px; animation: float 6s ease-in-out infinite; }
.hero h1 {
  font-size: clamp(2.8rem, 9vw, 6rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
  color: var(--blue);
}
:root[data-theme="dark"] .hero h1 { color: #4d82ff; }
.tagline { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 500; color: var(--blue-deep); margin-top: 8px; }
:root[data-theme="dark"] .tagline { color: #b9c8ff; }
.lead { color: var(--muted); font-size: 1.1rem; margin: 22px auto 0; max-width: 520px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 10px 25px rgba(236, 8, 144, .3);
}
.btn-ghost { border: 2px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--pink); }
.btn-light { background: #fff; color: var(--blue-deep); margin-top: 22px; }

/* Decorative orbs like the Play Store banner */
.orb { position: absolute; border-radius: 50%; z-index: 1; }
.orb-a {
  width: 520px; height: 520px; left: -200px; bottom: -220px;
  background: radial-gradient(circle at 75% 25%, var(--sky), #0057e7 50%, #00239c);
  animation: float 9s ease-in-out infinite;
}
.orb-b {
  width: 220px; height: 220px; left: 120px; bottom: 30px;
  background: radial-gradient(circle at 40% 25%, var(--pink-light), var(--pink) 55%, #a1007a);
  box-shadow: -12px 10px 30px rgba(0, 0, 60, .35);
  animation: float 7s ease-in-out infinite reverse;
}
.orb-c {
  width: 380px; height: 380px; right: -140px; top: -140px;
  background: radial-gradient(circle at 25% 30%, var(--pink-light), var(--pink) 45%, var(--purple));
  animation: float 11s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 100px 16px; }
.section-head { text-align: center; margin-bottom: 50px; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--pink); margin-bottom: 8px;
}
h2 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }

/* App cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--pink) 40%, var(--border)); box-shadow: 0 20px 40px rgba(13, 40, 120, .14); }
.app-icon {
  width: 72px; height: 72px; border-radius: 20px;
  object-fit: cover; box-shadow: 0 6px 16px rgba(13, 40, 120, .15);
  transition: transform .25s;
}
.card:hover .app-icon { transform: scale(1.06) rotate(-3deg); }
.card.hidden { display: none; }
.category {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pink); margin-top: 4px;
}
.card h3 { line-height: 1.25; }

/* Category filters */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -20px 0 36px; }
.chip {
  font: inherit; font-weight: 500; font-size: .95rem;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--muted); border: 1px solid var(--border);
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--pink); }
.chip.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--pink));
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); flex: 1; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .8rem; font-weight: 500; padding: 4px 12px; border-radius: 999px;
  background: var(--bg-soft); color: var(--blue); border: 1px solid var(--border);
}
:root[data-theme="dark"] .tags li { color: #9db8ff; }
.tags.big li { font-size: .95rem; padding: 8px 16px; }
.play {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-weight: 600; color: var(--pink);
}
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play:hover { text-decoration: underline; }
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.play.site { color: var(--blue); }
:root[data-theme="dark"] .play.site { color: #7fa4ff; }
.play.site svg { fill: none; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.about-text p:not(.eyebrow) { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }
.skills {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.skills h3 { margin-bottom: 18px; }

/* Contact */
.contact-card {
  text-align: center; color: #fff;
  padding: 70px 24px; border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 79, 168, .9), transparent 40%),
    linear-gradient(135deg, #0a3fd1, #0057e7 45%, var(--pink));
  box-shadow: 0 25px 60px rgba(11, 79, 224, .3);
}
.contact-card p { opacity: .9; margin-top: 10px; font-size: 1.1rem; }
.socials { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .15); transition: background .2s, transform .2s;
}
.socials a:hover { background: rgba(255, 255, 255, .3); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }

/* Footer */
.footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 30px 16px 40px; color: var(--muted); font-size: .9rem;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .orb-a { width: 400px; height: 400px; left: -240px; bottom: -200px; }
  .orb-b { width: 150px; height: 150px; left: 20px; bottom: 20px; }
  .orb-c { width: 300px; height: 300px; right: -170px; top: -150px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .theme-toggle { margin-left: auto; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 70px 16px; }
  .orb-a { width: 320px; height: 320px; left: -160px; bottom: -140px; }
  .orb-b { width: 120px; height: 120px; left: 40px; bottom: 20px; }
  .orb-c { width: 220px; height: 220px; right: -100px; top: -90px; }
  .hero-mark { width: 110px; height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
