/* ============================================
   Independence Missouri Public Schools
   Custom Styles
   ============================================ */

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

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

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

/* ============================================
   Decorative Background Shapes
   ============================================ */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.deco-circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 138, 74, 0.08) 0%, transparent 70%);
  top: 10%;
  right: -100px;
}

.deco-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 212, 130, 0.12) 0%, transparent 70%);
  bottom: 20%;
  left: -80px;
}

.deco-circle-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(74, 138, 74, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 30%;
}

.deco-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 40px 70px 40px;
  border-color: transparent transparent rgba(74, 138, 74, 0.07) transparent;
  top: 30%;
  left: 5%;
  transform: rotate(-15deg);
}

.deco-triangle-1 {
  border-width: 0 30px 52px 30px;
  top: 60%;
  right: 8%;
  transform: rotate(20deg);
  border-color: transparent transparent rgba(240, 212, 130, 0.1) transparent;
}

.deco-diamond {
  position: absolute;
  width: 30px;
  height: 30px;
  background: rgba(74, 138, 74, 0.08);
  transform: rotate(45deg);
  border-radius: 4px;
  top: 40%;
  right: 15%;
}

.deco-diamond-1 {
  width: 20px;
  height: 20px;
  background: rgba(240, 212, 130, 0.12);
  top: 70%;
  left: 12%;
}

/* ============================================
   Floating Card Animations
   ============================================ */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

.card-1 {
  animation-delay: 0s;
}

.card-2 {
  animation-delay: 1.3s;
}

.card-3 {
  animation-delay: 2.6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
  background: rgba(254, 253, 248, 0.85);
  backdrop-blur: 16px;
  border-bottom: 1px solid rgba(45, 87, 45, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  box-shadow: 0 4px 20px rgba(45, 87, 45, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4a8a4a;
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
  display: block;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion - content always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .floating-card {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  .floating-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-bottom: 12px;
  }
}

/* ============================================
   Accessibility
   ============================================ */
:focus-visible {
  outline: 3px solid #4a8a4a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
  background: rgba(74, 138, 74, 0.2);
  color: #1c361c;
}
