* {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e0e7ff 50%, #f5f7fa 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  min-height: 100vh;
  position: relative;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(123, 9, 205, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(13, 0, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

header {
  border-bottom: 3px solid #7b09cd;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  background-color: white;
  box-shadow: 0 5px 20px rgba(123, 9, 205, 0.15);
  animation: headerGlow 4s ease-in-out infinite;
  z-index: 9999;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

@keyframes headerGlow {

  0%,
  100% {
    box-shadow: 0 5px 20px rgba(123, 9, 205, 0.15);
  }

  50% {
    box-shadow: 0 5px 30px rgba(123, 9, 205, 0.25);
  }
}

nav {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  padding-inline-start: 50px;
  padding-right: 20px;
}

nav img {
  margin-bottom: 10px;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
}

nav ul li {
  list-style: none;
  padding-inline: 20px;
}

nav ul li a {
  text-decoration: none;
  color: black;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 12px 12px;
  border-radius: 8px;
  font-weight: 500;
}

nav ul li button a {
  color: white;
}

nav ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7b09cd, #0d00ff);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

nav ul li a:hover {
  color: #7b09cd;
  background: rgba(123, 9, 205, 0.1);
  transform: translateY(-2px);

}

nav ul li a:hover::before {
  width: 80%;
}

.signup {
  background-color: #9810fa !important;
  color: white !important;
  transition: 0.4s ease-in-out;
  box-shadow: 0 0 10px rgba(152, 16, 250, 0.3);
}

.signup:hover {
  background-color: #7b09cd !important;

  box-shadow: 0 0 20px rgba(123, 9, 205, 0.6), 0 0 30px rgba(152, 16, 250, 0.4);
  transform: translateY(-2px);
}

.signup:hover a {
  color: white !important;
}

.menu {
  display: none;
}

.menu-button {

  background: linear-gradient(135deg, #7b09cd, #0d00ff) !important;
  border: none !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  border-radius: 15px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 8px 32px rgba(123, 9, 205, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.menu-button span {
  color: white !important;
  font-size: 24px !important;
  padding: 0;
  margin: 0;
}

.menu-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.menu-button:hover::before {
  left: 100%;
}

.menu-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(123, 9, 205, 0.5),
    0 0 60px rgba(152, 16, 250, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  background: linear-gradient(135deg, #0d00ff, #7b09cd) !important;
}

.menu-button span {
  color: black;
  font-size: 30px;
}

.offcanvas {
  width: 60% !important;
}

.offcanvas-body {
  display: flex;
  flex-direction: column;
}

.offcanvas-body a {
  color: black;
  text-decoration: none;
  padding: 5px;
  margin-bottom: 15px;
}

.offcanvas-body li {
  list-style: none;
}



/* ===========first section =========== */
.first-section {
  display: flex;
  flex-direction: column;
  padding: 50px;
  align-items: center;
  padding-top: 30px;
}

.first-section input {
  padding: 15px 20px;
  max-width: 700px;
  border: 2px solid #7b09cd;
  border-radius: 25px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.first-section input:focus {
  outline: none;
  border-color: #0d00ff;
  box-shadow: 0 0 20px rgba(123, 9, 205, 0.3);
  transform: scale(1.02);
}

hr {
  width: 30%;
  height: 6px;
  border: none;
  border-radius: 2px;
  background: linear-gradient(90deg, #7b09cd, #0d00ff);
  margin: 12px auto;
}

.first-section h1 {
  font-weight: 700;
  font-size: 70px;
  margin-bottom: 15px;
}

.first-section p {
  font-size: 18px;
  margin-bottom: 20px;
}

.category button {
  border: 2px solid #7b09cd;
  padding: 10px 20px;
  margin: 20px;
  border-radius: 25px;
  background: white;
  color: #7b09cd;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.category button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 9, 205, 0.2), transparent);
  transition: left 0.5s;
}

.category button:hover::before {
  left: 100%;
}

.category button:hover {
  transform: scale(1.1) translateY(-2px);
  background: linear-gradient(135deg, #7b09cd, #0d00ff);
  color: white;
  box-shadow: 0 5px 20px rgba(123, 9, 205, 0.4);
}

.category button.active {
  background: linear-gradient(135deg, #7b09cd, #0d00ff);
  color: white;
  box-shadow: 0 5px 20px rgba(123, 9, 205, 0.4);
}

/* ============Second section=========== */

.courses {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-inline: 50px;
  margin-bottom: 50px;

}

.course {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(123, 9, 205, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease-out;
  border: 1px solid rgba(123, 9, 205, 0.1);
  display: flex;
  flex-direction: column;
}

.course::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(123, 9, 205, 0.03), rgba(13, 0, 255, 0.03));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.course:hover::after {
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 30px 80px rgba(123, 9, 205, 0.3),
    0 0 60px rgba(152, 16, 250, 0.2),
    0 0 0 1px rgba(123, 9, 205, 0.3);
  border-color: rgba(123, 9, 205, 0.3);
}

.course:nth-child(1) {
  animation-delay: 0.1s;
}

.course:nth-child(2) {
  animation-delay: 0.2s;
}

.course:nth-child(3) {
  animation-delay: 0.3s;
}

.course img {
  object-fit: cover;
  border-radius: 10px;
  width: 100%;
  transition: 0.3s ease-in-out;
}

.image-box {
  overflow: hidden;
  position: relative;
  height: 200px;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course:hover .image-box img {
  transform: scale(1.1) rotate(1deg);
}

.price-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #7b09cd, #0d00ff);
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(123, 9, 205, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 10;
  animation: pulse 2s infinite, float 3s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.course .category {
  color: #3f10fa;
  font-size: 10px;
  text-align: start !important;
  margin-top: 5px;
  margin-left: 4px;
  margin-bottom: -10px;
}

hr {
  width: 70px;
  height: 6px;
  border: none;
  border-radius: 2px;
  background: linear-gradient(90deg, #7b09cd, #0d00ff);
  margin: 12px auto;
}

.course h5 {
  font-weight: 700;
  font-size: 17px;
  text-align: start;
  margin-left: 10px;
}

.description {
  font-size: 12px;
  margin-inline: 10px;
  text-align: justify;
  color: #828181;
}

.powered {
  font-size: 13px;
  color: black;
  text-align: start;
  margin-top: 30px;
  margin-bottom: -5px;
  margin-left: 20px;
}

.information {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.information p {
  font-size: 13px;
  display: flex;
  align-items: center;

}

.information span {
  padding-right: 5px;
}

.button-join {
  width: 100%;
  padding: 10px;
  display: flex;
  justify-items: center;
  align-items: center;
  text-align: center;
}

.button-join a {
  width: 100%;
  padding-block: 12px;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: all 0.3s ease;
  color: white;
  font-size: 16px;
  font-weight: 700 !important;
  margin-inline: 60px;
  border-radius: 10px;
  text-align: center;
}

.view-courses {
  background: linear-gradient(135deg, #7b09cd, #0d00ff) !important;
  color: #f1f1f1 !important;
  padding-inline: 30px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(123, 9, 205, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.view-courses::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.view-courses:hover::before {
  left: 100%;
}

.view-courses:hover {
  background: linear-gradient(135deg, #0d00ff, #7b09cd) !important;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(123, 9, 205, 0.5),
    0 0 40px rgba(152, 16, 250, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.no-courses {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #666;
  animation: fadeIn 0.5s ease-out;
}

.no-courses p {
  font-size: 18px;
  color: #999;
}

.no-results-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #666;
  animation: fadeIn 0.5s ease-out;
}

.no-results-message p {
  font-size: 18px;
  color: #999;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* =======copyright section======= */
.copyright {
  background-color: rgb(30, 29, 29);
  height: 60px;
  color: white;
  text-align: center;
  padding-top: 22px;
  font-size: 13px;
  border-top: 4px solid #7b09cd;
}




@media (max-width : 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 25%;
    width: 50%;
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    text-align: center;
    border-radius: 20px;
    align-items: center;
    padding: 20px 0px;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .menu {
    display: flex;
    margin-top: -10px;
    align-items: center;
    justify-content: center;

  }

  .courses {
    display: flex;
    flex-direction: column;
  }


  .category button {
    margin: 2px;
    margin-top: 40px;
  }

  /* Hide the button on mobile, make entire card clickable */
  .button-join {
    display: none !important;
  }
}

/* Course card link styling */
.course-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(123, 9, 205, 0.1);
  transition: all 0.3s ease;
}

.course-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.course-card-link:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Show button on desktop, hide card link pointer on desktop */
@media (min-width: 769px) {
  .course-card-link {
    pointer-events: none;
  }

  .button-join {
    display: flex !important;
  }
}

/* Cart Badge & Link Styles */
.cart-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: black;
  text-decoration: none;
}

.cart-link:hover {
  color: #7b09cd;
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ef4444;
  /* danger color */
  color: white;
  border-radius: 50%;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 1.5px solid white;
  z-index: 10;
  pointer-events: none;
}

.badge-pulse {
  animation: badge-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badge-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .nav-links .cart-link {
    margin-right: 15px;
  }
}
/* Add to Cart Button */
.add-cart-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid #7b09cd;
  color: #7b09cd;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto !important;
}
.add-cart-btn:hover {
  background: #7b09cd;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(123, 9, 205, 0.3);
}
.add-cart-btn:active {
  transform: scale(0.95);
}
.add-cart-btn .material-symbols-outlined {
  font-size: 20px;
}

