:root {
  --bg: #070d14;
  --surface: #0d1821;
  --surface2: #111d2b;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --blue: #1A8FFF;
  --blue-dim: #0f5fa0;
  --teal: #0fd4a0;
  --amber: #f5a623;
  --text: #e8edf2;
  --muted: #6b8099;
  --soft: #a0b4c8;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .dot-green { animation: none; }
}

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 5vw; height: 60px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: rgba(7,13,20,0.85); backdrop-filter: blur(12px); }
.nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--text); letter-spacing: -0.02em; }
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color .2s; letter-spacing: .02em; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--blue); color: #fff; padding: 7px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s; letter-spacing: .02em; }
.nav-cta:hover { background: #1178e0; }
.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; transition: transform .25s, opacity .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
#hero { min-height: 100vh; padding: 140px 5vw 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(26,143,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(26,143,255,0.04) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.hero-glow { position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(26,143,255,0.12) 0%, transparent 70%); pointer-events: none; }
.hero-left { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.hero-eyebrow::before { content:''; width: 24px; height: 1px; background: var(--teal); }
h1 { font-family: var(--font-display); font-size: clamp(42px, 5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--text); }
h1 .accent { color: var(--blue); }
.hero-sub { margin-top: 20px; font-size: 17px; color: var(--soft); line-height: 1.7; max-width: 480px; font-weight: 300; }
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { background: var(--blue); color: #fff; padding: 13px 28px; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .15s, background .2s; letter-spacing: .02em; }
.btn-primary:hover { transform: translateY(-1px); background: #1178e0; }
.btn-secondary { border: 1px solid var(--border2); color: var(--soft); padding: 13px 28px; border-radius: 8px; font-weight: 500; font-size: 14px; text-decoration: none; transition: border-color .2s, color .2s; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.hero-stats { margin-top: 52px; display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.stat-num span { color: var(--blue); }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: .03em; }
.hero-right { position: relative; z-index: 1; }
.hero-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 16px; padding: 28px; }
.hc-title { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.stack-row { display: flex; flex-direction: column; gap: 10px; }
.stack-item { display: flex; align-items: center; justify-content: space-between; }
.stack-name { font-size: 13px; font-weight: 500; color: var(--soft); }
.stack-bar-bg { width: 160px; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.stack-bar { height: 100%; border-radius: 2px; }
.bar-go { background: var(--teal); width: 95%; }
.bar-ts { background: var(--blue); width: 92%; }
.bar-flutter { background: #7ABEDF; width: 90%; }
.bar-pg { background: #AFA9EC; width: 88%; }
.bar-next { background: var(--soft); width: 93%; }
.bar-docker { background: var(--amber); width: 80%; }
.hc-divider { height: 1px; background: var(--border); margin: 20px 0; }
.hc-availability { display: flex; align-items: center; gap: 10px; }
.dot-green { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }
.avail-text { font-size: 13px; color: var(--soft); }
.avail-text strong { color: var(--teal); font-weight: 600; }

/* SECTION WRAPPER */
section { padding: 100px 5vw; }
.section-eyebrow { font-size: 11px; font-weight: 600; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-eyebrow::before { content:''; width: 20px; height: 1px; background: var(--teal); }
h2 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.section-sub { margin-top: 12px; font-size: 16px; color: var(--muted); max-width: 520px; line-height: 1.7; font-weight: 300; }

/* PROJECTS */
#projects { background: var(--surface); }
.projects-header { margin-bottom: 48px; }
.filter-bar { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.filter-btn { padding: 7px 16px; border-radius: 20px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 500; color: var(--muted); background: transparent; cursor: pointer; transition: all .2s; letter-spacing: .02em; }
.filter-btn.active, .filter-btn:hover { border-color: var(--blue); color: var(--blue); background: rgba(26,143,255,0.07); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.proj-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .25s, transform .25s; }
.proj-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.proj-card.featured { border-color: rgba(26,143,255,0.25); background: linear-gradient(135deg, rgba(26,143,255,0.04) 0%, var(--bg) 60%); }
.proj-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.proj-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.proj-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 4px; letter-spacing: .03em; }
.badge-live { background: rgba(15,212,160,0.12); color: var(--teal); }
.badge-uae { background: rgba(26,143,255,0.1); color: var(--blue); }
.badge-prod { background: rgba(245,166,35,0.1); color: var(--amber); }
.badge-mobile { background: rgba(122,190,223,0.12); color: #7ABEDF; }
.proj-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.2; }
.proj-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; font-weight: 300; }
.proj-stack { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 4px; background: var(--surface2); color: var(--soft); font-weight: 500; border: 1px solid var(--border); }
.tag.go { background: rgba(15,212,160,0.08); color: var(--teal); border-color: rgba(15,212,160,0.15); }
.tag.ts { background: rgba(26,143,255,0.08); color: var(--blue); border-color: rgba(26,143,255,0.15); }
.tag.flutter { background: rgba(122,190,223,0.08); color: #7ABEDF; border-color: rgba(122,190,223,0.15); }
.tag.ai { background: rgba(175,169,236,0.08); color: #AFA9EC; border-color: rgba(175,169,236,0.15); }
.proj-links { display: flex; gap: 14px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.proj-link { font-size: 12.5px; font-weight: 600; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; letter-spacing: .01em; }
.proj-link:hover { color: #5cb0ff; }
.proj-link::after { content: '\2192'; transition: transform .2s; }
.proj-link:hover::after { transform: translateX(2px); }
.proj-link-pending { font-size: 12px; color: var(--muted); font-style: italic; }

/* SKILLS */
#skills { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 48px; }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.skill-card-icon { font-size: 22px; margin-bottom: 12px; }
.skill-card-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-tag { font-size: 11px; padding: 3px 8px; border-radius: 4px; background: var(--surface2); color: var(--soft); border: 1px solid var(--border); }

/* ABOUT */
#about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 48px; }
.about-text p { font-size: 15px; color: var(--soft); line-height: 1.8; margin-bottom: 16px; font-weight: 300; }
.about-text p strong { color: var(--text); font-weight: 500; }
.about-highlights { display: flex; flex-direction: column; gap: 14px; }
.highlight-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.hc-num { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; }
.hc-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* CONTACT */
#contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; text-decoration: none; transition: border-color .2s; }
.contact-item:hover { border-color: var(--blue); }
.ci-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(26,143,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 15px; flex-shrink: 0; }
.ci-label { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.ci-value { font-size: 14px; color: var(--text); font-weight: 500; margin-top: 1px; }
.contact-cta { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px; }
.cta-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.cta-sub { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; font-weight: 300; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .15s, background .2s; letter-spacing: .02em; }
.cta-btn.primary { background: var(--blue); color: #fff; }
.cta-btn.primary:hover { background: #1178e0; transform: translateY(-1px); }
.cta-btn.outline { border: 1px solid var(--border2); color: var(--soft); }
.cta-btn.outline:hover { border-color: var(--blue); color: var(--blue); }

/* FOOTER */
footer { padding: 28px 5vw; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-logo { font-family: var(--font-display); font-weight: 800; color: var(--muted); font-size: 14px; }
.footer-logo span { color: var(--blue); }
.footer-note { font-size: 12px; color: var(--muted); }

/* ANIMATE ON SCROLL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 768px) {
  #hero { grid-template-columns: 1fr; gap: 32px; padding-top: 100px; }
  .hero-card { padding: 22px; }
  .stack-bar-bg { width: 120px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(7,13,20,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 5vw; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-cta { display: none; }
}
