/* ============================================
   Nowata City Schools — Custom Styles
   ============================================ */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
    backdrop-filter: blur(10px);
}

/* ============================================
   Blob Shapes (Hero Decoration)
   ============================================ */
.shape-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.4;
    animation: blobFloat 8s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 179, 203, 0.5), rgba(255, 130, 168, 0.2));
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 214, 225, 0.6), rgba(255, 180, 203, 0.2));
    bottom: 20%;
    left: 8%;
    animation-delay: -3s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 214, 225, 0.1));
    top: 40%;
    left: 20%;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* ============================================
   Scroll Reveal Animations
   Only active when JS is enabled and user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Stagger children */
    .reveal-stagger > * {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
    .reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
    .reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
    .reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
}

/* ============================================
   Focus Styles (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #800020;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #f9cfd9;
    color: #6b001a;
}

/* ============================================
   Mobile Menu Transition
   ============================================ */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

#mobileMenu.hidden {
    animation: slideUp 0.2s ease forwards;
}

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

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

/* ============================================
   Card Hover Effects
   ============================================ */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:rotate-3 {
    transform: rotate(3deg);
}

/* ============================================
   Image Aspect Ratios
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Form Input Transitions
   ============================================ */
input,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #mobileMenu,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
