/* ===== Custom Styles for EJ Dental & Orthodontics ===== */

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

/* Selection Color */
::selection {
    background-color: #d97706;
    color: #321524;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #dcb8cc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b36691;
}

/* ===== Scroll Reveal Animations ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ===== Navbar Transition ===== */
#navbar.scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(90, 45, 68, 0.08);
}

/* ===== Button Ripple Effect ===== */
button::after, a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* ===== Card Hover Glow ===== */
.group:hover .group-hover\:from-amber-100 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* ===== Floating Animation Delays ===== */
.animate-float-1 {
    animation-delay: 0s;
}
.animate-float-2 {
    animation-delay: 1.5s;
}
.animate-float-3 {
    animation-delay: 3s;
}

/* ===== Mobile Menu Transition ===== */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
}

/* ===== Form Focus States ===== */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

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

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, #backToTop, .animate-float-1, .animate-float-2, .animate-float-3 {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
