/* Enhanced Font and Variables */
:root {
    --font-inter: 'Inter', sans-serif;
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-inter);
    line-height: 1.6;
    color: var(--text-dark);
}

html {
    scroll-behavior: smooth;
}


/* Enhanced Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Course Cards */
.course-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* z-index: -1; */
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.6s;
}

.course-card:hover::before {
    left: 100%;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.course-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.course-card:hover .card-icon {
    transform: rotate(5deg) scale(1.1);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

.card-details.active {
    max-height: 300px;
    opacity: 1;
    padding-top: 16px;
}

/* Enhanced CTA Buttons */
.cta-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    font-weight: 500;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.cta-button::after {
    content: '→';
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(4px);
}

/* Enhanced Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-slides {
    position: relative;
    height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    display: flex;
    /* align-items: center; */
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
    z-index: -1;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.3);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* background: rgba(255, 255, 255, 0.2); */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced Form Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Component Visibility */
.visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#navbar-container,
#footer-container {
    opacity: 0;
    transition: opacity 0.6s ease;
}

#navbar-container.visible,
#footer-container.visible {
    opacity: 1;
}





/* Enhanced Mobile Menu */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(-10px);
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

/* Hero Background Pattern */
.bg-hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    background-size: 400px 400px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%; 
    }
    50% { 
        background-position: 100% 100%, 0% 0%; 
    }
}

/* Pulse Animation */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    #nav-links {
        display: none;
    }
    
    .course-card {
        padding: 16px;
    }
    
    .carousel-slide {
        padding: 20px;
    }
    
    .carousel-prev,
    .carousel-next {
        padding: 8px;
    }
}

@media (min-width: 768px) {
    #mobile-menu-button,
    #mobile-menu {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .carousel-prev,
    .carousel-next,
    .carousel-controls,
    #mobile-menu-button {
        display: none !important;
    }
}

/* --- Navbar Dropdown Robust Fixes --- */
.group.relative {
  position: relative;
  z-index: 1000000;
}
.group.relative .absolute {
  z-index: 1000001 !important;
  pointer-events: auto !important;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.group.relative .absolute.opacity-0,
.group.relative .absolute.invisible {
  pointer-events: none !important;
}
#mobile-menu {
  z-index: 1000002 !important;
}
body, html, #main-navbar, .max-w-7xl, .mx-auto, .px-4, .sm\:px-6, .lg\:px-8 {
  overflow: visible !important;
}
/* --- End Navbar Dropdown Robust Fixes --- */

/* --- Mobile Navbar Robust Fixes --- */
#mobile-menu {
  z-index: 1000002 !important;
  position: absolute !important;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-radius: 0 0 1rem 1rem;
  overflow: visible !important;
}
#main-navbar, .max-w-7xl, .mx-auto, .px-4, .sm\:px-6, .lg\:px-8 {
  overflow: visible !important;
}
body, html {
  overflow-x: visible !important;
}
/* --- End Mobile Navbar Robust Fixes --- */

/* Carousel Icon Styles */
.carousel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15), 0 1.5px 6px rgba(139, 92, 246, 0.10);
  margin-bottom: 1rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide.active .carousel-icon {
  animation: carousel-icon-pop 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes carousel-icon-pop {
  0% { transform: scale(0.7) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
/* End Carousel Icon Styles */

/* Carousel Background Image Styles */
.carousel-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.carousel-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.40;
  filter: blur(0.5px) brightness(0.95);
}
.carousel-slide .carousel-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.10) 100%);
  z-index: 1;
  pointer-events: none;
}
/* End Carousel Background Image Styles */

/* Navbar Always On Top Fix */
#main-navbar, #navbar-container {
  position: fixed !important;
  z-index: 2147483647 !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

/* Ensure carousel and other content never overlap navbar */
.carousel-slides, .carousel-slide, .carousel-bg-img, .carousel-icon {
  z-index: 0 !important;
}

body, html {
  padding-top: 64px !important;
}

/* Spacer for fixed navbar */
#navbar-spacer {
  height: 64px !important;
  min-height: 64px !important;
  width: 100%;
  display: block;
}
/* End Navbar Always On Top Fix */

/* Split Banner Carousel Slide */
.carousel-slide.split-banner {
  min-height: 400px;
  height: 400px;
  max-height: 600px;
  background: none !important;
  box-shadow: none !important;
  padding: 0;
}
@media (min-width: 768px) {
  .carousel-slide.split-banner {
    flex-direction: row;
    height: 600px;
    min-height: 600px;
    max-height: 600px;
  }
  .carousel-slide.split-banner .carousel-content {
    padding-left: 4rem;
    padding-right: 2rem;
  }
  .carousel-slide.split-banner .carousel-img-side {
    padding-right: 4rem;
    padding-left: 2rem;
  }
}
.carousel-slide.split-banner .carousel-content {
  background: none;
  color: #222;
  z-index: 2;
}
.carousel-slide.split-banner .carousel-img-side {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .carousel-slide.split-banner .carousel-img-side {
    height: 100%;
  }
}
.carousel-slide.split-banner .carousel-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(59,130,246,0.10);
}
/* End Split Banner Carousel Slide */

