@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Vibrant & Playful Palette */
  --primary: #FF5E7E;    /* Coral Pink */
  --primary-glow: rgba(255, 94, 126, 0.4);
  --secondary: #FFB845;  /* Warm Yellow/Orange */
  --tertiary: #4FACFE;   /* Sky Blue */
  --purple: #B28DFF;     /* Soft Purple */
  --success: #38E54D;    /* Vibrant Green */
  
  --bg-color: #F8F9FA;
  --text-dark: #2D3436;
  --text-light: #636E72;
  --white: #FFFFFF;
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 1);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Add subtle dot background pattern */
  background-image: radial-gradient(var(--tertiary) 0.5px, transparent 0.5px);
  background-size: 30px 30px;
  background-position: 0 0;
  background-color: #fdfdfd;
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 6px;
  bottom: -10px;
  left: 25%;
  background: linear-gradient(90deg,var(--secondary), var(--primary));
  border-radius: 10px;
}

.subtext {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(45deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================
   LAYOUT CLASSES
========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(79,172,254,0.05) 50%, rgba(255,255,255,0) 100%);
}

/* =========================================
   NAVBAR (GLASSMORPHISM)
========================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 15px 5%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1.1rem;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
  border-radius: 5px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  gap: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.btn::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: all 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary {
  background: linear-gradient(45deg, var(--primary), #FF8A9B);
  color: var(--white);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px var(--primary-glow);
}

.btn.secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn.danger {
  background: linear-gradient(45deg, #FF4D4D, #FF7676);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 77, 77, 0.4);
}

.btn.danger:hover {
  transform: translateY(-3px);
}

/* =========================================
   HERO SECTIONS
========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(255,184,69,0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(79,172,254,0.1), transparent 40%);
}

.hero-text {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.hero-text h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
}

.hero-img img {
  width: 100%;
  max-width: 500px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

/* Blob Background Shapes */
.blob {
  position: absolute;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  opacity: 0.15;
  filter: blur(40px);
  border-radius: 50%;
  z-index: 0;
  animation: pulseBlob 8s infinite alternate ease-in-out;
}
.blob-1 { top: -10%; right: -5%; width: 500px; height: 500px; }
.blob-2 { bottom: -10%; left: -10%; width: 400px; height: 400px; background: linear-gradient(135deg, var(--tertiary), var(--purple)); }

.page-hero {
  padding: 160px 20px 100px;
  text-align: center;
  background: linear-gradient(135deg, var(--tertiary), var(--purple));
  color: var(--white);
  border-radius: 0 0 50px 50px;
  box-shadow: 0 10px 30px rgba(178, 141, 255, 0.3);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%);
  background-size: 30px 30px;
  z-index: 0;
  opacity: 0.5;
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* =========================================
   FEATURES GRID (CARDS)
========================================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature i {
  color: var(--white);
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--tertiary), var(--purple));
  border-radius: 50%;
  padding: 15px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 15px rgba(79, 172, 254, 0.4);
}

.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* =========================================
   FORMS
========================================= */
.form-container {
  max-width: 800px;
  margin: 120px auto 60px;
  background: var(--white);
  padding: 50px;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  text-align: center;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.school-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px dashed #eee;
}

.school-header h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.school-header p {
  color: var(--text-light);
  margin: 2px 0;
}

.section h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 30px 0 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

label {
  display: block;
  font-weight: 500;
  margin: 15px 0 5px;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fdfdfd;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  margin-bottom: 15px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background: var(--white);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

/* Checkbox styling */
label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.2rem;
  margin-top: 30px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(255, 94, 126, 0.3);
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 94, 126, 0.4);
}

.form-box {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.complaint {
  background: linear-gradient(to right, #ffffff, #fff5f5);
  border: 1px solid rgba(255, 77, 77, 0.2);
}

/* =========================================
   TABLES & PROGRAMS
========================================= */
.table-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--glass-border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: rgba(79, 172, 254, 0.1);
  color: var(--tertiary);
  font-weight: 600;
}

tr:hover td {
  background-color: rgba(0,0,0,0.01);
}

.total td {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  background: rgba(255, 94, 126, 0.05);
}

.monthly {
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  color: white;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(255, 184, 69, 0.3);
}

.syllabus {
  background: #fdfdfd;
  padding: 30px;
  border-radius: 20px;
  margin-top: 30px;
  border-left: 5px solid var(--tertiary);
  box-shadow: var(--shadow-sm);
}

.syllabus h3 {
  color: var(--tertiary);
  margin-bottom: 15px;
}

.syllabus ul {
  list-style-type: none;
}

.syllabus ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-weight: 500;
}

.syllabus ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 800;
  background: rgba(56, 229, 77, 0.1);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
}

.docs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.docs li {
  background: var(--white);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 50px;
  font-weight: 500;
  border: 1px solid #eee;
}

.docs li::before {
  content: '📄';
  position: absolute;
  left: 20px;
  font-size: 1.2rem;
}

/* =========================================
   CTA SECTION
========================================= */
.cta {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  padding: 80px 20px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  border-radius: 50%;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}
.cta h2::after { display: none; }

/* =========================================
   FOOTER
========================================= */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px;
  text-align: center;
}

footer p {
  font-size: 1rem;
}

/* =========================================
   ANIMATIONS
========================================= */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseBlob {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(20px, 20px); }
}
/* Intersection Observer Classes */
.hidden-scroll {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transform-origin: center;
  transition: 
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.show-scroll {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Slide animations (center-focused) */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px) scale(0.96);
  transform-origin: center;
  transition: 
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px) scale(0.96);
  transform-origin: center;
  transition: 
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.show-slide {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding-top: 120px;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 3.5rem;
  }
  
  .hero-text {
    margin-bottom: 40px;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-img img {
    max-width: 80%;
  }

  .nav-links {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .page-hero {
    padding: 120px 20px 80px;
  }
  
  .page-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .form-container {
    padding: 30px 20px;
    margin-top: 100px;
  }
}