/* Smart Steps Daycare - Bootstrap 5.3 Enhanced Styles */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap");

:root {
  --bs-primary: #ff69b4;
  --bs-primary-rgb: 255, 105, 180;
  --bs-secondary: #87ceeb;
  --bs-secondary-rgb: 135, 206, 235;
  --bs-success: #90ee90;
  --bs-success-rgb: 144, 238, 144;
  --bs-warning: #ffe135;
  --bs-warning-rgb: 255, 225, 53;
  --bs-info: #add8e6;
  --bs-info-rgb: 173, 216, 230;
  --bs-light: #f8f9fa;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark: #2c3e50;
  --bs-dark-rgb: 44, 62, 80;

  /* Custom colors */
  --accent-purple: #dda0dd;
  --accent-orange: #ffa500;
  --light-pink: #ffb6c1;
  --light-blue: #add8e6;
}

/* Global Styles */
body {
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Fredoka", "Comic Sans MS", cursive;
  font-weight: 600;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Fredoka", cursive;
  font-weight: 700;
}

/* Floating background elements */
.bg-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.1;
}

.floating-shape:nth-child(1) {
  width: 80px;
  height: 80px;
  background: var(--bs-warning);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  width: 120px;
  height: 120px;
  background: var(--bs-success);
  top: 60%;
  right: 15%;
  animation-delay: -2s;
}

.floating-shape:nth-child(3) {
  width: 60px;
  height: 60px;
  background: var(--accent-purple);
  top: 80%;
  left: 20%;
  animation-delay: -4s;
}

.floating-shape:nth-child(4) {
  width: 100px;
  height: 100px;
  background: var(--accent-orange);
  top: 30%;
  right: 30%;
  animation-delay: -1s;
}

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

/* Custom Navbar */
.custom-navbar {
  background: linear-gradient(
    135deg,
    var(--bs-primary) 0%,
    var(--bs-secondary) 50%,
    var(--light-pink) 100%
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(255, 105, 180, 0.3);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.custom-gradient {
  background: linear-gradient(
    135deg,
    var(--bs-primary) 0%,
    var(--bs-secondary) 50%,
    var(--light-pink) 100%
  );
  backdrop-filter: blur(10px);
}

.navbar-brand {
  text-decoration: none;
  color: white !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  padding: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  object-fit: contain;
}

.logo-img:hover {
  transform: rotate(360deg);
}

.brand-text {
  font-family: "Fredoka", cursive;
  font-weight: 700;
  font-size: 1.8rem;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--bs-warning) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  margin-top: 80px;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.3"/><circle cx="80" cy="20" r="3" fill="%23ffffff" opacity="0.2"/><circle cx="40" cy="60" r="1" fill="%23ffffff" opacity="0.4"/><circle cx="90" cy="90" r="2" fill="%23ffffff" opacity="0.3"/><circle cx="10" cy="90" r="1.5" fill="%23ffffff" opacity="0.2"/></svg>')
    repeat;
  animation: sparkle 20s linear infinite;
  pointer-events: none;
}

@keyframes sparkle {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-50px) translateY(-50px);
  }
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.carousel-indicators [data-bs-target] {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: transparent;
  opacity: 0.5;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--bs-warning);
}

/* Feature Image */
.feature-image {
  transition: transform 0.3s ease;
}

.feature-image:hover {
  transform: scale(1.05);
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
  border-radius: 25px !important;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 105, 180, 0.2) !important;
}

.feature-icon {
  font-size: 4rem;
  line-height: 1;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Program Cards */
.program-card {
  transition: all 0.3s ease;
  border-radius: 25px !important;
  overflow: hidden;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.program-card img {
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.program-icon {
  font-size: 3rem;
  line-height: 1;
}

/* Moment Cards */
.moment-card {
  height: 300px;
  transition: transform 0.3s ease;
}

.moment-card:hover {
  transform: scale(1.05);
}

.moment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.moment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.moment-card:hover .moment-overlay {
  opacity: 1;
}

/* Buttons */
.btn {
  font-family: "Fredoka", cursive;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.2rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.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: left 0.5s ease;
}

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

/* Forms */
.form-control,
.form-select {
  border-radius: 15px;
  border: 2px solid #dee2e6;
  padding: 12px 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
  transform: scale(1.02);
}

.form-label {
  font-weight: 600;
  color: var(--bs-dark);
  font-family: "Fredoka", cursive;
}

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

.gallery-item {
  /* aspect-ratio: 1; */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1.5rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .image-overlay {
  transform: translateY(0);
}

/* Team Cards */
.team-card {
  transition: all 0.3s ease;
  border-radius: 25px !important;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.team-photo {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--light-pink), var(--light-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  margin: 0 auto 1.5rem;
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.animate__fadeInUp {
  animation: fadeInUp 1s ease-out;
}

.animate__delay-1s {
  animation-delay: 1s;
}

.animate__delay-2s {
  animation-delay: 2s;
}

/* Image Sliders */
.image-slider-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.image-slider {
  position: relative;
  height: 500px;
}
/* 
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    font-size: 1.3rem;
    font-family: 'Fredoka', cursive;
    font-weight: 600;
    text-align: center;
} */

/* Responsive Design */
@media (max-width: 768px) {
  .logo-img {
    width: 50px;
    height: 50px;
  }

  .brand-text {
    font-size: 1.4rem;
  }

  .hero-slide {
    background-attachment: scroll;
    min-height: 70vh;
  }

  .display-2 {
    font-size: 2.5rem;
  }

  .feature-icon,
  .program-icon {
    font-size: 2.5rem;
  }

  .moment-card {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .logo-img {
    width: 45px;
    height: 45px;
  }

  .brand-text {
    font-size: 1.15rem;
  }

  .hero-slide {
    min-height: 60vh;
  }

  .display-2 {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--bs-primary) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-primary:hover {
  background-color: #e55aa1;
  border-color: #e55aa1;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Custom Bootstrap overrides */
.container {
  max-width: 1200px;
}

.card {
  border: none;
  border-radius: 20px;
}

.rounded-4 {
  border-radius: 1.5rem !important;
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* Dynamic animations and effects */
@keyframes confettiFall {
  from {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-in {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar.scrolled {
  background: rgba(255, 105, 180, 0.95) !important;
  backdrop-filter: blur(10px);
}

/* Popup Modal Styles */
.popup-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 600px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.4s ease-out;
  overflow: hidden;
}

.popup-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-popup:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    margin: 10% auto;
  }

  .close-popup {
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .popup-content {
    width: 98%;
    margin: 15% auto;
    border-radius: 15px;
  }

  .popup-image {
    border-radius: 15px;
  }
}

footer a:hover {
  color: var(--bs-warning) !important;
}
