/* Wellness Medical Clinic - Custom Styles */

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

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #ecfdf5 100%);
}

html, body {
    overflow-x: clip;
}

/* Custom CSS Variables */
:root {
    --primary: #10b981;
    --secondary: #f0fdf4;
    --accent: #ecfdf5;
    --wellness: #6ee7b7;
    --sage: #86efac;
    --lavender: #e0e7ff;
    --peach: #fed7aa;
    --mint: #a7f3d0;
}

/* 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), var(--wellness));
    transition: width 0.3s ease;
}

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

/* Organic Shapes Background */
.organic-shape-1 {
    position: absolute;
    top: 10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(110, 231, 183, 0.15));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: float-organic 20s ease-in-out infinite;
    z-index: 1;
}

.organic-shape-2 {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(134, 239, 172, 0.1), rgba(167, 243, 208, 0.15));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float-organic 25s ease-in-out infinite reverse;
    z-index: 1;
}

.organic-shape-3 {
    position: absolute;
    bottom: 10%;
    left: 20%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(224, 231, 255, 0.2), rgba(254, 215, 170, 0.2));
    border-radius: 70% 30% 50% 50% / 60% 40% 60% 40%;
    animation: float-organic 30s ease-in-out infinite;
    z-index: 1;
}

@keyframes float-organic {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
        border-radius: 30% 70% 60% 40% / 50% 60% 40% 50%;
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
        border-radius: 70% 30% 40% 60% / 30% 70% 30% 70%;
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg);
        border-radius: 40% 60% 70% 30% / 60% 40% 60% 40%;
    }
}

/* Wellness Gradient Text */
.wellness-gradient {
    background: linear-gradient(135deg, var(--primary), var(--wellness), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-flow 4s ease-in-out infinite;
}

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

/* Wellness Button */
.wellness-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wellness-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;
}

.wellness-button:hover::before {
    left: 100%;
}

.wellness-button:hover {
    transform: translateY(-2px);
}

/* Wellness Card */
.wellness-card {
    transition: all 0.3s ease;
    animation: gentle-float 8s ease-in-out infinite;
}

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

/* Pulse Heart Animation */
.pulse-heart {
    animation: pulse-heart-beat 1.5s ease-in-out infinite;
}

@keyframes pulse-heart-beat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Wellness Progress Bars */
.wellness-progress {
    width: 100%;
    height: 8px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.wellness-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 2s ease-in-out;
    position: relative;
}

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

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

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-leaf {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float-leaf 15s ease-in-out infinite;
}

.floating-leaf-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.floating-leaf-2 {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    animation-duration: 25s;
}

.floating-leaf-3 {
    top: 80%;
    left: 70%;
    animation-delay: 10s;
    animation-duration: 18s;
}

@keyframes float-leaf {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(0px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 0.7;
    }
}

/* Scroll Indicator Wellness */
.scroll-indicator-wellness {
    width: 2px;
    height: 50px;
    background: rgba(16, 185, 129, 0.3);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

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

@keyframes wellness-scroll {
    0%, 100% {
        top: 0;
        opacity: 1;
    }
    50% {
        top: calc(100% - 8px);
        opacity: 0.6;
    }
}

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

.service-card-wellness:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.15);
}

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

.service-card-wellness:hover .service-icon-wellness {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Wellness Stats */
.wellness-stat {
    transition: all 0.3s ease;
}

.wellness-stat:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2);
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
    font-weight: 700;
}

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

.team-card-wellness:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.15);
}

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

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

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

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

.testimonials-swiper-wellness .swiper-pagination-bullet {
    background: var(--primary);
    width: 12px;
    height: 12px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

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

/* Wellness Form Inputs */
.wellness-input {
    transition: all 0.3s ease;
    background: rgba(240, 253, 244, 0.5);
}

.wellness-input:focus {
    outline: none !important;
    border-top: 2px solid var(--primary) !important;
    border-left: 1px solid #d1fae5 !important;
    border-right: 1px solid #d1fae5 !important;
    border-bottom: 1px solid #d1fae5 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2) !important;
    background: rgba(255, 255, 255, 0.8);
}

.wellness-input::placeholder {
    color: rgba(107, 114, 128, 0.7);
}

/* 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 */
@media (max-width: 768px) {
    .wellness-card {
        margin-top: 2rem;
        animation: none;
    }

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

    .floating-elements {
        display: none;
    }

    .organic-shape-1,
    .organic-shape-2,
    .organic-shape-3 {
        display: none;
    }

    .wellness-gradient {
        font-size: 2.5rem;
    }
}

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

    .organic-shape-1,
    .organic-shape-2,
    .organic-shape-3 {
        width: 150px;
        height: 150px;
    }
}

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

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

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

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

/* Wellness Metric Animation */
.wellness-metric {
    opacity: 0;
    transform: translateX(-20px);
    animation: slide-in-wellness 0.6s ease-out forwards;
}

.wellness-metric:nth-child(1) { animation-delay: 0.2s; }
.wellness-metric:nth-child(2) { animation-delay: 0.4s; }
.wellness-metric:nth-child(3) { animation-delay: 0.6s; }

@keyframes slide-in-wellness {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Wellness Badge Animations */
.wellness-badge {
    animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Service Icon Hover Effects */
.service-icon-wellness:hover {
    animation: icon-wiggle 0.5s ease-in-out;
}

@keyframes icon-wiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    75% { transform: rotate(-5deg) scale(1.05); }
}

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

    .wellness-card, .floating-elements, .organic-shape-1, .organic-shape-2, .organic-shape-3 {
        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) {
    .wellness-card, .service-card-wellness, .team-card-wellness {
        background: white !important;
        border: 2px solid var(--primary) !important;
    }

    .text-gray-600 {
        color: #000000 !important;
    }
}

/* Print Styles */
@media print {
    .wellness-card, .service-card-wellness {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }

    .floating-elements, .organic-shape-1, .organic-shape-2, .organic-shape-3 {
        display: none !important;
    }
}

/* Wellness Theme Glow Effects */
.wellness-glow {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transition: box-shadow 0.3s ease;
}

.wellness-glow:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

/* Progress Bar Variants */
.progress-wellness-low {
    background: linear-gradient(90deg, #10b981, #6ee7b7);
}

.progress-wellness-medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-wellness-high {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Notification Styles */
.wellness-notification {
    background: rgba(240, 253, 244, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary);
}

/* Team Badge Styles */
.team-badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Wellness Dashboard Enhancements */
.wellness-dashboard-glow {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(240, 253, 244, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

/* Footer Gradient Enhancement */
.footer-wellness {
    background: linear-gradient(135deg, var(--primary) 0%, var(--wellness) 50%, #34d399 100%);
}

/* Testimonial Card Enhancement */
.testimonial-card-wellness {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 253, 244, 0.8));
    backdrop-filter: blur(15px);
}

/* Contact Form Enhancement */
.contact-form-wellness {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(236, 253, 245, 0.9));
    backdrop-filter: blur(20px);
}
