@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap");

:root {
  --bg: #0d1512;
  --bg-elevated: #131c18;
  --bg-card: #182420;
  --bg-card-hover: #1e2e28;
  --text: #f0ebe3;
  --text-secondary: #a8b5ab;
  --text-muted: #5e706a;
  --accent: #e8b4a2;
  --accent-hover: #f2c8b8;
  --accent-muted: rgba(232, 180, 162, 0.15);
  --border: rgba(240, 235, 227, 0.08);
  --border-strong: rgba(240, 235, 227, 0.15);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Outfit", -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 70% -20%, rgba(232, 180, 162, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(30, 60, 50, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

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

.page {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 32px 100px;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 40px;
}

.hero-copy {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-muted) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 400;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 520px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  transition: all 0.3s var(--ease);
}

.spec-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.spec-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 6px;
}

.spec-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.btn {
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.35s var(--ease);
  background: var(--accent);
  color: var(--bg);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn.ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.section-nav {
  position: sticky;
  top: 20px;
  z-index: 100;
  margin: 0 auto 72px;
  padding: 6px;
  background: rgba(13, 21, 18, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 100px;
  display: inline-flex;
  gap: 4px;
  left: 50%;
  transform: translateX(-50%);
  position: sticky;
  width: fit-content;
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.section-nav a {
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}

.section-nav a:hover {
  color: var(--text);
  background: var(--bg-card);
}

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.section {
  margin-bottom: 96px;
  scroll-margin-top: 100px;
}

.section-head {
  margin-bottom: 44px;
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-head h2::first-letter {
  color: var(--accent);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  flex: 1;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s var(--ease);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 16px;
}

.card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
  font-weight: 300;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.list li {
  padding-left: 24px;
  color: var(--text-secondary);
  font-weight: 300;
  position: relative;
}

.list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.5em;
  top: 0.7em;
}

/* ═══════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════ */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.pill {
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease);
}

.pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.skill-columns {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.skill-columns .card:nth-child(1) {
  grid-column: span 7;
}

.skill-columns .card:nth-child(2) {
  grid-column: span 5;
}

.skill-columns .card:nth-child(3) {
  grid-column: span 5;
}

.skill-columns .card:nth-child(4) {
  grid-column: span 7;
}

/* ═══════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════ */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 50%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child { border-bottom: none; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 40px;
  width: 11px;
  height: 11px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.timeline-item:first-child::before { top: 8px; }

.timeline-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding-left: 80px;
}

.timeline-role {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: start;
}

.company-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.timeline-role a:hover .company-logo {
  transform: scale(1.08);
  border-color: var(--accent);
}

.timeline-role h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 4px;
}

.timeline-role p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-role p a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: all 0.25s;
}

.timeline-role p a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.timeline-desc {
  margin: 12px 0 0;
  padding-left: 80px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project:nth-child(1) {
  grid-column: span 7;
}

.project:nth-child(2) {
  grid-column: span 5;
}

.project:nth-child(3) {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  gap: 48px;
}

.project:nth-child(3) > div:first-child {
  flex: 1;
}

.project:nth-child(3) .project-tags {
  margin-top: 0;
}

.project:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.project h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 12px;
}

.project p {
  color: var(--text-secondary);
  margin: 0;
  flex-grow: 1;
  line-height: 1.7;
  font-weight: 300;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.project-tags span {
  padding: 6px 14px;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.testimonial-card {
  grid-column: span 12;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.35s var(--ease);
}

.testimonial-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.testimonial-card blockquote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 24px;
  font-style: italic;
  font-weight: 300;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.testimonial-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.testimonial-role {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   EDUCATION
═══════════════════════════════════════════ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.education-item {
  display: flex;
  gap: 20px;
  align-items: center;
}

.education-logo {
  width: 64px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  opacity: 0.85;
}

.education-item a:hover .education-logo {
  transform: scale(1.08);
  opacity: 1;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 24px;
  padding: 48px 56px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 8px;
}

.contact-card .muted {
  color: rgba(13, 21, 18, 0.6);
}

.contact-actions {
  display: flex;
  gap: 12px;
}

.contact-actions .btn {
  background: var(--bg);
  color: var(--text);
}

.contact-actions .btn:hover {
  background: var(--bg-elevated);
}

.contact-actions .btn.ghost {
  background: transparent;
  border: 2px solid rgba(13, 21, 18, 0.3);
  color: var(--bg);
}

.contact-actions .btn.ghost:hover {
  background: rgba(13, 21, 18, 0.1);
  border-color: var(--bg);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
}

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

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(32px); will-change: transform, opacity; }
.js .reveal.reveal-left { transform: translateX(-32px); }
.js .reveal.reveal-right { transform: translateX(32px); }
.js .reveal.reveal-up { transform: translateY(40px); }
.js .reveal.reveal-zoom { transform: scale(0.95); }
.js .reveal.is-visible { animation: reveal 0.8s var(--ease) forwards; }
.js .reveal.is-visible.reveal-left { animation-name: reveal-left; }
.js .reveal.is-visible.reveal-right { animation-name: reveal-right; }
.js .reveal.is-visible.reveal-zoom { animation-name: reveal-zoom; }

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-left {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes reveal-right {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes reveal-zoom {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .hero-card .stat { padding: 20px; }
  .hero-card .stat-number { font-size: 2rem; min-width: auto; }
  .hero-card .badge { grid-column: span 3; }

  .skill-columns { grid-template-columns: 1fr; }
  .skill-columns .card:nth-child(1),
  .skill-columns .card:nth-child(2),
  .skill-columns .card:nth-child(3),
  .skill-columns .card:nth-child(4) { grid-column: span 1; }

  .project-grid { grid-template-columns: 1fr; }
  .project:nth-child(1),
  .project:nth-child(2),
  .project:nth-child(3) { grid-column: span 1; }
  .project:nth-child(3) { flex-direction: column; gap: 16px; }
}

@media (max-width: 700px) {
  .page { padding: 32px 20px 60px; }

  .hero-copy { padding: 36px; }
  .hero-copy h1 { font-size: 2.75rem; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .hero-card { grid-template-columns: 1fr; }
  .hero-card .stat { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-card .stat-number { font-size: 2.25rem; }
  .hero-card .badge { grid-column: span 1; }

  .section-nav {
    display: none;
  }

  .section-head { flex-direction: column; gap: 12px; }
  .section-head p { border: none; padding: 0; }

  .summary-grid, .skill-columns, .education-grid { grid-template-columns: 1fr; }

  .timeline { padding-left: 24px; }
  .timeline-item::before { left: -22px; width: 9px; height: 9px; }
  .timeline-role { grid-template-columns: 48px 1fr; gap: 14px; }
  .company-logo { width: 48px; height: 48px; }
  .timeline-desc { padding-left: 62px; }
  .timeline-meta { padding-left: 62px; }

  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }
  .contact-actions { width: 100%; }
  .contact-actions .btn { flex: 1; }

  .footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════
   WELCOME PAGE
═══════════════════════════════════════════ */
.welcome-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.welcome-container {
  text-align: center;
  max-width: 600px;
}

.welcome-container .eyebrow {
  margin-bottom: 16px;
}

.welcome-container h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 400;
  margin: 0 0 24px;
  line-height: 1.1;
}

.welcome-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 40px;
  font-weight: 300;
}

.welcome-cta {
  display: flex;
  justify-content: center;
}
