@import url("https://fonts.googleapis.com/css2?family=Mona+Sans:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.cdnfonts.com/css/sf-pro-display");

* {
  box-sizing: border-box;
}

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-weight: 300 !important;
  overflow-x: hidden;
}

/* Mona Sans for titles and headers */
h1,
h2,
h3,
h4,
h5,
h6,
.lecturer-name,
.nav-link,
.register-title,
.courses-gradient,
.ca-overlay-title,
.ca-course-code,
.testimonial-name,
.footer h3 {
  font-family: "Mona Sans", sans-serif;
}

/* Smooth transitions for all elements */
* {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero background with gradient */
.hero-bg {
  background: linear-gradient(
    180deg,
    rgba(173, 216, 230, 0.4) 0%,
    rgba(221, 160, 221, 0.3) 20%,
    rgba(255, 182, 193, 0.3) 40%,
    rgba(255, 218, 185, 0.2) 60%,
    rgba(240, 248, 255, 0.1) 80%,
    transparent 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 160%;
  height: 100%;
  background: radial-gradient(
      ellipse at 30% 20%,
      rgba(173, 216, 230, 0.21) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 70% 10%,
      rgba(221, 160, 221, 0.13) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 20% 40%,
      rgba(255, 182, 193, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 30%,
      rgba(255, 218, 185, 0.16) 0%,
      transparent 60%
    );
  animation: float-shapes 20s ease-in-out infinite;
}

@keyframes float-shapes {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-15px, -20px) rotate(2deg);
  }
  50% {
    transform: translate(20px, -15px) rotate(-2deg);
  }
  75% {
    transform: translate(-10px, 15px) rotate(1deg);
  }
}

/* Our Courses Button - same as Get Started */
.our-courses-btn {
  background: linear-gradient(135deg, #2662c5, #649ed5, #60b1f3);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.our-courses-btn:hover {
  box-shadow: 0 15px 35px rgba(37, 99, 197, 0.4);
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
    opacity: 0.7;
  }
}

/* Improved Hand animations - smoother and persistent */
.robot-hand {
  position: absolute;
  left: 0;
  top: 40%;
  transform: translateY(-50%) translateX(-150%);
  opacity: 0;
  animation: slideInFromLeft 3s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
  z-index: 5;
  will-change: transform, opacity;
}

.human-hand {
  position: absolute;
  right: 0;
  top: 70%;
  transform: translateY(-50%) translateX(150%);
  opacity: 0;
  animation: slideInFromRight 3s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
  z-index: 5;
  will-change: transform, opacity;
}

.courses-gradient {
  background: linear-gradient(180deg, #3b82f6, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateY(-50%) translateX(-150%);
    opacity: 0;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-50%) translateX(-20px);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateY(-50%) translateX(150%);
    opacity: 0;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-50%) translateX(20px);
    opacity: 1;
  }
}

/* Continuous floating animation after slide in */
.robot-hand {
  animation: robotFloat 6s ease-in-out infinite;
}

.human-hand {
  animation: humanFloat 6s ease-in-out infinite;
}

@keyframes robotFloat {
  0%,
  100% {
    transform: translateY(-50%) translateX(-20px) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-55%) translateX(-15px) rotate(3deg);
    opacity: 0.9;
  }
}

/* Statistics Section Styles - Exact match to image */
.stats-item {
  opacity: 0;
  transform: translateY(30px);
  animation: statsSlideUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

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


@keyframes statsSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profileIconPop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.counter {
  color: #60a5fa;
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -2px;
  text-shadow: 0 2px 4px rgba(96, 165, 250, 0.1);
}

@media (max-width: 768px) {
  .counter {
    font-size: 4rem !important;
    letter-spacing: -1px;
  }
}

@keyframes humanFloat {
  0%,
  100% {
    transform: translateY(-50%) translateX(20px) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-45%) translateX(15px) rotate(-2deg);
    opacity: 0.9;
  }
}

@keyframes wordFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  8.33% {
    opacity: 1;
    transform: translateY(0);
  }
  25% {
    opacity: 1;
    transform: translateY(0);
  }
  33.33% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

.lecturer-card {
  position: relative;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main cards (center) - 2 large images */
.lecturer-card.main {
  opacity: 1;
  z-index: 10;
  transform: scale(0.95);
}

/* Remove hover effects for main cards - no scaling or movement */
.lecturer-card.main:hover {
  transform: scale(0.95);
}

/* Side cards (preview) - small blurred */
.lecturer-card.side {
  height: 400px;
  transform: scale(0.8);
  filter: blur(8px);
  z-index: 5;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure lecturer-info is visible on side cards */
.lecturer-card.side .lecturer-info {
  filter: none !important;
  z-index: 15 !important;
}

/* Ensure lecturer-info is always visible on main cards - no transitions */
.lecturer-card.main .lecturer-info {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  z-index: 20 !important;
  transition: none !important;
}

/* Ensure lecturer-name is always visible on main cards */
.lecturer-card.main .lecturer-info .lecturer-name {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  color: #ffffff !important;
}

.lecturer-card.side:hover {
  filter: blur(4px);
  transform: scale(0.85);
}

.lecturer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lecturer-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(197, 197, 197, 0) 0%,
    rgba(85, 85, 85, 0.62) 50%,
    rgba(104, 104, 104, 0.54) 100%
  );
  color: white;
  padding: 20px 15px;
  backdrop-filter: blur(2px);
  text-align: left;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* Ensure enough height for content */
  min-height: 80px !important;
  /* Fix positioning and z-index */
  z-index: 10 !important;
  opacity: 1 !important;
  visibility: visible !important;
  /* Ensure it stays within card boundaries */
  border-radius: 0 0 20px 20px;
}

.lecturer-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover content section - initially hidden for side cards, visible for main cards */
.lecturer-hover-content {
  opacity: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: none !important;
}

/* Show hover content permanently on main cards */
.lecturer-card.main .lecturer-hover-content {
  opacity: 1 !important;
  max-height: 300px !important;
  overflow: visible !important;
  display: block !important;
}

.lecturer-hover-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lecturer-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
}

/* Initially show only the name */
.lecturer-info .lecturer-name {
  opacity: 1 !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block !important;
  visibility: visible !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 0 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

/* On hover: hide the initial name and show hover content section (for side cards only) */
.lecturer-card.side:hover .lecturer-info .lecturer-name {
  opacity: 0 !important;
  max-height: 0;
  overflow: hidden;
  margin: 0;
}

.lecturer-card.side:hover .lecturer-hover-content {
  opacity: 1 !important;
  max-height: 300px !important;
  display: block !important;
}

/* Hide the initial lecturer-name h3 element completely on main cards */
.lecturer-card.main .lecturer-info .lecturer-name {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: none !important;
}

/* Ensure it stays hidden on hover too */
.lecturer-card.main:hover .lecturer-info .lecturer-name {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: none !important;
}

.lecturer-card.main:hover .lecturer-hover-content {
  opacity: 1 !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
  transition: none !important;
}

/* Fullwidth Carousel Track */
#fullwidthCarouselTrack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  position: relative;
}

/* Navigation arrows - bottom center */
.carousel-navigation {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  z-index: 20;
}

.carousel-nav-btn {
  width: 55px;
  height: 55px;
  background: rgb(255, 255, 255);
  border: 2px solid rgb(27, 128, 255);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b80ff;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(27, 128, 255, 0.2);
}

.carousel-nav-btn:hover {
  background: #1b80ff;
  color: white;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 25px rgba(27, 128, 255, 0.4);
}

/* Registration Section */
.register-bg {
  background: linear-gradient(
    90deg,
    rgba(255, 233, 244, 0.34) 30%,
    rgba(234, 243, 255, 0.44) 50%
  );
  position: relative;
}

.register-title {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.register-btn {
  background: linear-gradient(135deg, #0b67c3, #2481d6, #61adec);
  border-radius: 25px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: none !important;
  transform: translateY(-50%) !important;
  box-shadow: none !important;
  top: 50%;
  right: 4px;
}

.register-btn:hover {
  background: linear-gradient(135deg, #0b67c3, #2481d6, #61adec) !important;
  transform: translateY(-50%) !important;
  box-shadow: none !important;
  transition: none !important;
}

.register-btn:focus {
  background: linear-gradient(135deg, #0b67c3, #2481d6, #61adec) !important;
  transform: translateY(-50%) !important;
  box-shadow: none !important;
  transition: none !important;
  outline: none !important;
}

.register-btn:active {
  background: linear-gradient(135deg, #0b67c3, #2481d6, #61adec) !important;
  transform: translateY(-50%) !important;
  box-shadow: none !important;
  transition: none !important;
}


/* Testimonials Section Styles */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: black;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-name {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  font-weight: 400;
}

.testimonials-scroll-container {
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Footer background */
.footer-bg {
  rotate: 180deg;
  background: linear-gradient(
    180deg,
    rgba(173, 216, 230, 0.4) 0%,
    rgba(221, 160, 221, 0.2) 20%,
    rgba(255, 182, 193, 0.15) 40%,
    rgba(255, 218, 185, 0.12) 60%,
    rgba(240, 248, 255, 0.07) 80%,
    transparent 100%
  );
  position: relative;
  overflow: hidden;
}

.footer-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 160%;
  height: 100%;
  background: radial-gradient(
      ellipse at 30% 20%,
      rgba(173, 216, 230, 0.21) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 70% 10%,
      rgba(221, 160, 221, 0.13) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 20% 40%,
      rgba(255, 182, 193, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 30%,
      rgba(255, 218, 185, 0.16) 0%,
      transparent 60%
    );
}

.footer-link {
  color: rgba(51, 51, 51, 0.85);
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover {
  color: #374151;
  transform: translateY(-2px);
}

.floating-icon {
  position: absolute;
  animation: smoothFloat 6s ease-in-out infinite;
  opacity: 0;
  animation-fill-mode: forwards;
}

.floating-icon:nth-child(1) {
  animation-delay: 0.5s;
}

.floating-icon:nth-child(2) {
  animation-delay: 2s;
}

.floating-icon:nth-child(3) {
  animation-delay: 3.5s;
}

@keyframes smoothFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-30px) rotate(-2deg);
    opacity: 1;
  }
  75% {
    transform: translateY(-15px) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 1;
  }
}

.header-floating {
  backdrop-filter: blur(100px);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(-20px);
  animation: slideInHeader 1s ease-out 0.3s forwards;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  color: #000000;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
  transform-origin: center;
}

.nav-link::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.8s ease;
  pointer-events: none;
  z-index: 0;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: #6b7280;
  transform: translateY(-2px);
}

.nav-link.active {
  background: #0a0a0d;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Page load animation */
.page-fade-in {
  opacity: 0;
  animation: pageLoad 1s ease-out forwards;
}

@keyframes pageLoad {
  to {
    opacity: 1;
  }
}

@media (min-width: 1800px) {
  .custom-4k\:top-96 {
    top: 20rem !important;
  }
  .custom-4k\:left-96 {
    left: 30rem !important;
  }
  .custom-4k\:right-96 {
    right: 30rem !important;
  }
  .custom-4k\:bottom-32 {
    bottom: 8rem !important;
  }
}

.testimonials-scroll-content {
  animation: scrollTestimonials 30s linear infinite;
}

@keyframes scrollTestimonials {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.testimonials-scroll-content:hover {
  animation-play-state: paused;
}

/* Stars styling */
.star-rating {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.star {
  color: #ffaa00;
  font-size: 22px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.star:hover {
  transform: scale(1.2) rotate(15deg);
}

/* CA Hover Overlay Styles */
.ca-logo-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ca-logo-container:hover {
  transform: scale(1.05);
}

.ca-hover-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  backdrop-filter: blur(15px);
  padding: 25px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  width: 500px;
  max-width: 90vw;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
}

.ca-logo-container:hover .ca-hover-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-15px);
}

.ca-overlay-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(240, 240, 240, 0.7);
  position: relative;
}

.ca-overlay-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.see-all-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 16px;
  color: #666;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.see-all-btn:hover {
  background: #f8f9fa;
  color: #333;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Carousel Container */
.ca-carousel-container {
  overflow: hidden;
  width: 100%;
}

.ca-courses-carousel {
  display: flex;
  gap: 15px;
  width: max-content;
  animation: slideCarousel 30s linear infinite;
  will-change: transform;
  transform: translateZ(0); /* Force hardware acceleration */
}

.ca-courses-carousel:hover {
  animation-play-state: paused;
}

/* Pause animation on mobile devices for better performance */
@media (max-width: 768px) {
  .ca-courses-carousel {
    animation-play-state: paused;
  }
}

@keyframes slideCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-255px * 3));
  }
}

.ca-course-card {
  width: 150px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  border: 2px solid #ff6778;
}

.ca-course-card:hover {
  box-shadow: 0 12px 25px rgba(255, 103, 120, 0.3);
}

.ca-course-header {
  background: #ff6778;
  padding: 15px;
  text-align: left;
}

.ca-course-code {
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.8px;
}

.ca-course-body {
  background: #ffeff1;
  min-height: 70px;
  display: flex;
  padding: 12px;
  align-items: flex-start;
}

.ca-course-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #333;
}

/* Fade-in animations for sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .robot-hand,
  .human-hand {
    width: 300px !important;
    height: 300px !important;
  }

  .ca-hover-overlay {
    width: 400px;
    padding: 20px;
  }

}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .robot-hand,
    .human-hand {
        display: none;
    }




  h1 {
    font-size: 3rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }
}

@media (max-width: 640px) {

  .lecturer-card.main {
    width: 240px;
  }

  .lecturer-card.side {
    width: 80px;
    height: 250px;
  }

  .ca-hover-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 300px;
    padding: 15px;
  }

  .testimonial-card {
    padding: 16px;
    min-height: 120px;
  }

  .testimonial-avatar {
    width: 30px;
    height: 30px;
  }

  .testimonial-text {
    font-size: 12px;
  }

  .footer-link {
    font-size: 14px;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  .our-courses-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .hero-bg {
    padding: 0 15px;
  }

  .max-w-\[1920px\] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .lecturer-card.main {
    width: 200px;
  }

  .lecturer-card.side {
    width: 60px;
    height: 200px;
  }

  .carousel-navigation {
    bottom: -60px;
    gap: 15px;
  }

  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

    /* Fix carousel layout for mobile - single card view */
    #fullwidthCarouselTrack {
        flex-direction: row;
        justify-content: center;
        gap: 10px;

        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #fullwidthCarouselTrack::-webkit-scrollbar {
        display: none;
    }

    /* Hide side cards completely on mobile */
    .lecturer-card.side {
        display: none;
    }

    /* Only show one main card */
    .lecturer-card.main {
        min-width: 280px;
        max-width: 320px;
        height: 400px;
        transform: scale(1);
        scroll-snap-align: center;
        margin: 0 auto;
    }

    /* Ensure lecturer-info is visible on mobile for main cards */
    .lecturer-card.main .lecturer-info {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        min-height: 80px !important;
        padding: 15px 12px !important;
    }

    .lecturer-card.main .lecturer-info .lecturer-name {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Show hover content permanently on mobile for main cards */
    .lecturer-card.main .lecturer-hover-content {
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }

    /* Hide the second main card on mobile */
    #mainCard2 {
        display: none;
    }

    .lecturer-name {
        font-size: 16px;
    }

    .lecturer-description {
        font-size: 12px;
        font-weight: 300;
    }

    .carousel-navigation {
        bottom: -80px;
    }

    .carousel-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Performance optimizations */
.lecturer-card,
.testimonial-card,
.ca-course-card {
  will-change: transform;
}

.robot-hand,
.human-hand {
  will-change: transform, opacity;
}
