/* Custom Styles for Medical Clinic Demo */

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    overflow-x: clip;
}

/* Hero Section Styles */
.hero-bg {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.hero-image {
    background-image: url('../../assets/images/medical-clinic-hero-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.floating-card {
    animation: float 6s ease-in-out infinite;
    transform-origin: center;
}

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

/* Navigation Styles */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Doctor Cards */
.doctor-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.doctor-card:hover {
    transform: translateY(-8px);
}

.doctor-card img {
    transition: transform 0.3s ease;
}

.doctor-card:hover img {
    transform: scale(1.05);
}

/* Testimonials Swiper Styles */
.testimonials-swiper {
    padding: 20px 0 60px 0;
}

.testimonials-swiper .swiper-pagination {
    bottom: 20px;
}

.testimonials-swiper .swiper-pagination-bullet {
    background: #2563eb;
    width: 12px;
    height: 12px;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: #1d4ed8;
    transform: scale(1.2);
}

/* Form Styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

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

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

/* Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .hero-image {
        background-attachment: scroll;
        height: 100vh; /* Reduce height on mobile for better performance */
        top: 0;
    }

    .floating-card {
        margin-top: 2rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }
}

/* GSAP Animations Prep */
.gsap-fade-in {
    opacity: 0;
    transform: translateY(50px);
}

.gsap-slide-left {
    opacity: 0;
    transform: translateX(-50px);
}

.gsap-slide-right {
    opacity: 0;
    transform: translateX(50px);
}

.gsap-scale-up {
    opacity: 0;
    transform: scale(0.8);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #1d4ed8, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Hover Effects */
.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;
}

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

/* Medical Icon Animation */
@keyframes pulse-medical {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.medical-icon {
    animation: pulse-medical 2s infinite;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 2rem 0;
}

/* Card Shadows */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Medical Theme Colors */
:root {
    --medical-blue: #2563eb;
    --medical-blue-dark: #1d4ed8;
    --medical-green: #059669;
    --medical-red: #dc2626;
    --medical-orange: #ea580c;
    --medical-purple: #7c3aed;
    --medical-teal: #0d9488;
    --medical-gray: #6b7280;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-card {
        animation: none;
    }
}
