/* Custom Styles for Kevin Lin, DDS */

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

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

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

/* Service Card Hover Effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(74, 111, 165, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

/* Testimonial Card Hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(74, 111, 165, 0.12);
}

/* Navigation Link Active State */
.nav-link.active {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #b8c7d6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #91a8bf;
}

/* Back to Top Button Animation */
#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:not(.visible) {
    opacity: 0;
    visibility: hidden;
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobileMenu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Navbar Scroll Effect */
#navbar.scrolled .bg-white\/95 {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(74, 111, 165, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .rounded-5xl {
        border-radius: 1.5rem;
    }
    
    .rounded-4xl {
        border-radius: 1.5rem;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #backToTop,
    #mobileMenu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
