
    :root {
        --light-gray: #f5f5f3;
        --red: #f85539;
        --dark-brown: #834333;
        --fs-400: clamp(1.4rem, 1vw, 2rem);
        --fs-500: clamp(2rem, 2vw, 4rem);
        --fs-600: clamp(2.5rem, 4vw, 6rem);
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }   
    

html{
    font-size: 72.5%;
}
ul {
    list-style: none;
}
  
a {
    color: inherit;
    text-decoration: none;
}
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-400);
  font-weight: 400;
  background: var(--light-grey);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container {
  max-width: 180rem;
  min-height: 25vh;
  margin: 0 auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('public/sea.jpg');  
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
}
.main-container{
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Poppins', sans-serif; 
    position: relative;
}
.text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 1rem;
    margin: 0 auto;
    padding: 1rem;
    max-width: 40rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
}
.text p {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 400;
    color: #444;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}
.text p:hover {
    color: #ff6f61; 
    transform: translateX(5px); 
}
.logo {
    text-decoration: none;
    font-size: var(--fs-600);
    font-weight: 900;
    color: var(--red);
    letter-spacing: 3px;
    text-transform: uppercase;    
}
nav {
    height: 10rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
.nav .mobile-nav,
.nav input[type="checkbox"] {
    position: absolute;
    right: 3rem; /* Adjust this distance to your liking */
    top: 10%; /* Vertically center both */
    width: 30px;
    height: 30px; /* Adjust size as needed */
    display: none;
}
.nav input[type="checkbox"]{
    z-index: 1;
    opacity: 0;
    cursor: pointer;
}
.nav .nav-item-list{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 75px;
    padding-left: 75px;
}
.nav .nav-item-list li {
    list-style-type: none;

}
.nav .nav-item-list li a{
    position: relative;
    display: inline-block;
    padding: 10px;
    text-decoration: none;
    color: var(--dark-brown);
    font-size: var(--fs-400);
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 5px;
    cursor: pointer;
    margin-top: 1.5rem;
}
.nav .nav-item-list li a:before{
    content: '';
    width: 100%;
    height: 3px;
    top: 75%;
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--red);
    transition: transform .5s ease-in-out;
    transform: translateY(-35px) scale(0);
}
.nav .nav-item-list li a:hover:before{
    transform: translateY(0) scale(1); 

}
.nav .nav-item-list li a:first-child{
    margin-left: 0;
}
.nav .nav-item-list li a:last-child{
    margin-right: 0;
}

.container h1,
.container p,
.main-button {
  animation: returnToOrigin 0.5s ease-in-out forwards;
}
.main-image {
    max-width: 45rem;
    animation-delay: 1s;
  }
.subtitle {
    padding-top: 3rem;
    padding-bottom: 3rem;
    position: relative;
    text-align: center;
}
.banner {
    width: 100%; 
    min-height: 85vh; 
    height: auto;
    overflow: hidden;
    position: relative;
    display: flex;
}

.banner .slider {
    position: absolute;
    width: 390px;
    height: 325px;
    top: 35%;
    left: 50%;
    transform-style: preserve-3d;
    animation: autoRun 70s linear infinite;
    z-index: 2;
}

@keyframes autoRun {
    0% {
        transform: translate(-50%, -50%) perspective(1000px) rotateX(0deg);
    }
    100% {
        transform: translate(-50%, -50%) perspective(1000px) rotateX(360deg);
    }
}

.banner .slider .item {
    position: absolute;
    inset: 0;
    transform: 
        rotateX(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(400px);
    transition: transform 0.5s ease, scale 0.3s ease; 
}

.banner .slider .item:hover {
    transform: 
        rotateX(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(425px)
        rotateX(3deg); 
        transition: transform 0.5s ease, scale 0.3s ease; 

}        
.banner .slider .item img{
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
    border-radius: 9px;
    transition: transform 0.3s ease; 
    border: 4px solid #e0e0e0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), 0 -6px 12px rgba(255, 255, 255, 0.2);
    background-color: #fff;
}
footer {
    width: 100%;
    height: 3rem;
    margin-bottom: 1rem;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    font-size: x-small; 
}
  
/* Mobile-specific adjustments */
@media only screen and (max-width: 768px) {
    .container {
        padding: 0 4rem;
      }
    .banner{
        min-height: 65vh;
    }
    .banner .slider {
        width: 250px; /* Smaller size for mobile */
        height: 250px;

    }
    .banner .slider .item {
        transform: 
            rotateX(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(300px); /* Adjust Z position for smaller screens */
    }
    .banner .slider .item:hover {
        transform: 
            rotateX(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(325px)  
            rotateX(3deg);
    }
    
    .banner .slider .item img {
        object-fit: cover; /* Ensure images fill container */
        border-radius: 3px; /* Slightly smaller border radius for mobile */
    }
    .nav{
        display: block;
    }
    .logo{
        display: block;
    }
    .nav .nav-item-list{
        display: none;
        text-align: center;
    }
    .nav input[type="checkbox"]{
        display: block;
    }
    .nav input[type="checkbox"]:checked ~ .nav-item-list{
        display: block;
    }
    .nav .mobile-nav{
        display: block;
    }
    .nav .logo a{
        bottom: 40px;
        display: block;
    }
}


