﻿:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --text: #1c1c1f;
  --muted: #5b5f69;
  --accent: #7a2d3a;
  --accent-10: rgba(122, 45, 58, 0.1);
  --border: #e3e5ea;
  --shadow: 0 12px 30px rgba(18, 23, 40, 0.08);
  --radius: 18px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: var(--space-6) 0;
}

.section.alt {
  background: var(--surface);
}

.section-header {
  margin-bottom: var(--space-4);
  max-width: 640px;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 2vw + 1.4rem, 2.6rem);
  margin-bottom: var(--space-1);
}

.section-header p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: var(--space-3);
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

.hero {
  padding-top: var(--space-5);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 3vw + 1.8rem, 3.8rem);
  margin: var(--space-1) 0;
}

.role {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.summary {
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(48, 73, 182, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.95rem;
  color: var(--muted);
  align-items: center;
}

.hero-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
}

.portrait-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-2);
  box-shadow: var(--shadow);
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

.portrait-wrap:hover {
  border: 1px solid var(--accent-10);
  box-shadow: 0 16px 36px rgba(18, 23, 40, 0.12);
  transform: translateY(-4px);
}

.portrait-wrap img {
  border-radius: calc(var(--radius) - 6px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.highlights {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.highlights h3 {
  margin-bottom: var(--space-2);
}

.highlights ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.skill-card {
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.skill-card h3 {
  margin-bottom: var(--space-2);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badges span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-10);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.project-card {
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(18, 23, 40, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(18, 23, 40, 0.12);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}

.project-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-card .tech {
  font-weight: 600;
  color: var(--accent);
  margin: var(--space-1) 0 var(--space-2);
}

.project-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}

.project-links a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.project-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.project-card ul {
  list-style: disc;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.timeline {
  display: grid;
  gap: var(--space-4);
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  position: relative;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  box-shadow: 0 0 0 6px var(--accent-10);
}

.timeline-content {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.timeline-content ul {
  list-style: disc;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.edu-card {
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

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

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.list-grid ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: var(--space-2);
}

.contact-item {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--muted);
}

.contact-item i {
  color: var(--accent);
}

.contact-form {
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  gap: var(--space-2);
}

.contact-form .btn[disabled] {
  opacity: 0.8;
  cursor: wait;
}

.field {
  display: grid;
  gap: 8px;
}

input,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent-10);
  border-color: var(--accent);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #b42318;
  outline: 2px solid rgba(180, 35, 24, 0.12);
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.form-alert {
  min-height: 24px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.form-alert.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-alert.is-success {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.form-alert.is-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
}

.site-footer {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 64px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    display: none;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline::before {
    left: 6px;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
