* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #2f4f4f;
    background-color: #16251d;
    margin: 0;
    height: 100vh; 
}

header {
    background-color: transparent;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.transparent-header {
    background-color: rgba(0, 0, 0, 0);
}

.scrolled-header {
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

header .nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 2rem;
    font-size: 1.2rem;
}

header .nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.logo {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin-left: 10px;
}

.big5-logo {
    width: 120px;
}

.navbar {
    list-style-type: none;
    display: flex;
    margin-left: auto;
    display: flex;
    justify-content: space-between;
}


.navbar a {
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #44cf44;
}

.navbar .contact-l{
    color: #4bf768;
}

.navbar .contact-l:hover {
    color: #44cf44;
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.hero-carousel {
    margin-top: 0;
    padding: 0; 
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100vh;
    position: relative;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.459), rgba(0, 0, 0, 0));
    z-index: 2;
    pointer-events: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 10;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: white;
    font-size: 2.5rem;
    padding: 10px;
    cursor: pointer;
    border: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    color:#2e8b57
}


.h-btn {
    background-color: transparent;
    color: #ffffff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-style: double;
    border-radius: 40px;
    transition: background 0.3s ease;
}

.h-btn:hover {
    background-color: #2e8b5656;
    color: #ffffff;
}

.video {
    padding: 5rem 0 0 0;
    margin: 0 auto;
    text-align: center;
}

video {
    border-radius: 10px;
}

.about {
    padding: 10rem 2rem;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #16251d;
}

section p {
    font-size: 1.2rem;
    font-weight: 600;
    max-width: 800px;
    margin: 2rem auto;
    color: #ffffff;
}

.location {
    padding-top: 60px;
    filter: brightness(80%);
}

.contact-btn {
    background-color: #caffd5;
    color: #2f4f4f;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 40px;
    transition: background 0.3s ease;
}

.contact-btn:hover {
    background-color: #2f4f4f;
    color: #fff;
}


.image-overlay-section {
    padding: 50px 0;
    display: flex;
    justify-content: center;
    background-color: transparent;
  }
  
  .container {
    display: flex;
    gap: 10px;
    width: 99%;
  }
  
  .overlay-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .overlay-item img {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 0.3s ease;
  }
  
  .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: height 0.5s ease;
  }
  
  .overlay-text {
    color: white;
    position: absolute;
    bottom: 20px;
    left: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
  }
  
  .overlay-item:hover .overlay {
    height: 100%;
  }
  
  .overlay-item:hover .overlay-text {
    transform: translateY(0);
  }
  
  .overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .overlay p {
    font-size: 16px;
  }
  

footer {
    background-color: transparent;
    color: white;
    padding: 20px;
    position: relative;
    text-align: right;
}

footer p {
   margin-right: 200px; 
}

.menu {
    background-color: transparent;
    display: flex;
    align-items: baseline;
    padding: .5rem;
    gap: 2rem;
    text-decoration: none;
    font-family: "Quicksand", Arial;
    font-size: 20px;
    font-style: normal;
  }
  
  
  .mobile-nav-toggle {
    display: none;
  }

  @media (max-width: 1200px) {
    .menu {
        --gap: 2em;

        position: fixed;
        z-index: 1000;
        inset: 0 40% 0 0;

        flex-direction: column;
        padding: min(30vh, 15rem) 2em;

        background: hsla(0, 0%, 11%, 0.678);
        backdrop-filter: blur(1rem);
        border-radius: 5px;

        transform: translateX(-100%);
        transition: transform 350ms ease-out;

    }

    .menu[data-visible="true"] {
        transform: translateX(0%);
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 1001;
        background-image: url("/images/menu.svg");
        background-color:transparent;
        width: 4rem;
        border: 0;
        aspect-ratio: 1;
        top: 1.6rem;
        right: 1rem;
      }
}


@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .cta-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
    }

    .prev, .next {
        font-size: 1.5rem;
        padding: 5px;
    }

    .hero-carousel {
        height: 85vh;
    }

    .carousel-slide {
        height: 85vh;
    }


        .container {
          flex-direction: column;
          gap: 10px;
          width: 100%;
        }
      
        .overlay-item {
          width: 100%;
        }
      
        .overlay h3 {
          font-size: 20px;
        }
      
        .overlay p {
          font-size: 14px;
        }
      
        .image-overlay-section {
          padding: 30px 10px;
        }
      
        .overlay-text {
          bottom: 10px;
          left: 10px;
        }

              
}

@media (max-width: 576px) {

    .logo {
        color: transparent;
    }

    .h-btn {
        padding: 0.4rem 1.5rem;
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-content .cta-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }


    .hero-carousel {
        height: 80vh;
    }

    .carousel-slide {
        height: 80vh;
    }

    footer p {
        margin-right: 40px; 
     }


    .navbar a {
        font-size: 1rem;
        padding: 0;
    }
}
