/* =========================
   ROOT VARIABLES
   Main colors, spacing, and reusable values
========================= */
:root {
  --bg: #f6fbf7;
  --white: #ffffff;
  --section-alt: #eef7f0;
  --primary: #7bc47f;
  --primary-dark: #4d9c57;
  --primary-soft: #e8f6ea;
  --text: #18231b;
  --muted: #5f6f63;
  --border: #dfeee1;
  --shadow: 0 10px 30px rgba(50, 90, 60, 0.08);
  --shadow-soft: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --container: 1180px;
}

/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Base body styling */
body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Remove default link styling */
a {
  text-decoration: none;
  color: inherit;
}

/* Basic image behavior */
img {
  max-width: 100%;
  display: block;
}

/* Shared page width container */
.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

/* Brand name */
.brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.97rem;
  color: var(--text);
  transition: 0.22s ease;
}

.nav-links a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* =========================
   MOBILE NAV TOGGLE BUTTON
   Hidden on desktop, shown on small screens
========================= */
.menu-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 58px;
  height: 58px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--muted);
  border-radius: 999px;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  background: linear-gradient(135deg, #69b86f 0%, #5cab64 50%, #4f9f59 100%);
  color: white;
  padding: 84px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.28rem;
  max-width: 760px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.95);
}

/* Hero buttons */
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #1b2b1d;
  padding: 13px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.22s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Headshot wrapper */
.hero-image-wrap {
  display: flex;
  justify-content: center;
}

/* Circular headshot */
.hero-image {
  width: 245px;
  height: 245px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  background: #dfeee1;
}

/* =========================
   GENERAL SECTION STYLING
========================= */
section {
  padding: 84px 0;
  scroll-margin-top: 92px;
}

/* Alternating section backgrounds */
.section-light {
  background: var(--bg);
}

.section-dark {
  background: linear-gradient(180deg, #edf7ef 0%, #e8f3ea 100%);
  box-shadow: var(--shadow-soft);
}

/* Section heading */
.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

/* Decorative underline */
.section-underline {
  width: 62px;
  height: 4px;
  background: var(--primary-dark);
  border-radius: 999px;
  margin-bottom: 30px;
}

/* Section intro paragraph */
.section-desc {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 34px;
  font-size: 1.03rem;
}

/* =========================
   ABOUT SECTION
========================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}

.about-text {
  font-size: 1.03rem;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text);
}

.about-text ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.about-text li {
  margin-bottom: 10px;
}

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

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card h3 {
  font-size: 3rem;
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.stat-card p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

/* =========================
   GENERIC CONTENT CARDS
========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

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

/* =========================
   PROJECTS
========================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

/* Placeholder image area for projects */
.project-image {
  height: 220px;
  background: linear-gradient(135deg, #ebf8ed, #dff2e3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.project-body {
  padding: 22px;
}

.project-body h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.project-body p {
  color: var(--muted);
  margin-bottom: 14px;
}

/* Small tags under projects */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tag {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

/* Project link row */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.project-links a {
  color: var(--primary-dark);
  font-weight: 700;
}

.project-links a:hover {
  text-decoration: underline;
}

/* =========================
   LISTS
========================= */
.skill-list,
.contact-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.skill-list li,
.contact-list li {
  color: var(--muted);
}

.skill-list li::before,
.contact-list li::before {
  content: "•";
  color: var(--primary-dark);
  font-weight: 700;
  margin-right: 10px;
}

/* =========================
   FOOTER
========================= */
footer {
  padding: 32px 0 50px;
  text-align: center;
  color: var(--muted);
  font-size: 0.96rem;
}

/* =========================
   TABLET RESPONSIVE STYLES
========================= */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: left;
  }

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

/* =========================
   MOBILE RESPONSIVE STYLES
   Compact dropdown that opens from the hamburger button
========================= */
@media (max-width: 760px) {
  .nav-inner {
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 0;
  }

  .brand {
    font-size: 1.5rem;
    max-width: 65%;
  }

  /* Show hamburger button on mobile */
  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  /* Hide nav links by default on mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
  }

  /* Shows dropdown when active */
  .nav-links.active {
    display: flex;
  }

  /* Mobile nav links */
  .nav-links a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 1.06rem;
  }

  .hero-image {
    width: 210px;
    height: 210px;
  }
}