/* Custom Styles for Dr. Dentler's Practice */

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

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

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

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

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

/* Selection color */
::selection {
    background: #8ee6c9;
    color: #0f1c36;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3ab892;
    outline-offset: 2px;
}

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

/* Apply animation to floating card */
.absolute.-bottom-6.-left-6 {
    animation: float 3s ease-in-out infinite;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Custom gradient for hero overlay */
.hero-gradient {
    background: linear-gradient(135deg, rgba(15, 28, 54, 0.7) 0%, rgba(15, 28, 54, 0.3) 100%);
}

/* Card shadow effect */
.card-shadow {
    box-shadow: 0 10px 40px rgba(15, 28, 54, 0.1);
}

.card-shadow:hover {
    box-shadow: 0 20px 60px rgba(15, 28, 54, 0.15);
}

/* Button hover effect */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(15, 28, 54, 0.1);
}

/* Testimonial card hover */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Form input focus */
.form-input:focus {
    border-color: #3ab892;
    box-shadow: 0 0 0 3px rgba(58, 184, 146, 0.1);
}

/* Print styles */
@media print {
    header,
    footer,
    #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-midnight-900 {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Reduced motion preference */
@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;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-midnight-900 {
        background: ButtonText;
    }
    
    .text-midnight-900 {
        color: ButtonText;
    }
}
