/* Custom Styles for Owen Drive Children's Clinic */

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

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

.animate-fade-up {
    animation: fadeUp 0.8s ease-out;
}

/* Selection Color */
::selection {
    background-color: #0d9488;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Navbar Scroll State */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-text {
    color: #1e293b;
}

.nav-scrolled .menu-line {
    background-color: #1e293b;
}

/* Service Card Hover */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background-color: #f8fafc;
}

/* Testimonial Card Hover */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu States */
.menu-open #mobileMenu {
    opacity: 1;
    pointer-events: auto;
}

.menu-open .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 5rem;
}

/* Mobile Links */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Custom Select Arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

/* Subtle Pattern Overlay for Hero */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Print Styles */
@media print {
    nav, #contact, footer, .animate-fade-up {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
}
