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

:root {
  --red:    #DA291C;
  --black:  #000000;
  --white:  #FFFFFF;
  --gold:   #FBE122;
  --bg:     #F5F5F5;
  --text:   #1a1a1a;
  --muted:  #555555;
  --radius: 6px;
  --shadow: 0 2px 16px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* ─── Nav ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--black);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  border-bottom: 3px solid var(--red);
}

.nav-logo {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--white);
}
.nav-logo span { color: var(--red); }

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

.nav-links a {
  color: var(--white); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

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

/* ─── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--black);
  display: flex; align-items: center;
  padding: 100px 5% 60px;
  position: relative; overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--red);
}

#hero::after {
  content: '';
  position: absolute; right: -120px; top: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218,41,28,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { max-width: 720px; }

.hero-eyebrow {
  display: inline-block;
  background: var(--red); color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 12px;
  border-radius: var(--radius); margin-bottom: 1.25rem;
}

#hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.1;
  color: var(--white); margin-bottom: 0.5rem;
}
#hero h1 span { color: var(--red); }

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gold); font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 1.25rem;
}

.hero-sub {
  color: #aaa; font-size: 1.05rem; max-width: 540px;
  margin-bottom: 2.5rem; line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(218,41,28,0.35); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid #444;
}
.btn-outline:hover { border-color: var(--white); box-shadow: none; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Section Shared ───────────────────────────────────────── */
section { padding: 90px 5%; }

.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 1rem;
}
.section-divider {
  width: 48px; height: 4px; background: var(--red);
  border-radius: 2px; margin-bottom: 2.5rem;
}

/* ─── About ────────────────────────────────────────────────── */
#about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem; align-items: start;
  max-width: 1000px;
}

.about-card {
  background: var(--black); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  text-align: center;
}

.about-avatar {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  display: flex; align-items: center; justify-content: center;
}
.about-avatar-initials {
  font-size: 4rem; font-weight: 900;
  color: var(--red); letter-spacing: -0.02em;
  font-family: Georgia, serif;
}

.about-card-body { padding: 1.25rem; }
.about-card-name {
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.25rem;
}
.about-card-credential {
  font-size: 0.8rem; color: var(--gold);
  font-weight: 600; letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.about-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.about-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(218,41,28,0.15); color: var(--red);
  text-transform: uppercase;
}

.about-bio { font-size: 1.05rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.8; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 1.25rem 1rem; text-align: center;
  border-top: 3px solid var(--red);
}
.stat-number {
  font-size: 1.8rem; font-weight: 900; color: var(--red);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem; color: var(--muted);
  margin-top: 0.35rem; line-height: 1.3;
}

/* ─── Skills ──────────────────────────────────────────────── */
.skills-section { margin-top: 2rem; }
.skills-heading {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.75rem;
}
.skills-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  font-size: 0.8rem; font-weight: 600;
  padding: 5px 14px; border-radius: 100px;
  background: var(--bg); color: var(--text);
  border: 1.5px solid #ddd;
  transition: border-color 0.2s, color 0.2s;
}
.skill-tag:hover { border-color: var(--red); color: var(--red); }

/* ─── Experience / Timeline ────────────────────────────────── */
#experience { background: var(--white); }

.timeline { max-width: 800px; position: relative; padding-left: 2rem; margin-bottom: 4rem; }
.timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--red), #eee);
}

.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute; left: -2rem; top: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}

.timeline-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
}

.timeline-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem;
  margin-bottom: 0.75rem; flex-wrap: wrap;
}
.timeline-role {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
}
.timeline-company {
  font-size: 0.9rem; color: var(--red); font-weight: 600;
  margin-top: 0.15rem;
}
.timeline-meta {
  text-align: right; flex-shrink: 0;
}
.timeline-location {
  display: block; font-size: 0.78rem; color: var(--muted); font-weight: 500;
}
.timeline-date {
  display: block; font-size: 0.75rem; color: var(--muted);
  background: #e8e8e8; padding: 2px 8px; border-radius: 100px;
  margin-top: 4px; font-weight: 600;
}
.timeline-desc {
  font-size: 0.93rem; color: var(--muted); line-height: 1.75;
  margin-bottom: 1rem;
}
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.timeline-tags span {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(218,41,28,0.1); color: var(--red);
  text-transform: uppercase;
}

/* ─── Education ────────────────────────────────────────────── */
.education-section { max-width: 800px; margin-bottom: 4rem; }
.edu-heading {
  font-size: 1.1rem; font-weight: 800; margin-bottom: 1.25rem;
}
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.edu-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: var(--shadow);
}
.edu-icon { font-size: 1.5rem; line-height: 1; }
.edu-degree { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.edu-school { font-size: 0.85rem; color: var(--red); font-weight: 600; margin-bottom: 0.2rem; }
.edu-year { font-size: 0.78rem; color: var(--muted); }

/* ─── Recommendations ──────────────────────────────────────── */
.recs-section { max-width: 800px; }
.recs-heading {
  font-size: 1.1rem; font-weight: 800; margin-bottom: 1.25rem;
}
.recs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.rec-card {
  background: var(--black); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  display: flex; flex-direction: column; justify-content: space-between;
}
.rec-quote {
  font-size: 0.93rem; color: #ccc; line-height: 1.75;
  font-style: italic; margin-bottom: 1.25rem;
}
.rec-name { font-size: 0.88rem; font-weight: 700; color: var(--white); }
.rec-title { font-size: 0.75rem; color: var(--gold); margin-top: 0.2rem; }

/* ─── Portfolio ────────────────────────────────────────────── */
#portfolio { background: var(--bg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
}

.portfolio-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.portfolio-card-accent {
  height: 5px; background: var(--red);
}
.portfolio-card-body { padding: 1.75rem; flex: 1; }

.portfolio-org {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.5rem;
}
.portfolio-card-title {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.75rem; line-height: 1.3;
}
.portfolio-card-desc {
  font-size: 0.92rem; color: var(--muted); line-height: 1.7;
  margin-bottom: 1rem;
}

.portfolio-outcome {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 600; color: var(--red);
}
.portfolio-outcome::before {
  content: '▲'; font-size: 0.65rem;
}

/* ─── Contact ──────────────────────────────────────────────── */
#contact {
  background: var(--black); text-align: center;
  color: var(--white);
}
#contact .section-title { color: var(--white); }
#contact .section-label { color: var(--gold); }

.contact-sub {
  color: #aaa; max-width: 480px;
  margin: 0 auto 2.5rem; font-size: 1rem; line-height: 1.7;
}

.contact-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ───────────────────────────────────────────────── */
footer {
  background: #0a0a0a; color: #666;
  text-align: center; padding: 1.5rem 5%;
  font-size: 0.82rem;
  border-top: 1px solid #1a1a1a;
}
footer span { color: var(--red); }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--black); padding: 1.5rem 5%;
    border-bottom: 3px solid var(--red);
    gap: 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-card { max-width: 280px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn { text-align: center; }
}
