/* =============================================
   NEMO PERSONAL SITE — style.css
   Dark + Electric Blue · Syne + Figtree
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080810;
  --surface:   #0e0e1a;
  --surface2:  #13131f;
  --border:    #1c1c2e;
  --border2:   #252538;
  --blue:      #4f8bff;
  --blue-dim:  rgba(79,139,255,0.15);
  --blue-glow: rgba(79,139,255,0.35);
  --text:      #e2e4f0;
  --muted:     #5a5c72;
  --muted2:    #8688a0;
  --font-display: 'Syne', sans-serif;
  --font-body:    'Figtree', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --nav-h: 64px;
  --radius: 12px;
  --radius-lg: 18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.blue { color: var(--blue); }
.mono { font-family: var(--font-mono); }

/* ---- CONTAINER ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* =============================================
   NAV
   ============================================= */
.nav-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem;
  height: 100%;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  font-size: 0.9rem; font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  color: var(--muted2);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--text); background: var(--border); }
.nav-link.active { color: var(--blue); background: var(--blue-dim); }

/* BURGER */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 1rem 1.5rem;
  font-size: 1rem; font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--border); }

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* =============================================
   HERO — HOME
   ============================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
  opacity: 0.5;
}
.hero .container { position: relative; z-index: 1; }

.hero-layout {
  display: flex; align-items: center; gap: 4rem;
  margin-bottom: 4rem;
}

.hero-content { flex: 1; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--blue); letter-spacing: 0.05em;
  border: 1px solid rgba(79,139,255,0.3);
  background: rgba(79,139,255,0.07);
  padding: 0.3rem 0.8rem; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--blue); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-bio {
  font-size: 1.1rem; color: var(--muted2);
  line-height: 1.75; max-width: 520px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* PHOTO */
.hero-photo-wrap {
  position: relative; flex-shrink: 0;
}
.hero-photo {
  width: 240px; height: 240px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--border2);
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-photo::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue), transparent, var(--blue));
  z-index: -1;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  color: var(--blue); display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.hero-badge {
  position: absolute; bottom: 0; right: -10px;
  background: var(--surface2);
  border: 1px solid rgba(79,139,255,0.3);
  padding: 0.4rem 0.9rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

/* STATS */
.stat-row {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.stat { flex: 1; min-width: 120px; padding: 1.5rem 2rem; text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--blue); line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-plus { font-size: 1.5rem; }
.stat-label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.stat-divider { width: 1px; background: var(--border); }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 0 3.5rem;
  overflow: hidden;
}
.page-hero .hero-bg-grid { opacity: 0.35; }
.page-hero .container { position: relative; z-index: 1; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-sub { font-size: 1.05rem; color: var(--muted2); max-width: 560px; }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 5rem 0; }
.section-dark { background: var(--surface); }

.section-label {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--blue); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1rem; color: var(--muted2);
  max-width: 580px; margin-bottom: 3rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  padding: 0.65rem 1.4rem; border-radius: 9px;
  cursor: pointer; transition: all 0.2s; border: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 0 0 var(--blue-glow);
}
.btn-primary:hover {
  background: #6a9fff;
  box-shadow: 0 0 20px var(--blue-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   CARDS
   ============================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card-hover:hover { border-color: var(--border2); transform: translateY(-3px); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.9rem; color: var(--muted2); line-height: 1.6; margin-bottom: 1.25rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.card-link { font-size: 0.85rem; font-weight: 600; color: var(--blue); transition: gap 0.2s; }
.card-link:hover { text-decoration: underline; }
.card-top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.card-top-row h3 { margin: 0; }
.price-tag {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--blue);
  background: var(--blue-dim); padding: 0.2rem 0.6rem;
  border-radius: 6px; white-space: nowrap;
}

/* =============================================
   VENTURE LIST (home page)
   ============================================= */
.venture-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 2.5rem; }
.venture-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 0.5rem;
}
.venture-row:hover { border-color: var(--border2); background: var(--surface); }
.venture-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.venture-info { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.venture-name { font-weight: 600; font-size: 0.95rem; }
.venture-desc { font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); }
.venture-arrow { color: var(--muted); font-size: 1.1rem; transition: transform 0.2s, color 0.2s; }
.venture-row:hover .venture-arrow { color: var(--blue); transform: translateX(3px); }

.center-btn { text-align: center; margin-top: 1rem; }

/* =============================================
   VENTURE CARDS (ventures page)
   ============================================= */
.venture-card {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  overflow: hidden;
}
.vc-accent {
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: 4px 0 0 4px;
}
.vc-layout {
  display: flex; gap: 3.5rem; align-items: flex-start;
}
.vc-layout-reverse { flex-direction: row-reverse; }
.vc-content { flex: 1; }
.vc-graphic {
  flex-shrink: 0; width: 220px;
  border: 1px solid; border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.5rem;
  text-align: center;
}
.vc-icon { font-size: 3rem; }
.vc-stat-group { display: flex; gap: 1.5rem; }
.vc-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.vc-stat span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.vc-stat small { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.vc-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
  border: 1px solid; padding: 0.25rem 0.7rem; border-radius: 100px;
  margin-bottom: 1rem; letter-spacing: 0.04em;
}
.vc-title {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.vc-desc { color: var(--muted2); line-height: 1.75; margin-bottom: 1.5rem; }
.vc-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 2rem;
}
.vc-list li { font-size: 0.9rem; color: var(--muted2); }
.vc-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* =============================================
   SERVICE TABLE
   ============================================= */
.service-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
}
.st-header {
  display: grid; grid-template-columns: 1fr 120px 120px;
  background: var(--surface);
  padding: 0.85rem 1.5rem;
  font-size: 0.75rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
  gap: 1rem;
}
.st-row {
  display: grid; grid-template-columns: 1fr 120px 120px;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  align-items: center; gap: 1rem;
  transition: background 0.15s;
}
.st-row:hover { background: var(--surface); }
.st-service strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.st-service small { font-size: 0.8rem; color: var(--muted); }
.st-row .mono { font-size: 0.82rem; color: var(--muted2); }
.st-price { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; color: var(--blue); }

/* =============================================
   PRICING GRID
   ============================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: start;
}
.pricing-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s;
}
.pricing-featured {
  border-color: rgba(79,139,255,0.4);
  background: linear-gradient(135deg, rgba(79,139,255,0.06), var(--surface2));
}
.pricing-badge {
  display: inline-block;
  background: var(--blue); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.75rem; border-radius: 100px;
  margin-bottom: 1rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.pricing-top h3 {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 700; margin-bottom: 0.5rem;
}
.pricing-price {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
  color: var(--blue); margin-bottom: 0.75rem; line-height: 1;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.pricing-top p { font-size: 0.85rem; color: var(--muted2); margin-bottom: 1.5rem; }
.pricing-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.pricing-list li {
  font-size: 0.85rem; color: var(--muted2);
  padding-left: 1.2rem; position: relative;
}
.pricing-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--blue); font-weight: 700;
}

/* =============================================
   CTA BOX
   ============================================= */
.cta-box {
  position: relative;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  overflow: hidden;
  background: var(--surface2);
}
.cta-glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(79,139,255,0.12), transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 0.75rem;
}
.cta-box p {
  position: relative; z-index: 1;
  color: var(--muted2); margin-bottom: 2rem; max-width: 450px; margin-left: auto; margin-right: auto;
}
.cta-box .hero-cta { justify-content: center; position: relative; z-index: 1; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.contact-form-wrap h2 {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 800; margin-bottom: 0.5rem;
}
.form-sub { color: var(--muted2); margin-bottom: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--muted2); letter-spacing: 0.03em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 9px;
  padding: 0.7rem 1rem;
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,139,255,0.1);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none; text-align: center; padding: 1rem;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  border-radius: 9px; color: #4ade80; font-size: 0.9rem; font-weight: 500;
}

/* SIDEBAR */
.contact-info-block {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1rem;
}
.contact-info-block h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  margin-bottom: 1.25rem;
}
.contact-method { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.contact-method:last-child { margin-bottom: 0; }
.cm-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-method strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-method p { font-size: 0.82rem; color: var(--muted2); margin-bottom: 0.25rem; }
.cm-link { font-size: 0.82rem; color: var(--blue); font-weight: 500; }
.cm-link:hover { text-decoration: underline; }

.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.social-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); font-size: 0.82rem; font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.social-item:hover { border-color: var(--c); color: var(--c); }
.si-icon { font-size: 1rem; }

.response-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted2);
}
.response-row:last-child { border-bottom: none; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--surface);
}
.footer-inner {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1rem; color: var(--blue);
}
.footer-links {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin: 0 auto;
}
.footer-links a {
  font-size: 0.82rem; color: var(--muted); transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); }

/* =============================================
   ANIMATIONS — page load
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content, .hero-photo-wrap { animation: fadeUp 0.7s ease both; }
.hero-photo-wrap { animation-delay: 0.15s; }
.stat-row { animation: fadeUp 0.7s 0.3s ease both; }
.page-title, .page-sub, .hero-tag { animation: fadeUp 0.6s ease both; }
.page-sub { animation-delay: 0.1s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .vc-layout { flex-direction: column; gap: 2rem; }
  .vc-layout-reverse { flex-direction: column; }
  .vc-graphic { width: 100%; flex-direction: row; justify-content: center; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero-layout { flex-direction: column; gap: 2rem; }
  .hero-photo-wrap { order: -1; }
  .hero-photo { width: 180px; height: 180px; }
  .stat-row { flex-direction: column; }
  .stat-divider { width: 100%; height: 1px; }
  .stat { padding: 1rem 1.5rem; }
  .venture-card { padding: 2rem 1.25rem; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .st-header, .st-row { grid-template-columns: 1fr; }
  .st-header span:not(:first-child) { display: none; }
  .st-row .mono, .st-row .st-price { display: inline; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
