﻿:root {
  --bg: #faf7f1;
  --bg-soft: #f2ece1;
  --text: #1e1a15;
  --text-soft: #5e5347;
  --accent: #bf4a2b;
  --accent-2: #1f6f78;
  --card: #fffdf8;
  --line: rgba(30, 26, 21, 0.12);
  --shadow: 0 12px 30px rgba(27, 20, 12, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(191, 74, 43, 0.15), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(31, 111, 120, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 241, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 6vw;
  z-index: 2;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

main {
  width: min(1100px, 90vw);
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.section {
  margin-top: 5rem;
  animation: rise 700ms ease both;
}

.hero {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
}

.hero-image {
  width: min(300px, 70vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(27, 20, 12, 0.2);
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 18ch;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.hero-copy {
  max-width: 60ch;
  color: var(--text-soft);
  margin: 1.2rem 0 1.6rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}

.section-title-wrap {
  margin-bottom: 1.2rem;
}

.about-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card,
.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card p,
.project-card p {
  margin: 0;
  color: var(--text-soft);
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.chip-group {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.chip-group ul {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-group li {
  border: 1px solid rgba(30, 26, 21, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.88rem;
  background: #fff;
}

.project-card a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.timeline {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.timeline li + li {
  margin-top: 0.7rem;
}

.contact-copy {
  color: var(--text-soft);
}

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

.contact-links a {
  color: var(--accent-2);
  font-weight: 600;
}

@keyframes rise {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-image-wrap {
    justify-content: flex-start;
    order: -1;
  }

  .hero-image {
    width: min(220px, 55vw);
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }

  .nav-links {
    gap: 0.7rem;
    flex-wrap: wrap;
  }

  .section {
    margin-top: 3.7rem;
  }
}

.timeline-container {
  border-left: 2px solid #e0e0e0;
  padding-left: 2rem;
  margin-left: 1rem;
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 6px);
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--btn-primary-bg, #000); /* Use your primary color */
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
}
