:root {
  --bg: #F6F5FE;
  --card: #FFFFFF;
  --text: #241F3D;
  --muted: #6E6A8A;
  --line: #E9E6FA;

  --purple: #6D5DFC;
  --purple-dark: #5847E0;
  --purple-light: #EDEAFF;

  --mint: #2FD8A6;
  --mint-light: #E3FBF3;

  --coral: #FF7A85;
  --coral-light: #FFEBEC;

  --yellow: #FFB627;
  --yellow-light: #FFF4DE;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1040px;
  --radius: 22px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.icon { width: 18px; height: 18px; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6vw;
  backdrop-filter: blur(12px);
  background: rgba(246, 245, 254, 0.75);
  border-bottom: 1px solid var(--line);
}
.nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.dot { color: var(--purple); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 0.92rem; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--purple);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(109, 93, 252, 0.35); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 6vw;
  overflow: hidden;
  background: linear-gradient(160deg, #7C6FF5 0%, #6D5DFC 45%, #5847E0 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }

.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater { position: absolute; opacity: 0.85; }
.f-circle { border-radius: 50%; background: rgba(255,255,255,0.28); box-shadow: 0 0 40px rgba(255,255,255,0.15); }
.f-ring { border-radius: 50%; border: 4px solid rgba(255,255,255,0.55); }
.f-tri {
  width: 0; height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 40px solid rgba(255,201,96,0.85);
  filter: drop-shadow(0 0 16px rgba(255,201,96,0.35));
}
.f1 { width: 110px; height: 110px; top: 12%; left: 8%; animation: floatA 9s ease-in-out infinite; }
.f2 { top: 18%; right: 14%; animation: floatB 7.5s ease-in-out infinite; }
.f3 { width: 60px; height: 60px; bottom: 22%; left: 16%; background: rgba(47,216,166,0.8); box-shadow: 0 0 30px rgba(47,216,166,0.3); animation: floatC 10s ease-in-out infinite; }
.f4 { width: 160px; height: 160px; bottom: 10%; right: 8%; animation: floatA 12s ease-in-out infinite reverse; }
.f5 { width: 38px; height: 38px; top: 44%; left: 4%; background: rgba(255,122,133,0.8); box-shadow: 0 0 26px rgba(255,122,133,0.3); animation: floatB 6.5s ease-in-out infinite; }
.f6 { top: 60%; right: 20%; animation: floatC 9s ease-in-out infinite; }

@keyframes floatA { 0%,100%{ transform: translate(0,0) rotate(0deg) scale(1);} 50%{ transform: translate(34px,-46px) rotate(14deg) scale(1.08);} }
@keyframes floatB { 0%,100%{ transform: translate(0,0) rotate(0deg);} 50%{ transform: translate(-32px,38px) rotate(-18deg);} }
@keyframes floatC { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(28px,28px) scale(1.12);} }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero h1 span { color: #FFE29A; }
.hero-lede {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 540px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 100px;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s;
}
.btn-primary { background: #fff; color: var(--purple-dark); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(0,0,0,0.18); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); }
.btn-white { background: #fff; color: var(--purple-dark); }
.btn-white:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(0,0,0,0.18); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline-white:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); }

/* SECTIONS */
.section { max-width: var(--max-width); margin: 0 auto; padding: 110px 6vw; }
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.icon-badge {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.icon-badge-purple { background: var(--purple-light); color: var(--purple-dark); }
.icon-badge-mint { background: var(--mint-light); color: #1B9A76; }
.icon-badge-coral { background: var(--coral-light); color: #E14B58; }
.icon-badge-yellow { background: var(--yellow-light); color: #C67F00; }
.section .eyebrow { color: var(--muted); font-size: 0.95rem; margin: 0; }
.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-bottom: 46px;
  letter-spacing: -0.01em;
  max-width: 620px;
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: start; }
.about-copy { color: var(--muted); font-size: 1.05rem; }
.metric-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric-card {
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.25s;
}
.metric-card:hover { transform: translateY(-4px); }
.metric-value { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; }
.metric-label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.mc-purple { background: var(--purple-light); }
.mc-purple .metric-value { color: var(--purple-dark); }
.mc-mint { background: var(--mint-light); }
.mc-mint .metric-value { color: #1B9A76; }
.mc-coral { background: var(--coral-light); }
.mc-coral .metric-value { color: #E14B58; }
.mc-yellow { background: var(--yellow-light); }
.mc-yellow .metric-value { color: #C67F00; }

/* TIMELINE */
.timeline { display: flex; flex-direction: column; gap: 8px; }
.entry {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.entry:last-child { border-bottom: none; }
.entry-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; }
.dot-purple { background: var(--purple); }
.dot-mint { background: var(--mint); }
.dot-coral { background: var(--coral); }
.dot-yellow { background: var(--yellow); }
.entry-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.entry h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.badge {
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
}
.badge-current { background: var(--mint-light); color: #1B9A76; }
.entry-meta { color: var(--muted); font-size: 0.9rem; margin: 6px 0 14px; }
.entry ul { padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.entry-note { color: var(--muted); font-size: 0.92rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.78rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
}
.chip-purple { background: var(--purple-light); color: var(--purple-dark); }
.chip-mint { background: var(--mint-light); color: #1B9A76; }
.chip-coral { background: var(--coral-light); color: #E14B58; }
.chip-yellow { background: var(--yellow-light); color: #C67F00; }
.chips-lg .chip { font-size: 0.85rem; padding: 8px 16px; }

/* STACK */
.tier { margin-bottom: 34px; }
.tier h4 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; }
.dot-legend { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* PROJECTS */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 4px 16px rgba(36, 31, 61, 0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(36, 31, 61, 0.1); }
.project-tag { font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.tag-purple { background: var(--purple-light); color: var(--purple-dark); }
.tag-mint { background: var(--mint-light); color: #1B9A76; }
.tag-coral { background: var(--coral-light); color: #E14B58; }
.project-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 14px 0 10px; }
.project-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

/* TESTIMONIALS */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(36, 31, 61, 0.04);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(36, 31, 61, 0.1); }
.tc-purple { background: var(--purple-light); }
.tc-mint { background: var(--mint-light); }
.tc-coral { background: var(--coral-light); }
.quote-mark { width: 26px; height: 26px; margin-bottom: 14px; }
.tc-purple .quote-mark { color: var(--purple-dark); }
.tc-mint .quote-mark { color: #1B9A76; }
.tc-coral .quote-mark { color: #E14B58; }
.testimonial-text { font-size: 0.92rem; color: var(--text); margin-bottom: 22px; flex: 1; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.avatar-purple { background: var(--purple); color: #fff; }
.avatar-mint { background: var(--mint); color: #fff; }
.avatar-coral { background: var(--coral); color: #fff; }
.person-name { display: block; font-weight: 700; font-size: 0.9rem; }
.person-role { display: block; font-size: 0.78rem; color: var(--muted); }
.testimonial-more { text-align: center; margin-top: 36px; }
.btn-outline-purple { border: 2px solid var(--purple); color: var(--purple-dark); font-weight: 600; }
.btn-outline-purple:hover { background: var(--purple-light); transform: translateY(-2px); }

/* CONTACT */
.contact { padding-bottom: 100px; }
.contact-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #7C6FF5 0%, #6D5DFC 50%, #5847E0 100%);
  border-radius: 32px;
  padding: 72px 6vw;
  text-align: center;
}
.contact-panel .eyebrow { color: rgba(255,255,255,0.85); justify-content: center; }
.contact-panel h2 { color: #fff; margin: 12px auto 16px; }
.contact-lede { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 32px; }
.floaters-contact { z-index: 1; }
.fc1 { width: 90px; height: 90px; top: 8%; left: 8%; animation: floatA 8s ease-in-out infinite; }
.fc2 { top: 18%; right: 12%; animation: floatB 6.5s ease-in-out infinite; }
.fc3 { width: 66px; height: 66px; bottom: 12%; right: 18%; animation: floatC 9.5s ease-in-out infinite; }
.fc4 { width: 34px; height: 34px; bottom: 20%; left: 20%; background: rgba(47,216,166,0.75); box-shadow: 0 0 24px rgba(47,216,166,0.3); animation: floatB 7s ease-in-out infinite; }

/* FOOTER */
.footer {
  display: flex; justify-content: space-between;
  padding: 28px 6vw 44px;
  font-size: 0.85rem; color: var(--muted);
  max-width: var(--max-width); margin: 0 auto;
  flex-wrap: wrap; gap: 8px;
}

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px; right: 0;
    width: min(280px, 80vw);
    height: calc(100vh - 68px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 32px 28px;
    box-shadow: -8px 0 30px rgba(36, 31, 61, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 1rem;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links .nav-cta { width: 100%; text-align: center; }

  .about-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .now-grid { grid-template-columns: 1fr; }
  .metric-cards { grid-template-columns: 1fr 1fr; }
  .entry { grid-template-columns: 16px 1fr; gap: 16px; }
  .section { padding: 80px 6vw; }
}

@media (max-width: 520px) {
  .hero { min-height: 100svh; padding: 100px 6vw 60px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-lede { font-size: 0.98rem; }
  .hero-actions, .contact-panel .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn, .contact-panel .btn { width: 100%; justify-content: center; }

  .section { padding: 64px 6vw; }
  .section h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); margin-bottom: 32px; }

  .metric-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric-card { padding: 18px; }
  .metric-value { font-size: 1.7rem; }

  .entry { grid-template-columns: 12px 1fr; gap: 12px; padding: 22px 0; }
  .entry-dot { width: 10px; height: 10px; margin-top: 4px; }
  .entry h3 { font-size: 1.05rem; }

  .contact-panel { padding: 48px 6vw; border-radius: 24px; }

  .footer { flex-direction: column; text-align: center; padding: 24px 6vw 36px; }

  .floater { transform: scale(0.75); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--purple-dark); outline-offset: 3px; }

.portfolio-intro {
  color: var(--muted);
  max-width: 700px;
  margin: -28px 0 44px;
  font-size: 0.98rem;
}
.portfolio-group { margin-top: 42px; }
.portfolio-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.portfolio-group-heading h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
}
.portfolio-group-heading > span {
  color: var(--muted);
  font-size: 0.82rem;
}
.portfolio .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portfolio-card { display: flex; flex-direction: column; min-width: 0; }
.portfolio-card p { flex: 1; }
.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.project-link, .project-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}
.project-link {
  color: var(--purple-dark);
  background: var(--purple-light);
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.project-link:hover {
  transform: translateY(-2px);
  background: #e2ddff;
  box-shadow: 0 5px 14px rgba(109, 93, 252, 0.13);
}
.project-link-app {
  color: #167b60;
  background: var(--mint-light);
}
.project-link-app:hover { background: #d2f7eb; }
.project-status {
  color: var(--muted);
  background: #f4f3f8;
  border: 1px solid var(--line);
  font-weight: 600;
}
.portfolio-internal { padding-top: 14px; }
.portfolio-internal .project-card { box-shadow: none; }
@media (max-width: 860px) {
  .portfolio .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .portfolio-intro { margin-top: -18px; }
  .portfolio-group-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .project-actions { gap: 8px; }
  .project-link, .project-status { font-size: 0.76rem; }
}


.stack-intro { color: var(--muted); max-width: 700px; margin: -28px 0 34px; font-size: .98rem; }
.stack-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stack-category { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 4px 16px rgba(36,31,61,.035); }
.stack-category h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 750; margin: 0 0 16px; }
.stack-category .chips { gap: 7px; }
.stack-category .chip { font-size: .76rem; padding: 6px 11px; }
.engagement-banner { margin: 26px 0 20px; padding: 22px 24px; border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 14px; background: var(--card); }
.engagement-banner strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.engagement-banner > span { display: block; color: var(--purple-dark); font-size: .82rem; font-weight: 700; margin-bottom: 10px; }
.engagement-banner p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 860px) { .stack-category-grid { grid-template-columns: 1fr; } }
