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

:root {
  --bg:        #111214;
  --bg-card:   #1a1c20;
  --bg-light:  #22252b;
  --crimson:   #b5202e;
  --crimson-lt:#d4364a;
  --text:      #e8e8e8;
  --text-muted:#9aa0ac;
  --border:    #2e3138;
  --white:     #ffffff;
  --font:      'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--crimson-lt); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(17, 18, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

nav ul a:hover {
  color: var(--white);
  text-decoration: none;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 2rem 4rem;
  background: linear-gradient(135deg, #0d0e10 0%, #1a1c20 50%, #111214 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 5rem;
  max-width: 1000px;
  width: 100%;
}

.hero-photo {
  flex-shrink: 0;
  width: 280px;
  height: 340px;
  border-radius: 4px;
  overflow: hidden;
  border: 3px solid var(--crimson);
  box-shadow: 0 20px 60px rgba(181, 32, 46, 0.25);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-text .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson-lt);
  margin-bottom: 0.75rem;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-text .title {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-text .title span {
  color: var(--text);
  font-weight: 500;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.badge {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

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

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  border: 2px solid var(--crimson);
}

.btn-primary:hover {
  background: var(--crimson-lt);
  border-color: var(--crimson-lt);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--white);
  text-decoration: none;
}

/* ── Sections ── */
section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson-lt);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ── Bio ── */
#about { background: var(--bg); }

.bio-text p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* ── Highlights ── */
#highlights { background: var(--bg-card); }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.highlight-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.highlight-card:hover {
  border-color: var(--crimson);
  transform: translateY(-2px);
}

.highlight-card .icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.highlight-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.highlight-card .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.highlight-card .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.exp-list { display: flex; flex-direction: column; gap: 2rem; }

.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.exp-item:last-child { border-bottom: none; padding-bottom: 0; }

.exp-meta { text-align: right; padding-top: 0.2rem; }

.exp-meta .period {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.exp-meta .company {
  font-size: 0.85rem;
  color: var(--crimson-lt);
  font-weight: 600;
  margin-top: 0.25rem;
}

.exp-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.exp-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

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

.portfolio-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.portfolio-card:hover {
  border-color: var(--crimson);
  transform: translateY(-2px);
}

.portfolio-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ptag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--crimson-lt);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

.portfolio-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.portfolio-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--crimson-lt);
  margin-top: 0.25rem;
}

.portfolio-link:hover {
  color: var(--white);
  text-decoration: none;
}

/* ── Resume ── */
#resume { background: var(--bg-card); }

.resume-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.resume-box .resume-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.resume-box .resume-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Contact ── */
#contact { background: var(--bg); }

.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.contact-link:hover {
  border-color: var(--crimson);
  color: var(--white);
  text-decoration: none;
}

.contact-link .cl-icon { font-size: 1.1rem; }

/* ── Footer ── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-text h1 { font-size: 2.2rem; }

  .hero-badges { justify-content: center; }

  .hero-ctas { justify-content: center; }

  .hero-photo { width: 200px; height: 240px; }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .exp-meta { text-align: left; }

  nav ul { gap: 1rem; }
}
