/* ===========================
   Elizabeth Wild — Portfolio
   =========================== */

:root {
  --sage: #7c9a82;
  --sage-light: #a3bfa8;
  --sage-pale: #dce8de;
  --sage-wash: #eef3ef;
  --cream: #faf9f6;
  --warm-white: #ffffff;
  --earth: #8b7d6b;
  --earth-light: #c4b9a8;
  --text: #2d3a2e;
  --text-light: #5a6b5c;
  --text-muted: #7e8d80;
  --border: #d9e2da;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 20px rgba(45, 58, 46, 0.06);
  --shadow-lg: 0 8px 40px rgba(45, 58, 46, 0.1);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   Navigation
   =========================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(45, 58, 46, 0.06);
  padding: 0.6rem 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===========================
   Hero
   =========================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  background: linear-gradient(170deg, var(--sage-wash) 0%, var(--cream) 50%, var(--warm-white) 100%);
  position: relative;
}

.hero-content {
  animation: heroFadeIn 1s ease forwards;
}

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

.hero-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 32px rgba(124, 154, 130, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: var(--sage);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(124, 154, 130, 0.25);
}

.btn:hover {
  background: #6b8a72;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 154, 130, 0.35);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  color: var(--sage-light);
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ===========================
   Sections
   =========================== */

.section {
  padding: 5rem 1.5rem;
}

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

.container {
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2.5rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--sage-light);
  border-radius: 3px;
  margin: 0.75rem auto 0;
}

/* ===========================
   Fade-in Animation
   =========================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.impact-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.impact-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.impact-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

.timeline-item.fade-in:nth-child(2) { transition-delay: 0.08s; }
.timeline-item.fade-in:nth-child(3) { transition-delay: 0.16s; }
.timeline-item.fade-in:nth-child(4) { transition-delay: 0.24s; }
.timeline-item.fade-in:nth-child(5) { transition-delay: 0.32s; }

/* ===========================
   About
   =========================== */

.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

.about-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--sage-wash);
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.about-tag svg {
  color: var(--sage);
  flex-shrink: 0;
}

/* ===========================
   Impact Highlights
   =========================== */

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

.impact-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.impact-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.impact-number svg {
  color: var(--sage);
}

.impact-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.impact-desc {
  display: block;
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ===========================
   Experience Timeline
   =========================== */

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--sage-pale);
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 3px solid var(--sage);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(124, 154, 130, 0.2);
}

.timeline-content {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.35rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.75rem;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content li {
  font-size: 0.875rem;
  color: var(--text-light);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage-light);
}

/* ===========================
   Skills
   =========================== */

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

.skill-category h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--warm-white);
  color: var(--text);
  font-size: 0.825rem;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.skill-tag:hover {
  border-color: var(--sage-light);
  background: var(--sage-pale);
}

/* ===========================
   Education
   =========================== */

.education-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--sage-wash);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.education-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.education-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.education-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* ===========================
   Contact
   =========================== */

.contact-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.contact-link svg {
  color: var(--sage);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.925rem;
  color: var(--text);
  background: var(--warm-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124, 154, 130, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
}

/* ===========================
   Footer
   =========================== */

.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===========================
   Mobile Responsive
   =========================== */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(45, 58, 46, 0.08);
  }

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

  .nav-links li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .hero {
    padding: 5rem 1.25rem 2.5rem;
  }

  .hero-photo {
    width: 100px;
    height: 100px;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

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

  .impact-card {
    padding: 1.5rem 1rem;
  }

  .impact-number {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: -2rem;
    width: 14px;
    height: 14px;
  }

  .timeline-content {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .about-details {
    flex-direction: column;
    align-items: center;
  }

  .education-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
