/* ========================================
   ST. MICHAEL'S PRESCHOOL - CUSTOM STYLES
   Burgundy + Blush | Vibrant Modern
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* ---------- Floating Background Shapes ---------- */
.floating-shapes {
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.04;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #dc4b5a;
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #ff6b6b;
    bottom: 20%;
    left: -60px;
    animation-delay: -5s;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid #dc4b5a;
    top: 40%;
    left: 15%;
    animation-delay: -8s;
    opacity: 0.03;
}

.shape-square {
    width: 180px;
    height: 180px;
    background: #ff9494;
    border-radius: 30px;
    top: 60%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: -3s;
}

.shape-arch {
    width: 300px;
    height: 150px;
    border: 20px solid #dc4b5a;
    border-radius: 150px 150px 0 0;
    bottom: 10%;
    right: 20%;
    animation-delay: -12s;
    opacity: 0.03;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(3deg); }
    50% { transform: translateY(10px) rotate(-2deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

/* ---------- Geometric Hero Decorations ---------- */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.06);
    top: -150px;
    right: -150px;
    animation: spinSlow 60s linear infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.08);
    bottom: 10%;
    left: 5%;
    animation: pulse 8s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    top: 25%;
    left: 8%;
    transform: rotate(30deg);
    animation: spinSlow 45s linear infinite reverse;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    bottom: 25%;
    right: 12%;
    transform: rotate(-20deg);
    animation: spinSlow 35s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 255, 255, 0.05);
    top: 35%;
    right: 20%;
    animation: floatShape 15s ease-in-out infinite;
}

.geo-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    width: 200px;
    height: 200px;
    top: 15%;
    left: 50%;
    animation: floatShape 25s ease-in-out infinite;
}

.geo-ring-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.1);
    bottom: 30%;
    right: 5%;
    animation: pulse 6s ease-in-out infinite;
}

.geo-ring-2 {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    top: 45%;
    left: 3%;
    animation: spinSlow 50s linear infinite;
}

/* Dark section decorations */
.geo-circle-3 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.04);
    bottom: -100px;
    left: -100px;
    animation: spinSlow 55s linear infinite;
}

.geo-dots-2 {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    width: 150px;
    height: 150px;
    top: 20%;
    right: 10%;
    animation: floatShape 18s ease-in-out infinite;
}

.geo-square-3 {
    width: 100px;
    height: 100px;
    background: rgba(255, 215, 0, 0.06);
    border-radius: 18px;
    top: 10%;
    left: 15%;
    transform: rotate(15deg);
    animation: spinSlow 40s linear infinite reverse;
}

.geo-circle-4 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(220, 75, 90, 0.05);
    top: -80px;
    right: -80px;
    animation: pulse 10s ease-in-out infinite;
}

.geo-triangle-2 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 85px solid rgba(220, 75, 90, 0.06);
    bottom: 15%;
    right: 8%;
    animation: floatShape 20s ease-in-out infinite;
}

.geo-circle-5 {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.05);
    top: -120px;
    left: -120px;
    animation: spinSlow 65s linear infinite;
}

.geo-dots-3 {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    width: 180px;
    height: 180px;
    bottom: 10%;
    right: 15%;
    animation: floatShape 22s ease-in-out infinite;
}

.geo-circle-6 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(164, 32, 43, 0.08);
    top: -80px;
    left: 10%;
    animation: pulse 8s ease-in-out infinite;
}

.geo-square-4 {
    width: 90px;
    height: 90px;
    background: rgba(220, 75, 90, 0.08);
    border-radius: 16px;
    bottom: 5%;
    right: 8%;
    transform: rotate(30deg);
    animation: spinSlow 30s linear infinite;
}

.geo-circle-7 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.03);
    bottom: -150px;
    right: -150px;
    animation: spinSlow 70s linear infinite;
}

.geo-dots-4 {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    width: 160px;
    height: 160px;
    top: 15%;
    left: 8%;
    animation: floatShape 20s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

/* ---------- Backdrop Border for Cards ---------- */
.backdrop-border {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ---------- Program Cards Hover ---------- */
.program-card {
    perspective: 1000px;
}

/* ---------- Feature Card Hover ---------- */
.feature-card {
    perspective: 1000px;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal[data-reveal="up"] {
    opacity: 0;
    transform: translateY(40px);
}

.reveal[data-reveal="left"] {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal[data-reveal="right"] {
    opacity: 0;
    transform: translateX(40px);
}

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

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Mobile Menu ---------- */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#mobileMenu.open {
    max-height: 500px;
}

.menu-line {
    display: block;
}

body.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ---------- Navbar Active State ---------- */
.nav-scrolled {
    background: rgba(255, 248, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(132, 32, 43, 0.1);
}

.nav-scrolled .font-heading,
.nav-scrolled .font-body {
    color: #6f1d27 !important;
}

/* ---------- Gallery Hover ---------- */
.gallery-item {
    overflow: hidden;
    border-radius: 1.5rem;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

::-webkit-scrollbar-track {
    background: #FFF8F5;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a12531;
}

/* ---------- Selection ---------- */
::selection {
    background: #dc4b5a;
    color: white;
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #dc4b5a;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-triangle {
        border-left: 80px solid transparent;
        border-right: 80px solid transparent;
        border-bottom: 130px solid #dc4b5a;
    }
    
    .shape-square {
        width: 100px;
        height: 100px;
    }
    
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 180px;
        height: 180px;
    }
    
    .geo-square-1 {
        width: 70px;
        height: 70px;
    }
    
    .geo-square-2 {
        width: 50px;
        height: 50px;
    }
}
