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

body {
  font-family: "Inter", sans-serif;
  color: #1D3557;
  background-color: #F1FAEE;
  line-height: 1.65;
  padding-top: 100px;
}

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

/* ==================
   LAYOUT
================== */
.wrapper {
  width: 92%;
  max-width: 1500px;
  margin: 0 auto;
}

/* ==================
   HEADER
================== */
.site-header {
  background-color: #A8DADC;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-name {
  font-family: "Lexend", sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
}

.site-tagline {
  font-size: 0.9rem;
  color: #1D3557;
}

/* ==================
   NAVIGATION
================== */
.nav-list {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-list a {
  font-family: "Lexend", sans-serif;
  font-size: 1.5rem;
  text-decoration: none;
  color: #1D3557;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

/* ==================
   HERO
================== */
#hero {
  padding: 6rem 0 9rem;
}

.hero-intro {
    max-width: 900px;
    font-family: "Libre Baskerville", serif;
    font-size: 5rem;
    line-height: 1.2;
}


/* ==================
   SECTIONS
================== */
section {
  padding: 5.5rem 0;
}

.section-heading {
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid #A8DADC;
  margin-bottom: 3rem;
  color: #457B9D;
}

/* ==================
   ABOUT
================== */
.about-content-container {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-direction: row-reverse;
}

.about-headshot img {
  width: 400px;
  border-radius: 10%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-content {
  max-width: 680px;
  font-size: 1.5rem;
}

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

.project-card img {
  max-width: 100%;
}

.project-title {
  font-family: "Lexend", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 1.25rem;
  color: #1D3557;
  padding-top: .25rem;
}

/* ==================
   QUOTE
================== */
.blockquote-wrapper {
  background-color: #1D3557;
  color: #F1FAEE;
  padding: 5rem 1.5rem;
  text-align: center;
  max-width: 1545px;
}

.blockquote h1 {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.4;
}

/* ==================
   FOOTER
================== */
.site-footer {
  background-color: #A8DADC;
  padding: 3rem 0; /* slightly smaller padding for balance */
  color: #1D3557;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column; /* stack vertically on all screens */
  align-items: center;
  gap: 1rem;
}

.site-footer p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.site-footer .socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.site-footer .socials a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.site-footer .socials a:hover {
  transform: scale(1.1); /* subtle hover effect */
}

.site-footer .socials img {
  display: inline-block;
  height: 80px; /* nice small size */
  width: auto;  /* maintain aspect ratio */
}


/* MOBILE SPECIFIC (optional, but ensures consistency) */
@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 1rem;
  }

  .site-footer p {
    font-size: 0.85rem;
  }

  .site-footer .socials img {
    height: 35px;
  }
}


/* ==================
   RESPONSIVE STYLING
=================== */

/* ===== TABLET (iPad) ===== */
@media (max-width: 1024px) {

  /* Header */
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  /* Hero */
  #hero {
    padding-top: 14rem; /* increased top padding for tablet */
    padding-bottom: 5rem;
  }

  .hero-intro {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  /* About */
  .about-content-container {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .about-headshot img {
    width: 250px;
  }

  .about-content {
    font-size: 1.2rem;
    max-width: 600px;
  }

  /* Projects */
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* ===== MOBILE (iPhone & small screens) ===== */
@media (max-width: 768px) {

  /* Header */
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .nav-toggle {
    display: flex; /* show hamburger */
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1D3557;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1050;
  }

  nav.active {
    max-height: 500px;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    color: antiquewhite;
  }

  .nav-list a {
    font-size: 1.05rem;
    color: antiquewhite;
  }

  .nav-list a.about-link {
    color: #F4A261;
  }

  .nav-list a.projects-link {
    color: #2A9D8F;
  }

  .nav-list a:hover {
    color: #E9C46A;
  }

  /* Hero */
  #hero {
    padding-top: 14rem; /* increased top padding for mobile */
    padding-bottom: 4rem;
  }

  .hero-intro {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.25;
  }

  /* About */
  .about-content-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-headshot img {
    width: 160px;
    max-width: 160px;
  }

  .about-content {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
  }

  /* Projects */
  .project-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-title {
    font-size: 1.05rem;
  }

  .project-description {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .project-card img {
    max-width: 80%;
    margin: 0 auto;
  }

  /* Quote */
  .blockquote h1 {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .site-footer p {
    font-size: 0.85rem;
  }

  .site-footer .socials img {
    height: 35px;
  }

  .site-footer .socials {
    justify-content: center;
  }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1440px) {
  .wrapper {
    width: 85%;
  }

  .about-headshot img {
    width: 400px;
  }

  .about-content {
    font-size: 1.6rem;
  }

  .project-grid {
    gap: 3.5rem;
  }
}
/* Hamburger button */
.nav-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px; /* slightly bigger */
  height: 22px; /* slightly taller for spacing */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

/* The 3 bars */
.nav-toggle .bar {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #1D3557; /* dark navy */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile: show hamburger */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
}

/* Optional: Animate hamburger into "X" when active */
.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
