/* FCPC Custom Styles */
:root {
  --navy: #0a1628;
  --navy-light: #1e3a5f;
  --gold: #d4a424;
  --gold-light: #f0c850;
  --dark: #1a1a2e;
  --white: #f5f5f5;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* Navbar */
#navbar, nav {
  transition: all 0.3s ease;
  background: transparent;
}
#navbar.scrolled, nav.scrolled {
  background-color: var(--navy) !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* WhatsApp FAB Pulse (homepage uses .whatsapp-fab) */
.whatsapp-fab {
  animation: pulse 2s infinite;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-overlay {
  background: linear-gradient(to bottom, rgba(10, 22, 40, 0.7), rgba(10, 22, 40, 0.9));
}

/* Hover Cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Gallery Hover */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox */
#lightbox {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(10, 22, 40, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
}
#lightbox.active {
  display: flex;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid var(--gold);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 3rem;
  cursor: pointer;
  padding: 20px;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Schedule Table */
.schedule-table tr:nth-child(even) {
  background-color: var(--navy-light);
}
.schedule-table tr:hover {
  background-color: rgba(212, 164, 36, 0.1);
}

/* WhatsApp FAB */
.wa-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}
.wa-fab:hover {
  transform: scale(1.1);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer Gradient Border */
footer {
  border-top: 4px solid var(--gold);
}

/* Form Styling */
.custom-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--navy-light);
  color: var(--white);
  transition: border-color 0.3s ease;
}
.custom-input:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

/* Video Player Aspect Ratio */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.video-container video, .video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* Mobile Menu Animations */
.hamburger {
  cursor: pointer;
}
.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease;
  background-color: var(--white);
}
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Age Group Cards Gradient Border */
.age-card {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--dark), var(--dark)), linear-gradient(to right, var(--gold), var(--navy-light));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Development Pathway Timeline */
.timeline {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin-left: 10px;
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

/* Fade in animation */
.fade-in {
  animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll to top */
#scrollTopBtn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: var(--gold);
  color: var(--navy);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}
#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
}
