/* ---------- Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0d10;
  color: #e6ebef;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg: #0a0d10;
  --bg-elevated: #11151a;
  --border: #1f262d;
  --accent: #3ecf6a;
  --accent-soft: rgba(62, 207, 106, 0.12);
  --text: #e6ebef;
  --text-muted: #8a97a3;
  --radius: 14px;
  --max-width: 1120px;
}

h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.01em; }
p { color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.025) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 16, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.logo .dot { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.main-nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent-soft);
  color: var(--accent) !important;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(62,207,106,0.3);
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero-bg-grid {
  position: absolute; inset: -20% -10%; z-index: 0;
  background-image:
    linear-gradient(rgba(62,207,106,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,207,106,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, black 40%, transparent 80%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.eyebrow {
  color: var(--accent); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
.hero h1 .highlight { color: var(--accent); }
.hero-sub { font-size: 1.05rem; max-width: 620px; margin-top: 20px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #06210f; }
.btn-primary:hover { background: #4fe27c; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border);
  max-width: 720px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Section shared ---------- */
section { padding: 90px 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 40px;
}

/* ---------- Services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(62,207,106,0.35); transform: translateY(-4px); }
.card-icon { font-size: 1.8rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; color: var(--text); }
.card p { font-size: 0.92rem; margin: 0; }

/* ---------- Work ---------- */
.work { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s ease;
}
.work-card:hover { border-color: rgba(62,207,106,0.35); }
.work-card.featured { grid-column: span 2; background: linear-gradient(135deg, rgba(62,207,106,0.08), transparent); }
.work-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.work-logo {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #1a2128; font-size: 1.2rem; font-weight: 700; color: var(--accent);
}
.work-head h3 { font-size: 1.05rem; margin: 0; color: var(--text); }
.work-role { margin: 2px 0 0; font-size: 0.82rem; color: var(--text-muted); }
.work-card p { font-size: 0.92rem; margin: 0; }
.work-card strong { color: var(--text); }

/* ---------- Products & ventures ---------- */
.products .proof-intro { margin-top: -12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.product-card:hover { border-color: rgba(62,207,106,0.35); transform: translateY(-3px); }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.product-head h3 { font-size: 1.05rem; margin: 0; color: var(--text); }
.product-card .work-role { margin-bottom: 10px; }
.product-card p:last-child { font-size: 0.92rem; margin: 0; }
.product-status {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.product-status.building { background: rgba(240,180,20,0.12); color: #f0b414; border: 1px solid rgba(240,180,20,0.3); }
.product-status.live { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(62,207,106,0.3); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; }
.about-text { font-size: 1rem; max-width: 540px; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.skill-cat h4 {
  margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); font-family: 'Sora', sans-serif; font-weight: 700;
}
.skill-cat p { font-size: 0.88rem; margin: 0; line-height: 1.55; }
.about-cred h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-top: 28px; }
.about-cred h3:first-child { margin-top: 0; }
.about-cred p { font-size: 0.92rem; color: var(--text); margin: 8px 0 0; }
.muted { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Experience timeline ---------- */
.timeline { position: relative; max-width: 820px; }
.timeline::before {
  content: ''; position: absolute; left: 120px; top: 6px; bottom: 6px; width: 1px;
  background: var(--border);
}
.timeline-item {
  display: grid; grid-template-columns: 100px 1fr; gap: 32px;
  position: relative; padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date { font-size: 0.8rem; color: var(--text-muted); padding-top: 3px; text-align: right; }
.timeline-body { position: relative; padding-left: 32px; }
.timeline-body::before {
  content: ''; position: absolute; left: -5px; top: 6px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.timeline-body h3 { font-size: 1rem; color: var(--text); display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.timeline-body .role { font-size: 0.82rem; font-weight: 400; color: var(--text-muted); }
.timeline-body p { font-size: 0.92rem; margin: 8px 0 0; }
.timeline-body ul { margin: 8px 0 0; padding: 0; list-style: none; }
.timeline-body li {
  position: relative; font-size: 0.92rem; color: var(--text-muted);
  padding-left: 16px; margin-top: 6px; line-height: 1.55;
}
.timeline-body li:first-child { margin-top: 0; }
.timeline-body li::before {
  content: ''; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
}
.timeline-body li strong { color: var(--text); }

/* ---------- Proof of work ---------- */
.proof-spacer { margin-top: 64px; }
.proof-intro { font-size: 0.98rem; max-width: 620px; margin: -12px 0 32px; }

.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cert-card {
  margin: 0; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  transition: border-color .2s ease, transform .2s ease;
}
.cert-card:hover { border-color: rgba(62,207,106,0.35); transform: translateY(-3px); }
.cert-card img { width: 100%; aspect-ratio: 11/8.5; object-fit: cover; object-position: top; background: #150806; }
.cert-card figcaption { padding: 16px 18px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.cert-card figcaption span { display: block; font-size: 0.78rem; font-weight: 400; color: var(--text-muted); margin-top: 4px; }

.proof-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.proof-card {
  margin: 0; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  transition: border-color .2s ease, transform .2s ease;
}
.proof-card:hover { border-color: rgba(62,207,106,0.35); transform: translateY(-3px); }
.proof-card img { width: 100%; height: 260px; object-fit: cover; object-position: top; background: #12161b; display: block; }
.proof-card.wide { grid-column: span 2; }
.proof-card.wide img { height: 320px; object-fit: contain; background: #0d1013; }
.proof-card figcaption { padding: 14px 18px; font-size: 0.86rem; color: var(--text-muted); }

.img-missing { display: none; }
.img-missing-label {
  aspect-ratio: 11/8.5; width: 100%; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; font-size: 0.82rem; color: var(--text-muted);
  background: repeating-linear-gradient(45deg, #12161b, #12161b 10px, #151a20 10px, #151a20 20px);
  border-bottom: 1px dashed var(--border);
}
.proof-card .img-missing-label { aspect-ratio: auto; height: 260px; }
.proof-card.wide .img-missing-label { height: 320px; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,7,9,0.92); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  color: var(--text); font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------- Contact ---------- */
.contact { text-align: center; background: var(--bg-elevated); border-top: 1px solid var(--border); }
.contact-inner { max-width: 640px; }
.contact-sub { font-size: 1.02rem; margin-bottom: 40px; }
.contact-links { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-bottom: 40px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.98rem; color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
  min-width: 280px; justify-content: center;
}
.contact-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-icon { width: 20px; height: 20px; color: var(--accent); display: inline-flex; }
.contact-icon svg { width: 100%; height: 100%; }
.contact-icon.whatsapp { color: #25D366; }

.social-row { display: flex; justify-content: center; gap: 16px; margin-bottom: 36px; }
.social-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-icon svg { width: 19px; height: 19px; }
.social-icon:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.footer-note { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card.featured { grid-column: span 1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .skills-grid { grid-template-columns: 1fr; gap: 20px; }
  .timeline::before { left: 6px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .timeline-date { text-align: left; padding-left: 32px; }
  .timeline-body { padding-left: 32px; }
  .cert-grid { grid-template-columns: 1fr; }
  .proof-gallery { grid-template-columns: 1fr; }
  .proof-card.wide { grid-column: span 1; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: #0a0d10; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-120%); opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .main-nav .nav-cta { margin-top: 12px; width: 100%; text-align: center; border-bottom: 1px solid rgba(62,207,106,0.3); }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
}
