@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Inter:wght@400;500&display=swap');

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

:root {
  --bg: #f5f2ec;
  --bg2: #eeebe3;
  --bark: #3b3228;
  --bark-light: #4a3f35;
  --sage: #7a9e87;
  --sage-light: #a8c4b0;
  --sage-pale: #ddeae0;
  --moss: #4e7a5e;
  --stone: #c8c0b4;
  --white: #fdfcf9;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--bark);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 4rem;
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}

#nav-my-name {
    font-size: 2rem;
  }

.hamburger {
  display: none;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--bark);
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--bark-light);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--moss);
}

/* HERO */
#hero-self-portrait {
  width: 300px;
  height: auto;
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 2rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(to top, #c5d9c9 0%, transparent 100%);
  clip-path: polygon(0% 100%, 0% 70%, 3% 50%, 6% 70%, 8% 30%, 11% 60%, 13% 40%, 16% 65%,
      18% 20%, 21% 55%, 23% 35%, 26% 60%, 28% 45%, 31% 70%, 34% 25%, 37% 55%,
      39% 38%, 42% 62%, 45% 28%, 48% 58%, 50% 42%, 53% 65%, 56% 30%, 59% 60%,
      62% 42%, 65% 68%, 68% 22%, 71% 55%, 73% 38%, 76% 62%, 79% 45%, 82% 70%,
      85% 30%, 88% 58%, 91% 40%, 94% 65%, 97% 48%, 100% 65%, 100% 100%);
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.2rem;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.1;
  color: var(--bark);
  margin-bottom: 1.2rem;
}

.hero-sub {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  color: var(--bark-light);
  margin-bottom: 2.5rem;
}

.hero-sub p {
  flex: 3;
}

.hero-sub img {
  flex: 1;
}

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

.btn {
  padding: 0.75rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.btn-primary {
  background: var(--bark);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--moss);
}

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

.btn-outline:hover {
  background: var(--bark);
  color: var(--white);
}

/* SECTIONS */
section {
  padding: 6rem 4rem;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--bark);
  margin-bottom: 3rem;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--sage);
  margin: 1rem 0 3rem;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--bark-light);
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg);
  padding: 1.8rem;
  border-left: 2px solid var(--sage-light);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--moss);
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--bark-light);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* SKILLS */
#skills {
  background: var(--bg2);
}

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

.skill-group h3 {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--stone);
  gap: 1rem;
}

.skill-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 120px;
}

.skill-name {
  font-size: 0.9rem;
  color: var(--bark);
}

.skill-level-text {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.skill-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.skill-bar-wrap {
  width: 100px;
  height: 5px;
  background: var(--stone);
  border-radius: 3px;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--moss));
  border-radius: 3px;
}

.skill-dots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone);
}

.dot.filled {
  background: var(--moss);
}

/* TIMELINE */
.timeline {
  margin-top: 3rem;
}

.timeline-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--bark);
  margin-bottom: 1rem;
}

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

.t-year {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--sage);
  padding-top: 0.2rem;
}

.t-role {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bark);
}

.t-company {
  font-size: 0.85rem;
  color: var(--sage);
  margin: 0.2rem 0 0.4rem;
}

.t-desc {
  font-size: 0.87rem;
  color: var(--bark-light);
}

/* PROJECTS */
#projects {
  background: var(--white);
}

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

.project-card {
  background: var(--bg);
  padding: 2.2rem;
  border: 1px solid var(--stone);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--moss));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 50, 40, 0.08);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.8rem;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--bark);
  margin-bottom: 0.8rem;
}

.project-desc {
  font-size: 0.87rem;
  color: var(--bark-light);
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  background: var(--sage-pale);
  color: var(--moss);
  letter-spacing: 0.06em;
}

/* CONTACT */
#contact {
  background: var(--bark);
  color: var(--white);
}

#contact .section-label {
  color: var(--sage-light);
}

#contact .section-title {
  color: var(--white);
}

#contact .divider {
  background: var(--sage);
}

.contact-text {
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: row;
  gap: 20%;
  list-style-type: none;
}

.contact-links li a {
  color: var(--white);
  text-decoration: none;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--sage-light);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--white);
}

.contact-link span {
  font-size: 1rem;
}


/* FOOTER */
footer {
  background: #2a2218;
  color: var(--stone);
  text-align: center;
  padding: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    padding: 1.2rem 1.5rem;
    flex-direction: column;
    align-items: end;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .nav-links a {
    display: block;
    min-height: 52px;
  }

  .hamburger {
   display: block;
  }

  section {
    padding: 4rem 1.5rem;
  }

  #hero {
    padding: 7rem 1.5rem 4rem;
  }

  .hero-sub {
    flex-direction: column;
  }

  #hero-self-portrait {
    width: 150px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .contact-links {
    flex-direction: column;
    gap: 1.5vh;
  }
}