*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --accent: #4f8ef7;
  --text: #e0e0e0;
  --muted: #8a8fa8;
  --max-width: 900px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.7;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 17, 23, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-name {
  font-weight: 600;
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at 50% 40%, rgba(79, 142, 247, 0.08) 0%, transparent 70%);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

/* SECTIONS */
section {
  padding: 6rem 2rem;
}

section:nth-child(even) {
  background: var(--surface);
}

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

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

p {
  color: var(--muted);
  max-width: 65ch;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-card {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

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

.skill-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.95rem;
  color: var(--text);
}

/* CONTACT */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.contact-list a:hover {
  opacity: 0.75;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}
