/* Style System for Frolic International Kids School */

/* --- ROOT CONFIGURATIONS & VARIABLES --- */
:root {
  --color-purple: #6c33a3;
  --color-purple-dark: #4e1d7e;
  --color-purple-light: #f5f0fb;
  --color-yellow: #fca311;
  --color-yellow-light: #fffcf0;
  --color-red: #ff4b5c;
  --color-orange: #ff8264;
  --color-blue: #00b4d8;
  --color-blue-light: #e0f7fa;
  --color-green: #3cd1a4;
  --color-green-light: #e8fcf6;
  --color-pink: #ff7597;
  --color-pink-light: #ffeef2;
  
  --color-text-dark: #2c2738;
  --color-text-muted: #5b556b;
  --color-bg-light: #fcfaf5;
  --color-white: #ffffff;
  
  --font-main: 'Quicksand', sans-serif;
  --font-heading: 'Fredoka', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-soft: 0 10px 30px rgba(108, 51, 163, 0.05);
  --shadow-medium: 0 15px 35px rgba(108, 51, 163, 0.08);
  --shadow-hover: 0 20px 45px rgba(108, 51, 163, 0.15);
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-purple-dark);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- REUSABLE UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

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

.section-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-yellow);
  background-color: var(--color-yellow-light);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.text-white {
  color: var(--color-white) !important;
}

.text-white-opacity {
  color: rgba(255, 255, 255, 0.8) !important;
}

.hide {
  display: none !important;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-primary {
  background-color: var(--color-purple);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-purple-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 51, 163, 0.2);
}

.btn-secondary {
  background-color: var(--color-yellow);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: #e59000;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(252, 163, 17, 0.2);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-purple);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.btn-block {
  width: 100%;
}

/* --- FLOATING DECORATIONS --- */
.decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.cloud, .star {
  position: absolute;
  color: rgba(255, 255, 255, 0.25);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.05));
  animation: float-decor 8s ease-in-out infinite;
}

.cloud-1 { top: 15%; left: 5%; font-size: 3rem; animation-delay: 0s; }
.cloud-2 { top: 45%; right: 5%; font-size: 4rem; animation-delay: 2s; }
.cloud-3 { top: 75%; left: 8%; font-size: 3.5rem; animation-delay: 4s; }

.star-1 { top: 25%; right: 15%; font-size: 1.5rem; color: rgba(252, 163, 17, 0.3); animation-delay: 1s; }
.star-2 { top: 60%; left: 20%; font-size: 2rem; color: rgba(0, 180, 216, 0.3); animation-delay: 3s; }
.star-3 { top: 85%; right: 25%; font-size: 1.8rem; color: rgba(255, 75, 92, 0.3); animation-delay: 5s; }

@keyframes float-decor {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* --- HEADER & NAVIGATION --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(252, 250, 245, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 2px dashed rgba(108, 51, 163, 0.05);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
  border-bottom-style: solid;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

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

.logo-img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-purple);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: var(--transition-smooth);
}

.logo-brand:hover .logo-img {
  transform: scale(1.1) rotate(10deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
}

.letter {
  display: inline-block;
  animation: bounce-letters 2s ease-in-out infinite alternate;
}

/* Fun colorful letters for FROLIC */
.char-f { color: var(--color-red); animation-delay: 0.1s; }
.char-r { color: var(--color-green); animation-delay: 0.2s; }
.char-o { color: var(--color-yellow); animation-delay: 0.3s; }
.char-l { color: var(--color-blue); animation-delay: 0.4s; }
.char-i { color: var(--color-orange); animation-delay: 0.5s; }
.char-c { color: var(--color-purple); animation-delay: 0.6s; }

@keyframes bounce-letters {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  position: relative;
  padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-purple);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-yellow);
  border-radius: 10px;
  transition: var(--transition-smooth);
}

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

.nav-cta {
  padding: 8px 20px;
  font-size: 0.95rem;
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-purple-dark);
  position: relative;
  transition: background 0.3s;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--color-purple-dark);
  left: 0;
  transition: var(--transition-smooth);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Responsive Nav Bar */
@media (max-width: 991px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -5px 0 30px rgba(108, 51, 163, 0.1);
    z-index: 1050;
    transition: var(--transition-smooth);
    padding: 120px 40px 40px;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .nav-cta {
    width: 100%;
    margin-top: 15px;
  }
  
  /* Active states for toggle */
  .nav-toggle.open .hamburger {
    background: transparent;
  }
  .nav-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }
  .nav-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
  }
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
  padding: 160px 0 140px;
  overflow: hidden;
  color: var(--color-white);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero-content .badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 18px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-title .highlight {
  color: var(--color-yellow);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(252, 163, 17, 0.3);
  z-index: -1;
  border-radius: 10px;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 36px;
  opacity: 0.9;
}

.hero-subtitle strong {
  color: var(--color-yellow);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-graphics {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.illustration-frame {
  position: relative;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border: 8px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  animation: blob-animate 12s ease-in-out infinite alternate;
}

@keyframes blob-animate {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
  100% { border-radius: 60% 40% 60% 40% / 40% 50% 50% 60%; }
}

.hero-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: var(--transition-smooth);
}

.illustration-frame:hover .hero-illustration {
  transform: scale(1.12);
}

.floating-rocket {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 70px;
  height: 70px;
  animation: rocket-float 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.25));
}

@keyframes rocket-float {
  0% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-15px) rotate(15deg); }
  100% { transform: translateY(-5px) rotate(0deg); }
}

.wave-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.wave-bottom .wave-path {
  fill: var(--color-bg-light);
}

/* --- ABOUT SECTION --- */
.about-section {
  padding: 100px 0;
  position: relative;
}

.about-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mission-statement {
  background-color: var(--color-white);
  padding: 36px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  border-left: 6px solid var(--color-purple);
  margin-bottom: 30px;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 2.2rem;
  color: var(--color-purple-light);
  z-index: 1;
}

.mission-statement p {
  font-size: 1.15rem;
  color: var(--color-text-dark);
  line-height: 1.7;
  position: relative;
  z-index: 2;
  font-weight: 500;
}

.institution-note {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
}

.institution-note span {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.polaroid-frame {
  background-color: var(--color-white);
  padding: 16px 16px 36px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-medium);
  transform: rotate(-3deg);
  transition: var(--transition-smooth);
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.polaroid-frame:hover {
  transform: rotate(1deg) scale(1.03);
  box-shadow: var(--shadow-hover);
}

.about-img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
}

.polaroid-caption {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-text-dark);
}

/* --- APPROACH SECTION --- */
.approach-section {
  position: relative;
  background-color: var(--color-purple);
  padding: 150px 0 100px;
  z-index: 2;
}

.approach-section .wave-top {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.approach-section .wave-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.approach-section .wave-top .wave-path {
  fill: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.approach-card {
  background-color: var(--color-white);
  padding: 36px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
  border-bottom: 5px solid transparent;
}

.approach-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Hover dynamic bottom border colored like logo */
.approach-card:nth-child(1):hover { border-bottom-color: var(--color-red); }
.approach-card:nth-child(2):hover { border-bottom-color: var(--color-green); }
.approach-card:nth-child(3):hover { border-bottom-color: var(--color-yellow); }
.approach-card:nth-child(4):hover { border-bottom-color: var(--color-blue); }
.approach-card:nth-child(5):hover { border-bottom-color: var(--color-orange); }
.approach-card:nth-child(6):hover { border-bottom-color: var(--color-pink); }

.card-icon {
  width: 65px;
  height: 65px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

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

.card-color-1 { background-color: var(--color-pink-light); color: var(--color-pink); }
.card-color-2 { background-color: var(--color-green-light); color: var(--color-green); }
.card-color-3 { background-color: var(--color-yellow-light); color: var(--color-yellow); }
.card-color-4 { background-color: var(--color-blue-light); color: var(--color-blue); }
.card-color-5 { background-color: #fdf0ec; color: var(--color-orange); }
.card-color-6 { background-color: var(--color-purple-light); color: var(--color-purple); }

.card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- FACILITIES SECTION --- */
.facilities-section {
  padding: 100px 0;
  background-color: var(--color-white);
}

.illustration-bubble-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 6px solid var(--color-purple-light);
  animation: blob-animate-reverse 15s ease-in-out infinite alternate;
}

@keyframes blob-animate-reverse {
  0% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
  50% { border-radius: 60% 40% 40% 60% / 40% 60% 50% 50%; }
  100% { border-radius: 50% 50% 60% 40% / 60% 40% 40% 60%; }
}

.facilities-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1.1;
  transition: var(--transition-smooth);
}

.illustration-bubble-wrapper:hover .facilities-img {
  transform: scale(1.08);
}

.facilities-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.facilities-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.facilities-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.facilities-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.facility-item-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.color-blue { background-color: var(--color-blue-light); color: var(--color-blue); }
.color-pink { background-color: var(--color-pink-light); color: var(--color-pink); }
.color-yellow { background-color: var(--color-yellow-light); color: var(--color-yellow); }

.facilities-list li h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.facilities-list li p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- CTA BANNER --- */
.cta-banner {
  padding: 60px 0;
  position: relative;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-red) 100%);
  border-radius: var(--border-radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: var(--color-white);
  box-shadow: 0 20px 40px rgba(255, 75, 92, 0.15);
  overflow: hidden;
}

.cta-decor-star {
  position: absolute;
  color: rgba(255, 255, 255, 0.2);
  animation: pulse 3s infinite alternate;
}

.cta-star-1 { top: 20px; left: 30px; font-size: 2rem; }
.cta-star-2 { bottom: 20px; right: 35px; font-size: 1.5rem; animation-delay: 1.5s; }

.cta-decor-rocket {
  position: absolute;
  top: -20px;
  right: 15%;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.2; }
  100% { transform: scale(1.2); opacity: 0.5; }
}

.cta-card h2 {
  font-size: 2.2rem;
  color: var(--color-white);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .cta-card h2 {
    font-size: 2.8rem;
  }
}

.cta-card p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* --- GALLERY SECTION --- */
.gallery-section {
  padding: 100px 0;
  position: relative;
  background-color: var(--color-purple-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: var(--color-white);
  border: 4px solid var(--color-white);
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(108, 51, 163, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2.2rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-yellow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-actions {
  text-align: center;
  margin-top: 40px;
}

.gallery-item.hidden-item {
  display: none;
}

.gallery-grid.show-all .gallery-item.hidden-item {
  display: block;
  animation: fade-in-grid 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fade-in-grid {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- LIGHTBOX MODAL --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 39, 56, 0.9);
  backdrop-filter: blur(12px);
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  z-index: 3010;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.open .lightbox-content-wrapper {
  transform: scale(1);
}

.lightbox-content-wrapper img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--border-radius-md);
  border: 5px solid var(--color-white);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--color-yellow);
  transform: scale(1.1);
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: 100px 0;
  position: relative;
  background-color: var(--color-bg-light);
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-white);
  padding: 30px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(108, 51, 163, 0.05);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-purple-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-purple);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-purple-dark);
}

.contact-text p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.phone-link {
  font-weight: 600;
  color: var(--color-purple);
}

.phone-link:hover {
  color: var(--color-yellow);
}

.text-center {
  text-align: center !important;
}

@media (min-width: 768px) {
  .contact-details {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
  
  .contact-item {
    flex: 1;
    min-height: 220px;
  }
}

/* --- FOOTER --- */
.main-footer {
  background-color: var(--color-purple-dark);
  color: var(--color-white);
  padding: 80px 0 0;
  border-top: 5px solid var(--color-yellow);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1.2fr;
  }
}

.footer-brand .logo-brand .logo-img {
  border-color: var(--color-yellow);
}

.footer-brand .logo-brand .brand-title {
  color: var(--color-white);
}

.footer-brand .logo-brand .brand-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.footer-about {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 20px;
  line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.25rem;
  color: var(--color-yellow);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 5px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-yellow);
  padding-left: 5px;
}

.footer-contact p {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-phones a {
  display: inline-block;
  opacity: 0.8;
  margin-bottom: 8px;
}

.footer-phones a:hover {
  opacity: 1;
  color: var(--color-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-credit {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* --- ADMISSIONS MODAL --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(108, 51, 163, 0.4);
  backdrop-filter: blur(8px);
}

.modal-content-wrapper {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 30px 60px rgba(78, 29, 126, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2010;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.open .modal-content-wrapper {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--color-red);
  transform: rotate(90deg);
}

.modal-heading {
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-align: center;
}

.modal-subheading {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-form .form-group {
  margin-bottom: 16px;
}

/* --- SCROLL REVEAL CLASS --- */
.scroll-reveal {
  opacity: 1;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.js-enabled .scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
}

body.js-enabled .scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Animation utilities */
.animate-pop-in {
  opacity: 0;
  transform: scale(0.8);
  animation: pop-in-kf 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up-kf 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.animate-scale-in {
  opacity: 0;
  transform: scale(0.95);
  animation: scale-in-kf 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.animate-fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.3s; }

@keyframes pop-in-kf {
  to { opacity: 1; transform: scale(1); }
}

@keyframes fade-in-up-kf {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in-kf {
  to { opacity: 1; transform: scale(1); }
}

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--color-white);
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(18, 140, 126, 0.5);
}

.whatsapp-icon {
  font-size: 34px;
}

/* Tooltip on hover */
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: var(--color-purple-dark);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--color-purple-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  right: 80px;
}

/* Pulse animation to attract attention */
.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25d366;
  z-index: -1;
  opacity: 0.4;
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-icon {
    font-size: 28px;
  }
  .whatsapp-float:hover .whatsapp-tooltip {
    display: none; /* Hide tooltip on mobile */
  }
}
