/* Custom styles for Peters Shelli R DDS */

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

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

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

::-webkit-scrollbar-thumb {
    background: #a11531;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #80132d;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Pulse animation for decorative elements */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

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

/* Bounce animation for scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Card hover effects */
.group:hover .group-hover\:bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.group:hover .group-hover\:text-white {
    color: #ffffff;
}

.group:hover .group-hover\:text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(161, 21, 49, 0.2);
}

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

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

/* Image loading placeholder */
img {
    background-color: #f3f4f6;
}

/* Print styles */
@media print {
    .scroll-reveal,
    .animate-fade-in-up,
    .animate-pulse,
    .animate-bounce {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    nav,
    #contact-form,
    .animate-bounce {
        display: none;
    }
}
