/* Custom styles for Creative Blocks for Tots Learning Center */

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

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

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

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

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

/* Service card hover effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(229, 85, 51, 0.1);
}

/* Mobile menu animations */
.mobile-link {
    position: relative;
    transition: color 0.3s ease;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e55533;
    transition: width 0.3s ease;
}

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

/* Mobile menu button animation */
#menu-btn.active .menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line-2 {
    opacity: 0;
}

#menu-btn.active .menu-line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card:hover img {
        transform: none;
    }
}

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

/* Print styles */
@media print {
    header,
    #contact-form,
    #form-success,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
