:root {
  --bg: #08090b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f2;
  --text-dim: #9a9ea3;
  --text-dimmer: #6c7075;
  --accent: #b6ff3c;
  --accent-dim: #8fd42e;
  --accent-2: #7c5cff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

p { color: var(--text-dim); margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--accent); color: #05060a; }

/* ---------- Background FX ---------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .38;
  will-change: transform;
}

.blob-1 {
  width: 480px; height: 480px;
  background: var(--accent);
  top: -120px; left: -100px;
  animation: float1 22s ease-in-out infinite;
}

.blob-2 {
  width: 420px; height: 420px;
  background: var(--accent-2);
  top: 200px; right: -140px;
  animation: float2 26s ease-in-out infinite;
}

.blob-3 {
  width: 380px; height: 380px;
  background: #ff5ca8;
  bottom: -160px; left: 30%;
  opacity: .22;
  animation: float3 30s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 80px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-70px, 50px); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.08); }
}

.grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  background: rgba(15, 16, 19, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  width: min(880px, calc(100% - 32px));
  transition: padding .3s ease, background .3s ease, top .3s ease;
}

.navbar.scrolled {
  top: 12px;
  background: rgba(10, 11, 13, 0.75);
  box-shadow: 0 10px 34px rgba(0,0,0,.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}
.nav-logo-mark {
  height: 22px;
  width: auto;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 22px;
  margin: 0 auto;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: .92rem;
  color: var(--text-dim);
  padding: 6px 4px;
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: .88rem;
  font-weight: 500;
  background: var(--accent);
  color: #06070a;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(182,255,60,.3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 100px;
}

.hero-inner { max-width: 780px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  margin-bottom: .4em;
}

.text-gradient {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 620px;
  margin: 0 auto 2em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.2em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .96rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #06070a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(182,255,60,.28); }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-strong); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; align-items: center; }
.stat-value { display: block; }
.stat-num, .stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
}
.stat-label {
  font-size: .82rem;
  color: var(--text-dimmer);
  margin-top: 4px;
}

.hero-float-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  max-width: 1300px;
  margin: 0 auto;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: .84rem;
  color: var(--text-dim);
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}

.fc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 10px var(--accent);
}

.fc-1 { top: 22%; left: 4%; animation-delay: 0s; }
.fc-2 { top: 62%; right: 6%; animation-delay: 1.4s; }
.fc-3 { top: 14%; right: 8%; animation-delay: .8s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 900px) {
  .hero-float-cards { display: none; }
}

/* ---------- Marquee ---------- */

.marquee-section { padding: 10px 0 60px; }

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: scroll-left 26s linear infinite;
}

.marquee-track span {
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .88rem;
  color: var(--text-dim);
  white-space: nowrap;
  background: var(--surface);
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 24px;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.section-sub {
  font-size: 1.02rem;
}

/* ---------- Cards ---------- */

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.card-icon {
  font-size: 1.6rem;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(182,255,60,.1);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.card h3 { font-size: 1.12rem; margin-bottom: .5em; }
.card p { font-size: .93rem; margin-bottom: 0; }

/* ---------- Projects ---------- */

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .35s ease, border-color .3s ease;
}
.project-card:hover { transform: translateY(-8px); border-color: var(--border-strong); }

.project-media {
  height: 170px;
  position: relative;
}
.project-media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 60%);
}

.grad-1 { background: linear-gradient(135deg, #b6ff3c, #12a37f); }
.grad-2 { background: linear-gradient(135deg, #7c5cff, #2b2f77); }
.grad-3 { background: linear-gradient(135deg, #ff5ca8, #7c2b5c); }

.project-body { padding: 26px; }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .3em;
}
.project-top h3 { margin: 0; font-size: 1.15rem; }
.project-year { color: var(--text-dimmer); font-size: .82rem; }

.project-body p { font-size: .92rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tags span {
  font-size: .74rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ---------- Timeline ---------- */

.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(182,255,60,.15);
}

.timeline-date {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .04em;
}

.timeline-content h3 { font-size: 1.1rem; margin: .3em 0 .3em; }
.timeline-content p { font-size: .93rem; margin: 0; }

/* ---------- Education ---------- */

.education-head { text-align: center; margin: 64px 0 32px; }
.education-title { font-size: 1.3rem; }

.education-grid { max-width: 860px; margin: 0 auto; grid-template-columns: repeat(2, 1fr); }
.education-grid .card h3 { font-size: 1rem; }
.education-grid .card p { font-size: .88rem; margin-bottom: 0; }

/* ---------- Clients ---------- */

.client-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 40px;
}
.client-tags span {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .9rem;
  color: var(--text-dim);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.client-tags span:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-strong);
}

.highlight-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.highlight-card p {
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  margin: 0;
}

/* ---------- Contact ---------- */

.contact-section { padding-bottom: 140px; }

.contact-card {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  background: var(--accent);
  filter: blur(120px);
  opacity: .18;
  top: -120px; left: -60px;
}

.contact-card h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.contact-card .hero-actions { margin-bottom: 0; }

/* ---------- Footer ---------- */

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
  color: var(--text-dimmer);
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-mark {
  height: 16px;
  width: auto;
  opacity: .7;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .card-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    background: rgba(10, 11, 13, 0.9);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero { padding-top: 130px; }
  .hero-stats { gap: 32px; }
}

@media (max-width: 620px) {
  .card-grid, .project-grid, .education-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; }
}
