@import url('https://fonts.googleapis.com/css2?family=Knewave&display=swap');

* {
    font-family: 'Knewave', cursive;
    font-weight: 100;
    box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

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

body {
    background: #fff;
    color: #000;
    margin: 0;
    font-family: sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.parallax-container {
    height: 100vh;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 0 0 10px black;
    font-size: 3rem;
}

.layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    will-change: transform;
    pointer-events: none;
}

.layer[data-depth="0.3"] {
    background-image: url('../images/banner-images/city-back.png');
    background-size: contain;
    z-index: 1;
}

.layer[data-depth="0.6"] {
    background-image: url('../images/banner-images/city-front.png');
    background-size: contain;
    z-index: 3;
}

.layer.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../images/banner-images/pepper-huge.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    z-index: 2;
    will-change: transform;
    pointer-events: none;
}

.cloud-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-image: url('../images/banner-images/clouds.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: white;
    padding-top: 40vh;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.section {
    height: 100vh;
    background: #111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 10;
    position: relative;
    padding: 0 5%;
}

.section-content {
    display: flex;
    width: 100%;
    max-width: 1400px;
    align-items: center;
    gap: 40px;
}

.circle-logo {
    flex: 1;
    background-image: url('../images/banner-images/circle-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 450px;
}

.text-content {
    flex: 1;
}

.text-content h1 {
    color: #f8d680;;
    font-size: 3.5rem;
    font-weight:100;
}

.text-content p {
    font-family: 'Comic Relief', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: transform, opacity;
}

.animate-left {
    transform: translateX(-100px);
}
.animate-right {
    transform: translateX(100px);
}

.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


.image-carousel-section {
  background: #b41524;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 40px 20px;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
}

.carousel-header {
  text-align: center;
  margin-bottom: 0px;
}

.carousel-header h1 {
  font-size: 2.5rem;
  color: #f8d680;
  font-family: 'Knewave', cursive;
  margin: 0;
}


.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.contact-section {
    background: #111;
    color: #fff;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.contact-container {
    max-width: 600px;
    width: 100%;
}

.contact-container h1,
.carousel-header h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 3.5rem;
    color: #f8d680;
}

.contact-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-container label {
    font-size: 1rem;
    color: #f8d680;
}

.contact-container input,
.contact-container textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: #333;
    color: #fff;
}

.contact-container button {
    padding: 12px;
    background-color: #b41524;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.contact-container button:hover {
    background-color: #89101a;
}

.site-footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.site-footer {
    position: relative;
    z-index: 10;
    background-color: #2a5e49;
}


.site-footer a {
    color: #b41524;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/***MEDIA QUERIES***/

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

  .layer {
    position: absolute !important; /* Instead of fixed */
    background-attachment: scroll;
    transform: none !important; /* Disable any transform applied by JS */
    height: 100%;
  }

  /* Disable the effect for layers with specific data-depth values */
  .layer[data-depth] {
    transform: none !important; /* Reset any transform effect */
    position: absolute; /* Ensure they scroll normally */
  }

  .layer[data-depth="0.1"] {
    background-position: center top;
    background-size: contain;
    z-index: 0;
  }

  .parallax-container {
    height: 45dvh;
  }

  .content {
    padding-top: 20vh; /* Adjust content centering */
    font-size: 2rem;
  }

  body {
    font-size: 16px;
  }

.section {
    position: relative;
    z-index: 5;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    padding: 40px 20px;
}

.section-content {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.text-content {
  width: 100%;
  padding: 0;
}

.text-content h1 {
  font-size: 2rem;
}

.text-content p {
  font-size: 1rem;
  line-height: 1.5;
  padding: 0 10px;
}

.circle-logo {
  order: 2; 
  height: 200px;
  width: 100%;
  background-size: contain;
  background-position: center;
}

.carousel-header {
  margin-bottom: 0px;
}

.carousel-header h1,
.contact-container h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

  .carousel-track {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
    transform: translateX(0);
  }

  .carousel-track img {
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: center;
    margin: 0 auto;
  }

  .carousel-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 8px;
  }

  .contact-container {
    padding: 0 10px;
  }

  .contact-container label,
  .contact-container input,
  .contact-container textarea,
  .contact-container button {
    font-size: 1rem;
  }

  .site-footer {
    font-size: 0.8rem;
    padding: 20px 10px;
  }  
}

@media screen and (max-width: 1024px) and (orientation: landscape) {
  .section {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 5%;
    height: auto;
  }

  .parallax-container {
    height: 100vh; /* Adjust height to a larger value for landscape mode */
  }

  .text-content h1 {
    font-size: 2.2rem; /* smaller heading */
    text-align: center;
  }

  .text-content p {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
  }

  .circle-logo {
    order: -1; /* move logo to the top */
    height: 250px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
    background-position: center;
  }

  .carousel-track {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
    transform: translateX(0);
  }

  .carousel-track img {
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: center;
    margin: 0 auto;
  }

  .carousel-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .text-content {
    width: 100%;
    text-align: center;
  }

  .text-content h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .text-content p {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
  }  

  .layer {
    position: absolute !important; /* Instead of fixed */
    background-attachment: scroll;
    transform: none !important;
  }

  .cloud-layer {
    background-attachment: scroll;
    background-size:cover;
    height: 130vh;
  }
}
