/* Custom styles for Allergy Center of Connecticut */

/* Blob animations */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 50px) scale(1.05);
    }
}

.animate-blob {
    animation: blob 7s ease-in-out infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

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

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* For reduced motion preference - no animations */
@media (prefers-reduced-motion: reduce) {
    .animate-blob {
        animation: none;
    }
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    .service-card, .condition-item {
        transition: none;
    }
}

/* Mobile link transitions */
.mobile-link {
    opacity: 1;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(126, 34, 206, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #7e22ce !important;
}

.nav-scrolled .nav-logo-sub {
    color: #a855f7 !important;
}

/* Service card hover */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Condition item hover */
.condition-item {
    transition: transform 0.2s ease;
}

.condition-item:hover {
    transform: translateX(4px);
}

/* Selection color */
::selection {
    background: rgba(168, 85, 247, 0.2);
    color: #581c87;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

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

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

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

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

/* Mobile menu animation */
#mobileMenu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #f3e8ff 0%, #fef3c7 100%);
}
