/* =========================================================
   BIRCH BIRD — Unified Stylesheet (Homepage + Branding Page)
   ========================================================= */

/* Brand Colors */
:root {
  --birch-teal: #0d4d50;
  --birch-cadet: #5f9ea0;
  --birch-orange: #d97b29;
  --birch-bg: #faf9f9;
  --birch-text: #353232;
  --birch-offwhite: #f9f8f7;
}

/* Global */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  color: var(--birch-text);
  background: var(--birch-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Balthazar', 'Montserrat', serif;
  color: var(--birch-teal);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

h2 {
  font-size: 3rem;
  letter-spacing: 0.8px;
  margin-bottom: 0.8em;
  text-align: center;
}

@media (max-width: 768px) {
  h2 { font-size: 2rem; }
}

h3 {
  font-family: 'Balthazar', 'Montserrat', serif;
  color: var(--birch-cadet);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
nav {
  background: var(--birch-teal);
  padding: 0.2em 2em;
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.nav-logo img {
  width: 100px;
  height: auto;
} 

.nav-title {
  font-family: 'Balthazar', serif;
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 1.2px;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.8em;
  margin: 0; padding: 0;
}

nav a {
  text-decoration: none;
  font-family: 'Balthazar', serif;
  color: white;
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--birch-cadet);
}

nav a.cta {
  background: var(--birch-orange);
  color: white;
  padding: 0.5em 1em;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

nav a.cta:hover {
  background: #e48d42;
}

/* =========================================================
   HAMBURGER MENU — FIXED POSITION + RESPONSIVE ALIGNMENT
========================================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  gap: 5px;
  z-index: 2001; /* ensure it’s above nav and dropdown */
  position: fixed; /* keeps visible even when scrolling */
  top: 1.2em;
  right: 1.5em;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  transition: background 0.3s ease;
}

.hamburger:hover {
  background: rgba(255,255,255,0.15);
}

.hamburger div {
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Active (X) state */
.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
}
.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 🔹 Mobile adjustments */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    background: transparent; /* no white box unless hovered */
    top: 1.1em;
    right: 1.2em;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: var(--birch-offwhite);
    position: absolute;
    top: 70px; /* sits just below nav bar */
    right: 1em;
    width: 50%;
    max-width: 200px;
    padding: 1.2em 1.5em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    z-index: 2000; /* sits under hamburger */
    align-items: flex-start;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li a {
    display: block;
    width: 100%;
    color: var(--birch-teal);
    font-size: 1.1rem;
    padding: 0.6em 0;
    text-align: left;
    transition: color 0.3s ease;
  }

  nav ul li a:hover {
    color: var(--birch-orange);
  }
}

@media (max-width: 400px) {
  .hamburger {
    top: 1em;
    right: 0.8em;
    gap: 4px;
  }
  .hamburger div {
    width: 22px;
  }
}


/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero_ocean.jpg') center center / cover no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  filter: brightness(0.75);
  z-index: 0;
}

.hero-image::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255,255,255,0.3);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  width: 90%;
  max-width: 800px;
  padding: 0 1em;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-overlay h1 {
  font-family: 'Balthazar', serif;
  font-weight: 400;
  color: var(--birch-teal);
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
  margin: 0.4em 0;
  letter-spacing: 1px;
  line-height: 1.1;
  font-size: clamp(2rem, 5vw + 0.5rem, 4.5rem);
}

.hero-overlay p {
  color: white;
  max-width: 650px;
  line-height: 1.6;
  margin: 0.8em auto 1.8em;
  font-size: clamp(1rem, 2vw, 1.25rem);
  padding: 0 1em;
}

/* Explore More link centered near bottom of hero */
/* One bottom-anchored, full-width container */
.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;                 /* space from bottom on desktop */
  display: flex;
  flex-direction: column;     /* stack link above arrow */
  align-items: center;        /* center horizontally */
  gap: 0.7rem;                /* prevents overlap */
  z-index: 3;                 /* above image + mist */
}

/* Button/link styles (no absolute positioning here) */
.explore-link {
  display: inline-block;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  text-align: center;

  /* animations kept */
  opacity: 0;
  animation: fadeInHero 2.5s cubic-bezier(0.25, 1, 0.3, 1) forwards;
  animation-delay: 2s;
  transition: color 0.3s ease;
}
.explore-link:hover { color: var(--birch-cadet); }

/* Arrow sits below, centered by the container */
.arrow {
  font-size: 1.6em;
  color: white;
  cursor: pointer;

  opacity: 0;
  animation: fadeInHero 2.5s cubic-bezier(0.25, 1, 0.3, 1) forwards, bounce 2s infinite;
  animation-delay: 2.5s;
  transition: color 0.4s ease, text-shadow 0.4s ease;
  text-align: center;
}
.arrow:hover {
  color: var(--birch-cadet);
  text-shadow: 0 0 10px rgba(95,158,160,0.8),
               0 0 20px rgba(95,158,160,0.6),
               0 0 30px rgba(95,158,160,0.4);
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
    min-height: 420px;
  }
}




/* =========================================================
   BRANDING GALLERY PAGE
   ========================================================= */
#branding-gallery {
  background: var(--birch-offwhite);
  padding: 3em 2em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  padding: 2em 0;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(70%);
}

.gallery-item .overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 1em;
}
.gallery-item:hover .overlay { opacity: 1; }

/* =========================================================
   RESPONSIVE FILTER BAR (Always Centered)
========================================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1em;
  padding: 1em;
  background: var(--birch-offwhite);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 70px;
  z-index: 900;
}

.filter-btn {
  font-family: 'Balthazar', serif;
  font-size: 1rem;
  background: transparent;
  border: 2px solid var(--birch-teal);
  color: var(--birch-teal);
  padding: 0.5em 1.2em;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--birch-teal);
  color: white;
  transform: translateY(-2px);
}

/* ===============================
   TABLET VIEW
=============================== */
@media (max-width: 768px) {
  .filter-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
    padding: 0.8em;
    top: 60px;
  }

  .filter-btn {
    font-size: 0.95rem;
    padding: 0.45em 1em;
  }
}

/* ===============================
   MOBILE VIEW (Centered)
=============================== */
@media (max-width: 480px) {
  .filter-bar {
    display: flex;
    flex-wrap: wrap;            /* ✅ wraps to multiple rows if needed */
    justify-content: center;    /* ✅ stays centered no matter what */
    align-items: center;
    padding: 0.8em;
    gap: 0.6em;
    text-align: center;
  }

  .filter-btn {
    font-size: 0.9rem;
    padding: 0.4em 1em;
    flex: 0 1 auto;             /* ✅ prevents buttons from stretching */
    text-align: center;
  }
}

/* Fade-in animation for visible projects */
@keyframes fadeInProjects {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-item.fade-in {
  animation: fadeInProjects 0.5s ease forwards;
}
.filter-bar,
.filter-bar ul,
.filter-bar li {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* =========================================================
   STICKY FILTER BAR
========================================================= */
.filter-bar {
  position: sticky;
  top: calc(80px + 10px); /* pushes it just below the nav */
  z-index: 900;
  background: var(--birch-offwhite);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1em 0;
  animation: fadeInSticky 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
  animation-fill-mode: forwards;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Adjust shadow effect when scrolled */
body.scrolled .filter-bar {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .filter-bar {
    top: calc(60px + 8px);
  }
}



/* =========================================================
   STICKY FILTER BAR FADE-IN ANIMATION
========================================================= */
@keyframes fadeInSticky {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-bar {
  position: sticky;
  top: 80px;
  z-index: 900;
  background: var(--birch-offwhite);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1em 0;
  animation: fadeInSticky 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
  animation-fill-mode: forwards;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.scrolled .filter-bar {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}



/* =========================================================
   FILTERABLE GALLERY GRID
========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  padding: 2em;
  background: #fff;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: 0.5;
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 77, 80, 0.7);
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay h3 {
  font-family: 'Balthazar', serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-item.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}
.gallery-item {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}



/* =========================================================
   FILTER ANIMATIONS
========================================================= */
@keyframes fadeInProjects {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-item.fade-in {
  animation: fadeInProjects 0.5s ease forwards;
}



/* =========================================================
   MODAL + CAROUSEL
========================================================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex !important;
  opacity: 1;
}

/* ✅ Limit total modal height to keep it like a centered popup */
.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;               /* ✅ prevents the modal from touching screen edges */
  position: relative;
  padding: 1.5em;
  box-sizing: border-box;
  overflow-y: auto;                /* ✅ allows caption scrolling if it exceeds modal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.modal-carousel {
  display: flex;
  flex-direction: row;
  transition: transform 0.45s ease;
  will-change: transform;
}

/* ✅ Better Image Scaling */
.modal-carousel img {
  width: 100%;
  height: auto;
  max-height: 55vh;               /* ✅ smaller, so caption always visible */
  object-fit: contain;
  border-radius: 12px;
  flex: 0 0 100%;
  display: block;
  margin: 0 auto;
}

/* ✅ Dots */
.carousel-dots {
  text-align: center;
  margin-top: 0.5em;
}

.carousel-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.carousel-dots span.active {
  background: var(--birch-teal);
  transform: scale(1.2);
}

/* ✅ Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  background: rgba(13, 77, 80, 0.9);
  color: white;
  border: none;
  padding: 0.5em 0.8em;
  cursor: pointer;
  font-size: 1.3rem;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: var(--birch-teal);
}

.carousel-left {
  left: 0.5em;
}

.carousel-right {
  right: 0.5em;
}

/* ✅ Text / Caption Area */
.modal-text {
  margin-top: 1em;
  text-align: left;
  color: var(--birch-text);
  line-height: 1.6;
  overflow-y: auto;
  flex-grow: 1;
}
/* =========================================================
   MODAL CLOSE BUTTON (Restored Size & Brand Styling)
========================================================= */
.modal-close {
  position: absolute;
  top: 0.8em;
  right: 0.8em;
  background: var(--birch-teal);     /* ✅ brand dark teal color */
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;                       /* ✅ square shape */
  height: 32px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: background 0.3s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: var(--birch-cadet);    /* lighter teal on hover */
  transform: scale(1.05);
}

/* ✅ Responsive adjustment for smaller screens */
@media (max-width: 480px) {
  .modal-close {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    top: 0.6em;
    right: 0.6em;
  }
}


/* =========================================================
   RESPONSIVE ADJUSTMENTS
========================================================= */

/* Tablet View */
@media (max-width: 768px) {
  .modal-content {
    width: 92%;
    padding: 1.2em;
    max-height: 90vh;
  }

  .modal-carousel img {
    max-height: 50vh;             /* slightly smaller for tablets */
  }

  .carousel-left {
    left: 0.3em;
  }

  .carousel-right {
    right: 0.3em;
  }

  .carousel-btn {
    font-size: 1.1rem;
    padding: 0.4em 0.6em;
  }
}

/* Mobile View */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    padding: 1em;
    max-height: 92vh;
  }

  .modal-carousel img {
    max-height: 45vh;
  }

  .modal-text {
    max-height: 35vh;             /* allows scrolling for long captions */
    font-size: 0.95rem;
  }

  .carousel-btn {
    font-size: 1rem;
    padding: 0.35em 0.55em;
  }

  .carousel-left {
    left: 0.2em;
  }

  .carousel-right {
    right: 0.2em;
  }

  .carousel-dots span {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }

  
}

/* =========================
   CONTACT INFO SECTION
========================= */
#contact-info {
  background-color: #fffdf9;
  padding: 3em 1em;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.contact-info-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8em;
}

.contact-info-inner p {
  margin: 0;
  font-family: 'Balthazar', serif;
  font-size: 1.2rem;
  color: var(--birch-text);
}

.contact-info-inner a {
  color: var(--birch-teal);
  text-decoration: none;
}

.contact-info-inner a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 1.5em;
  margin-top: 0.8em;
}

.social-icons img {
  width: 28px;
  height: 28px;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icons img:hover {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .contact-info-inner p {
    font-size: 1.05rem;
  }
}

/* =========================
   CONTACT PAGE STYLES — REFINED
========================= */
#contact-page {
  background: #f9f9f7;
  padding: 4em 2em;
  text-align: center;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--birch-offwhite); /* 🌿 soft off-white tone */
  padding: 3em 3em; /* balanced interior space */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-container h2 {
  margin-top: 0;
  color: var(--birch-teal);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  text-align: left;
  margin-top: 2em;
}

.contact-form label {
  font-weight: 600;
  color: var(--birch-teal);
  margin-left: 0.2em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9em 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  background-color: #ffffff;
  color: var(--birch-text);
  box-sizing: border-box; /* ✅ prevents stretching beyond container */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--birch-teal);
  box-shadow: 0 0 5px rgba(13, 77, 80, 0.3);
}

.submit-btn {
  background-color: var(--birch-orange);
  color: white;
  padding: 0.9em;
  border: none;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background-color: var(--birch-cadet);
  transform: translateY(-2px);
}

#form-status {
  display: none;
  margin-top: 1em;
  color: var(--birch-teal);
  font-weight: bold;
  text-align: center;
}

/* Responsive refinement */
@media (max-width: 600px) {
  .contact-container {
    padding: 2em 1.5em;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }
}



/* =========================================================
   OTHER SITE SECTIONS (Artist, Portfolio, Resume, Contact)
   ========================================================= */
#artist, #heart, #portfolio, #resume, #contact { padding: 4em 2em; }

#artist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2em;
  padding: 4em 2em;
}
#artist img {
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  object-fit: cover;
}
#artist div {
  max-width: 550px;
}

#artist p {
  max-width: 400px;
  line-height: 1.6;
}

/* =========================================================
   ABOUT — HEART SECTION (Text left, Image right)
========================================================= */
#heart {
  display: flex;
  flex-direction: row-reverse;          /* puts image on the right, text on the left */
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 4em 2em;

  /* Distinct brand background to separate from section above */
  background: var(--birch-cadet);
}

/* Image on the right */
#heart img {
  width: clamp(260px, 30vw, 380px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

/* Text block on the left */
#heart > div {
  max-width: 640px;
  text-align: right;                    /* right-align heading and paragraph */
  color: var(--birch-offwhite);
}

/* Heading */
#heart h2 {
  font-family: 'Balthazar', serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: 1px;
  color: var(--birch-offwhite);
  margin: 0 0 0.6em 0;
  text-align: right;
  display: inline-block;
  border-bottom: 2px solid rgba(255,255,255,0.6); /* subtle underline accent */
  padding-bottom: 0.2em;
}

/* Paragraph */
#heart p {
  max-width: 55ch;                      /* nice readable line length */
  line-height: 1.7;
  color: var(--birch-offwhite);
  margin: 0 0 0 auto;                   /* keeps the block aligned to the right edge */
  text-align: right;
}

/* ---------------------------
   Responsive adjustments
--------------------------- */
@media (max-width: 900px) {
  #heart {
    flex-direction: column-reverse;     /* text above, image below on smaller screens */
    gap: 1.8rem;
    padding: 3em 1.5em;
  }

  #heart > div {
    text-align: center;
  }

  #heart h2 {
    text-align: center;
    border-bottom-color: rgba(255,255,255,0.5);
  }

  #heart p {
    margin: 0 auto;                     /* center paragraph on mobile */
    text-align: center;
  }

  #heart img {
    width: clamp(220px, 60vw, 360px);
  }
}


/* =========================================================
   INSPIRATION GRID
========================================================= */
#inspiration {
  background: white;
  text-align: center;
  padding: 4em 2em;
}

#inspiration h2 {
  font-size: 2rem;
  margin-bottom: 1em;
  color: var(--birch-text);
}

/* Main grid layout */
#inspiration .image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2em;
  margin-top: 1.5em;
}

/* ✅ Make all images same height */
#inspiration .image-grid img {
  width: 100%;
  height: 250px;              /* Fixed height for uniform rows */
  object-fit: cover;          /* Ensures full coverage without distortion */
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

/* Hover effect for subtle interactivity */
#inspiration .image-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 18px rgba(0,0,0,0.15);
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
  #inspiration .image-grid img {
    height: 200px;            /* slightly smaller images on tablets */
  }
}

@media (max-width: 480px) {
  #inspiration .image-grid img {
    height: 160px;            /* mobile-friendly height */
  }
}



/* ===============================
   PORTFOLIO SECTION (Portrait Layout)
=============================== */
#portfolio {
  background: #ffffff;
  text-align: center;
  padding: 4em 2em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
  justify-items: center;
}

.portfolio-item {
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 320px; /* keeps portrait proportion */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Portrait image area */
.portfolio-item img {
  width: 100%;
  height: 420px; /* 🪄 taller than wide */
  object-fit: contain; /* ✅ shows full image */
  background: #f5f5f5; /* subtle backdrop for odd aspect ratios */
  border-bottom: 1px solid #ddd;
  transition: transform 0.3s ease;
}

/* Caption below image */
.portfolio-item h3 {
  margin: 1em 0;
  font-size: 1.2rem;
  color: var(--birch-teal);
  transition: color 0.3s ease;
}

/* Hover Effects */
.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.portfolio-item:hover img {
  transform: scale(1.03);
}

.portfolio-item:hover h3 {
  color: var(--birch-cadet);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .portfolio-item img {
    height: 340px;
  }
}




/* RESUME SECTION */
#resume {
  background-color: #f8e8da; /* soft off-white-orange tone */
  color: var(--birch-teal);
  padding: 4em 8em;
  text-align: left;
}

/* Resume Header */
#resume h2 {
  font-family: 'Balthazar', serif;
  font-size: 3rem;          /* ✅ larger for visual hierarchy */
  letter-spacing: 1px;
  color: var(--birch-teal);
  margin-bottom: 1em;
  text-align: left;
  border-bottom: 2px solid var(--birch-cadet); /* subtle underline accent */
  display: inline-block;    /* ✅ keeps underline only under text */
  padding-bottom: 0.2em;
}

/* Subheadings */
#resume h3 {
  font-family: 'Balthazar', serif;
  color: var(--birch-cadet);
  font-size: 1.6rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

/* Paragraphs */
#resume p {
  max-width: 900px;
  line-height: 1.8;
  margin-bottom: 1.5em;
}

/* Lists for Skills & Experience */
#resume ul {
  list-style-type: disc;
  padding-left: 2em;
  margin: 1em 0;
}

#resume ul li {
  margin-bottom: 0.6em;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  #resume {
    padding: 3em 2em;
  }
  #resume h2 {
    font-size: 2.4rem;
  }
  #resume p {
    max-width: 100%;
  }
}



#contact {
  background: var(--birch-cadet);
  color: white;
  text-align: center;
}
#contact a { color: white; text-decoration: underline; }

/* ===============================
   LET'S CONNECT SECTION
=============================== */
#connect-section {
  position: relative;
  background: url('../images/hero_ocean.jpg') center center / cover no-repeat;
  height: 40vh; /* narrower than hero */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#connect-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.4); /* fade effect */
  z-index: 1;
}

.connect-overlay {
  position: relative;
  z-index: 2;
  color: var(--birch-teal);
}

.connect-overlay h2 {
  font-family: 'Balthazar', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--birch-teal);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(255,255,255,0.6);
}

.connect-btn {
  display: inline-block;
  background: var(--birch-orange);
  color: white;
  padding: 0.8em 2em;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.connect-btn:hover {
  background: var(--birch-cadet);
  transform: translateY(-3px);
}


/* ===============================
   UPDATED FOOTER
=============================== */
#footer {
  background: var(--birch-teal);
  color: white;
  text-align: center;
  padding: 3em 1.5em 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  color: white;
  font-family: 'Balthazar', serif;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--birch-cadet);
}

.footer-icons {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  align-items: center;
  margin-top: 0.8em;
}

.footer-icons img {
  width: 26px;
  height: 26px;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-icons img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-copy {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  margin-top: 1em;
  color: rgba(255,255,255,0.8);
}


/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInHero {
  0% {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ----------------------------------
   SAFARI NAVIGATION BAR FIX
---------------------------------- */
@supports (-webkit-touch-callout: none) {
  nav {
    height: auto !important;
    min-height: 60px;
    max-height: 80px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
  }

  nav ul {
    flex-wrap: nowrap !important;
    background: var(--birch-teal);
  }

  body {
    padding-top: 80px; /* ensures content isn't hidden behind nav */
  }
}
