:root {
  /* Colors */
  --primary-color: #1a3a5c;
  --secondary-color: #f4b400;
  --accent-color: #ff6b35;
  --bg-color: #ffffff;
  --bg-off-white: #f8fafc;
  --text-dark: #1e293b;
  --text-black: #0f172a;
  --text-light: #64748b;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #1a3a5c 0%, #0d2035 100%);
  --grad-accent: linear-gradient(135deg, #f4b400 0%, #ff8c00 100%);
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Metrics */
  --radius-card: 12px;
  --radius-pill: 50px;
  --section-pad: 5rem 0;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 20px rgba(244, 180, 0, 0.4);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hide default cursor on desktop for custom cursor */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, input, textarea, select {
    cursor: none;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-black);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.text-gold { color: var(--secondary-color); }
.bg-off-white { background-color: var(--bg-off-white); }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary-color); }
.section-subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto 3rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--secondary-color);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #e0a600;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
}

/* Loading Screen */
.loader-wrapper {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.loader-logo {
  max-width: 150px;
  height: auto;
  animation: pulse 2s infinite;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(26, 58, 92, 0.2);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
}
.cursor-dot {
  width: 8px; height: 8px;
  background-color: var(--secondary-color);
}
.cursor-outline {
  width: 40px; height: 40px;
  border: 2px solid rgba(26, 58, 92, 0.3);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  transition: var(--transition);
}
.navbar.scrolled .logo {
  color: var(--primary-color);
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-weight: 500;
  color: #fff;
  position: relative;
  transition: var(--transition);
}
.navbar.scrolled .nav-link {
  color: var(--text-dark);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link:hover, .nav-link.active {
  color: var(--secondary-color);
}
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger .bar {
  display: block;
  width: 25px; height: 3px;
  margin: 5px auto;
  background-color: #fff;
  transition: var(--transition);
}
.navbar.scrolled .hamburger .bar {
  background-color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; height: 100vh;
  background: var(--bg-color);
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: right 0.4s ease;
}
.mobile-menu-overlay.active {
  right: 0;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-nav-link {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.bg-shapes {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background: #000;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-container {
  display: flex;
  justify-content: center;
  text-align: center;
  z-index: 2;
}
.hero-content {
  max-width: 800px;
}
.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  animation: bounce 2s infinite;
  z-index: 10;
}

/* Stats */
.stats-bar {
  padding: 3rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: var(--bg-color);
}
.stats-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
}
.stat-number {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* About */
.about {
  padding: var(--section-pad);
}
.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.about-content {
  flex: 1;
}
.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.1rem;
}
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.pill {
  padding: 0.5rem 1.2rem;
  background: var(--bg-off-white);
  color: var(--primary-color);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(26, 58, 92, 0.1);
}
.about-visual {
  flex: 1;
  position: relative;
  height: 400px;
}
.css-classroom {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-off-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.board {
  position: absolute;
  top: 10%; left: 10%; right: 10%; height: 40%;
  background: #2c3e50;
  border: 4px solid #8b4513;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.math-equation {
  color: #fff;
  font-family: monospace;
  font-size: 2rem;
  opacity: 0.8;
}
.desk {
  position: absolute;
  width: 20%; height: 15%;
  background: #d4a373;
  border-radius: 4px;
  bottom: 15%;
}
.desk-1 { left: 15%; }
.desk-2 { left: 40%; }
.desk-3 { left: 65%; }
.teacher-avatar {
  position: absolute;
  width: 40px; height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  bottom: 55%; left: 15%;
}

/* Founder */
.founder {
  padding: var(--section-pad);
  background: var(--bg-color);
}
.founder-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.founder-content {
  flex: 1;
}
.founder-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}
.founder-image-wrapper {
  position: relative;
  max-width: 400px;
  width: 100%;
}
.founder-image {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  display: block;
}
.founder-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: 4px solid #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  line-height: 1.2;
}
.founder-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.founder-role {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}
.founder-qualifications {
  background: var(--bg-off-white);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 1.5rem;
}
.founder-bio {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Courses */
.courses {
  padding: var(--section-pad);
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.course-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}
.course-icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.course-icon svg { width: 30px; height: 30px; color: #fff; }
.blue-bg { background: var(--primary-color); }
.gold-bg { background: var(--secondary-color); }
.orange-bg { background: var(--accent-color); }

.course-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.course-desc {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.learn-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.learn-more .arrow {
  transition: transform 0.3s;
}
.course-card:hover .learn-more .arrow {
  transform: translateX(5px);
}

/* Why Us */
.why-us {
  padding: var(--section-pad);
  background: var(--bg-color);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.why-box {
  padding: 2rem;
  border-radius: var(--radius-card);
  background: var(--bg-off-white);
  transition: var(--transition);
}
.why-box:hover {
  background: #f0f4f8;
}
.why-icon {
  width: 50px; height: 50px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.why-icon svg { width: 24px; height: 24px; }
.why-box:hover .why-icon {
  transform: scale(1.1);
  background: var(--primary-color);
  color: #fff;
}
.why-box h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.why-box p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Gallery */
.gallery {
  padding: var(--section-pad);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.gallery-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Testimonials */
.testimonials {
  padding: var(--section-pad);
  overflow: hidden;
}
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-card {
  min-width: 100%;
  padding: 3rem;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.stars {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-dark);
}
.student-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: left;
}
.avatar {
  width: 50px; height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
}
.student-info h5 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.student-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel-btn {
  background: #fff;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.carousel-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(26, 58, 92, 0.2);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* CTA */
.cta {
  padding: 6rem 0;
  background: var(--grad-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg-shapes {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}
.cta-title {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}
.btn-pulse {
  background: var(--secondary-color);
  color: #fff;
  box-shadow: var(--shadow-glow);
  animation: pulse 2s infinite;
}

/* Footer / Contact */
.footer {
  background: var(--bg-off-white);
  padding: var(--section-pad) 0 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.centered-footer {
  justify-content: center;
  padding-bottom: 4rem;
}
.center-info {
  width: 100%;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.footer-desc {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.row-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
  width: 100%;
  text-align: left;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-dark);
}
.contact-item svg {
  width: 24px; height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
}
.center-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.social-icons a {
  width: 45px; height: 45px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}
.map-large {
  width: 100%;
  height: 300px;
  background: #e2e8f0;
  border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  font-weight: 500;
}
.footer-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-dark);
}
.contact-item svg {
  width: 24px; height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
}
.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.social-icons a {
  width: 40px; height: 40px;
  background: var(--bg-off-white);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-dark);
}
.social-icons a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}
.map-placeholder {
  width: 100%;
  height: 150px;
  background: #e2e8f0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  font-weight: 500;
}

.footer-bottom {
  background: var(--primary-color);
  color: rgba(255,255,255,0.7);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}
.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a:hover {
  color: #fff;
}
