/* Custom Styles for Vida's Stepping Stones Learning Center */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Geometric decorative shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: #9cc07e;
    border-radius: 50%;
    top: 10%;
    left: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: #c5dbb2;
    border-radius: 50%;
    bottom: 15%;
    right: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #73a04f;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-diamond-1 {
    width: 80px;
    height: 80px;
    background: #527d36;
    top: 60%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite reverse;
}

/* Floating card animations */
.floating-card-1 {
    animation: float-card-1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-card-2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-card-3 6s ease-in-out infinite;
}

@keyframes float-card-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

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

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

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

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

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

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

/* Navigation active state */
.nav-link.active {
    color: #527d36;
}

/* Navbar background on scroll */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

::-webkit-scrollbar-thumb {
    background: #9cc07e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #73a04f;
}

/* Reduced motion preference */
@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;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(82, 125, 54, 0.15);
}

/* Print styles */
@media print {
    .geo-shape, .floating-card-1, .floating-card-2, .floating-card-3 {
        display: none;
    }
}
