* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ffcc00;
  --secondary-color: #333;
  --background-gradient: linear-gradient(135deg, #19566b, rgb(2, 132, 175));
  --font-family: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-family);
  background: var(--background-gradient);
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color:  #19566b;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  width: 100px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  text-transform: uppercase;
}

.nav-buttons button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
}

#registerBtn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

#signinBtn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: white;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -500px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  transition: left 0.3s ease;
  z-index: 1001;
  display: none; /* Hide sidebar by default */
}

.sidebar.active {
  left: 0;
}

.sidebar ul {
  list-style: none;
  padding: 20px;
  text-align: center;
  
}

.sidebar ul li {
  margin: 20px 0;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px; 
  text-transform: uppercase; 
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f4f4;
}

/* Carousel Wrapper */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Carousel Track */
.carousel {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth ease-in-out */
}

/* Individual Slides */
.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Carousel Navigation Buttons */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1em;
  transition: background 0.3s ease;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-prev:hover, .carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    width: 100%;
    height: auto;
  }
  .carousel-slide img {
    width: 100%;
    height: auto;
  }

  .sidebar {
    display: block; /* Show sidebar */
  }

  .sidebar.active {
    left: 0; /* Slide in when active */
  }
 
}

/* Footer */
.footer {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  width: 80px;
}

.footer-social a {
  color: white;
  font-size: 24px;
  margin: 0 10px;
}

.footer-bottom {
  margin-top: 20px;
}

/* Mobile Footer Menu */
.mobile-footer-menu {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color:  #19566b;
  padding: 10px;
  justify-content: space-around;
  z-index: 1000;
}

.mobile-footer-menu a {
  color: white;
  font-size: 20px;
}

/* Responsive Design */

@media (max-width: 768px) {
  .nav-links, .nav-buttons {
    display: none; /* Hide navbar links and buttons on mobile */
  }

  .sidebar-toggle {
    display: block; /* Show the sidebar toggle button */
  }

  .mobile-footer-menu {
    display: flex; /* Show the mobile footer menu */
  }

  

  .footer-content {
    flex-direction: column; /* Stack footer content vertically on mobile */
    gap: 20px;
  }

  /* Add Sign In button to the sidebar */
  .sidebar .nav-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .sidebar .nav-buttons button {
    width: 100%;
    margin: 10px 0;
  }
}

.hero_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 50px;
  padding: 50px;
}

.hero_card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero_card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero_card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero_card:focus {
  outline: 2px solid #007BFF;
  outline-offset: 2px;
}

/* Media Query for Extra Small Screens */
@media (max-width: 412px) {
  .hero_cards {
    grid-template-columns: 1fr; /* Stack cards in a single column */
    gap: 15px;
    padding: 15px;
  }
}

/* Media Query for Small Screens */
@media (max-width: 768px) {
  .hero_cards {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
  }
}