:root {
  --bg: #0b1020;
  --bg-2: #111827;
  --surface: rgba(255,255,255,.055);
  --surface-2: rgba(255,255,255,.085);
  --text: #f8fafc;
  --muted: #aab4c3;
  --line: rgba(226,232,240,.13);
  --accent: #7dd3fc;
  --accent-2: #a5b4fc;
  --accent-3: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 30px 100px rgba(0,0,0,.38);
  --radius: 30px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(125, 211, 252, .16), transparent 34rem),
    radial-gradient(circle at 88% 10%, rgba(165, 180, 252, .14), transparent 32rem),
    radial-gradient(circle at 50% 92%, rgba(148, 163, 184, .08), transparent 36rem),
    linear-gradient(135deg, #070b16 0%, #0b1020 46%, #111827 100%);
  line-height: 1.58;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.background-orb {
  position: fixed;
  width: 430px;
  height: 430px;
  border-radius: 999px;
  filter: blur(86px);
  opacity: .28;
  pointer-events: none;
  z-index: 0;
}
.orb-red { left: -130px; top: 90px; background: #7dd3fc; }
.orb-gold { right: -120px; top: 210px; background: #a5b4fc; }

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  width: min(var(--max), calc(100% - 28px));
  margin: 18px auto 0;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11,16,32,.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 80px rgba(0,0,0,.24);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b1020;
  background: linear-gradient(135deg, #f8fafc, #cbd5e1 55%, var(--accent));
  box-shadow: 0 10px 34px rgba(125,211,252,.18);
  letter-spacing: -.06em;
}
.brand-copy { color: var(--text); letter-spacing: -.03em; }
.nav { display: flex; justify-content: center; gap: 4px; }
.nav a {
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.065); }
.nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, #f8fafc, #dbeafe 60%, var(--accent));
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(125,211,252,.16);
}

.section {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 100px 0;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 46px;
  align-items: center;
  padding-top: 74px;
}
.eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 34px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(52px, 7vw, 100px);
  line-height: .94;
  letter-spacing: -.085em;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 70px);
  line-height: .96;
  letter-spacing: -.075em;
}
h3 { font-size: 26px; line-height: 1.05; letter-spacing: -.05em; margin-bottom: 10px; }
h4 { margin-bottom: 8px; font-size: 18px; letter-spacing: -.035em; }
p { color: var(--muted); }
.lead { max-width: 680px; font-size: 20px; color: #c7d0dd; }
.lead strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 34px 0; }
.btn {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn.primary {
  color: #07111f;
  background: linear-gradient(135deg, #f8fafc, #dbeafe 58%, var(--accent));
  box-shadow: 0 18px 52px rgba(125,211,252,.18);
  border-color: rgba(125,211,252,.42);
}
.btn.secondary { color: var(--text); background: rgba(255,255,255,.055); }
.btn.full { width: 100%; }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
  gap: 12px;
}
.hero-proof article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.034));
}
.hero-proof strong { display: block; font-size: 30px; letter-spacing: -.07em; }
.hero-proof span { color: var(--muted); font-size: 13px; font-weight: 700; }

.hero-panel {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(203,213,225,.18);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.032)),
    radial-gradient(circle at 20% 0%, rgba(125,211,252,.13), transparent 18rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 33px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 30%, rgba(125,211,252,.08) 68%, transparent);
  opacity: .75;
}
.panel-top, .premium-card, .panel-grid { position: relative; z-index: 1; }
.panel-top { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 26px; }
.panel-top img {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(226,232,240,.28);
  filter: saturate(.84) contrast(1.06);
}
.panel-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.panel-top h2 { font-size: 38px; margin: 0; }
.premium-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0d1324, #111827 55%, #172033);
  border: 1px solid rgba(226,232,240,.13);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.premium-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 170px;
  right: -105px;
  top: -58px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  filter: blur(34px);
  opacity: .22;
}
.card-chip {
  position: relative;
  width: max-content;
  padding: 9px 12px;
  border-radius: 999px;
  color: #0b1020;
  background: #e5e7eb;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .13em;
}
.premium-card p {
  position: relative;
  max-width: 300px;
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -.055em;
  font-weight: 900;
}
.card-lines { display: grid; gap: 8px; }
.card-lines i { height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), transparent); opacity: .54; }
.card-lines i:nth-child(2) { width: 70%; }
.card-lines i:nth-child(3) { width: 45%; }
.panel-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
}
.panel-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.panel-grid strong { font-size: 14px; }

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid rgba(226,232,240,.12);
  background: linear-gradient(90deg, rgba(125,211,252,.08), rgba(165,180,252,.08), rgba(125,211,252,.08));
}
.ticker-track {
  display: flex;
  gap: 20px;
  width: max-content;
  align-items: center;
  animation: ticker 25s linear infinite;
  color: var(--text);
  font-size: 18px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.ticker b { color: var(--accent); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section-head { max-width: 800px; margin-bottom: 38px; }
.section-head p:not(.eyebrow) { font-size: 18px; color: var(--muted); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255,255,255,.05);
  box-shadow: 0 24px 80px rgba(0,0,0,.21);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.project-card:hover { transform: translateY(-7px); border-color: rgba(125,211,252,.34); background: rgba(255,255,255,.068); }
.project-card.large { grid-row: span 2; min-height: 650px; }
.project-visual {
  min-height: 250px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.project-card.large .project-visual { min-height: 380px; }
.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,.22), transparent 17rem);
}
.visual-cd { background: linear-gradient(135deg, #0f172a, #172033 48%, #1e3a5f); }
.visual-erp { background: linear-gradient(135deg, #111827, #1e293b 55%, #0e7490); }
.visual-cpi { background: linear-gradient(135deg, #0f172a, #3730a3); }
.visual-ak { background: linear-gradient(135deg, #111827, #334155); }
.visual-ul { background: linear-gradient(135deg, #0f172a, #0369a1); }
.project-visual strong {
  position: relative;
  z-index: 1;
  color: rgba(248,250,252,.94);
  font-size: 84px;
  line-height: 1;
  letter-spacing: -.12em;
  text-shadow: 0 12px 50px rgba(0,0,0,.35);
}
.mock-window {
  position: relative;
  z-index: 1;
  width: min(360px, 78%);
  height: 210px;
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}
.mock-window i { position: absolute; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.mock-window i:nth-child(1) { left: 18px; background: #e5e7eb; }
.mock-window i:nth-child(2) { left: 34px; }
.mock-window i:nth-child(3) { left: 50px; background: var(--accent-2); }
.mock-content {
  position: absolute;
  z-index: 2;
  width: min(300px, 65%);
  display: grid;
  gap: 12px;
}
.mock-content b { display: block; height: 14px; border-radius: 99px; background: rgba(248,250,252,.56); }
.mock-content b:nth-child(1) { width: 90%; height: 42px; }
.mock-content b:nth-child(2) { width: 72%; }
.mock-content b:nth-child(3) { width: 54%; }
.project-copy { padding: 26px; }
.project-copy span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.project-copy p { margin-bottom: 0; }

.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.expertise-card, .resume-column, .stack-panel, .contact-section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.062), rgba(255,255,255,.032));
  box-shadow: 0 20px 70px rgba(0,0,0,.18);
  border-radius: 30px;
}
.expertise-card { min-height: 280px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.expertise-card > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #0b1020;
  background: linear-gradient(135deg, #e5e7eb, var(--accent));
  font-weight: 1000;
}
.expertise-card p { margin-bottom: 0; }

.resume-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.resume-column { padding: 30px; }
.timeline-item {
  position: relative;
  padding: 24px 0 24px 26px;
  border-left: 1px solid rgba(125,211,252,.28);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 31px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(125,211,252,.08);
}
.timeline-item span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.timeline-item p { margin-bottom: 0; }
.stack-panel {
  padding: 34px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 30px;
  align-items: center;
  background:
    radial-gradient(circle at 90% 0%, rgba(125,211,252,.10), transparent 21rem),
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.032));
}
.stack-panel h2 { font-size: clamp(34px, 4vw, 58px); margin-bottom: 0; }
.stack-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stack-list span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.046);
  color: var(--text);
  font-weight: 900;
  text-align: center;
}
.contact-section {
  margin-bottom: 70px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(125,211,252,.08), transparent 24rem),
    radial-gradient(circle at 100% 0%, rgba(165,180,252,.08), transparent 22rem),
    linear-gradient(180deg, rgba(255,255,255,.066), rgba(255,255,255,.032));
}
.contact-copy p:not(.eyebrow) { max-width: 700px; font-size: 18px; }
.contact-card {
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(226,232,240,.13);
  background: rgba(0,0,0,.18);
  display: grid;
  gap: 18px;
}
.contact-card span { display: block; margin-bottom: 5px; color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 900; }
.contact-card strong, .contact-card a:not(.btn) { font-weight: 900; word-break: break-word; }
.footer {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}
.footer p { margin: 0; }
.footer a { color: var(--accent); font-weight: 900; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .topbar { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .nav-cta { justify-self: end; }
  .hero { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-panel, .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { width: min(100% - 24px, var(--max)); padding: 76px 0; }
  .topbar { width: min(100% - 20px, var(--max)); }
  .brand-copy { display: none; }
  h1 { font-size: 54px; }
  h2 { font-size: 40px; }
  .hero-proof, .portfolio-grid, .expertise-grid, .resume-grid, .panel-grid { grid-template-columns: 1fr; }
  .project-card.large { grid-row: auto; min-height: auto; }
  .project-card.large .project-visual, .project-visual { min-height: 230px; }
  .stack-list { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}
