/* ===== Custom Styles for Dr. Christopher Ban ===== */

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

/* Custom selection color */
::selection {
    background-color: #F97066;
    color: white;
}

/* ===== Navbar Transition ===== */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
}

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

.nav-scrolled .text-charcoal-600,
.nav-scrolled a:not(.bg-coral-400):not(.bg-coral-500) {
    color: #4b5563 !important;
}

/* ===== Hero Animations ===== */
.hero-content {
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
}

.hero-content-delay {
    animation-delay: 0.2s;
}

.hero-content-delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Service Card Hover ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

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

.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile Menu ===== */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* ===== Button Ripple Effect ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Image Hover Zoom ===== */
img {
    transition: transform 0.6s ease;
}

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

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

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

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

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #F97066;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Testimonial Card ===== */
.bg-white {
    border: 1px solid #f6f6f7;
}

/* ===== Section Divider ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e3e5, transparent);
}

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #F97066, #e03e3e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ===== Contact Form Styles ===== */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: #F97066;
    box-shadow: 0 0 0 3px rgba(249, 112, 102, 0.15);
}

/* ===== Success Message ===== */
.success-message {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
