/* styles.css - Enhanced with Navbar Dark Mode Button */
:root {
  --primary: #32cd32;
  --secondary: #af005d;
  --accent: #c42e00;
  --light-bg: #f8f9fa;
  --dark-bg: #121212;
  --light-text: #212529;
  --dark-text: #e0e0e0;
  --gradient: linear-gradient(135deg, #32cd32, #af005d);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  --nav-gradient: linear-gradient(90deg, #4b134f, #c42e00);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--light-text);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(50, 205, 50, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 20, 147, 0.05) 0%, transparent 20%);
  background-attachment: fixed;
}

body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(50, 205, 50, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 20, 147, 0.03) 0%, transparent 20%);
}

/* NAVBAR INTEGRATED DARK MODE TOGGLE */
.mode-toggle {
  background: linear-gradient(135deg, #ffcc00, #ffffff);
  border: none;
  border-radius: 50%;
  color: #000;
  padding: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-left: 15px;
}

.mode-toggle:hover {
  background: linear-gradient(135deg, #4b134f, #c94b4b);
  color: #fff;
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 6px 20px rgba(75, 19, 79, 0.4);
}

body.dark-mode .mode-toggle {
  background: linear-gradient(135deg, #666, #888);
  color: #fff;
}

/* STABLE NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-gradient);
  padding: 15px 50px;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  min-height: 70px;
}

.navbar.scrolled {
  background: rgba(75, 19, 79, 0.95);
  padding: 10px 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 40px;
}

.logo_img {
  height: 40px;
  width: auto;
  transition: all 0.5s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  border-radius: 8px;
}

.logo_img:hover {
  transform: rotate(360deg) scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

.name {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  height: 100%;
}

.name:hover {
  color: #ffcc00;
  transform: translateY(-2px);
}

/* NAVBAR RIGHT SECTION - Contains auth buttons and dark mode */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

/* SMART NAV MENU - Auto-hide when space is limited */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
  align-items: center;
  height: 100%;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 44px;
  border: 2px solid transparent;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Add this to your existing CSS - Smart Hamburger Menu Fix */
/* SMARTER HAMBURGER - Always show on mobile, hide on desktop */
.hamburger {
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    height: 44px;
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    color: white;
}

.hamburger:hover {
    transform: scale(1.1);
    color: #ffcc00;
}

/* Mobile-first responsive design */
@media (max-width: 950px) {
    .navbar .nav-menu {
        display: none !important;
    }
    
    .navbar .auth-buttons {
        display: none !important;
    }
    
    .navbar .mode-toggle {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
        opacity: 1;
        visibility: visible;
    }
    
    /* Ensure navbar doesn't get too crowded on very small screens */
    .navbar {
        padding: 12px 20px;
    }
    
    .navbar-left {
        flex: 1;
    }
    
    .name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .logo_img {
        height: 35px;
    }
    
    .name {
        font-size: 1.1rem;
    }
    
    .hamburger {
        font-size: 1.6rem;
        padding: 8px;
    }
}


/* STABLE DROPDOWN */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 15px 0;
  z-index: 1000;
  animation: dropdownFade 0.3s ease;
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-menu {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(50, 50, 50, 0.95));
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  padding: 12px 25px;
  display: block;
  text-decoration: none;
  color: var(--light-text);
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0;
  margin: 0;
}

body.dark-mode .dropdown-menu a {
  color: var(--dark-text);
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: translateX(10px);
  padding-left: 35px;
}

/* STABLE AUTH BUTTONS */
.auth-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  height: 100%;
}

.button_login {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 12px 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  height: 44px;
  white-space: nowrap;
}

.button_login:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.button-neon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(50, 205, 50, 0.3);
  display: flex;
  align-items: center;
  height: 44px;
  white-space: nowrap;
}

.button-neon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.button-neon:hover::before {
  left: 100%;
}

.button-neon:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(50, 205, 50, 0.6), 0 0 40px rgba(255, 20, 147, 0.4);
}

/* SIDEBAR STYLES - Ensure it works on mobile */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #4b134f, #c94b4b);
    color: #fff;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding-top: 80px;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
}

.sidebar.open {
    left: 0;
}

.sidebar .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 20px;
}

.sidebar .nav-item {
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar .nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.sidebar .auth-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    margin-top: 20px;
}

.sidebar .button_login,
.sidebar .button-neon {
    width: 100% !important;
    text-align: center;
    justify-content: center;
}

.sidebar .mode-toggle {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

/* Hero Section - Refined & Sophisticated */
.hero {
  background: #0a0a0f;
  text-align: center;
  padding: 200px 20px 120px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(180, 130, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(100, 200, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.hero-content {
  max-width: 820px;
  z-index: 1;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  color: #ffffff;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero h1 .highlight {
  color: #b8a5ff;
  font-weight: 400;
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #b8a5ff, #8b7fd4);
  opacity: 0.4;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 48px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.cta-button {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 48px;
  font-size: 0.95rem;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.cta-button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cta-button .arrow {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-button:hover .arrow {
  transform: translateX(6px);
}

/* Subtle decoration - minimal geometric accent */
.hero-decoration {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  top: 10%;
  right: -100px;
  pointer-events: none;
}

.hero-decoration-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  bottom: -200px;
  left: -200px;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 160px 20px 80px;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.1rem;
    padding: 0 10px;
  }
  
  .cta-button {
    padding: 14px 36px;
    font-size: 0.85rem;
  }
  
  .hero-decoration,
  .hero-decoration-2 {
    display: none;
  }
}

/* Enhanced Features Section */
.features {
  padding: 100px 20px;
  text-align: center;
  background: var(--light-bg);
  position: relative;
}

body.dark-mode .features {
  background: var(--dark-bg);
}

.features h2 {
  font-size: 2.8rem;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  animation: fadeIn 1s ease-out;
}

.features h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 100px; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  padding: 40px 25px;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  max-width: 350px;
  text-align: center;
  background: white;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
}

body.dark-mode .feature-item {
  background: #1e1e1e;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.feature-item:hover::before {
  transform: scaleX(1);
}

.feature-item:hover {
  transform: translateY(-15px);
  box-shadow: var(--hover-shadow);
}

.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
  transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.2) rotate(10deg);
  color: var(--secondary);
}

.feature-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 25px;
  transition: all 0.5s ease;
  filter: brightness(0.9);
}

.feature-item:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.feature-item h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-item:hover h3 {
  color: var(--secondary);
  transform: translateY(-3px);
}

.feature-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--light-text);
}

body.dark-mode .feature-item p {
  color: var(--dark-text);
}

/* Enhanced Testimonials */
.testimonials {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  position: relative;
  overflow: hidden;
}

body.dark-mode .testimonials {
  background: linear-gradient(135deg, #2c3e50, #34495e);
}

.testimonials h2 {
  font-size: 2.8rem;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
}

.testimonials h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.testimonial-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  overflow: hidden;
  height: 400px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: slideUp 25s linear infinite;
}

.testimonial-item {
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  font-style: italic;
  text-align: left;
  background: white;
  transition: all 0.4s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

body.dark-mode .testimonial-item {
  background: rgba(30, 30, 30, 0.9);
}

.testimonial-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-item::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(50, 205, 50, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}

.testimonial-item p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.testimonial-item cite {
  margin-top: 15px;
  font-size: 1rem;
  color: #666;
  display: block;
  font-style: normal;
  font-weight: 600;
  position: relative;
  padding-left: 25px;
}

body.dark-mode .testimonial-item cite {
  color: #aaa;
}

.testimonial-item cite::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--primary);
}

@keyframes slideUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.right-column {
  animation-direction: reverse;
  animation-duration: 30s;
}

/* Enhanced Schools Section */
.schools {
  text-align: center;
  margin: 100px 0;
  padding: 0 20px;
}

.schools h2 {
  font-size: 2.8rem;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.schools h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.school-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  position: relative;
  height: 400px;
  max-width: 1200px;
  margin: 0 auto;
}

.school-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slide 15s linear infinite;
  padding: 20px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
  min-width: 200px;
}

body.dark-mode .school-item {
  background: #1e1e1e;
}

.school-item:hover {
  transform: scale(1.05);
  box-shadow: var(--hover-shadow);
}

.school-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
  transition: all 0.4s ease;
}

.school-item:hover .school-img {
  transform: rotate(15deg) scale(1.1);
  border-color: var(--primary);
}

.school-item p {
  font-weight: 600;
  color: var(--light-text);
  transition: all 0.3s ease;
}

body.dark-mode .school-item p {
  color: var(--dark-text);
}

@keyframes slide {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-500%);
  }
}

/* Enhanced CTA Section */
.cta {
  text-align: center;
  padding: 100px 20px;
  background: #4b134f;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 25px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease-out;
}

.cta p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1s ease-out 0.3s both;
}

/* Enhanced Footer */
.footer {
  background: var(--nav-gradient);
  color: white;
  text-align: center;
  padding: 60px 20px 30px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  font-size: 0.9rem;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  animation: expandWidth 2s ease-out;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: #ffcc00;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-section:hover h3::after {
  width: 100%;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 15px 0;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.footer-section ul li:hover {
  transform: translateX(10px);
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section a:hover {
  color: #ffcc00;
  transform: translateX(5px);
}

.tutors-login-btn {
  background: linear-gradient(135deg, #ffcc00, #f1f1f1);
  color: #4b134f;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.tutors-login-btn:hover {
  background: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 204, 0, 0.5);
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* SMART RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .navbar {
    padding: 15px 30px;
  }
  
  .nav-menu {
    gap: 15px;
  }
}

@media (max-width: 1100px) {
  .nav-link {
    padding: 10px 15px;
    font-size: 0.95rem;
  }
  
  .button_login,
  .button-neon {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  
  .mode-toggle {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    margin-left: 10px;
  }
}

/* Critical breakpoint - show hamburger when space is truly limited */
@media (max-width: 950px) {
  .navbar .nav-menu {
    display: none;
  }
  
  .auth-buttons {
    display: none;
  }
  
  .mode-toggle {
    display: none;
  }
  
  .hamburger {
    display: flex;
    opacity: 1;
    visibility: visible;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }
  
  .hero {
    padding: 150px 20px 80px;
    margin-top: 70px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .features h2,
  .testimonials h2,
  .schools h2,
  .cta h2 {
    font-size: 2.2rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .testimonial-wrapper {
    flex-direction: column;
    height: auto;
    gap: 25px;
  }
  
  .testimonial-column {
    animation: none;
  }
  
  .testimonial-item {
    max-width: 100%;
  }
  
  .school-slider {
    height: 350px;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-section ul li {
    justify-content: center;
  }
  
  /* Show dark mode toggle in sidebar on mobile */
  .sidebar .mode-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 15px;
  }
  
  .hero {
    padding: 120px 15px 60px;
    min-height: 80vh;
    margin-top: 70px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 15px 30px;
    font-size: 1rem;
  }
  
  .features,
  .testimonials,
  .schools,
  .cta {
    padding: 60px 15px;
  }
  
  .feature-item {
    padding: 25px 20px;
  }
  
  .testimonial-item {
    padding: 20px;
  }
  
  .school-slider {
    height: 300px;
  }
  
  .footer {
    padding: 40px 15px 20px;
  }
  
  .sidebar {
    width: 280px;
    left: -280px;
  }
}

/* Enhanced Scroll Animations */
.section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus styles for accessibility */
:focus {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 5px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img[src] {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Elevated Card Styling */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


/* Sign-In Section */
.sign-in-container {
    margin: auto;
    margin-top: 100px;
    position: relative;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 2px solid transparent;
    border-image: linear-gradient(90deg, #4b134f, #c94b4b) 1;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1); /* Transparent background */
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.sign-in-container h2 {
    font-weight: 600;
    margin-bottom: 20px;
}

.sign-in-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sign-in-form label {
    text-align: left;
    font-weight: 500;
    color: inherit;
}

.sign-in-form input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
    background-color: rgba(255, 255, 255, 0.6);
    color: #333;
}

.sign-in-form input:focus {
    border-color: #c94b4b;
}

.sign-in-form .btn {
    padding: 10px;
    font-size: 16px;
    color: white;
    background: linear-gradient(90deg, #4b134f, #c94b4b);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.sign-in-form .btn:hover {
    transform: scale(1.05);
}

.register-link {
    font-size: 14px;
}

.register-link a {
    color: #c94b4b;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Sign-Up Container */
.sign-up-container {
    margin: auto;
    margin-top: 100px;
    position: relative;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    border: 2px solid transparent;
    border-image: linear-gradient(90deg, #4b134f, #c94b4b) 1;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.sign-up-container h2 {
    font-weight: 600;
    margin-bottom: 20px;
}

/* Sign-Up Form */
.sign-up-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.sign-up-form label {
    display: flex;
    flex-direction: column;
    flex: 0 0 48%; /* Divide fields into two columns */
    text-align: left;
    font-weight: 500;
    color: inherit;
}

.sign-up-form input,
.sign-up-form select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
    background-color: rgba(255, 255, 255, 0.6);
    color: #333;
}

.sign-up-form input:focus,
.sign-up-form select:focus {
    border-color: #c94b4b;
}

/* Submit Button */
.sign-up-form .btn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: white;
    background: linear-gradient(90deg, #4b134f, #c94b4b);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.sign-up-form .btn:hover {
    transform: scale(1.05);
}

/* Terms Link */
.terms-link {
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

.terms-link a {
    color: #c94b4b;
    text-decoration: none;
    font-weight: 600;
}

.terms-link a:hover {
    text-decoration: underline;
}

/* Already Have an Account */
.already-account {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    color: #666;
}

.already-account a {
    color: #c94b4b;
    font-weight: 600;
    text-decoration: none;
}

.already-account a:hover {
    text-decoration: underline;
}


/* Pricing Section */
.section.packages {
    text-align: center;
    padding: 3rem 2rem;
}

.section.packages h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section.packages .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #aeaeae;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 6px 12px rgb(255, 0, 0);
    /*background: #fff;*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgb(2, 255, 82);
    cursor: pointer;
}

.pricing-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2rem;
    color: #4caf50;
    margin: 1rem 0;
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.pricing-card .features li {
    margin-bottom: 0.5rem;
}

.pricing-card.basic {
    border-top: 5px solid #2196f3;
}

.pricing-card.pro {
    border-top: 5px solid #fbc02d;
}

.pricing-card.premium {
    border-top: 5px solid #e91e63;
}

/* Call to Action Section */
.cta {
    border: 2px solid #06b20e;
    border-radius: 8px;
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}


/* Tutors Section */
.section.for-tutors {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgb(204, 255, 1);
    text-align: center;
}
.tutors-title {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.tutors-intro, .tutors-closing {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 30px;
}
.tutors-intro .highlight, .tutors-closing .highlight {
    color: var(--highlight-color);
    font-weight: bold;
}
.benefits {
    text-align: left;
    margin-bottom: 20px;
}
.benefits-heading {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.benefits-list {
    list-style-type: none;
    padding: 0;
}
.benefits-list li {
    font-size: 1rem;
    line-height: 1.8;
    margin: 10px 0;
    color: var(--secondary-color);
}
.benefits-list li strong {
    color: var(--highlight-color);
}
.apply-now-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.2rem;
    color: var(--secondary-color);
    background: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgb(12, 0, 116);
    transition: all 0.3s ease-in-out;
}
.apply-now-btn:hover {
    background: var(--highlight-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgb(204, 255, 1);

}
@media (max-width: 600px) {
    .sign-up-container {
        width: auto;
        padding: 15px;
    }

    .sign-up-form {
        flex-direction: column; /* Stack inputs vertically */
        gap: 10px;
    }

    .sign-up-form label {
        flex: 0 0 85%; /* Make inputs full width */
    }

    .sign-up-form input,
    .sign-up-form select {
        width: 95%;
    }

    .sign-up-form .btn {
        font-size: 14px;
        padding: 12px;
    }
}

/* courses.html */
        .user-menu {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }

        .container {
            margin-top: 100px;
            max-width: 1200px;
            padding: 2rem;
        }

        .dashboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .welcome-section h1 {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .welcome-section p {
            color: #666;
        }

        .dark-mode .welcome-section p {
            color: #aaa;
        }

        .stats-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 4px 12px rgba(201, 201, 201, 0.771);
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
        }

        .icon-lessons {
            background-color: var(--primary-color);
        }

        .icon-quiz {
            background-color: var(--success-color);
        }

        .icon-streak {
            background-color: var(--warning-color);
        }

        .stat-info h3 {
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
        }

        .stat-info p {
            font-size: 0.9rem;
            color: #666;
        }

        .dark-mode .stat-info p {
            color: #aaa;
        }

        .dashboard-section {
            margin-bottom: 3rem;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .section-header h2 {
            font-size: 1.5rem;
        }

        .view-all {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
        }

        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .course-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .course-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .course-image {
            height: 140px;
            position: relative;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .math-bg {
            background: linear-gradient(135deg, #4361ee, #3a0ca3);
        }

        .science-bg {
            background: linear-gradient(135deg, #4cc9f0, #3f37c9);
        }

        .course-category {
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .course-badge {
            background-color: white;
            color: var(--primary-color);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .progress-ring {
            position: relative;
            width: 60px;
            height: 60px;
        }

        .progress-ring-bg {
            fill: none;
            stroke: rgba(255, 255, 255, 0.2);
            stroke-width: 6;
        }

        .progress-ring-circle {
            fill: none;
            stroke: white;
            stroke-width: 6;
            stroke-linecap: round;
            stroke-dasharray: 163;
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
            transition: stroke-dashoffset 0.5s;
        }

        .progress-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .course-content {
            padding: 1.5rem;
        }

        .course-content h3 {
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
        }

        .course-content p {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .dark-mode .course-content p {
            color: #aaa;
        }

        .course-stats {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            font-size: 0.8rem;
            color: #666;
        }

        .dark-mode .course-stats {
            color: #aaa;
        }

        .btn-primary, .btn-secondary {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 500;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-family: 'Poppins', sans-serif;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--secondary-color);
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
        }

        .btn-secondary:hover {
            background-color: rgba(67, 97, 238, 0.1);
        }

        .empty-state {
            text-align: center;
            padding: 3rem 2rem;
            color: #666;
        }

        .dark-mode .empty-state {
            color: #aaa;
        }

        .empty-state i {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #ccc;
        }

        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }

        .action-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s;
            cursor: pointer;
            text-decoration: none;
            color: var(--text-color);
        }

        .action-card:hover {
            transform: translateY(-5px);
        }

        .action-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }

        @media (max-width: 768px) {

            .dashboard-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .courses-grid {
                grid-template-columns: 1fr;
            }

            .stats-cards {
                grid-template-columns: 1fr;
            }
          }

        
