/* Custom styles for Dr. Barry Shulak, DC website */

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

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

/* Selection color */
::selection {
    background-color: #fce4ec;
    color: #722F37;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #f0c3d0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e47896;
}

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

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

.animate-fadeInUp {
    animation: fadeInUp 0.7s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Staggered reveal delays */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(253, 248, 245, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(114, 47, 55, 0.08);
}

.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

/* Mobile menu */
.mobile-menu-open {
    transform: translateX(0) !important;
}

/* Service card hover glow */
.group:hover .group-hover\:bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Input focus ring animation */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(240, 159, 179, 0.3);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

/* Print styles */
@media print {
    nav, #contact, .mobile-menu-btn {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
