*, *::before, *::after {
  box-sizing: border-box;
  scrollbar-color: transparent transparent; /* thumb and track color */
  scrollbar-width: 0px;
  /* border: 4px dotted darkred; */
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  z-index: 0;
}

/* Navigation */

/* General reset and base styles */
.navbar {
  z-index: 1;
  display: flex;
  /* position: absolute;
  top: 0;
  left: 0;
  right: 0; */
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.menu-items {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu-items li a {
  color: #156669;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

/* Hide the checkbox input visually but keep it accessible */
#menu-toggle {
  display: none;
}

/* Style the hamburger icon (label) */
.hamburger-icon {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  background-color: #156669;
  transition: all 0.3s ease-in-out;
}



/* Typography */

h1, h2, h3, h4, h5, h6 {
  color: #156669;
  margin: 0;
  font-family: 'Molle', cursive;
  font-style: italic;
  line-height: 1;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 3rem;
}

.about-section h1 {
  margin-bottom: .5em;
}
.about-container p {
  margin-bottom: 1em;
}

.street-art-section h2,
.fiber-friends-section h2,
.gallery-section h2 {
  text-align: center;
}

.mission-section h2 {
  color: #FFFFFF;
  text-shadow: 0px 0px 2px #000;
}

footer a {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1em;
  color: white;
  text-decoration: none;
}

footer i {
  display: inline;
}

/* Layout */

header {
  position: sticky;
  top: 0;
  background-color:  rgba(240, 205, 255, 1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  z-index: 100;
}

header.scrolled {
  background-color: rgba(250, 235, 215, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4em 0;
  min-height: 100vh;
}

.container {
  width: 80%;
  max-width: 1024px;
  margin: 0 auto;
}

.hero-section {
  min-height: 100vh;
  background: #E8B981;
  background: radial-gradient(circle, rgba(232, 185, 129, 1) 0%, rgba(240, 205, 255, 1) 53%);
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5em;
}

.heading-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1em;
  align-items: center;
}

.about-section {
  background: #EEECDE;
  background: linear-gradient(135deg, rgba(238, 236, 222, 1) 0%, rgba(240, 205, 255, 1) 33%, rgba(232, 190, 128, 1) 67%, rgba(238, 236, 222, 1) 100%);
}

.about-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.street-art-section {
  background: #B2DCFA;
  background: linear-gradient(68deg, rgba(178, 220, 250, 1) 20%, rgba(240, 205, 255, 1) 40%, rgba(232, 190, 128, 1) 60%, rgba(178, 220, 250, 1) 80%);
}

.mission-section {
  background: url(/images/sky-bg-img.png) no-repeat center/cover;
  padding-bottom: 6em;
}

.mission-container {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.fiber-friends-section {
  background: #EEECDE;
  background: linear-gradient(130deg, rgba(238, 236, 222, 1) 25%, rgba(244, 217, 252, 1) 44%, rgba(245, 212, 164, 1) 56%, rgba(238, 236, 222, 1) 75%);
}

.gallery-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background: radial-gradient(circle, rgba(232, 185, 129, 1) 0%, rgba(240, 205, 255, 1) 53%);
  padding: 1em 0;
  overflow-x: hidden;
}

.gallery-main h1 {
  margin: 0;
  flex-shrink: 0;
}

.testimonials-section {
  background: #D9F49E;
  background: linear-gradient(60deg, rgba(217, 244, 158, 1) 25%, rgba(196, 166, 180, 1) 45%, rgba(136, 166, 210, 1) 55%, rgba(217, 244, 158, 1) 75%);
}

.testimonials-container {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  justify-content: center;
  align-items: center;
}

footer {
  background-color: #156669;
  color: white;
  text-align: center;
  padding: 1em 0;
}

footer a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5em;
}

.cards {
  padding-top: 2em;
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  justify-content: center;
  align-items: start;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5em;
  max-width: 300px;
  text-align: center;
}

/* Images */

.hero-img {
  border-radius: 20px;
  width: 100%;
}

.card-img-container {
  display: block;
  margin: 0 auto;
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.card-img-container img {
  display: block;
  position: absolute; 
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.street-art-section img,
.fiber-friends-section img,
.gallery-section img {
  border-radius: 50%;
}

.about-section img {
  border-radius: 20px;
  width: 100%;
  margin-bottom: 1.5em;

}

/* Image Carousels */

@keyframes tonext {
  75% {
    left: 0;
  }
  95% {
    left: 100%;
  }
  98% {
    left: 100%;
  }
  99% {
    left: 0;
  }
}

@keyframes tostart {
  75% {
    left: 0;
  }
  95% {
    left: -300%;
  }
  98% {
    left: -300%;
  }
  99% {
    left: 0;
  }
}

@keyframes snap {
  96% {
    scroll-snap-align: center;
  }
  97% {
    scroll-snap-align: none;
  }
  99% {
    scroll-snap-align: none;
  }
  100% {
    scroll-snap-align: center;
  }
}

*::-webkit-scrollbar {
  width: 0;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}

* {
  -ms-overflow-style: none;
}

ol, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 5em);
  filter: drop-shadow(0 0 10px #0003);
  perspective: 100px;
  background: transparent;
}

@media (min-width: 768px) {
  .carousel {
    max-width: 1200px;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.carousel__viewport {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: scroll;
  counter-reset: item;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-color: transparent;
  counter-increment: item;
}

.carousel__snapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.carousel__snapper {
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (hover: hover) {
  .carousel__snapper {
    animation-name: tonext, snap;
    animation-timing-function: ease;
    animation-duration: 4s;
    animation-iteration-count: infinite;
  }

  .carousel__slide:last-child .carousel__snapper {
    animation-name: tostart, snap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__snapper {
    animation-name: none;
  }
}

.carousel:hover .carousel__snapper,
.carousel:focus-within .carousel__snapper {
  animation-name: none;
}

.carousel__navigation {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
}

.carousel__navigation-list,
.carousel__navigation-item {
  display: inline-block;
}

.carousel__navigation-button {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #333;
  background-clip: content-box;
  border: 0.25rem solid transparent;
  border-radius: 50%;
  font-size: 0;
  transition: transform 0.1s;
}

.carousel::before,
.carousel::after,
.carousel__prev,
.carousel__next {
  position: absolute;
  top: 50%;
  width: 4rem;
  height: 4rem;
  transform: translateY(-50%);
  border-radius: 50%;
  font-size: 0;
  outline: 0;
}

.carousel::before,
.carousel__prev {
  left: -1rem;
}

.carousel::after,
.carousel__next {
  right: -1rem;
}

.carousel::before,
.carousel::after {
  content: '';
  z-index: 1;
  background-color: #333;
  background-size: 1.5rem 1.5rem;
  background-repeat: no-repeat;
  background-position: center center;
  color: #fff;
  font-size: 2.5rem;
  line-height: 4rem;
  text-align: center;
  pointer-events: none;
}

.carousel::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%23fff'/%3E%3C/svg%3E");
}

.carousel::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%23fff'/%3E%3C/svg%3E");
}

/* Links */

.hero-section a {
  background-color: #eeecde;
  text-decoration: none;
  color: #156669;
  padding: .75em 1.5em;
  border: 1px solid #156669;
  border-radius: 5px;
}

/* Media Queries */

/* --- Mobile Styles (using media queries) --- */
@media screen and (max-width: 768px) {
  .navbar {
    justify-content: space-between;
  }
  .hamburger-icon {
    display: flex; /* Show the icon on mobile */
  }

  .menu-items {
    color: #fff;
    display: none; /* Hide the menu by default on mobile */
    position: absolute;
    right: 0;
    top: 45px; /* Adjust based on navbar height */
    background-color: #156669;
    flex-direction: column;
    width: 100%;
    text-align: left;
  }

  .menu-items li a {
    color: #fff;
    padding: 15px 20px;
  }

  /* The core CSS-only trick: show menu when checkbox is checked */
  #menu-toggle:checked ~ .menu-items {
    display: flex;
  }

  /* Optional: Animate the hamburger to an 'X' shape when open */
  #menu-toggle:checked ~ .hamburger-icon span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  #menu-toggle:checked ~ .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle:checked ~ .hamburger-icon span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
}

@media (min-width: 768px) {
  .hero-container {
    flex-direction: row-reverse;
  }
  
  .heading-container {
    align-items: start;
  }
  
  .hero-img {
    max-width: 50%;
  }
  
  .testimonials-container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .about-section img{
    max-width: 400px;
    float: right;
    margin-left: 1.5em;
  }
}


@media (min-width: 1024px) {
  .hero-img {
    width: 50%;
    max-width: 400px;
  }

  .mission-section h2 {
    max-width: 67%;
  }
}

@media (min-width: 1280px) {
  .mission-section h2 {
    max-width: 50%;
  }
}