@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #080e1c;
  --bg2: #0c1526;
  --bg3: #101c30;
  --bg4: #152238;
  --red: #e63329;
  --red-dark: #b5251c;
  --red-glow: rgba(230, 51, 41, 0.12);
  --text: #dde4f0;
  --muted: #6b7f9e;
  --border: rgba(230, 51, 41, 0.14);
  --border-dim: rgba(255, 255, 255, 0.07);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8, 14, 28, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.site-logo { font-family: 'Space Mono', monospace; font-size: 1.05rem; color: var(--red); letter-spacing: 0.04em; }
.site-logo span { color: var(--text); opacity: 0.6; }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav a { color: var(--muted); font-size: 0.87rem; letter-spacing: 0.03em; transition: color 0.2s; }
.main-nav a:hover { color: var(--red); }
.nav-cta { padding: 0.5rem 1.3rem; background: var(--red); color: #fff !important; border-radius: 5px; font-weight: 600 !important; font-size: 0.84rem !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--red-dark) !important; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ── HERO ── */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; top: -200px; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(230,51,41,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-section::after {
  content: ''; position: absolute; bottom: -150px; left: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(21,60,120,0.25) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.75rem; color: var(--red); letter-spacing: 0.08em;
  margin-bottom: 1.8rem; font-family: 'Space Mono', monospace;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.2; } }

.hero-title { font-family: 'Space Mono', monospace; font-size: clamp(1.8rem, 3.5vw, 3.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.4rem; }
.hero-title .accent { color: var(--red); }
.hero-sub { font-size: 1rem; color: var(--muted); max-width: 480px; margin-bottom: 2.4rem; font-weight: 300; line-height: 1.9; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary { display: inline-block; padding: 0.85rem 1.8rem; background: var(--red); color: #fff; font-weight: 600; font-size: 0.9rem; border-radius: 6px; transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { display: inline-block; padding: 0.85rem 1.8rem; border: 1px solid var(--border-dim); color: var(--text); font-size: 0.9rem; border-radius: 6px; transition: border-color 0.2s, color 0.2s; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.hero-visual { display: flex; justify-content: center; }
.hero-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; width: 100%; max-width: 340px; }
.hcard-title { font-family: 'Space Mono', monospace; font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; letter-spacing: 0.06em; }
.hcard-dots { display: flex; gap: 6px; margin-bottom: 1.2rem; }
.hcard-dot { width: 10px; height: 10px; border-radius: 50%; }
.hcard-row { padding: 0.7rem 0; border-bottom: 1px solid var(--border-dim); display: flex; justify-content: space-between; align-items: center; }
.hcard-row:last-child { border-bottom: none; }
.hcard-row-label { font-size: 0.8rem; color: var(--muted); }
.hcard-row-val { font-family: 'Space Mono', monospace; font-size: 0.76rem; color: var(--red); }

/* ── STATS ── */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-dim); border-top: 1px solid var(--border-dim); border-bottom: 1px solid var(--border-dim); }
.stat-item { padding: 1.8rem 2rem; background: var(--bg2); text-align: center; }
.stat-num { font-family: 'Space Mono', monospace; font-size: 1.8rem; color: var(--red); font-weight: 700; }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }

/* ── SECTIONS ── */
.content-section { padding: 5rem 2rem; }
.content-section.alt-bg { background: var(--bg2); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { font-family: 'Space Mono', monospace; font-size: 0.72rem; color: var(--red); letter-spacing: 0.14em; margin-bottom: 0.8rem; }
.section-title { font-family: 'Space Mono', monospace; font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.01em; }
.section-sub { color: var(--muted); max-width: 480px; margin-bottom: 3rem; font-size: 0.95rem; line-height: 1.85; }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--border-dim); }
.service-card { background: var(--bg2); padding: 2rem; transition: background 0.2s; }
.service-card:hover { background: var(--bg3); }
.svc-icon { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; font-size: 18px; background: var(--red-glow); }
.svc-title { font-weight: 600; font-size: 0.97rem; margin-bottom: 0.5rem; }
.svc-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.75; }
.svc-badge { display: inline-block; margin-top: 0.8rem; padding: 3px 10px; background: rgba(230,51,41,0.08); border: 1px solid var(--border); border-radius: 4px; font-size: 0.7rem; color: var(--red); font-family: 'Space Mono', monospace; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { color: var(--muted); line-height: 1.9; margin-bottom: 1.2rem; font-size: 0.95rem; }
.skill-card { background: var(--bg3); border: 1px solid var(--border-dim); border-radius: 12px; padding: 2rem; }
.skill-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border-dim); }
.skill-row:last-child { border-bottom: none; }
.skill-name { font-size: 0.87rem; color: var(--muted); }
.skill-val { font-family: 'Space Mono', monospace; font-size: 0.76rem; color: var(--red); }

/* ── CONTACT ── */
.contact-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 3rem; max-width: 660px; margin: 0 auto; text-align: center; }
.contact-box-title { font-family: 'Space Mono', monospace; font-size: 1.3rem; margin-bottom: 0.8rem; }
.contact-box-sub { color: var(--muted); margin-bottom: 2rem; font-size: 0.93rem; }
.contact-items { display: flex; flex-direction: column; gap: 0.8rem; text-align: left; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.2rem; background: var(--bg3); border-radius: 8px; border: 1px solid var(--border-dim); }
.contact-item-icon { font-size: 20px; }
.contact-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 2px; font-family: 'Space Mono', monospace; }
.contact-val { font-size: 0.92rem; font-weight: 500; }

/* ── FOOTER ── */
.site-footer { padding: 2rem; border-top: 1px solid var(--border-dim); text-align: center; color: var(--muted); font-size: 0.8rem; }
.site-footer strong { color: var(--red); font-family: 'Space Mono', monospace; font-weight: 400; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 1rem 2rem; }
  .main-nav.open ul { flex-direction: column; gap: 1rem; }
  .menu-toggle { display: flex; }
}
