* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  scroll-behavior: smooth;
  font-family: sans-serif;
}

html {
  scroll-snap-type: y mandatory;
  height: 100%;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center; /* centers the video on all screen sizes */
  z-index: -2;
  pointer-events: none; /* allows clicks to pass through the video */
}


.logo-box {
  position: fixed;
  top: -1px;
  left: -1px;
  width: 120px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* for iOS Safari */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.4s ease;
  cursor: pointer;
}

.logo-box.shrunk {
  width: 80px;
  height: 80px;
  transition: all 0.5s ease;
}

.logo {
  max-width: 100%;
  max-height: 100%;
}

.logo-box a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.snap-container {
  height: 100vh;
  width: 100vw;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.section {
  scroll-snap-align: start;
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden; /* 💡 Added this to keep everything inside the section */
}

.boxes-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(255, 255, 255);
  height: 100vh; /* Keep this to maintain the height */
}

/* Section 2: Carousel Boxes */
.carousel-wrapper {
  width: 100%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 30vw; /* give space on either side */
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-height: 100vh;
  overflow-y: hidden;
  margin-top: -80px;
}

.carousel {
  height: 560px;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel {
  display: flex;
  gap: 32px;
  align-items: center;
}

.carousel-box {
  width: 450px;
  height: 450px;
  flex-shrink: 0;
  scroll-snap-align: center;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}

.carousel-spacer {
  flex-shrink: 0;
  width: 40vw; /* same as padding on .carousel-wrapper */
  height: 1px; /* just to keep it valid; invisible */
}

.carousel-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.carousel-text {
  position: absolute;
  bottom: 40px;
  right: 56px;
  left: 56px;
  justify-content: space-between;
  display: flex;
  gap: 16px;
  z-index: 5;
  font-family: "Figtree", sans-serif;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: pointer;
  transition: opacity 0.4s ease, padding 0.3s ease;
}

.carousel-text.visible {
  opacity: 1;
}

.company-name {
  display: flex;       /* horizontal layout */
  align-items: center; /* vertical centering of brand + project pill */
  gap: 24px;
  font-weight: 700;
  font-size: 80px;
  line-height: 1;      /* don’t force a fixed height */
}

.brand-name {
  color: #e1e1e1;
  display: inline-block;
  line-height: 1; /* keeps text tight */
  vertical-align: middle;
  padding-bottom: 12px;
}

.project-name {
  font-size: 24px; /* match explore CTA */
  padding-top: 24px;
  font-weight: 600;
  color: currentColor;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;  /* vertically centre text in pill */
  line-height: 1;
  height: 52px;
}

.carousel-text:hover {
  padding: 0 40px; 
}

.explore-text {
  font-size: 20px;
  font-weight: 500;
  color: #B6C082; /* default color; changes dynamically */
  padding: 12px 32px;
  border: 2px solid currentColor;
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.explore-text:hover {
  opacity: 0.7;
}

.bamboo-section {
  position: relative;
  height: 100vh;
  background-color: #fff;
  overflow-y: auto; /* 👈 allows scrolling */
  overflow-x: hidden; /* 👈 prevent horizontal scroll */
  display: flex;
  justify-content: right;
  align-items: flex-start; /* 👈 align to top so scrolling works naturally */
  padding-top: 10vh;
  position: relative;
  padding: 8vw 5vw;
}

.progress-container {
  position: absolute;
  top: -40px;
  height: 40px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 8;
}

.progress-pills {
  display: flex;
  gap: 12px;
}

.pill {
  width: 48px;
  height: 8px;
  border-radius: 1px;
  background-color: #E6E6E6; /* grey */
  transition: background-color 0.4s ease;
  cursor: pointer;
}

.pill:hover {
  background-color: #cccccc;
}

.pill.active {
  background-color: #B6C082; /* green */
}

.pause-button {
  background: none;
  border: none;
  width: 40px; /* fixed width to prevent shifting */
  height: 40px;
  font-size: 24px;
  color: #B6C082;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pause-button:hover {
  color: #B6C082;
  opacity: 60%;
}

.text-wrapper {
  width: 70vw;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: bottom;
  position: relative;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.intro-text span {
  display: inline-block;
  white-space: pre;
}

.intro-text p {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 50px;
  color: #e1e1e1;
  transition: color 0.5s ease, opacity 0.5s ease;
  text-align: justify;
  text-justify: inter-word;
}

.intro-text p.active {
  display: block;
}

.bamboo-letter {
  display: inline-block;
  color: #e1e1e1;
}

.bamboo-word {
  display: inline-block;
  white-space: nowrap;
}

.contact-button {
  font-family: 'Figtree', sans-serif;
  position: absolute;
  bottom: 3vw;
  right: 5vw;
  font-size: 80px;
  font-weight: 650;
  background: none;
  border: none;
  color: #B6C082;
  opacity: 1;
  cursor: pointer;
  z-index: 2;
}

.contact-button:hover {
  opacity: 0.8;
  color: #4242AD;
}

.contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4242AD;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 60px 24px;
  z-index: 1000;
}

.contact-overlay.active {
  display: flex;
}

.close-icon {
  position: absolute;
  top: 48px;
  right: 48px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 1000;
}

.close-icon .bar {
  position: absolute;
  width: 48px;
  height: 6px;
  background-color: #ffffff; /* Match your menu close color */
  top: 50%;
  left: 0;
  transform-origin: center;
  transition: all 0.3s ease;
}

.close-icon .bar1 {
  transform: rotate(45deg);
}

.close-icon .bar2 {
  transform: rotate(-45deg);
}

.close-icon:hover {
  opacity: 0.7;              /* Slight fade on hover */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 600px;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Figtree', sans-serif;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid #4242AD;
  background-color: #e0ebff;
  color: #4242AD;
  border-radius: 2px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-family: 'Figtree', sans-serif;
  font-weight: 600; /* Bold */
  font-size: 16px;
  color: #4242AD;
  opacity: 1; /* Ensures full color opacity in all browsers */
}

.contact-form textarea {
  resize: none; /* Prevents manual resizing and hides the drag handle */
}

.contact-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 140px;
  line-height: 120px;
  color: #e0ebff;
  margin-bottom: 64px;
  text-align: center; /* Optional: center-align the heading */
}

.submit-button {
  background-color: #ffffff;
  color: #4242AD;
  font-size: 20px;
  font-weight: 600;
  border: none;
  padding: 0px;
  border-radius: 100px;
  cursor: pointer;
  width: 120px;
  height: 56px;
  margin: 0 auto; /* Horizontally center */
  display: block;
}

.submit-button:hover {
  opacity: 0.8;              /* Slight fade on hover */
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid rgba(255, 255, 255, 0.6);
}

.contact-icons {
  position: fixed;
  bottom: 48px;
  left: 48px;
  display: flex;
  gap: 16px;
  z-index: 1001; /* above overlay content but below close icon */
}

.contact-icons img {
  width: 56px;
  height: 56px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.contact-icons img:hover {
  opacity: 0.7;
}

.copy-toast {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: #FE8952;
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2000;
}

.copy-toast.active {
  opacity: 1;
  pointer-events: auto;
}

.side-panel {
  position: fixed;
  top: 0;
  left: -400px;
  width: 400px;
  height: 100vh;
  background-color: rgba(61, 60, 63, 0.35);
  z-index: 14;
  transition: left 0.4s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);         /* Main blur effect */
  -webkit-backdrop-filter: blur(8px); 
}

.side-panel.open {
  left: 0;
}

.close-pill {
  position: absolute;
  top: 32px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 16px;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  cursor: pointer;
  color: white;
  width: fit-content;
  margin-left: 24px;
  transition: background-color 0.3s ease;
}

.x-icon {
  font-size: 20px;
  line-height: 1;
}

/* Push logo when menu is open */
.logo-box.pushed {
  transform: translate(400px);
}

.menu-hint {
  position: fixed;
  top: 91px; /* Start 24px higher: 118px - 24px = 94px */
  left: -1px;
  width: 119.5px;
  height: 48px;
  background-color: #dff574;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Rubik Mono One', monospace;
  font-size: 24px;
  color: #4242AD;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 400ms ease, transform 400ms ease;
  pointer-events: none;
  z-index: 9;
  padding-top: 4px;
}

.menu-hint.visible {
  opacity: 1;
  transform: translateY(24px);
  pointer-events: auto; /* Enable clicks when visible */
}

.menu-hint.hiding {
  opacity: 0;
  transform: translateY(0);
  pointer-events: none; /* Disable clicks when hiding */
}

.menu-hint.visible:hover {
  color: #dff574;
  background-color: #4242AD;
  cursor: pointer;
}

/* Close icon inside panel */
.close-icon {
  font-size: 32px;
  color: #FFF0AA;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 60px;
  background: none;
  border: none;
}

/* Nav links */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 24px;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  padding-top: 72px;
  padding-left: 48px;
}

.side-nav .project-link {
  font-size: 18px; /* smaller than 28px */
  font-weight: 300;
  opacity: 0.8;
  color: #fff;
  margin-top: -16px;
}

.side-nav a {
  position: relative;
  padding-bottom: 6px; /* space for the underline */
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
  display: inline-block;
  width: 300px;
}

.side-nav a:hover {
  opacity: 0.6;
}

.side-nav a.project-link:hover {
  opacity: 1;
  font-weight: 500;
}

.side-nav a.active {
  color: #dff574; /* your orange */
  font-weight: 600;
}

.side-nav a {
  position: relative; /* anchor for the line */
}

.side-nav a.active::before {
  content: "";
  position: absolute;
  left: -12px;              /* 4px to the left of the text */
  top: 40%;
  transform: translateY(-50%);
  width: 1.6px;
  height: 28px;
  background-color:  #dff574; /* green */
  border-radius: 2px;
}


.close-pill:hover {
  opacity: 0.6;
}


.blur-overlay {
  position: fixed;
  top: 0;
  left: 0; /* aligns right next to the side panel */
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(16, 76, 230, 0.1); /* subtle dark overlay */
  z-index: 9; /* under logo-box (15) and menu (14) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.blur-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}




@media (max-width: 480px) {
  .logo-box {
    position: fixed;
    top: 0%;
    left: 0px;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.4s ease;
  }
  
  .logo-box.shrunk {
    width: 48px;
    height: 48px;
    transition: all 0.4s ease;
  }

  .menu-hint {
    position: fixed;
    top: 56px; /* Start 24px higher: 118px - 24px = 94px */
    left: 0px;
    width: 80px;
    height: 32px;
    background-color: #dff574;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Rubik Mono One', monospace;
    font-size: 18px;
    color: #4242AD;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 400ms ease, transform 400ms ease;
    pointer-events: none;
    z-index: 9;
    padding-top: 1px;
    padding-left: 2px;
  }
  
  .carousel-text {
    bottom: 40px;
    align-items: center;
    left: 24px;
    right: 24px;
    gap: auto;
    height: 60px;
  }

  .company-name {
    display: flex;
    flex-direction: column; /* stack brand + project vertically */
    align-items: flex-start; /* align left, or center if you prefer */
    gap: 0px; /* spacing between brand and project */
  }

  .brand-name {
    font-size: 28px;
    line-height: 30px;
    padding-bottom: 0px;
  }

  .project-name {
    display: inline-flex;
    align-items: center;
    font-size: 14px; /* slightly smaller on mobile */
    padding: 0px; /* match explore CTA padding */
    line-height: 1;
    height: 24px;
    border: none;
    color: currentColor;
    font-weight: 600;
  }

  .carousel-text:hover {
    padding: 0; 
  }

  .explore-text.clicked {
    opacity: 0.7;
  }

  .carousel {
    gap: 16px;
  }

  .carousel-wrapper {
    scroll-snap-type: x mandatory;
    padding: 0 calc(50vw - 35vw); /* Center the boxes better */
  }
  
  .carousel-box {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .explore-text {
    font-size: 14px;
    padding: 8px 16px;
    height: 38px;
    font-weight: 400px;
    border: 1.6px solid currentColor;
  }

  .intro-text p {
    font-size: 26px;
    line-height: 34px;
  }

  .contact-button {
    font-family: 'Figtree', sans-serif;
    font-size: 48px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-weight: 650;
  }

  .progress-container {
    position: absolute;
    top: 8px;
  }

  .intro-text {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 80px;
    margin-right: 8px;
    margin-bottom: 8px;
  }

  .contact-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 56px;
    margin-bottom: 40px;
  }

  .close-icon {
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
  }
  
  .close-icon .bar {
    width: 40px;
    height: 6px;
  }

  .contact-icons {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 1001;
  }
  
  .contact-icons img {
    width: 40px;
    height: 40px;
  }

  .pill {
    width: 32px;
    height: 6px;
  }

  .submit-button {
    height: 48px;
    line-height: 48px;
  }
  
  .side-panel {
    position: fixed;
    top: 0;
    left: -100vw;        /* hide completely off-screen */
    width: 100vw;
    height: 100vh;
    padding: 16px 8px;
  }
  
  .side-panel.open {
    left: 0;
  }
  
  /* Push logo when menu is open */
  .logo-box.pushed {
    transform: translateX(100vw);
  }
  
  /* Nav links */
  .side-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 20px;
    padding-left: 32px;
  }

  .side-nav .project-link {
    font-size: 16px; /* smaller than 28px */
    margin-top: -16px;
  }

  .close-pill {
    font-size: 14px;
  }

  .side-nav a {
    text-decoration: none;   /* no underline */
    color: white;            /* keep color white */
    transition: opacity 0.3s ease;
    position: relative; /* only animate opacity */
  }


  .side-nav a.active::before {
  content: "";
  position: absolute;
  left: -12px;              /* 4px to the left of the text */
  top: 40%;
  transform: translateY(-50%);
  width: 1.6px;
  height: 24px;
  background-color:  #dff574; /* green */
  border-radius: 2px;
}
}