/* Custom styles for the dental clinic website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Global styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Custom color variables for consistent theming */
:root {
    --dental-blue: #2563eb;
    --dental-blue-hover: #1d4ed8;
    --dental-light: #eff6ff;
    --dental-dark: #1e3a8a;
}

/* Navigation enhancements */
nav {
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--dental-blue);
    border-radius: 1px;
}

/* Hero section enhancements */
.hero-gradient {
    background: linear-gradient(135deg, var(--dental-light) 0%, rgba(255, 255, 255, 0.9) 100%);
}

/* Service cards enhancements */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--dental-blue);
}

.service-card i {
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

/* Form enhancements */
input:focus, textarea:focus, select:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--dental-blue);
    border-color: var(--dental-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input, textarea, select {
    transition: all 0.2s ease;
}

/* Button enhancements */
button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-1px);
}

button::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;
}

button:hover::before {
    left: 100%;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--dental-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dental-blue-hover);
}

/* Mobile responsiveness enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    nav {
        backdrop-filter: blur(10px);
    }
}

/* Print styles */
@media print {
    .fixed,
    nav,
    footer,
    #contact-form {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--dental-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }
    
    .nav-link:hover {
        background-color: #000;
        color: #fff;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Error and success message styles */
.message-success {
    background-color: #d1fae5;
    border-color: #86efac;
    color: #065f46;
}

.message-error {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Contact info cards */
.contact-info-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Team/About section enhancements */
.about-feature {
    transition: all 0.3s ease;
}

.about-feature:hover {
    transform: translateX(5px);
}

/* Footer enhancements */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select, .service-card, .contact-info-card {
    transition: all 0.3s ease;
}

/* Cookie notice styling (if needed in future) */
.cookie-notice {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}