:root {
  --bg: #08090c;
  --bg-alt: #0d0f14;
  --surface: #12141a;
  --surface-2: #171a22;
  --border: #232733;
  --text: #eef0f4;
  --text-dim: #9aa1b1;
  --text-faint: #6b7180;
  --accent: #5eead4;
  --accent-2: #a78bfa;
  --accent-warm: #fbbf6f;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -2;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  width: 1200px;
  height: 1200px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(94,234,212,0.10), rgba(167,139,250,0.06) 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8,9,12,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.logo .dot { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
  flex: 1;
  justify-content: center;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-small { padding: 9px 16px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06070a;
  border: none;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: #2e3340; }

/* HERO */
.hero {
  padding: 140px 24px 100px;
  max-width: var(--max);
  margin: 0 auto;
}
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 700;
  margin: 0 0 22px;
  line-height: 1.02;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 0 36px;
}
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-faint); margin-bottom: 14px;
}
.hero-socials { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.hero-socials a { color: var(--text-dim); border-bottom: 1px solid transparent; }
.hero-socials a:hover { color: var(--accent); border-color: var(--accent); }

/* SECTIONS */
.section { padding: 96px 24px; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-tag {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 22px;
  font-weight: 700;
}
.lead {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 760px;
  margin: 0 0 30px;
}
.lead strong { color: var(--text); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* TIMELINE */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}
.tl-item { position: relative; padding-bottom: 48px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt), 0 0 16px rgba(94,234,212,0.5);
}
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.tl-head h3 { font-size: 20px; margin: 0; }
.tl-date {
  font-size: 13px;
  color: var(--text-faint);
  font-family: 'Space Grotesk', monospace;
  white-space: nowrap;
}
.tl-org { color: var(--accent-2); font-weight: 600; margin: 4px 0 14px; font-size: 14.5px; }
.tl-content ul { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 15px; }
.tl-content li { margin-bottom: 8px; }
.tl-content li strong { color: var(--text); }
.tl-content a, .info-card a {
  color: var(--accent);
  border-bottom: 1px solid rgba(94,234,212,0.3);
  transition: border-color 0.2s ease;
}
.tl-content a:hover, .info-card a:hover { border-color: var(--accent); }

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.skill-card, .info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.skill-card h4, .info-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--accent);
}
.skill-card p, .info-card p { margin: 0; font-size: 14px; color: var(--text-dim); }
.info-card p { margin-bottom: 12px; }
.info-card p:last-child { margin-bottom: 0; }
.edu-dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* PRODUCT WORK */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.product-org { font-size: 13px; font-weight: 600; color: var(--accent-2); }
.product-date {
  font-size: 12px;
  color: var(--text-faint);
  font-family: 'Space Grotesk', monospace;
  white-space: nowrap;
}
.product-card h3 { margin: 0 0 10px; font-size: 19px; }
.product-card > p { margin: 0 0 16px; font-size: 14px; color: var(--text-dim); flex: 1; }
.product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.product-stats span { font-size: 12.5px; color: var(--text-faint); }
.product-stats strong { display: block; font-size: 18px; color: var(--accent); font-family: 'Space Grotesk', sans-serif; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product-link {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(94,234,212,0.3);
  align-self: flex-start;
  transition: border-color 0.2s ease;
}
.product-link:hover { border-color: var(--accent); }

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--surface-2);
}
.project-shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #000;
}
.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s ease;
}
.project-card:hover .project-shot img { transform: scale(1.04); }
.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.project-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.dot-lang { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lang-html { background: #e34c26; }
.lang-ts { background: #3178c6; }
.lang-py { background: #3572A5; }
.project-arrow { color: var(--text-faint); font-size: 14px; transition: color 0.2s ease; }
.project-card:hover .project-arrow { color: var(--accent); }
.project-card h3 { margin: 0 0 10px; font-size: 19px; }
.project-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-dim);
  flex: 1;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.view-all { margin-top: 4px; }

/* OCTAFORCE */
.octa-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.octa-logo { width: 40px; height: 40px; }
.octa-heading h2 { margin: 0; }
.octa-visit { margin-bottom: 40px; }
.octa-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.octa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.octa-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.octa-icon { font-size: 26px; display: block; margin-bottom: 10px; }
.octa-card h4 { margin: 0 0 8px; font-size: 16px; }
.octa-card p { margin: 0; font-size: 13.5px; color: var(--text-dim); }

.octa-proof { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.proof-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text);
}
.proof-link:hover { border-color: var(--accent-2); color: var(--accent-2); }
.proof-link .arrow { color: var(--text-faint); }

.video-wrap h4 { font-size: 16px; margin: 0 0 14px; color: var(--text); }
.video-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-label { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-value { font-size: 15px; font-weight: 600; word-break: break-word; overflow-wrap: anywhere; }

.footer {
  text-align: center;
  padding: 36px 24px;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 110px 20px 70px; }
  .section { padding: 70px 20px; }
}
