* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./images/classesbg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: brightness(0.5);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

.main-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  color: white;
  position: relative;
  z-index: 10;
}
/* Navbar Styles */
.title {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: white;
  font-size: 32px;
  font-weight: 500;
}

.title svg {
  fill: #ffcc00;
  width: 60px;
  height: auto;
  margin-right: 10px;
}

.last-name {
  color: #ffcc00;
}

.right-container {
  display: flex;
  gap: 30px;
}

.get-started {
  color: white;
  background-color: #ffcc00;
  font-size: large;
  font-weight: bold;
  width: 150px;
  height: 50px;
  border-radius: 5px;
  border: 2px solid white;
  outline: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.get-started:hover {
  color: #002244;
  border-color: black;
}

a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffcc00;
}

.heading {
  color: white;
  text-align: center;
  margin-top: 30px;
}

.mid-container {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 10px;
}

.mid-container button {
  background-color: black;
  color: #ffcc00;
  font-size: large;
  font-weight: 500;
  width: 120px;
  height: 40px;
  outline: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mid-container button:hover {
  color: #ffa500;
  border-color: #ffa500;
}

.mid-container button.active {
  background-color: #ffcc00;
  color: black;
  font-size: large;
  border: 2px solid white;
}

.mid-container button.active:hover {
  background-color: #e6b800;
  color: white;
  border-color: black;
}

.all {
  border: 2px solid #ffcc00;
  border-radius: 10px;
  margin-right: 10px;
}

.beginner {
  border: 2px solid #ffcc00;
  border-right: none;
  border-radius: 10px 0 0 10px;
}

.intermediate {
  border-top: 2px solid #ffcc00;
  border-bottom: 2px solid #ffcc00;
  border-left: none;
  border-right: none;
}

.advance {
  border: 2px solid #ffcc00;
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.heading2 {
  color: white;
  text-align: center;
  margin-top: 20px;
}
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px;
}

.card {
  position: relative;
  flex: 0 0 calc(50% - 30px);
  height: 220px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid #ffcc00;
  border-radius: 12px;
  padding: 0px;
  color: white;
  text-align: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.card.fade-in {
  transform: scale(0.95);
  animation: fadeInScale 0.5s ease forwards;
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 20px;
  font-weight: 600;
}

a.active {
  color: #ffcc00;
  font-size: 16px;
  font-weight: bold;
}
/* Media Queries */
@media screen and (max-width: 900px) {
  .card {
     flex: 0 0 calc(50% - 30px);
  }
}

@media screen and (max-width: 768px) {
  .main-container {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .left-container {
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
  }

  .get-started {
    display: none; /* Hide if not needed or style appropriately */
  }

  .mid-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mid-container button {
    width: 100px;
    font-size: 14px;
  }
  
  .card {
    flex: 0 0 100%;
  }

  .heading {
    margin-top: 20px;
    padding: 0 15px;
  }

  body::before {
    background-attachment: scroll;
    background-position: center;
  }
}

@media screen and (max-width: 480px) {
  .left-container {
    gap: 15px;
    font-size: 14px;
  }
  
  .mid-container button {
     width: 80px;
     font-size: 12px;
  }
}

.footer {
  text-align: center;
  width: 100%;
  color: white;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 0;
  margin-top: 20px;
}
