html, body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #f8f9fa;
  color: #1D3557;
  font: normal 75% Arial, Helvetica, sans-serif;
  /* font-size: 1rem; */
}

header {
  background-image: url('banner.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 60px 20px;
  position: relative;
  height: 250px;
  overflow: hidden;
}

canvas {
  display: block;
  
}

#particles-js-hero,
#particles-js-demo,
#particles-js-contact {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
}

.logo-container {
  position: absolute;
  top: 5px;
  left: 10px;
  display: flex;
  text-align: center;
  gap: 10px;
  z-index: 10;
}

.logo-container img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
}

.logo-container h1 {
  margin: 0;
  font-size: 1.8em;
  color: white;
  font-weight: bold;
}

.logo-container h1 small {
  font-size: 0.6em;
  vertical-align: middle;
  color: #FFD166;
}

.tagline {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 80px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  position: relative;
  z-index: 10;
}

nav {
  background-color: #1D3557;
  padding: 10px;
  text-align: center;
  position: relative;
  z-index: 100;
  font-size: 1.2rem;
}

nav a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #FFD166;
}

.hero {
  background-color: #9D4EDD;
  color: white;
  padding: 50px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 10;
}

.hero button {
  padding: 12px 25px;
  font-size: 1.5rem;
  background-color: #FFD166;
  color: #1D3557;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.section {
  padding: 40px 20px;
  text-align: center;
}

.section h3 {
  color: #0615c3;
  font-weight: bold;
}
.section p {
  font-weight: bold;
}

.courses {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.course-box {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 250px;
}

.course-box h4 {
  color: #9D4EDD;
}

.footer {
  background-color: #1D3557;
  color: white;
  text-align: center;
  padding: 20px;
}

.footer a {
  color: #FFD166;
  text-decoration: none;
}

@media (max-width: 768px) {
  .courses {
    flex-direction: column;
    align-items: center;
  }
}

.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card h4, .card h6 {
  transition: color 0.3s ease;
}

.card:hover h4,
.card:hover h6 {
  color: #0d6efd;
}

/* Button Hover Grow */
.hero button, 
.course-box button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero button:hover, 
.course-box button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Make bootstrap .btn also grow slightly */
.btn {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}
.btn:hover, .btn:focus {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* RGB Glow on Hover (applies to cards and buttons) */
.card, .course-box, .btn, .hero button {
  position: relative;
  z-index: 0;
}

/* Glow pseudo-element */
.card::after,
.course-box::after,
.btn::after,
.hero button::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.6);
  width: 220%;
  height: 220%;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  filter: blur(30px);
  mix-blend-mode: screen;
  background: radial-gradient(circle at 30% 30%, rgba(255,0,100,0.18), transparent 10%),
              radial-gradient(circle at 70% 70%, rgba(0,200,255,0.16), transparent 12%),
              conic-gradient(from 0deg, rgba(255,0,0,0.07), rgba(255,165,0,0.07), rgba(255,255,0,0.07), rgba(0,255,0,0.07), rgba(0,255,255,0.07), rgba(0,0,255,0.07), rgba(255,0,255,0.07));
}

/* On hover show glow and slightly expand */
.card:hover::after,
.course-box::after,
.btn:hover::after,
.hero button:hover::after {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
  animation: rotateGlare 6s linear infinite;
}

/* subtle rotation to make glow dynamic */
@keyframes rotateGlare {
  from { transform: translate(-50%,-50%) rotate(0deg) scale(1); }
  to   { transform: translate(-50%,-50%) rotate(360deg) scale(1); }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .card::after, .course-box::after, .btn::after, .hero button::after {
    animation: none;
    transition: opacity 0.2s linear;
    filter: blur(12px);
  }
  .reveal { transition: none; transform: none; opacity: 1; }
}

/* Global hover scale for cards, images, buttons */
.card, .course-box {
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.36s cubic-bezier(.2,.9,.2,1), box-shadow 0.36s;
}

.card:hover, .course-box:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(16,24,40,0.12);
}

.card .card-img-top,
.card img,
.course-box img,
img.card-img-top {
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
  transform-origin: center center;
  display: block;
}

.card:hover .card-img-top,
.card .card-img-top:hover,
.course-box:hover img,
.course-box img:hover {
  transform: scale(1.07);
}

.btn, .hero button, .course-box button, a.btn, .btn-primary, .btn-success, .btn-warning {
  transition: transform 0.22s cubic-bezier(.2,.9,.2,1), box-shadow 0.22s, background-color 0.18s;
  transform-origin: center center;
  will-change: transform;
}

.btn:hover, .hero button:hover, .course-box button:hover, a.btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(13,110,253,0.12);
}

a.btn:hover {
  text-decoration: none;
}

.card .card-title, .card .card-text, .course-box h4, .course-box p {
  transition: transform 0.32s ease, color 0.28s ease;
}

.card:hover .card-title, .card:hover .card-text, .course-box:hover h4, .course-box:hover p {
  transform: translateY(-4px);
}

@media (max-width: 576px) {
  .card:hover, .course-box:hover { transform: translateY(-6px) scale(1.02); }
  .card:hover .card-img-top, .course-box:hover img { transform: scale(1.03); }
  .btn:hover, .hero button:hover { transform: scale(1.04); }
}

/* Footer Get Started button adjustments */
.get-started-footer {
  display: inline-block;
  min-width: 180px;
  max-width: 420px;
  width: auto;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}
@media (max-width: 576px) {
  .get-started-footer { min-width: 140px; padding: 10px 18px; }
}

/* Particle section wrapper */
.particle-section-wrapper {
  position: relative;
  background-color: #9d4afb;
  color: white;
  overflow: hidden;
}
.particle-section-wrapper a:not(.btn) {
  color: #f0f1f8;
}
.particle-section-wrapper > section {
  position: relative;
  z-index: 1;
}
.particle-section-wrapper h3 {
  color: white !important;
}

/* Card adjustments */
.card {
  border-radius: 15px;
  overflow: hidden;
}
.card-img-top {
  width: 100%;
  height: 300px; /* same as you use now */
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .card-img-top {
    height: 200px; /* match mobile size */
  }
}

.card-body {
  padding: 20px;
}
.card-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

/* Intro video styles */
/* ===== Intro Video Responsive Styles ===== */
.intro-video-wrapper {
  width: 100%;
  max-width: 1200px; /* prevent too large on desktop */
    background-color:#9D4EDD;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px; /* optional, gives a nicer look */
}




.intro-video-wrapper video {
  width: 100%;
  height: auto;
  max-height: 70vh; /* limits height */
  display: block;
  object-fit: contain; /* change from cover to contain */
  border-radius: 10px; /* optional for rounded edges */
}


/* Mobile adjustments for better fit */
@media (max-width: 768px) {
  .intro-video-wrapper video {
    max-height: 40vh; /* shorter on small screens */
  }
}

/* Keep sound button nicely positioned */
.intro-video-wrapper .sound-toggle {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 2;
  font-size: 1rem;
}
.intro-video-wrapper .sound-toggle:hover {
  background-color: rgba(0, 0, 0, 0.7);
}


.sound-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
}

.sound-toggle:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .sound-toggle {
    bottom: 10px;
    right: 10px;
    padding: 8px;
  }
}

/* Center the last specialized course card */
.courses-section .row.g-4 > .col-md-3:last-child {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Review carousel styles */
#reviewCarousel {
  margin-top: 40px;
  margin-bottom: 40px;
}

#reviewCarousel .carousel-item {
  transition: opacity 0.5s ease-in-out;
  text-align: center;
}

#reviewCarousel .card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

#reviewCarousel .video-card .video-container {
  position: relative;
}

#reviewCarousel .card-img-top {
  height: 300px;
  width: 100%;
  object-fit: cover;
}

#reviewCarousel .stars {
  color: #FFD166;
  font-size: 1.2em;
}

#reviewCarousel .carousel-control-prev,
#reviewCarousel .carousel-control-next {
  width: 5%;
  background: none;
  z-index: 100;
}

#reviewCarousel .carousel-control-prev svg,
#reviewCarousel .carousel-control-next svg {
  fill: #9D4EDD;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 15px;
  transition: background-color 0.3s;
}

#reviewCarousel .carousel-control-prev:hover svg,
#reviewCarousel .carousel-control-next:hover svg {
  background-color: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
  #reviewCarousel .card {
    max-width: 90% !important;
  }
  #reviewCarousel .card-img-top {
    height: 200px;
  }
  #reviewCarousel .carousel-control-prev svg,
  #reviewCarousel .carousel-control-next svg {
    width: 30px;
    height: 30px;
    padding: 10px;
  }
}

/* Additional beauty: subtle gradient overlay on sections */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
  z-index: -1;
}

/* Enhance nav with subtle shadow */
nav {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Add fade-in for images */
img {
  opacity: 0;
  transition: opacity 0.8s ease;
}

img.loaded {
  opacity: 1;
}

.social-links {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
}

.social-links a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
  transform: scale(1.2);
  color: #ffcc00;
}
.review-video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Review video container (doesn't affect intro video) */
.review-video-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Review video style */
.review-video {
  width: 100%;
  height: 300px;
  object-fit: contain; /* keeps full video without cropping */
  background-color: black; /* fill space if aspect ratio mismatches */
  display: block;
}

@media (max-width:768px){
  .review-video {
    height: 200px;
  }
}
.video-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 5px;
}

.video-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

.play-pause {
  right: 90px; /* Push pause button to the left of mute */
}
