/* Navbar */
body {
  font-family: Arial, sans-serif;
  background-color: #000; /* Black background */
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between; /* Ensure elements are spaced evenly */
  background-color: #000; /* Black background */
  height: 80px;  
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1); /* Optional shadow for navbar */
 
}

.nav-icon {
  width: 30px;
  height: 30px;
  vertical-align:middle;
}

.logo {
  max-width: 200px; /* Adjust size */
  height: auto;     /* Maintain aspect ratio */
}

.menu a{
  color: white;
  margin-right: 30px;
  text-decoration: none;
}
.menu a:hover {
  color: #f00;
}

.menu{
  margin-top: 20px;
  font-family: Arial, sans-serif;
}

.login-btn {
  background-color: #d4001a; /* Red button */
  color: white;
  padding: 8px; /* Flexible padding */
  border-radius: 8px;
  margin-left: 10px;
}

/*Section 1:*/

.carousel {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slide 10s infinite;
}

.carousel-slide {
  width: 100%;
  flex-shrink: 0;
  height: 100%;
}


.slider1{
    background-image: url(../media/banner1.jpg);
    
}
.slider2{
    background-image: url(../media/banner2.jpg);
    
}
.slider3{
    background-image: url(../media/banner3.jpg);
    
}

@keyframes slide {
  0% { transform: translateX(0); }
  33.33% { transform: translateX(0); }
  44.44% { transform: translateX(-100%); }
  77.77% { transform: translateX(-100%); }
  88.88% { transform: translateX(-200%); }
  100% { transform: translateX(-200%); }
}

/*Section 2:*/
.Section {
  background-color: black;
  height: 650px;
  text-align: center;
  padding-top: 30px;
  color: white;
}
.z{
  width:700px;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  font-size: medium;
  margin-top: 50px;

  background-color: red;
  color: white;
  border: none;
  height: 40px;
  
}

.as {
  margin-top: 150px;
  text-align: center;
  padding-left: 20px;
  font-size: 50px;
}
.as:hover {
  color: #f00;
}


.Parent-div {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 130px;
  padding-left: 100px;
  padding-right: 100px;
}

.Child-1, .Child-2, .Child-3, .Child-4, .Child-5 {
  height: 210px;
  width: 180px;
  background-color: rgb(46, 44, 44);
  color: black;
  border-top-left-radius: 280px;
  border-top-right-radius: 300px;
  border-bottom-left-radius: 280px;
  text-align: center;
 
}


.Logo {
  background-image: url(../media/img1.png);
  height: 120px;
  width: 150px;
  margin-top: 20px;
  margin-left: 20px;
  background-size: cover;
  background-repeat: no-repeat;
}

.logo1 {
  background-image: url(../media/img2.png);
  height: 120px;
  width: 150px;
  margin-top: 2px;
  margin-left: 20px;
  background-size: cover;
  background-repeat: no-repeat;
}
.h3{
  margin-top: 30px;
  margin-left: 5px;
}

.logo2 {
  background-image: url(../media/img3.png);
  height: 120px;
  width: 150px;
  margin-top: 20px;
  margin-left: 20px;
  background-size: cover;
  background-repeat: no-repeat;
}

.logo3 {
  background-image: url(../media/img4.png);
  height: 120px;
  width: 150px;
  margin-top: 8px;
  margin-left: 20px;
  background-size: cover;
  background-repeat: no-repeat;
}
.h4{
  margin-top: 20px;
}

.logo4 {
  background-image: url(../media/img5.png);
  height: 120px;
  width: 150px;
  margin-top: 20px;
  margin-left: 20px;
  background-size: cover;
  background-repeat: no-repeat;
}

h3 {
  font-size: 16px;
  margin-top: 5px;
  font-family: Arial, sans-serif;
}

.Logo:hover, .logo1:hover, .logo2:hover, .logo3:hover, .logo4:hover {
  transform: scale(1.1); /* Scale up the image by 10% */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Add shadow for emphasis */
}

button:hover{
  transform: scale(1.1);
  background-color: red;
}

/*Section 3:*/

.heading1{
  margin-bottom:120px;
  margin-top: 150px;
  font-size: 50px;
  text-align: center;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  
}
.carousel1 {
  width: 80%;
  max-width: 600px;
  overflow: hidden;
  position: relative;
  margin-left: 300px;
}
.carousel1:hover{
  color: red;
}
.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-item {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  text-align: center;
}
.carousel-item img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  background-color: #353232;
  border-radius: 10px;
  border: 3px solid white;
}
.carousel-text {
  position: absolute;
  bottom: 60px;
  right: 170px;
  padding: 250px;
  font-size: xx-large;
  color: white;
}
.carousel-price {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-size: larger;
}
.carousel-price button {
  background-color: red;
  color: white;
  font-size: medium;
  height: 50px;
  width: 150px;
  margin-left: 430px;
  margin-bottom: 250px;
  border: none;
  border-radius: 5px;
  cursor: pointer; 
}

input[type="radio"] {
  display: none;
}
#img1:checked ~ .carousel-inner {
  transform: translateX(0);
}
#img2:checked ~ .carousel-inner {
  transform: translateX(-100%);
}
#img3:checked ~ .carousel-inner {
  transform: translateX(-200%);
}
#img4:checked ~ .carousel-inner {
  transform: translateX(-300%);
}
#img5:checked ~ .carousel-inner {
  transform: translateX(-400%);
}
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.carousel-nav label {
  width: 12px;
  height: 12px;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
}
input[type="radio"]:checked + label {
  background-color: #555;
}

footer {
  background-color: #333;
  padding: 2px;
  margin-top: 10px;
}
footer .footer-content {
  display: flex;
  justify-content: space-around;
  font-size: 40px;
  color: white;
  margin-left: 200px;
  margin-right: 200px;
  margin-top: 30px;
}



/* === Responsive Fix without Layout Change === */

/* Tablet */
@media (max-width: 1024px) {
  /* Slider */
  .carousel {
    width: 100%;
    height: 400px;
  }
  .carousel-slide {
    background-size: contain;
    
    background-size: contain;
  }

  /* Section 2 */
  .Section {
    height: auto;
    padding-bottom: 50px;
  }
  .Parent-div {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    padding: 0 20px;
  }

  /* Section 3 */
  .carousel1 {
    width: 90%;
    margin: 0 auto;
  }
  .carousel-item img {
    max-height: 300px;
  }
  .carousel-text {
    position: absolute;
    top: 10px;      /* Move to top */
    left: 10px;     /* Stick to left */
    right: auto;    /* Remove right alignment */
    bottom: auto;   /* Remove bottom alignment */
    padding: 0;
    font-size: 16px;
  }
   .carousel-price button {
    margin: 0;
    position: absolute;
    bottom: 170px;
    right: 20px;
    transform: none;
    height: 35px;
    width: 110px;
    font-size: 12px;
    
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Navbar stays single-line scrollable if too long */
  .navbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Slider */
  .carousel {
    width: auto;
    height: 300px;
  }
  .carousel-slide {
    background-size:contain;
     background-size: contain;
  }

  /* Section 2 */
  .Section {
    height: auto;
    padding-bottom: 40px;
  }
  .Parent-div {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding: 0 10px;
  }

  /* Section 3 */
  .carousel1 {
    width: 75%;
    margin: 0 auto;
  }
  .carousel-item img {
    max-height: 230px;
  }
  .carousel-text {
    position: absolute;
    top: 10px;      /* Move to top */
    left: 10px;     /* Stick to left */
    right: auto;    /* Remove right alignment */
    bottom: auto;   /* Remove bottom alignment */
    padding: 0;
    font-size: 16px;
    
  }

  .carousel-price button {
    margin: 0;
    position: absolute;
    bottom: 130px;
    right: 20px;
    transform: none;
    height: 35px;
    width: 110px;
    font-size: 12px;
    
  }

  /* Footer */
  footer .footer-content {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 22px;
    margin: 10px;
    gap: 10px;
  }
}
 
/* === Responsive Hamburger Menu for Mobile & Tablet === */

.hamburger {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  margin-top: 25px;
  margin-right: 20px;
}

/* Hide the checkbox */
.nav-toggle {
  display: none;
}

/* Tablet + Mobile */
@media (max-width: 1024px) {
  /* Hide menu initially */
  .menu {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    background-color: black;
    width: 220px;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #444;
    z-index: 999;
  }

  .menu a {
    display: block;
    margin: 12px 0;
    text-align: center;
  }

  /* Show hamburger */
  .hamburger {
    display: block;
  }

  /* Show menu when checkbox is checked */
  .nav-toggle:checked ~ .menu {
    display: flex;
  }
}
