/* ── Reset & tokens ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0f14;
  --bg-card:   #13161e;
  --bg-raised: #181c27;
  --border:    #232840;
  --text:      #e8eaf0;
  --muted:     #7a8299;
  --accent:    #4f7eff;
  --accent-hi: #6e94ff;
  --red:       #ff5f57;
  --yellow:    #febc2e;
  --green:     #28c840;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --radius:    12px;
  --nav-h:     68px;
  --section-v: 96px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Utilities ─────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section { padding: var(--section-v) 0; }

.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.accent { color: var(--accent); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .15s, background .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 8px 18px; font-size: 14px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hi); opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

.btn-full { width: 100%; justify-content: center; }

/* ── Header / Nav ──────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s, backdrop-filter .2s;
}

#header.scrolled {
  background: rgba(13,15,20,.85);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 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 80% 60% at 50% 50%, black 30%, transparent 100%);
  opacity: .35;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  background: rgba(40,200,64,.1);
  border: 1px solid rgba(40,200,64,.25);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Code window */
.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.dot-red, .dot-yellow, .dot-green {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red    { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-green  { background: var(--green); }

.code-filename {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.code-body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  overflow-x: auto;
  color: var(--text);
}

.kw  { color: #c792ea; }
.cls { color: #82aaff; }

/* ── Services ──────────────────────────────────────────────────── */
.services { background: var(--bg); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,126,255,.12);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 16px;
}

.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Tech Stack ────────────────────────────────────────────────── */
.stack { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.stack-tag {
  display: inline-block;
  padding: 7px 16px;
  background: rgba(79,126,255,.1);
  border: 1px solid rgba(79,126,255,.25);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: background .15s, border-color .15s;
}

.stack-tag:hover {
  background: rgba(79,126,255,.2);
  border-color: var(--accent);
}

/* ── About ─────────────────────────────────────────────────────── */
.about { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.about-text p { color: var(--muted); max-width: 520px; margin-bottom: 16px; }
.about-text .btn { margin-top: 8px; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--muted); }

/* ── Certifications ────────────────────────────────────────────── */
.certifications { background: var(--bg); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.cert-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s;
}
.cert-card:hover { border-color: var(--accent); }

.cert-logo { flex-shrink: 0; }

.cert-issuer {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.cert-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
}

.cert-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Testimonials ──────────────────────────────────────────────── */
.testimonials { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, transform .2s;
}
.testimonial-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.testimonial-quote { color: var(--accent); line-height: 0; }

.testimonial-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(79,126,255,.15);
  border: 1px solid rgba(79,126,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.author-name { font-size: 14px; font-weight: 600; }
.author-title { font-size: 12px; color: var(--muted); margin-top: 2px; }

.testimonial-linkedin {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* ── Contact ───────────────────────────────────────────────────── */
.contact { background: var(--bg-raised); border-top: 1px solid var(--border); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-info p { color: var(--muted); max-width: 380px; margin-bottom: 24px; }

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
}

.contact-details svg { color: var(--accent); flex-shrink: 0; }
.contact-details a:hover { color: var(--accent); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color .15s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: .6; }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-status {
  font-size: 14px;
  min-height: 20px;
  text-align: center;
  font-weight: 500;
}

.form-status.success { color: var(--green); }
.form-status.error   { color: var(--red); }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy, .footer-legal {
  font-size: 13px;
  color: var(--muted);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-v: 72px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-sub { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }

  .hero-code { display: none; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-stats { flex-direction: row; justify-content: center; gap: 48px; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; gap: 20px; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    align-items: flex-start;
  }
  .hamburger { display: flex; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }

  .about-stats { gap: 24px; }
  .stat-num { font-size: 32px; }
}
