/* ── Variables ──────────────────────────────────────────── */
:root {
  --red:        #e63946;
  --red-dim:    #c1121f;
  --red-glow:   rgba(230, 57, 70, 0.18);
  --bg:         #0d0d0d;
  --bg2:        #111111;
  --bg3:        #181818;
  --surface:    #1e1e1e;
  --border:     #2a2a2a;
  --text:       #e0e0e0;
  --text-muted: #888;
  --font:       'Inter', sans-serif;
  --mono:       'Fira Code', monospace;
  --radius:     8px;
  --nav-h:      64px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: #ff6b76; }

::selection { background: var(--red); color: #fff; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-dim); border-radius: 3px; }

/* ── Sections shared ────────────────────────────────────── */
section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 6vw, 10rem);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title span { color: var(--red); }

.divider {
  width: 48px; height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dim);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* ── Tags ───────────────────────────────────────────────── */
.tag {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
}
.tag.red {
  background: var(--red-glow);
  border-color: rgba(230, 57, 70, 0.4);
  color: #ff8a93;
}
.tag i {
  font-size: 1em;
  vertical-align: middle;
  margin-left: 0.3rem;
}

/* ── Fade-in animation ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .about-details { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline-item { gap: 1rem; }
}

@media (max-width: 480px) {
  .projects-grid,
  .skills-grid { grid-template-columns: 1fr; }
}
