@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;1,700&display=swap');
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.about{ 
    width: 100%;
    height: auto;
    padding: 90px 0;
    background-color: rgb(0, 0, 0);
}

.main{
    width: 1130px;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.carousel-container{
    padding: 2rem;

}
.slider-wrap{
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
}
.slider{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
    border-radius: 0.5rem;
    overflow: hidden;
    
}
.slider-nav{
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: auto;
    left: 25%;
    transform: translateX(-50%);
    z-index: 1;
}
.slider-nav a{
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.75;
    transition: opacity ease 250ms;
}
.slider-nav a:hover{
    opacity: 1;
}
.slider img{
    flex:1 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
    width: 200px;
    height: 600px;
    display: inline-block;
    cursor: pointer;
    background-position: center;
    background-size: cover;
    
    
}
.about-text h1{
    color: white;
    font-size: 40px;
    text-transform: capitalize;
    margin-bottom: 20px;
}
.about-text {
    width: 550px;
}
.about-text h5{
    color: white;
    font-size: 25px;
    text-transform: capitalize;
    margin-bottom: 25px;
    letter-spacing: 2px;
}
span{
    color: hsl(61, 100%, 55%);
}
.about-text p{
    color: #cfcfcf;
    letter-spacing: 1px;
    line-height: 28px;
    font-size: 18px;
    margin-bottom: 45px;
}


.about-text2 h2{
    color: white;
    font-size: 80px;
    text-transform: capitalize;
    margin-bottom: 20px;
    text-shadow: #cfcfcf;
}
.about-text2 {
    width: 550px;
    margin-left: 50px;
}

.about-text2 span{
    color: hsl(61, 100%, 55%);
}
.about-text2 p{
    color: #cfcfcf;
    letter-spacing: 1px;
    line-height: 28px;
    font-size: 18px;
    margin-bottom: 45px;
}

button {
    background-color: yellow;
    color: black;
    padding: 13px 30px;
    border-radius: 40px;
    font-weight: 1px;
    letter-spacing: 1px;
    text-decoration: none; /* Remove the default underline for anchor tags */
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
  }

  button:hover{
    background-color: black;
    color: yellow;
    
  }
  @media (min-width: 390px) and (max-width: 480px){
    .slider-nav a {
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background-color: #fff;
        opacity: 0.75;
        transition: opacity ease 250ms;
        margin-top: -118px;
    }
}
  
 

@media (max-width: 767px) {
    .main {
      flex-direction: column; /* Stack elements vertically on smaller screens */
    }
  
    .carousel-container {
      padding: 1rem; /* Adjust padding to fit smaller screens */
    }
    .slider-nav{
        display: flex;
        column-gap: 1rem;
        position: absolute;
        bottom: 5rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .about-text2 h2 {
        color: white;
        font-size: 28px;
        text-transform: capitalize;
        margin-left: -42px;
        margin-bottom: 0px;
        text-shadow: #cfcfcf;
    }
    .about-text2 p {
        color: #cfcfcf;
        letter-spacing: 1px;
        line-height: 28px;
        font-size: 13px;
        margin-bottom: 45px;
        margin-left: -41px;
    }

    .slider-nav a{
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background-color: #fff;
        opacity: 0.75;
        transition: opacity ease 250ms;
    }
  
    .slider img {
      width: 100%; /* Make the images occupy the full width of the screen */
      height: auto; /* Maintain the aspect ratio of the images */
    }
  
    .about-text {
      width: 100%; /* Full width for text on smaller screens */
    }
  
    .about-text h1 {
        margin-top: 20px;
      font-size: 40px; /* Adjust the font size as needed */
    }
  
    .about-text h5 {
      font-size: 20px; /* Adjust the font size as needed */
    }
  
    .about-text p {
      font-size: 14px; /* Adjust the font size as needed */
    }
    body {
        font-size: 14px; /* Adjust font size */
      }
      .about-text, .about-text2 {
        width: 90%; /* Adjust the width of text containers */
      }
      .carousel-container {
        padding: 1rem; /* Adjust padding */
      }
    
      /* Additional styles for about-text2 */
      .about-text2 {
        font-size: 16px; /* Adjust font size */
        padding: 1rem; /* Adjust padding */
      }
    }
    
  

 
/* For iPhones in landscape mode (up to 896px wide) */
@media only screen and (max-width: 896px) and (orientation: landscape) {
  /* Adjust styles for iPhone landscape mode */
  body {
    font-size: 16px; /* Adjust font size */
  }
  .about-text, .about-text2 {
    width: 90%; /* Adjust the width of text containers */
  }
  .carousel-container {
    padding: 1rem; /* Adjust padding */
  }

  /* Additional styles for about-text2 */
  .about-text2 {
    font-size: 18px; /* Adjust font size */
    padding: 1rem; /* Adjust padding */
  }
}

@media screen and (max-width: 1024px) {
    .main {
        padding: 40px; /* Adjust padding for better spacing on iPads */
    }

    .carousel-container {
        padding: 1rem; /* Adjust padding for better spacing on iPads */
    }

    .slider-wrapper {
        max-width: 90%; /* Adjust to fit within the screen */
    }

    .about-text {
        width: 100%;
        text-align: center;
        padding-top: 10px;
    }

    .about-text h1 {
        color: white;
        text-transform: capitalize;
        margin-bottom: 5px;
        margin-left: 1%;
    }

    .about-text h5 {
        color: white;
        font-size: 29px;
        text-transform: capitalize;
        margin-bottom: 25px;
        letter-spacing: 2px;
    }

    .about-text p {
        color: #cfcfcf;
        letter-spacing: 1px;
        line-height: 28px;
        font-size: 19px;
        margin-bottom: 45px;
    }

    .about-text2 {
        width: 100%; /* Adjust to full width for iPads */
        text-align: center; /* Center-align text for iPads */
    }

    .about-text2 h2 {
        font-size: 40px; /* Adjust font size for iPads */
    }

    .about-text2 p {
        font-size: 16px; /* Adjust font size for iPads */
        line-height: 24px; /* Adjust line height for readability */
    }

    button {
        padding: 13px 30px;
        border-radius: 40px;
        font-weight: 600; /* Increase font weight for better visibility */
        font-size: 18px; /* Adjust font size for iPads */
        letter-spacing: 2px; /* Increase letter spacing for better visibility */
    }
} 


  