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

:root {
  --bg:        #080c14;
  --surface:   #0d1929;
  --surface-h: #112038;
  --border:    #1c3354;
  --border-h:  #c85c14;
  --text:      #e2e8f0;
  --muted:     #6b8aaa;
  --accent:    #c85c14;
  --accent-h:  #e06a1a;
  --blue-glow: rgba(28, 80, 160, 0.25);
  --orange-glow: rgba(200, 92, 20, 0.15);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 760px;
}

html { scroll-behavior: smooth; }

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

/* ── Nav ──────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ── Layout ───────────────────────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-child { border-bottom: none; }

footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

footer span { font-weight: 600; color: var(--text); margin-right: auto; }

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover { color: var(--accent); }

/* ── Section Labels ───────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--text);
}

p { color: var(--muted); max-width: 580px; }

/* ── Hero ─────────────────────────────────────────────── */
#hero {
  padding-top: 8rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -60px;
  left: -100px;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    var(--blue-glow) 0%,
    var(--orange-glow) 45%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#hero > *:not(.hero-glow) { position: relative; z-index: 1; }

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200, 92, 20, 0.1);
  border: 1px solid rgba(200, 92, 20, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

#hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

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

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
  max-width: 460px;
  line-height: 1.6;
}

.cta-group {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(200, 92, 20, 0.3);
}

.btn-primary:hover {
  background: var(--accent-h);
  box-shadow: 0 0 28px rgba(200, 92, 20, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-h);
  border-color: var(--muted);
  transform: translateY(-1px);
}

/* ── Skills ───────────────────────────────────────────── */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.skill-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  transition: border-color 0.15s, color 0.15s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ── Project Grid ─────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-h);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(200, 92, 20, 0.1);
  border: 1px solid rgba(200, 92, 20, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.project-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
  align-self: flex-start;
}

.card-link:hover { color: var(--accent-h); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 500px) {
  nav ul { gap: 1rem; }
  .cta-group { flex-direction: column; }
  footer { flex-wrap: wrap; gap: 1rem; }
}
