/* Future Kids Learning Center - Modern Stylesheet */

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

/* Root variables */
:root {
  --primary-green: #4CAF50;
  --secondary-green: #2E8B57;
  --light-green: #98FB98;
  --dark-green: #1B5E20;
  --accent-orange: #FF8C00;
  --background-light: #f9f9f9;
  --background-white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--background-light) 0%, #e8f5ea 100%);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  color: var(--dark-green);
}

p {
  margin-bottom: 1rem;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  box-shadow: 0 4px 20px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  animation: fadeInUp 1s ease-out;
}

.logo-subtitle {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.nav {
  display: flex;
  list-style: none;
}

.nav-item a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.5rem;
  margin: 0 0.125rem;
  border-radius: 25px;
  transition: var(--transition);
  font-weight: 500;
  white-space: nowrap;
}

.nav-item a:hover,
.nav-item a.active {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(46, 139, 87, 0.9) 100%), url('../images/mainpic.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Subtle parallax */
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1.5s ease-out;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: bounceIn 2s ease-out;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary-green) 100%);
  color: white;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  margin: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.section {
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease-out;
}

.section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--secondary-green);
}

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

.card {
  background: var(--background-white);
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.card-content {
  padding: 2rem;
}

.card-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--light-green) 0%, var(--primary-green) 100%);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Forms */
form {
  background: var(--background-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.gallery-loading {
  text-align: center;
  padding: 50px;
  font-size: 1.2rem;
  color: var(--text-light);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--secondary-green) 100%);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Micro-interactions */
.change-bg:hover {
  animation: changeBg 0.5s ease-in-out infinite alternate;
}

@keyframes changeBg {
  0% { background-color: var(--primary-green); }
  100% { background-color: var(--accent-orange); }
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-green);
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Progress Bar for Forms */
.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #ddd;
  border-radius: 5px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-orange));
  width: 0%;
  transition: width 0.3s ease;
}

/* Enrollment Form Steps */
.step {
  display: none;
}

.step.active {
  display: block;
}

/* Info Sections */
.info-section {
  margin-bottom: 1.5rem;
}

.info-section h4 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-section p {
  margin: 0;
}

/* Admin Panel Styles */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--light-green);
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 25px 25px 0 0;
  border-bottom: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-green);
  color: white;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Team/Event Lists */
.team-item,
.event-item,
.holiday-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--background-white);
}

.team-item-content,
.event-item-content,
.holiday-item-content {
  flex: 1;
}

.team-item-actions,
.event-item-actions,
.holiday-item-actions {
  display: flex;
  gap: 0.5rem;
}

/* Schedule Items */
.schedule-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: var(--background-white);
  border-radius: 8px;
}

.schedule-item input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.schedule-item .btn-secondary {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}
