/* Dark Theme Medical Clinic - Custom Styles */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    overflow-x: hidden;
}

html, body {
    overflow-x: clip;
}

/* Custom CSS Variables */
:root {
    --primary: #00d4aa;
    --secondary: #1a1a2e;
    --accent: #16213e;
    --dark: #0f0f23;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism Effects */
.glass-nav {
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 170, 0.3);
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.3);
}

.glass-image {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Glow Effects */
.glow-effect {
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 212, 170, 0.4);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 212, 170, 0.7);
    }
}

.btn-glow {
    position: relative;
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.5);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 50px rgba(0, 212, 170, 0.8);
    transform: translateY(-2px);
}

/* Service Icon Glows */
.glow-red { box-shadow: 0 0 30px rgba(239, 68, 68, 0.4); }
.glow-blue { box-shadow: 0 0 30px rgba(59, 130, 246, 0.4); }
.glow-green { box-shadow: 0 0 30px rgba(34, 197, 94, 0.4); }
.glow-purple { box-shadow: 0 0 30px rgba(147, 51, 234, 0.4); }
.glow-orange { box-shadow: 0 0 30px rgba(249, 115, 22, 0.4); }
.glow-teal { box-shadow: 0 0 30px rgba(20, 184, 166, 0.4); }

/* Navigation Styles */
.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(90deg, var(--primary), #00b8a3);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

/* Floating Particles */
.particles {
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
    opacity: 0.6;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 10s;
    animation-duration: 20s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 15s;
    animation-duration: 35s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 20s;
    animation-duration: 25s;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #00b8a3, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Medical Card Animation */
.medical-card {
    transition: all 0.3s ease;
    animation: float-card 6s ease-in-out infinite;
}

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

/* Pulse Glow Animation */
.pulse-glow {
    animation: pulse-glow-effect 2s ease-in-out infinite;
}

@keyframes pulse-glow-effect {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 170, 0.8);
        transform: scale(1.05);
    }
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00b8a3);
    border-radius: 3px;
    transition: width 2s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Scroll Indicator */
.scroll-indicator {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes scroll-bounce {
    0%, 100% {
        top: 0;
        opacity: 1;
    }
    50% {
        top: calc(100% - 6px);
        opacity: 0.5;
    }
}

/* Service Cards */
.service-card-dark {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.hover-glow:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.2), var(--glass-shadow);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card-dark:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
    animation: icon-bounce 0.6s ease-in-out;
}

@keyframes icon-bounce {
    0%, 100% { transform: scale(1.1) rotate(360deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Counter Cards Animation */
.counter-card {
    transition: all 0.3s ease;
}

.counter-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 212, 170, 0.3);
}

/* Counter Number Glow */
.counter {
    transition: all 0.3s ease;
    animation: counter-glow 3s ease-in-out infinite;
}

@keyframes counter-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 212, 170, 0.8);
    }
}

/* Team Cards */
.team-card {
    transition: all 0.4s ease;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 212, 170, 0.3);
}

.team-card img {
    transition: transform 0.4s ease;
}

.team-card:hover img {
    transform: scale(1.1);
}

/* Team Card Status Indicator Animation */
.team-card .animate-pulse {
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

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

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

.testimonials-swiper-dark .swiper-pagination-bullet {
    background: var(--primary);
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.testimonials-swiper-dark .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--primary);
}

/* Dark Form Inputs */
.dark-input {
    background: rgba(26, 26, 46, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.dark-input:focus {
    outline: none !important;
    border-top: 2px solid var(--primary) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3) !important;
}

.dark-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dark-input option {
    background: var(--secondary);
    color: white;
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .medical-card {
        margin-top: 2rem;
        animation: none;
    }

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

    .particles {
        display: none;
    }

    .gradient-text {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .gradient-text {
        font-size: 2.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--dark);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #00b8a3;
}

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

    .medical-card, .particles, .glow-effect {
        animation: none !important;
    }
}

/* Focus States */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass-panel {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid var(--primary);
    }

    .text-gray-300, .text-gray-400 {
        color: #ffffff !important;
    }
}

/* Print Styles */
@media print {
    .glass-panel {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }

    .particles, .glow-effect {
        display: none !important;
    }
}
