/* Removed all dark mode code and variables, using only light theme colors with physics-themed gradients */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --physics-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  max-width: 100vw;
}

.font-poppins {
  font-family: var(--font-heading);
}

/* Added physics-themed background */
.physics-bg {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"%3E%3Ctext x="10" y="40" font-family="monospace" font-size="24" fill="%23fff" opacity="0.3"%3EE=mc²%3C/text%3E%3Ctext x="200" y="120" font-family="monospace" font-size="20" fill="%23fff" opacity="0.3"%3EF=ma%3C/text%3E%3Ctext x="400" y="80" font-family="monospace" font-size="22" fill="%23fff" opacity="0.3"%3Ev=u+at%3C/text%3E%3Ctext x="600" y="140" font-family="monospace" font-size="24" fill="%23fff" opacity="0.3"%3EV=IR%3C/text%3E%3Ctext x="800" y="60" font-family="monospace" font-size="20" fill="%23fff" opacity="0.3"%3EPV=nRT%3C/text%3E%3Ctext x="1000" y="130" font-family="monospace" font-size="22" fill="%23fff" opacity="0.3"%3Eλ=h/p%3C/text%3E%3C/svg%3E');
  background-repeat: repeat;
}

/* Navigation */
.nav-link {
  position: relative;
  color: #1f2937;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #3b82f6;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #1f2937;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  font-weight: 500;
}

.mobile-nav-link:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  color: #3b82f6;
}

/* Updated hero slider with smooth fade transitions and 5-second hold time */
.hero-slider {
  position: relative;
  width: 100%;
}

.slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hero image focal point: keep important content visible when using object-fit:cover
   On mobile adjust the object-position to show more of the subject (prevent top/bottom cut). */
.hero-slider .slide img {
  object-fit: cover;
  object-position: center center; /* default */
}

@media (max-width: 640px) {
  .hero-slider .slide img {
    /* shift focal point slightly upward so the middle/top of the image remains visible
       adjust this percentage if you need more/less top area visible (e.g. 25% or 35%). */
    object-position: center 30%;
  }
}

/* Added animated pulse effect for logo */
@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Enhanced slider buttons with gradient backgrounds */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  z-index: 10;
}

.slider-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.25));
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

/* Enhanced dot indicators with gradient active state */
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
}

.dot.active {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  width: 40px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.5);
}

/* Course cards with hover animations */
.course-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.course-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Benefit cards with gradient hover effects */
.benefit-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.benefit-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-12px);
  border-color: rgba(59, 130, 246, 0.3);
}

.benefit-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: rotate(360deg) scale(1.1);
}

/* Topic cards with physics theme */
.topic-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.topic-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
  border-left-color: #3b82f6;
}

/* Testimonial cards with modern design */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

/* Gallery cards with clickable cursor and hover effects */
.gallery-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-8px);
}

/* WhatsApp float button positioned on left bottom */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.whatsapp-float {
  animation: float 3s ease-in-out infinite;
}

/* Scroll to top button with gradient */
#scrollTop {
  transition: opacity 0.3s, transform 0.3s;
}

#scrollTop.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: scale(1);
}

/* Vertical text for enquiry sidebar */
.writing-mode-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Swiper customizations with theme colors */
.swiper-button-next,
.swiper-button-prev {
  color: #3b82f6 !important;
  background: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
}

.swiper-pagination-bullet {
  background: #3b82f6 !important;
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
  width: 32px;
  border-radius: 6px;
}

/* Lightbox styles */
#lightbox {
  display: none;
}

#lightbox.active {
  display: flex !important;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

/* Fixed enquiry sidebar positioning to right side center and ensure it's on all pages */
#enquirySidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
}

#enquiryToggle {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 1.5rem 0.75rem;
  border-radius: 0.75rem 0 0 0.75rem;
  cursor: pointer;
  box-shadow: -4px 4px 20px rgba(249, 115, 22, 0.4);
  transition: all 0.3s ease;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 1rem;
}

#enquiryToggle:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  box-shadow: -6px 6px 30px rgba(249, 115, 22, 0.6);
  transform: translateX(-5px);
}

#enquiryForm {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 400px;
  max-width: 90vw;
  background: white;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
  z-index: 950;
}

#enquiryForm:not(.translate-x-full) {
  transform: translateX(0);
}

/* Changed gallery page hero gradient to better color scheme for text visibility */
.gallery-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #db2777 100%);
}

.gallery-hero h1,
.gallery-hero p {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .slider-btn {
    width: 44px;
    height: 44px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    left: 20px;
  }

  #scrollTop {
    bottom: 90px !important;
    right: 20px !important;
    width: 50px;
    height: 50px;
  }

  /* Hide enquiry sidebar on mobile devices */
  #enquirySidebar {
    display: none !important;
  }
}

/* Print Styles */
@media print {
  .whatsapp-float,
  header,
  footer,
  .slider-btn,
  .slider-dots,
  #scrollTop,
  #enquirySidebar {
    display: none !important;
  }
}

/* Added filter button styles */
.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.filter-btn.active {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Added smooth gallery item transitions */
.gallery-item {
  transition: all 0.3s ease;
}
