/* Custom styles for Dr. Maritza O. De Jesus Dental */

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

/* Navigation scroll effect */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
    box-shadow: 0 1px 20px rgba(13, 26, 48, 0.06);
    transition: all 0.3s ease;
}

.nav-scrolled nav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

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

.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;
    }
    
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input focus styles */
input:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7e9dc0;
}

/* Button hover lift effect */
a:hover {
    transform: translateY(-1px);
}

a:active {
    transform: translateY(0);
}

/* Ensure hero image is responsive */
.hero-img {
    aspect-ratio: 7/8;
    object-fit: cover;
}

/* Subtle card hover */
.group:hover .group-hover\:rotate-1 {
    transform: rotate(1deg);
}

.group:hover .group-hover\:-rotate-1 {
    transform: rotate(-1deg);
}

/* Mobile link active state */
.mobile-link {
    border-radius: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    transition: background-color 0.2s ease;
}

.mobile-link:hover {
    background-color: #f0f4f8;
}
