/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #222629;
  color: white;
  line-height: 1.6;
}

a {
  color: white;
  text-decoration: none;
  transition: 0.3s ease;
}

/* NAVIGATION */
nav {
  background-color: #af2f2e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  padding: 10px 15px;
  border-radius: 6px;
}

.nav-links a:hover {
  background-color: #ffffff33;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #af2f2e;
  min-width: 160px;
  z-index: 1000;
  flex-direction: column;
}

.dropdown-content a {
  padding: 10px;
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* HERO SECTION SLIDER */
.hero-section {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
  background-image: url('../images/bg1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


@keyframes slideShow {
  0%   { background-image: url('../images/bg1.jpg'); }
  25%  { background-image: url('../images/bg2.jpg'); }
  50%  { background-image: url('../images/bg3.jpg'); }
  75%  { background-image: url('../images/bg1.jpg'); }
  100% { background-image: url('../images/bg2.jpg'); }
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 10px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
}

/* MIDDLE SECTION */
.middle-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
}

.box {
  background-color: #af2f2e;
  color: white;
  padding: 30px;
  width: 250px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s;
}

.box:hover {
  transform: scale(1.05);
}

/* CAROUSEL */
.carousel-section {
  padding: 20px;
  overflow-x: hidden;
}

.image-carousel {
  display: flex;
  width: max-content;
  animation: slideImages 30s linear infinite;
}

.image-carousel img {
  width: 300px;
  height: 200px;
  margin-right: 10px;
  border-radius: 10px;
  object-fit: cover;
}

@keyframes slideImages {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* FOOTER */
footer {
  background-color: #111;
  padding: 30px 10px;
  color: white;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding-bottom: 15px;
}

.footer-links div {
  margin: 10px;
}

.footer-links h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    gap: 10px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .box {
    width: 80%;
  }

  .image-carousel img {
    width: 240px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 60vh;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}
