/* Child-Friendly & Playful Design System */
:root {
  --font-heading: 'Fredoka', 'Quicksand', sans-serif;
  --font-body: 'Quicksand', 'Fredoka', sans-serif;
  --bg-primary: #f0f9ff;
  --bg-secondary: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  
  /* Bright Kid-Friendly Colors */
  --color-pink: #ff6b8b;
  --color-orange: #ff7f50;
  --color-yellow: #ffa502;
  --color-green: #2ed573;
  --color-blue: #1e90ff;
  --color-purple: #9b59b6;
  
  --primary-glow: linear-gradient(135deg, #1e90ff 0%, #9b59b6 100%);
  --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #0f172a;
}

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

/* Floating Balloons Background */
.bubble-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.15;
  animation: floatUp 15s infinite linear;
}
.bubble-1 { left: 10%; animation-duration: 12s; animation-delay: 1s; }
.bubble-2 { left: 30%; animation-duration: 18s; animation-delay: 3s; font-size: 2rem; }
.bubble-3 { left: 50%; animation-duration: 15s; }
.bubble-4 { left: 70%; animation-duration: 20s; animation-delay: 5s; font-size: 3rem; }
.bubble-5 { left: 90%; animation-duration: 14s; animation-delay: 2s; }

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Playful Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 4px solid #e2e8f0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  border: none;
  background: transparent;
  animation: logo-spin 6s infinite ease-in-out alternate;
}

@keyframes logo-spin {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg) scale(1.05); }
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-blue);
}

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

.nav-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--color-blue);
  background: rgba(30, 144, 255, 0.08);
}

.student-portal-link {
  color: var(--color-purple) !important;
  font-weight: 700 !important;
}

.portal-btn {
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--primary-glow);
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.portal-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(30, 144, 255, 0.5);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 80px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: #ffffff;
  border: 3px solid var(--color-yellow);
  color: var(--color-orange);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(255, 165, 0, 0.15);
  animation: bounceSlow 3s infinite alternate;
}

@keyframes bounceSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: #0f172a;
}

.gradient-text {
  background: linear-gradient(to right, var(--color-pink), var(--color-orange), var(--color-yellow), var(--color-green), var(--color-blue), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400% 400%;
  animation: rainbowAnimation 8s infinite linear;
}

@keyframes rainbowAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Playful Buttons */
.btn-primary-gradient {
  padding: 16px 32px;
  border-radius: 100px;
  background: var(--primary-glow);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
  font-size: 1.1rem;
}

.btn-bounce:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(30, 144, 255, 0.6);
}

.btn-secondary {
  padding: 16px 32px;
  border-radius: 100px;
  background: #ffffff;
  border: 3px solid var(--color-purple);
  color: var(--color-purple);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 15px rgba(155, 89, 182, 0.1);
  position: relative;
}

.btn-bounce-delay:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(155, 89, 182, 0.3);
}

.coming-soon-tag {
  position: absolute;
  top: -12px; right: -10px;
  background: var(--color-orange);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 100px;
  border: 2px solid #fff;
}

/* Clouds background */
.clouds {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 100px;
  pointer-events: none;
}

.cloud {
  position: absolute;
  font-size: 4rem;
  opacity: 0.3;
  animation: floatCloud 25s infinite linear;
}
.cloud-1 { left: -100px; top: 10px; animation-duration: 20s; }
.cloud-2 { left: -100px; top: 40px; animation-duration: 30s; animation-delay: 5s; }

@keyframes floatCloud {
  0% { left: -100px; }
  100% { left: 100vw; }
}

/* Quick Stats Section */
.quick-stats {
  padding: 60px 24px;
  background: #ffffff;
  border-top: 5px solid #e2e8f0;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.stat-card {
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.card-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.stat-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.stat-card p {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Multi-color Card Presets */
.card-yellow { background-color: #fffbeb; border: 3px solid #fef3c7; }
.card-yellow h3 { color: #d97706; }
.card-pink { background-color: #fff1f2; border: 3px solid #ffe4e6; }
.card-pink h3 { color: #db2777; }
.card-green { background-color: #f0fdf4; border: 3px solid #dcfce7; }
.card-green h3 { color: #16a34a; }
.card-orange { background-color: #fff7ed; border: 3px solid #ffedd5; }
.card-orange h3 { color: #ea580c; }
.card-blue { background-color: #f0f9ff; border: 3px solid #e0f2fe; }
.card-blue h3 { color: #0284c7; }
.card-purple { background-color: #faf5ff; border: 3px solid #f3e8ff; }
.card-purple h3 { color: #7c3aed; }

/* Sections */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tag-purple { background: #f3e8ff; color: #7c3aed; border: 2px solid #e9d5ff; }
.tag-cyan { background: #ecfeff; color: #0891b2; border: 2px solid #cffafe; }
.tag-orange { background: #fff7ed; color: #ea580c; border: 2px solid #ffedd5; }

/* About Section */
.about-section {
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.15rem;
  font-weight: 500;
}

.about-bullets {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bullet {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bullet-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.bg-yellow { background: var(--color-yellow); color: #fff; }
.bg-pink { background: var(--color-pink); color: #fff; }

.bullet h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.bullet p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.glass-card-about {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: 32px;
  padding: 40px;
  text-align: center;
  max-width: 380px;
  transition: var(--transition);
  transform: rotate(2deg);
}

.glass-card-about:hover {
  transform: translateY(-8px) rotate(-1deg);
  border-color: var(--color-blue);
}

.large-about-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 20px;
  border: none;
  background: transparent;
  animation: pulseLogo 3s infinite alternate;
}

@keyframes pulseLogo {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.glass-card-about h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

/* Programs Section */
.programs-section {
  background: #ffffff;
  border-top: 5px solid #e2e8f0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 500;
}

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

.program-card {
  border-radius: 28px;
  padding: 40px;
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-8px) rotate(1deg);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.program-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.program-card p {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Portal Invitation Card */
.cta-section {
  padding: 80px 24px;
  background: var(--bg-primary);
  text-align: center;
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.05) 0%, rgba(155, 89, 182, 0.05) 100%);
  border: 4px dashed var(--color-purple);
  border-radius: 32px;
  padding: 60px 40px;
}

.cta-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #ffffff;
  border: 2px solid var(--color-purple);
  color: var(--color-purple);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-card h2 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 500;
}

.big-btn {
  padding: 16px 36px;
  font-size: 1.15rem;
}

/* Contact Section */
.contact-section {
  background: #ffffff;
  border-top: 5px solid #e2e8f0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-yellow { background: #fffbeb; border: 2px solid #fef3c7; color: #d97706; }
.icon-pink { background: #fff1f2; border: 2px solid #ffe4e6; color: #db2777; }
.icon-purple { background: #faf5ff; border: 2px solid #f3e8ff; color: #7c3aed; }

.info-item h4 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.info-item p {
  color: var(--text-secondary);
}

.location-link {
  text-decoration: underline;
  color: var(--color-blue);
  font-weight: 600;
  transition: var(--transition);
}

.location-link:hover {
  color: var(--color-purple);
}

.map-container {
  margin-top: 24px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #e2e8f0;
  height: 250px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.map-container:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.glass-form-card {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(30, 144, 255, 0.02);
}

.glass-form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  text-align: center;
}

.glass-form-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glass-form-card label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.glass-form-card input,
.glass-form-card textarea {
  width: 100%;
  padding: 14px 18px;
  background: #f8fafc;
  border: 3px solid #e2e8f0;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.glass-form-card input:focus,
.glass-form-card textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  background: #ffffff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Footer */
.footer {
  padding: 40px 24px;
  background: var(--bg-primary);
  border-top: 3px solid #e2e8f0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--color-blue);
}

/* Responsive */
@media (max-width: 968px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Language Switcher Styling */
.lang-switch-btn {
  font-weight: 700 !important;
  color: var(--color-orange) !important;
  border: 3px solid var(--color-orange) !important;
  padding: 6px 14px !important;
  border-radius: 100px !important;
  cursor: pointer;
  transition: var(--transition);
}

.lang-switch-btn:hover {
  background: rgba(255, 127, 80, 0.08) !important;
  transform: translateY(-1px);
}

/* RTL Mode Layout & Typography */
body.rtl-mode {
  font-family: 'Cairo', 'Quicksand', sans-serif;
  text-align: right;
}

body.rtl-mode h1,
body.rtl-mode h2,
body.rtl-mode h3,
body.rtl-mode h4,
body.rtl-mode .nav-brand {
  font-family: 'Cairo', 'Fredoka', sans-serif;
  font-weight: 800;
}

body.rtl-mode .navbar .nav-links {
  flex-direction: row-reverse;
}

body.rtl-mode .logo-area {
  flex-direction: row-reverse;
}

body.rtl-mode .info-item {
  flex-direction: row-reverse;
  text-align: right;
}

body.rtl-mode .about-bullets .bullet {
  flex-direction: row-reverse;
  text-align: right;
}

body.rtl-mode .program-card,
body.rtl-mode .stat-card,
body.rtl-mode .glass-form-card {
  text-align: right;
}

body.rtl-mode .glass-form-card label {
  align-items: flex-start;
}

body.rtl-mode .glass-card-about {
  transform: rotate(-2deg);
}

body.rtl-mode .glass-card-about:hover {
  transform: translateY(-8px) rotate(1deg);
}

