/* ================== Imports ================== */
@layer base, utilities,demo;
@import url(https://fonts.bunny.net/css?family=kodchasan:200,400,600)
layer(demo);

/* ================== FONTS ================== */
@font-face {
  font-family: "Queensides";
  src: url("../fonts/Queensides-3z7Ey.ttf") format("truetype");
}

@font-face {
  font-family: "QueensidesLight";
  src: url("../fonts/QueensidesLight-ZVj3l.ttf") format("truetype");
}

@font-face {
  font-family: "QueensidesMedium";
  src: url("../fonts/QueensidesMedium-x30zV.ttf") format("truetype");
}

/* ================== GLOBAL ================== */

html {
  scroll-behavior: smooth;
  width: 100%;
}   

body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #ffffff;
  color: #000;
}
a {
    color: inherit;
    text-decoration: none;
}
/* ================== NAVBAR ================== */
nav {
  width: 70%;
  margin: 10vh auto 0 auto;
  border-radius: 50px;
  border: 1px solid #ffffff52;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000000 !important;
  padding: 0 1vw;
  background-color: rgba(15, 15, 15, 0.8);
  background-image: url();

  background: transparent url("img/Rectangle 13.svg") 0% 0% no-repeat
    padding-box;
  /* Example overlay */
  z-index: 1;
  opacity: 1;
  box-shadow: 20px 20px 20px #00000029;

  -webkit-backdrop-filter: blur(5px);
  /* for Safari */
  backdrop-filter: blur(5px);
  /* this creates the blur behind the box */
}

/* ensure nav is relatively positioned for absolute child */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center; /* <-- center items horizontally */

  position: relative;
  /* important */
}

nav a {
  color: #111;
  text-decoration: none;
  display: inline-block;
  font-family: "QueensidesLight", Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1vw, 14px);
  margin: 15px 2vw;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #111;
}

nav a.active {
  color: #111;
  font-weight: bold;
}

/* ================== CONTAINERS ================== */
.container {
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}
#container1 {
  --img-aspect: 56.25%; /* (imageHeight / imageWidth) * 100%, set to correct value for your image (16:9 = 56.25%) */

  background-image: url(../img/bg1.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain; /* ensure the whole image is visible */

  margin: 2vw;
  width: calc(100% - 4vw);

  /* Remove fixed height and use padding-top to preserve aspect ratio so the container height equals the displayed image height */
  height: auto;
  padding-top: var(--img-aspect);
}

#container2 {
  --img-aspect: 56.25%; /* (imageHeight / imageWidth) * 100% — adjust to bg2.webp aspect ratio */

  background-image: url(../img/bg2.webp);
  background-repeat: no-repeat;
  background-position: center top; /* keep image anchored at top so content sits below */
  background-size: 100% auto; /* keep width at 96% and preserve aspect */
  position: relative;
  /* If you prefer the image to never be cropped regardless of container size,
         switch the line above to: background-size: contain; */

  margin: 10vh 2vw;
  width: calc(100% - 4vw);
  box-sizing: border-box;

  /* Make the container tall enough to show the whole image by preserving its aspect ratio.
         Adjust --img-aspect to match your bg2.webp image (e.g. 56.25% for 16:9). */
  padding-right: 2rem;
  padding-left: 2rem;
  padding-bottom: 3rem;
  min-height: calc(
    var(--img-aspect) + 3rem
  ); /* ensure content has space if needed */
}
#container2 #mobimg {
  display: none;
}
#container2 #deskimg {
  display: block;
}

#container2 h1 {
  font-family: "QueensidesLight", Arial, sans-serif;
  font-size: clamp(36px, 4vw, 50px);
  margin-top: 2vh;
  margin-left: 3vw;
  margin-bottom: 2vh;
  color: #813408;
}
#container2 p {
  font-family: "QueensidesMedium", Arial, sans-serif;
  font-size: clamp(16px, 1.2vw, 25px);
  margin-top: calc(-4vh + 4px);
  margin-left: 5vw;
  width: 50%;
  color: #111;
}
#container2 .dot {
  margin-left: 3vw;
  height: 12px;
  width: 12px;
  background-color: #813408;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #000;
}
#container2 img {
  width: calc(37% + 10px);
  position: absolute;
  right: 7px;
  top: 5px;
}

#container3 {
  width: 100%;
  display: flex;
  flex-direction: column; /* stack children vertically */
  align-items: center; /* center all children horizontally by default */
  gap: 1rem;
}
#container3 h1 {
  font-family: "QueensidesLight", Arial, sans-serif;
  font-size: clamp(36px, 4vw, 50px);
  margin-top: 2vh;
  margin-left: 7vw;
  margin-bottom: 20vh;
  color: #813408;
  align-self: flex-start;
}
section {
  width: 94%;
  margin: auto;
  margin-bottom: 10vh;
}

@layer demo {
  section {
    /* defaults */
    --_offset-steps: 8rem; /* distance up */
    --_scale-steps: 15; /* scale behind*/
    --_opacity-steps: 5; /* opacity behind */

    --_ani-duration: 300ms; /* transition on card elements */
    --_ani-delay: 200ms; /* delay on card elements (will be multiplied) */

    /* calculations */
    --_offset-steps-two: calc(var(--_offset-steps) * -1);
    --_offset-steps-three: calc(var(--_offset-steps) * -2);

    --scale-steps-two: calc(1 - var(--_scale-steps) * 0.01);
    --scale-steps-three: calc(1 - var(--_scale-steps) * 0.02);

    --opacity-steps-two: calc(1 - var(--_opacity-steps) * 0.02);
    --opacity-steps-three: calc(1 - var(--_opacity-steps) * 0.04);

    @media (width > 600px) {
      --_offset-steps: 4em; /* distance up */
    }

    display: grid;
    grid-template-areas: "stack";
    color: black;
    width: min(calc(100% - 2rem), 40rem);
  }

  label {
    height: fit-content;
    overflow-y: hidden;
    /* card defaults */
    --_bg-alpha: 0.5;
    --_border-radius: 70px;
    --_bg-dot-offset: 0px;
    --_bg-dot-color: var(--_bg-clr);

    position: relative;
    isolation: isolate;
    background: linear-gradient(270deg, #ffffff, #eae2d6);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    grid-area: stack;
    /*overflow: clip;*/
    transition: 500ms ease-in-out;
    border-radius: var(--_border-radius);
    border: 1px solid #707070;
    translate: 0 var(--_offset);
    order: var(--_order);
    z-index: var(--_order);
    scale: var(--_scale);
    opacity: var(--_opacity);
    font-family: "Kodchasan", sans-serif;

    &::before,
    &::after {
      content: "";
      position: absolute;
      border-radius: inherit;
      z-index: -1;
    }
    &::before {
      z-index: -1;
      inset: calc(var(--_bg-dot-offset) * -1);
      background-image: radial-gradient(
        var(--_bg-dot-color) 1px,
        transparent 0px
      );
      background-repeat: repeat;
      background-size: 5px 5px; /* adjust the spacing between the dots */
      background-position: center;
      border-radius: calc(var(--_border-radius) + var(--_bg-dot-offset));
    }
    &::after {
      background: linear-gradient(270deg, #ffffff, #eae2d6);

      inset: 0;
    }
  }
  /* define each card styles - these custom properties will be updated according to which card is currently selected */
  label:nth-of-type(1) {
    --_bg-clr: linear-gradient(270deg, #ffffff, #eae2d6);
    --_order: var(--_1-order);
    --_scale: var(--_1-scale);
    --_opacity: var(--_1-opacity);
    --_offset: var(--_1-offset);
    --_pointer-event: var(--_1-pointer-event);
    --_pointer-cursor: var(--_1-pointer-cursor);
  }
  label:nth-of-type(2) {
    --_bg-clr: linear-gradient(270deg, #ffffff, #eae2d6);
    --_order: var(--_2-order);
    --_scale: var(--_2-scale);
    --_opacity: var(--_2-opacity);
    --_offset: var(--_2-offset);
    --_pointer-event: var(--_2-pointer-event);
    --_pointer-cursor: var(--_2-pointer-cursor);
  }
  label:nth-of-type(3) {
    --_bg-clr: linear-gradient(270deg, #ffffff, #eae2d6);
    --_order: var(--_3-order);
    --_scale: var(--_3-scale);
    --_opacity: var(--_3-opacity);
    --_offset: var(--_3-offset);
    --_pointer-event: var(--_3-pointer-event);
    --_pointer-cursor: var(--_3-pointer-cursor);
  }

  section:has(input:nth-child(1):focus-visible) label:nth-of-type(1) article,
  section:has(input:nth-child(2):focus-visible) label:nth-of-type(2) article,
  section:has(input:nth-child(3):focus-visible) label:nth-of-type(3) article {
    rotate: 90deg;
  }

  /* 1 checked */
  section:has(input:nth-child(1):checked) {
    --_1-order: 3;
    --_1-scale: 1;
    --_1-opacity: 1;
    --_1-offset: 0;
    --_1-pointer-event: auto;
    --_1-pointer-cursor: pointer;

    --_2-order: 2;
    --_2-scale: var(--scale-steps-two);
    --_2-opacity: var(--opacity-steps-two);
    --_2-offset: var(--_offset-steps-two);

    --_3-order: 1;
    --_3-scale: var(--scale-steps-three);
    --_3-opacity: var(--opacity-steps-three);
    --_3-offset: var(--_offset-steps-three);
  }

  /* 2 checked */
  section:has(input:nth-child(2):checked) {
    --_2-order: 3;
    --_2-scale: 1;
    --_2-opacity: 1;
    --_2-offset: 1;
    --_2-pointer-event: auto;
    --_2-pointer-cursor: pointer;

    --_3-order: 2;
    --_3-scale: var(--scale-steps-two);
    --_3-opacity: var(--opacity-steps-two);
    --_3-offset: var(--_offset-steps-two);

    --_1-order: 1;
    --_1-scale: var(--scale-steps-three);
    --_1-opacity: var(--opacity-steps-three);
    --_1-offset: var(--_offset-steps-three);
  }
  /* 3 checked */
  section:has(input:nth-child(3):checked) {
    --_3-order: 3;
    --_3-scale: 1;
    --_3-opacity: 1;
    --_3-offset: 0;
    --_3-pointer-event: auto;
    --_3-pointer-cursor: pointer;

    --_1-order: 2;
    --_1-scale: var(--scale-steps-two);
    --_1-opacity: var(--opacity-steps-two);
    --_1-offset: var(--_offset-steps-two);

    --_2-order: 1;
    --_2-scale: var(--scale-steps-three);
    --_2-opacity: var(--opacity-steps-three);
    --_2-offset: var(--_offset-steps-three);
  }

  label > header {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--_bg-clr);
    transition: background-color var(--_ani-duration) ease-in-out;
    border-radius: var(--_border-radius) var(--_border-radius) 0 0;
  }

  label > header > h2 {
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
    transition: translate var(--_ani-duration) ease-in-out,
      opacity var(--_ani-duration) ease-in-out;
    transition-delay: var(--_delay-h2, 0);
    opacity: var(--_opacity, 0);
  }
  article > div {
    position: relative;
    padding: 0rem;
    display: grid;
    grid-template-columns: 1fr;
    place-items: start;
    gap: 2rem;
    @media (width > 600px) {
      grid-template-columns: 1fr 2fr;
    }
  }
  article img {
    width: 80%;
    border-radius: 50px;
    object-fit: cover;
    transition: var(--_ani-duration) ease-in-out;
    opacity: var(--_opacity, 0);
  }
  article .poem {
    display: flex;
    align-items: center;

    width: 80%;
  }
  #p1 {
    font-family: "Queensides", Arial, sans-serif;
    transition: var(--_ani-duration) ease-in-out;
    transition-delay: 500ms;
    opacity: var(--_opacity, 0);
    margin: 6rem 0 1rem 0;
    font-size: 1.5rem;
  }
  #p2 {
    font-family: "Queensides", Arial, sans-serif;
    transition: var(--_ani-duration) ease-in-out;
    transition-delay: 500ms;
    opacity: var(--_opacity, 0);
    margin: 8rem 0 1rem 0;
    font-size: 2rem;
  }
  #p3 {
    font-family: "Queensides", Arial, sans-serif;
    transition: var(--_ani-duration) ease-in-out;
    transition-delay: 500ms;
    opacity: var(--_opacity, 0);
    margin: 8rem 0 1rem 0;
    font-size: 3rem;
  }
}

/* general styling not relevant for this demo */
@layer base {
  * {
    box-sizing: border-box;
  }
  :root {
    color-scheme: light dark;
    --bg-dark: rgb(24, 24, 27);
    --bg-light: rgb(229, 229, 229);

    --txt-light: rgb(10, 10, 10);
    --txt-dark: rgb(245, 245, 245);
  }
  body {
    background-color: light-dark(var(--bg-light), var(--bg-dark));
    color: light-dark(var(--txt-light), var(--txt-dark));
    min-height: 100svh;
    margin: 0;
    padding: 2rem;
    font-size: 1rem;
    font-family: system-ui;
    line-height: 1.5;
    display: grid;
    place-items: center;
    gap: 2rem;
  }
}

@layer utilities {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
}

#container4 {
  width: 100%;
  margin-top: 10vh;
  min-height: calc(
    100vh - 10vh
  ); /* ensures container fills the viewport under the top offset */
  display: flex;
  flex-direction: column; /* stack image and headings vertically */
  justify-content: center; /* center items vertically */
  align-items: center; /* center items horizontally */
  gap: 1rem;
  text-align: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

#container4 #star {
  width: clamp(64px, 8vw, 160px); /* responsive but bounded */
  height: auto;
  display: block;
}

#container4 h1 {
  font-family: "QueensidesLight", Arial, sans-serif;
  font-size: clamp(50px, 5vw, 75px);
  color: #111;
  margin: 0;
}

#container4 h2 {
  font-family: "QueensidesLight", Arial, sans-serif;
  font-size: clamp(36px, 4vw, 50px);
  color: #813408;
  margin: 0;
}
#container4 h3 {
  font-family: "QueensidesLight", Arial, sans-serif;
  font-size: clamp(20px, 4vw, 25px);
  color: #ffffff;
  margin: 0;
  font-weight: 100;
}
#container4 .first-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}
#container4 .first-row > div {
  text-align: center;
  background: #676127;
  width: 20vw;
  padding-bottom: 1vh;
  border: 1px solid #000;
  border-radius: 50px;
}
#container4 .second-row {
  margin-top: 2vh;
  display: flex;
  justify-content: center;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}
#container4 .second-row > div {
  text-align: center;
  background: #676127;
  width: 20vw;
  padding-bottom: 1vh;
  border: 1px solid #000;
  border-radius: 50px;
}

#container4 .first-row > div:hover {
  background: #67612772;
  padding-bottom: 1vh;
  border: 1px solid #000;
  border-radius: 50px;
  transition: var(300ms) ease-in-out;
  color: #000 !important;
}
#container4 .second-row > div:hover {
  background: #67612772;
  border: 1px solid #000;
  border-radius: 50px;
  transition: 300ms ease-in-out;
  color: #000 !important;
}
#container4 h3:hover {
  transition: 300ms ease-in-out;
  color: #000;
}

/* Container controlling visibility per category */
.carousel-group {
  display: none;
}
.carousel-group.active {
  display: flex;
  gap: 1vw;
  flex-wrap: wrap;
  justify-content: center;
}

/* Category buttons (small visual binding to the categories you already have) */
.service-controls {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 18px 0;
}
.service-controls .category-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #222;
  transition: all 0.18s ease;
}
.service-controls .category-btn:hover {
  transform: translateY(-2px);
}
.service-controls .category-btn.active {
  background: #222;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

/* Carousel wrapper & layout */
.carousel {
  width: 30vw;
  max-width: 100%;
  background: #fff;
  border-radius: 90px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}
.carousel-inner {
  position: relative;
  width: 100%;
  height: 30vw;
  overflow: hidden;
}
.carousel .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.25s ease;
  padding: 12px;
  box-sizing: border-box;
  background: linear-gradient(
    270deg,
    #ffffff,
    #eae2d6 100%
  ); /* subtle caption gradient */
}
.carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 90px;
}
.carousel .slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* captions */
.carousel .caption {
  position: absolute;
  font-family: "QueensidesLight", Arial, sans-serif;
  left: 12px;
  right: 12px;
  bottom: 30px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  font-size: 14px;
}

/* Controls: prev & next */
.carousel button.prev,
.carousel button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background 0.12s ease;
}
.carousel button.prev:hover,
.carousel button.next:hover {
  background: rgba(0, 0, 0, 0.64);
}
.carousel button.prev {
  left: 8px;
}
.carousel button.next {
  right: 8px;
}

/* Indicators: dots */
.carousel .indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.carousel .indicators button {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.25);
  padding: 0;
  outline: 0;
  cursor: pointer;
}
.carousel .indicators button.active {
  background: #813408;
  transform: scale(1.05);
  border-color: #fff;
}

.category.active {
  background: #67612772 !important;
}
.category.active h3 {
  color: #000 !important;
}

#container4 h4 {
  font-family: "QueensidesLight", Arial, sans-serif;
  font-size: clamp(16px, 2vw, 25px);
  color: #111;
  margin: 0;
  margin-top: 4vh;
  font-weight: 300;
  width: 60%;
}

.separator {
  width: 10vw;
  height: 15px;
  background-color: #676127;
}
#container5 {
  width: 100%;
  min-height: calc(
    100vh - 10vh
  ); /* ensures container fills the viewport under the top offset */
  display: flex;
  flex-direction: column; /* stack image and headings vertically */
  justify-content: center; /* center items vertically */
  align-items: center; /* center items horizontally */
  gap: 1rem;
  text-align: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}
#container5 .row {
  display: flex;
  gap: 5vw;
  flex-direction: row;
}
#container5 .text {
  background: linear-gradient(270deg, #ffffff 0%, #eae2d6 100%);
  width: 35vw;
  height: calc(29vw - 6px);
  padding: 2vw;
  padding-left: 3vw;
  border: 1px solid #707070;
  border-radius: 90px;
}

#container5 h1 {
  font-family: "QueensidesLight", Arial, sans-serif;
  font-size: clamp(36px, 4vw, 50px);
  margin-top: 2vh;
  margin-bottom: 20vh;
  color: #813408;
}
#container5 h3 {
  font-family: "QueensidesMedium", Arial, sans-serif;
  font-size: clamp(16px, 2.7vw, 22px);
  margin-top: calc(-4vh + 4px);
  color: #111;
  font-weight: 100;
  text-align: left;
}
#container5 h3:nth-of-type(1) {
  margin-top: 5vh;
  margin-bottom: 10vh;
}
#container5 img {
  width: 35vw;
}
#container5 h2 {
  font-family: "QueensidesLight", Arial, sans-serif;
  font-size: clamp(25px, 5vw, 30px);
  color: #111;
  margin-bottom: 5vh;
  text-align: left;
}

/* ===== CONTAINER 6 ===== */
#container6 {
  width: 100%;
  padding: 6vh 4vw;
  box-sizing: border-box;
}

#container6 .section-title {
  font-size: 2.5rem;
  color: #8b3f0a;
  margin-bottom: 2rem;
  margin-left: 5vw;
  font-family: "QueensidesLight", Arial, sans-serif;
}

/* CARD */
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 3rem;
  padding-right: 0;
  border: 1px solid #707070;
  border-radius: 90px;
  background: #fff;
  height: 70vh;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 40%;
  align-items: center;
}

.contact-form input,
.contact-form textarea {
  width: 60%;
  padding: 0.9rem 1.2rem;
  border-radius: 25px;
  border: 1px solid #cfcfcf;
  outline: none;
  font-size: 1rem;
  background-color: transparent;
  font-family: "QueensidesLight", Arial, sans-serif;
  text-align: center;
  color: #111;
}

.contact-form textarea {
  resize: none;
  height: 120px;
}

.contact-form button {
  width: 140px;
  padding: 0.7rem;
  border: none;
  border-radius: 25px;
  background: #8b3f0a;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* IMAGE */
.contact-visual {
  width: 45%;
  display: flex;
  justify-content: center;
  padding-bottom: 20vh;
}

.contact-visual img {
  max-width: 100%;
  height: auto;
}

/* ===== FOOTER ===== */
#footer {
  margin-top: 3rem;
  padding: 1.2rem 2vw;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: #444;
  flex-wrap: wrap;
  font-family: "QueensidesLight", Arial, sans-serif;
}

#footer span {
  color: #aaa;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    width: 100%;
  }

  .contact-visual {
    width: 100%;
  }

  .contact-form button {
    align-self: center;
  }
}

/* ================== MOBILE VERSION ================== */
@media (max-width: 768px) {
  /* ===== GLOBAL ===== */
  body {
    padding: 1rem;
  }

  /* ===== NAVBAR ===== */
  nav {
    display: none;
    width: 95%;
    margin-top: 2vh;
    padding: 0.5rem 1rem;
  }

  nav ul {
    flex-wrap: wrap;
  }

  nav a {
    margin: 10px 12px;
    font-size: 16px;
  }

  /* ===== CONTAINER 1 ===== */
  #container1 {
    background-image: url(../img/mobbg1.webp);
    background-size: contain;
    background-position: center;
    height: 70vh;
    max-width: calc(100% - 10vw);
    margin-top: -7vw; /* equal left/right/top/bottom spacing */
    margin-left: -3vw;
    box-sizing: border-box;
    margin-bottom: 0;
  }

  /* ===== CONTAINER 2 ===== */
  #container2 {
    margin: 0vh 2vw;
    padding: 0;
    background-size: contain;
    background-image: url(../img/mobbg2.webp);
    min-height: 40vh;
  }

  #container2 h1 {
    margin-left: 0;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
  }

  #container2 p {
    width: 100%;
    text-align: center;
    width: 70%;
    margin-left: 15vw;
    font-size: 13px;
    line-height: 15px;
  }
  #container2 .dot {
    margin-left: 10vw;
  }

  #container2 img {
    src: url(../img/mobimg1.webp);
    position: static;
    width: 80%;
    margin: 2rem auto 0;
    display: block;
  }
  #container2 #mobimg {
    width: 95%;
    margin-top: 0;
    display: block;
  }
  #container2 #deskimg {
    display: none;
  }

  /* ===== CONTAINER 3 ===== */
  #container3 {
    max-height: 110vh;
  }
  #container3 h1 {
    margin-left: 0;
    margin-bottom: 20vh;
    text-align: center;
    align-self: center;
  }

  section {
    width: 90%;
  }

  /* ===== CARD STACK (DEMO SECTION) ===== */

  article img {
    width: 100%;
    border-radius: 45px;
  }

  #p1 {
    margin: 0rem 0 1rem;
    font-size: 1.2rem;
    text-align: center;
  }
  #p2 {
    margin: 0rem 0 1rem;
    font-size: 1.5rem;
    text-align: center;
  }
  #p3 {
    margin: 0rem 0 1rem;
    font-size: 2rem;
    text-align: center;
  }
  article .poem {
    display: flex;
    margin: auto;
    min-height: 45vh;
    align-items: center;
  }

  /* ===== CONTAINER 4 ===== */
  #container4 .first-row,
  #container4 .second-row {
    gap: 1.5rem;
  }

  #container4 .first-row > div,
  #container4 .second-row > div {
    width: 60vw;
  }

  #container4 h4 {
    width: 90%;
    text-align: center;
  }

  /* ===== CAROUSELS ===== */
  .carousel-group {
    flex-direction: column;
  }

  .carousel {
    width: 90vw;
    border-radius: 40px;
  }

  .carousel-inner {
    height: 60vw;
  }

  .carousel .slide img {
    border-radius: 40px;
  }

  /* ===== CONTAINER 5 ===== */
  #container5 {
    margin-top: 0;
  }
  #container5 .row {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  #container5 img {
    width: 90vw;
  }

  #container5 .text {
    width: 90vw;
    height: 90vw;
    height: auto;
    border-radius: 40px;
    padding: 6vw;
  }

  #container5 h1 {
    margin-left: 0;
    margin-bottom: 6vh;
    text-align: center;
  }
  #container5 h2 {
    margin-top: -5vh;
  }
  #container5 h2,
  #container5 h3 {
    text-align: center;
  }
  .separator {
    width: 30vw;
    height: 15px;
  }
  /* ===== CONTAINER 6 (CONTACT) ===== */
  #container6 .section-title {
    margin-left: 0;
    text-align: center;
  }

  .contact-card {
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-radius: 40px;
    gap: 3rem;
    height: fit-content;
  }

  .contact-form {
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }

  .contact-visual {
    width: 100%;
    padding-bottom: 0; /* remove bottom padding so it doesn't push to the bottom */
    margin-top: 0;
    order: -1; /* place the visual at the top of the column layout on mobile */
    margin-top: -10vh;
    margin-right: -3rem;
  }

  .contact-visual img {
    width: 100%;
  }

  /* ===== FOOTER ===== */
  #footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  #footer span {
    display: none;
  }
}
