/* ===== Custom Styles for Little Geniuses Childcare ===== */

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

/* ===== Floating Background Shapes ===== */
.floating-shapes {
    z-index: 0;
}

.shape-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    top: 10%;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: #f59e0b;
    bottom: 20%;
    left: -50px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #c084fc;
    top: 50%;
    left: 20%;
    animation: floatShape 18s ease-in-out infinite;
}

.shape-square {
    position: absolute;
    border-radius: 24px;
    opacity: 0.06;
    background: #f59e0b;
    width: 120px;
    height: 120px;
    top: 30%;
    right: 10%;
    animation: rotateShape 25s ease-in-out infinite;
}

.shape-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.06;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #a855f7;
    bottom: 15%;
    right: 25%;
    animation: floatShape 22s ease-in-out infinite;
}

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

@keyframes rotateShape {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

/* ===== Hero Shapes ===== */
.hero-shape {
    position: absolute;
    opacity: 0.15;
}

.shape-amber-circle-1 {
    width: 500px;
    height: 500px;
    background: #fbbf24;
    border-radius: 50%;
    top: -150px;
    right: -100px;
    animation: heroFloat 12s ease-in-out infinite;
}

.shape-plum-circle-2 {
    width: 300px;
    height: 300px;
    background: #d8b4fe;
    border-radius: 50%;
    bottom: -50px;
    left: -80px;
    animation: heroFloat 16s ease-in-out infinite reverse;
}

.shape-amber-square-3 {
    width: 150px;
    height: 150px;
    background: #fde68a;
    border-radius: 30px;
    top: 30%;
    left: 5%;
    animation: heroRotate 20s ease-in-out infinite;
}

.shape-white-circle-4 {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    bottom: 25%;
    right: 15%;
    animation: heroFloat 10s ease-in-out infinite;
}

.shape-amber-triangle-5 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 85px solid #fcd34d;
    top: 20%;
    right: 25%;
    animation: heroRotate 18s ease-in-out infinite;
}

.shape-plum-dots {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 10%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 2px, transparent 2px);
    background-size: 20px 20px;
    animation: heroFloat 14s ease-in-out infinite;
}

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

@keyframes heroRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.1); }
}

/* ===== Why Us Shapes ===== */
.why-shape {
    position: absolute;
    opacity: 0.08;
}

.shape-amber-circle {
    width: 400px;
    height: 400px;
    background: #fbbf24;
    border-radius: 50%;
    top: -100px;
    left: -150px;
    animation: heroFloat 18s ease-in-out infinite;
}

.shape-plum-circle {
    width: 250px;
    height: 250px;
    background: #e9d5ff;
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    animation: heroFloat 14s ease-in-out infinite reverse;
}

.shape-white-square {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 20px;
    top: 40%;
    right: 10%;
    animation: heroRotate 22s ease-in-out infinite;
}

/* ===== CTA Shapes ===== */
.cta-shape {
    position: absolute;
    opacity: 0.1;
}

.shape-cta-circle-1 {
    width: 300px;
    height: 300px;
    background: #a855f7;
    border-radius: 50%;
    top: -80px;
    left: -80px;
    animation: heroFloat 15s ease-in-out infinite;
}

.shape-cta-circle-2 {
    width: 200px;
    height: 200px;
    background: #7e22ce;
    border-radius: 50%;
    bottom: -60px;
    right: -40px;
    animation: heroFloat 12s ease-in-out infinite reverse;
}

/* ===== Program Cards ===== */
.program-card {
    transition: transform 0.5s ease;
}

/* ===== Scroll Reveal Animations ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navbar ===== */
.nav-header {
    background: rgba(250, 245, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    box-shadow: 0 1px 20px rgba(168, 85, 247, 0.08);
}

.nav-header.scrolled {
    background: rgba(250, 245, 255, 0.98);
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.12);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #a855f7;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

/* ===== Button Animations ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Input Focus States ===== */
input:focus,
textarea:focus,
select:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15) !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #a855f7, #9333ea);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #9333ea, #7e22ce);
}

/* ===== Selection Color ===== */
::selection {
    background: #c084fc;
    color: #3b0764;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-2 {
        width: 120px;
        height: 120px;
    }
    
    .shape-3 {
        width: 80px;
        height: 80px;
    }
    
    .shape-square {
        width: 60px;
        height: 60px;
    }
    
    .shape-triangle {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 50px solid #a855f7;
    }
}
