/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Decorative floating shapes */
.deco-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.shape-circle-1 {
  animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
  animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-square {
  animation: float-medium 12s ease-in-out infinite;
}

.shape-triangle svg {
  width: 100%;
  height: 100%;
  opacity: 0.3;
  animation: rotate-slow 30s linear infinite;
}

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

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

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Navbar */
#navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.05);
}

#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(10, 22, 40, 0.08);
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.mobile-link:hover {
  border-bottom-color: #2DD4BF;
  color: #14B8A6;
}

/* Program cards */
.program-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Testimonial cards */
.testimonial-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Scroll reveal animations (below-fold only) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.scroll-indicator {
  animation: fadeUpDown 2s ease-in-out infinite;
}

@keyframes fadeUpDown {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
  border-color: #2DD4BF !important;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1) !important;
}

/* Selection color */
::selection {
  background: rgba(45, 212, 191, 0.3);
  color: #0A1628;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0A1628;
}

::-webkit-scrollbar-thumb {
  background: #1D3560;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2DD4BF;
}
