/* Custom styles for Joy & Company */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Selection color */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* Animation for floating cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply animation to stat cards */
.absolute.top-8,
.absolute.bottom-24,
.absolute.bottom-0 {
    animation: float 6s ease-in-out infinite;
}

.absolute.bottom-24 {
    animation-delay: 1s;
}

.absolute.bottom-0 {
    animation-delay: 2s;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .absolute.top-8,
    .absolute.bottom-24,
    .absolute.bottom-0 {
        animation: none;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

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

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

/* Button hover effects */
button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.4);
}

/* Card hover effects */
.group:hover {
    transform: translateY(-2px);
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
