/* Custom styles for Gemini Music Studio */

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

/* Ensure no content is hidden behind animations by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

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

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

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #388e38;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAF5;
}
::-webkit-scrollbar-thumb {
    background: #bce3bc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8dce8d;
}

/* Input focus ring animation */
input:focus, select:focus, textarea:focus {
    animation: focus-ring 0.2s ease;
}

@keyframes focus-ring {
    from { box-shadow: 0 0 0 3px rgba(56, 142, 56, 0.1); }
    to { box-shadow: 0 0 0 3px rgba(56, 142, 56, 0.2); }
}

/* Pulse animation for the dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}
