:root {
  --ink: #070913;
  --panel-base: #0D1127;
  --panel-card: rgba(18, 24, 52, 0.65);
  --blue: #2563EB;
  --blue-bright: #3B82F6;
  --cyan: #38BDF8;
  --cyan-glow: rgba(56, 189, 248, 0.15);
  --slate: #94A3B8;
  --slate-dim: #64748B;
  --white: #F8FAFC;
  --line: rgba(56, 189, 248, 0.12);
}

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

body {
  background-color: var(--ink);
  color: var(--white);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== NAVIGATION BAR ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 20px; letter-spacing: 1.5px;
}

.nav-logo-svg { width: 30px; height: 30px; flex-shrink: 0; }

.nav-menu { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: var(--slate); }
.nav-menu a { transition: color 0.2s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--cyan); }

.nav-btn {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  padding: 8px 18px; border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--cyan); font-weight: 600;
  transition: all 0.25s ease;
  display: inline-block; text-align: center;
}
.nav-btn:hover { background: var(--blue-bright); color: #fff; border-color: var(--blue-bright); }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--white);
  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); }

/* Mobile dropdown menu */
.mobile-menu {
  display: flex; flex-direction: column;
  position: fixed; top: 66px; left: 0; right: 0; z-index: 99;
  background: rgba(7, 9, 19, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 20px 6vw 28px;
  gap: 18px;
  font-size: 15px; font-weight: 500; color: var(--slate);
  transform: translateY(-12px);
  opacity: 0; visibility: hidden;
  transition: all 0.25s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a:hover { color: var(--cyan); }

@media (max-width: 860px) {
  .nav-menu, .nav-btn-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 140px 6vw 80px;
  overflow: hidden;
}

.ambient-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 75%);
  pointer-events: none; z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 840px; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 2px;
  color: var(--cyan); background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-logo-box { width: 220px; height: 220px; margin: 0 auto 16px; }

h1.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 8.5vw, 96px);
  font-weight: 700; letter-spacing: 3px; line-height: 0.95;
  background: linear-gradient(180deg, #FFFFFF 20%, #CBD5E1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tagline-text {
  font-family: 'Inter', sans-serif; font-size: clamp(14px, 2vw, 19px);
  font-weight: 500; letter-spacing: 3px; color: var(--slate);
  margin-top: 18px; text-transform: uppercase;
}

.hero-summary {
  color: var(--slate); font-size: 17px; max-width: 620px;
  margin: 28px auto 0; line-height: 1.65;
}

/* ===== GENERIC PAGE HEADER (About / Contact) ===== */
.page-hero {
  padding: 150px 6vw 60px; text-align: center;
}
.page-hero .section-label { justify-content: center; display: flex; }
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 6vw, 56px); font-weight: 700;
  margin-top: 14px; line-height: 1.15;
}
.page-hero p {
  color: var(--slate); max-width: 620px; margin: 20px auto 0; font-size: 17px; line-height: 1.65;
}

/* ===== PORTFOLIO SECTION ===== */
section.container-fluid { padding: 100px 6vw; position: relative; z-index: 1; }
.section-wrap { max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 56px; }
.section-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  letter-spacing: 2px; color: var(--cyan); margin-bottom: 12px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 4vw, 42px); font-weight: 700; line-height: 1.2;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.venture-card {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.venture-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.08);
}

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 10px; flex-wrap: wrap; }
.card-code { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--slate-dim); }
.card-badge {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: var(--cyan); background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 4px 10px; border-radius: 50px; white-space: nowrap;
}

.card-icon-title { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-icon {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: rgba(37, 99, 235, 0.15); border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex; align-items: center; justify-content: center; color: var(--cyan);
}
.card-icon svg { width: 20px; height: 20px; }

.venture-name { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; }
.venture-desc { color: var(--slate); font-size: 14.5px; line-height: 1.6; margin-bottom: 30px; }

.venture-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 10px;
}
.venture-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--slate-dim); }
.venture-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--white);
  transition: color 0.2s ease;
}
.venture-link:hover { color: var(--cyan); }

/* ===== ARCHITECTURE / WAVE STRIP ===== */
.wave-signature {
  padding: 80px 6vw; text-align: center; background: rgba(13, 17, 39, 0.5);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.wave-signature svg { width: 100%; max-width: 800px; height: auto; margin-bottom: 30px; }
.wave-signature h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(19px, 3vw, 30px);
  max-width: 650px; margin: 0 auto; line-height: 1.45;
}

/* ===== CONTACT FORM ===== */
.contact-wrap { max-width: 620px; margin: 0 auto; padding: 0 6vw 120px; }
.form-group { margin-bottom: 22px; text-align: left; }
.form-group label {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  letter-spacing: 1px; color: var(--slate); margin-bottom: 8px; text-transform: uppercase;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px; border-radius: 8px;
  background: var(--panel-card); border: 1px solid var(--line);
  color: var(--white); font-family: 'Inter', sans-serif; font-size: 15px;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--cyan);
}
.form-submit {
  width: 100%; padding: 15px; border-radius: 8px; border: none;
  background: var(--blue-bright); color: #fff; font-weight: 600;
  font-family: 'Inter', sans-serif; font-size: 15px; cursor: pointer;
  transition: background 0.2s ease;
}
.form-submit:hover { background: var(--blue); }
.form-note {
  text-align: center; font-size: 14px; padding: 14px; border-radius: 8px; margin-bottom: 24px;
}
.form-note.success { background: rgba(56, 189, 248, 0.1); color: var(--cyan); border: 1px solid rgba(56,189,248,0.3); }
.form-note.error { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* ===== FOOTER ===== */
footer {
  padding: 60px 6vw 40px; border-top: 1px solid var(--line);
  background: var(--ink);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-left { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.footer-links { display: flex; gap: 30px; font-size: 13.5px; color: var(--slate); flex-wrap: wrap; }
.footer-links a:hover { color: var(--cyan); }
.copyright { font-size: 13px; color: var(--slate-dim); font-family: 'IBM Plex Mono', monospace; }

/* ===== RESPONSIVE BREAKPOINTS ===== */
/* Tablets */
@media (max-width: 860px) {
  .hero { padding: 120px 6vw 60px; }
  section.container-fluid { padding: 72px 6vw; }
}

/* Large phones */
@media (max-width: 600px) {
  .hero-logo-box { width: 160px; height: 160px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .venture-card { padding: 26px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* Small phones */
@media (max-width: 400px) {
  nav { padding: 14px 5vw; }
  .nav-brand { font-size: 17px; }
  .hero { padding: 110px 5vw 50px; }
  .hero-logo-box { width: 130px; height: 130px; }
  .eyebrow-pill { font-size: 10px; padding: 5px 12px; }
}

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