/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg-base: #f0f7e6;
  --bg-alt: #e8f5d4;
  --green-accent: #6abf2a;
  --green-dark: #3d7a1a;
  --text-heading: #2d3a1f;
  --text-body: #444;
  --text-light: #666;
  --white: #ffffff;
  --footer-bg: #2d3a1f;
  --footer-text: #a8c88a;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --card-radius: 10px;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-speed: 0.3s;
  --nav-height: 60px;
}

/* ============================================================
   Reset
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-base);
  color: var(--text-body);
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 2px solid var(--green-accent);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-right: auto;
  white-space: nowrap;
}

.nav__brand img {
  width: 36px;
  height: 36px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.95rem;
  color: var(--text-body);
  transition: color var(--transition-speed);
}

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

.nav__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.5rem;
}

.nav__socials a {
  color: var(--text-light);
  transition: color var(--transition-speed), background var(--transition-speed), transform var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
}

.nav__socials a:hover {
  color: var(--white);
  background: var(--green-accent);
  transform: scale(1.1);
}

.nav__socials svg {
  width: 16px;
  height: 16px;
  fill: var(--text-heading);
  transition: fill var(--transition-speed);
}

.nav__socials a:hover svg {
  fill: var(--white);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-heading);
  transition: transform var(--transition-speed), opacity var(--transition-speed);
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--green-accent);
  z-index: 999;
  padding: 1rem 2rem;
  flex-direction: column;
  gap: 1rem;
}

.nav__mobile-menu.open {
  display: flex;
}

.nav__mobile-menu a {
  font-size: 1rem;
  color: var(--text-body);
  padding: 0.5rem 0;
  transition: color var(--transition-speed);
}

.nav__mobile-menu a:hover {
  color: var(--green-accent);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  margin-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-alt) 100%);
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero__cta {
  display: inline-block;
  background: var(--green-accent);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: var(--card-radius);
  font-weight: 600;
  transition: background var(--transition-speed), transform var(--transition-speed);
}

.hero__cta:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 5rem 2rem;
}

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

.section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 2.5rem;
  border-bottom: 3px solid var(--green-accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   Card Grid
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 2px solid transparent;
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--green-accent);
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--bg-alt);
}

.card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform var(--transition-speed);
}

.card__image img.active {
  opacity: 1;
}

.card__image--square {
  height: auto;
  aspect-ratio: 1;
}

.card-grid--jams {
  grid-template-columns: repeat(4, 1fr);
}

.card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 0.75rem;
}

.card__badge {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  align-self: flex-start;
}

/* ============================================================
   About Teaser
   ============================================================ */
.about-teaser {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-teaser__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.about-teaser__text {
  flex: 1;
}

.about-teaser__text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.about-teaser__text p {
  color: var(--text-body);
  margin-bottom: 1rem;
}

.about-teaser__link {
  color: var(--green-dark);
  font-weight: 600;
  transition: color var(--transition-speed);
}

.about-teaser__link:hover {
  color: var(--green-accent);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem;
  text-align: center;
}

.footer__copyright {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.footer__socials a {
  color: var(--footer-text);
  transition: color var(--transition-speed), background var(--transition-speed), transform var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-dark);
}

.footer__socials a:hover {
  color: var(--green-accent);
  background: var(--green-accent);
  transform: scale(1.1);
}

.footer__socials svg {
  width: 16px;
  height: 16px;
  fill: var(--bg-alt);
}

.footer__socials a:hover svg {
  fill: var(--white);
}

/* ============================================================
   Wavy Dividers
   ============================================================ */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  display: block;
  height: 40px;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ============================================================
   Scroll Animations
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ============================================================
   prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .card {
    transition: none;
  }

  .card__image img {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Responsive — 992px (2-column card grid)
   ============================================================ */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--jams {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Responsive — 768px
   ============================================================ */
@media (max-width: 768px) {
  .nav__links,
  .nav__socials {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

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

  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer__copyright {
    margin-bottom: 0;
  }

  .about-teaser {
    flex-direction: column;
    text-align: center;
  }

  .about-teaser__avatar {
    width: 100px;
    height: 100px;
  }
}

/* ============================================================
   About Page Styles
   ============================================================ */
.about-hero {
  margin-top: var(--nav-height);
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-alt) 100%);
}

.about-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.about-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.about-bio {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-bio__avatar {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.about-bio__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-bio__content {
  flex: 1;
}

.about-bio__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.about-bio__text {
  color: var(--text-body);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.skill-tag {
  background: var(--bg-alt);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--green-accent);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.philosophy-card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 1.75rem;
  border-top: 3px solid var(--green-accent);
}

.philosophy-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.philosophy-card__text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

.timeline {
  max-width: 800px;
  border-left: 3px solid var(--green-accent);
  padding-left: 2rem;
}

.timeline__item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 8px);
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-accent);
  border: 2px solid var(--white);
}

.timeline__year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.timeline__text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.collab-card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 2px solid transparent;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.collab-card:hover {
  border-color: var(--green-accent);
  box-shadow: var(--card-shadow-hover);
}

.collab-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.collab-card__text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   About Page Responsive — 992px (philosophy-grid 2-column)
   ============================================================ */
@media (max-width: 992px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   About Page Responsive — 768px
   ============================================================ */
@media (max-width: 768px) {
  .about-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-bio__avatar {
    width: 140px;
    height: 140px;
  }

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

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

  .skills {
    justify-content: center;
  }
}
