/* ============================================
   Dr. Jenny Hernandez, DDS — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays for grid items */
    .reveal:nth-child(1) { transition-delay: 0.05s; }
    .reveal:nth-child(2) { transition-delay: 0.12s; }
    .reveal:nth-child(3) { transition-delay: 0.19s; }
    .reveal:nth-child(4) { transition-delay: 0.26s; }
    .reveal:nth-child(5) { transition-delay: 0.33s; }
    .reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* --- Floating Card Animations --- */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

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

@keyframes float-dot-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, -15px); }
}

@keyframes float-dot-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-6px, -12px); }
}

@keyframes float-dot-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -8px); }
}

@media (prefers-reduced-motion: no-preference) {
    .floating-card-1 {
        animation: float-1 4s ease-in-out infinite;
    }
    
    .floating-card-2 {
        animation: float-2 5s ease-in-out infinite;
    }
    
    .floating-card-3 {
        animation: float-3 4.5s ease-in-out infinite;
    }
    
    .animate-float {
        animation: float-dot-1 6s ease-in-out infinite;
    }
    
    .animate-float-delayed {
        animation: float-dot-2 7s ease-in-out infinite;
        animation-delay: 1s;
    }
    
    .animate-float-slow {
        animation: float-dot-3 8s ease-in-out infinite;
        animation-delay: 2s;
    }
}

/* --- Navbar --- */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(184, 38, 71, 0.08);
}

.nav-scrolled .font-serif {
    color: #6c1a32 !important;
}

.nav-scrolled .text-burgundy-500 {
    color: #b82647 !important;
}

/* --- Mobile Menu --- */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.menu-open {
    overflow: hidden;
}

/* --- Custom Selection --- */
::selection {
    background: rgba(184, 38, 71, 0.15);
    color: #6c1a32;
}

/* --- Smooth focus outlines --- */
:focus-visible {
    outline: 2px solid #b82647;
    outline-offset: 2px;
}

/* --- Input autofill styling --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* --- Image loading placeholder --- */
img {
    background: linear-gradient(135deg, #fdf2f4 0%, #fce7eb 100%);
}

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

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

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

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