/* Custom styles for YI Insurance Services */

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

/* Scroll reveal base - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 251, 247, 0.95) !important;
    box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8bc34a;
}

/* Selection color */
::selection {
    background: #c5e1a5;
    color: #0d3311;
}

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

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

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

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

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle card hover glow */
.group:hover .group-hover\\:bg-forest-200 {
    background-color: #c5e1a5 !important;
}

/* Loading animation for form */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Hero decorative elements */
.hero-blob {
    animation: float 6s ease-in-out infinite;
}

.hero-blob-2 {
    animation: float 8s ease-in-out infinite reverse;
}

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

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

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