/* Custom styles for Healthy Smiles of Indiana */

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

/* Particle animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 0.7;
    }
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(5, 13, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

body.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
body.menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
body.menu-open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* Mobile menu open state */
body.menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
body.menu-open #bar1 {
    transform: translateY(4px) rotate(45deg);
}

body.menu-open #bar2 {
    opacity: 0;
}

body.menu-open #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* Section reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover glow */
.group:hover .absolute.inset-0 {
    opacity: 1 !important;
}

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

::-webkit-scrollbar-track {
    background: #050D1A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #D4A843, #B8860B);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #FBBF24, #D4A843);
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

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

/* Image hover zoom */
img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gold gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #FBBF24, #D4A843);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pulse for the badge */
@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .particle {
        display: none;
    }
}
