/* JPS Children Hospital Website Styles */

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

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #e85656, #3db3a6);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #2c3e50;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.8s ease-out;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: rotate(360deg);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    transition: left 0.5s;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    background: rgba(0,0,0,0.05);
    color: #3498db;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0,0,0,0.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    color: #2c3e50;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Slideshow Indicators */
.slideshow-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.indicator.active {
    background: #ffd700;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    border-color: #ffd700;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23ff6b6b;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%234ecdc4;stop-opacity:0.1"/></linearGradient></defs><path d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,133.3C672,117,768,139,864,149.3C960,160,1056,160,1152,165.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z" fill="url(%23gradient)"/></svg>') repeat-x;
    animation: float 20s infinite linear;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

@keyframes float {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    text-align: left;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-weight: 700;
    line-height: 1.2;
}

.hero .motto {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #f39c12;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-weight: 500;
    line-height: 1.6;
}

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

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #28a745, #17a2b8, #28a745);
    background-size: 300% 300%;
    color: white;
    padding: 20px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    animation: ctaGlow 2s infinite, ctaBackgroundShift 3s infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4), 0 0 50px rgba(40, 167, 69, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: scale(1.05);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.6), 0 0 70px rgba(40, 167, 69, 0.5);
    animation: ctaGlow 1s infinite, ctaBackgroundShift 2s infinite, ctaPulse 0.5s infinite;
}

.cta-button i {
    margin-right: 10px;
}

/* Hero Social Links */
.hero-social-links {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeInUp 1s ease-out 1s both;
    width: 100%;
}

.social-follow-text {
    color: #555;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: left;
}

.hero-social-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;
}

.hero-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.hero-social-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.hero-social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.hero-social-btn:hover::before {
    width: 200px;
    height: 200px;
}

.hero-social-btn.facebook {
    background: linear-gradient(45deg, #1877f2, #42a5f5);
    color: white;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.hero-social-btn.facebook:hover {
    background: linear-gradient(45deg, #166fe5, #1877f2);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(24, 119, 242, 0.4);
}

.hero-social-btn.instagram {
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.3);
}

.hero-social-btn.instagram:hover {
    background: linear-gradient(45deg, #7209b7, #833ab4, #fd1d1d);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(131, 58, 180, 0.4);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced CTA Button Animations */
@keyframes ctaGlow {
    0%, 100% { 
        box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4), 0 0 50px rgba(40, 167, 69, 0.3);
    }
    50% { 
        box-shadow: 0 10px 30px rgba(40, 167, 69, 0.6), 0 0 70px rgba(40, 167, 69, 0.5);
    }
}

@keyframes ctaBackgroundShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ctaPulse {
    0%, 100% { transform: translateY(-5px) scale(1.1); }
    50% { transform: translateY(-7px) scale(1.15); }
}

/* Floating Action Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.floating-cta.show {
    opacity: 1;
    transform: translateY(0);
}

.floating-cta-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #28a745, #17a2b8);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
    animation: floatingPulse 2s infinite;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.7);
    animation: floatingPulse 1s infinite;
}

.floating-cta-button i {
    font-size: 1.2rem;
}

@keyframes floatingPulse {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.7), 0 0 30px rgba(40, 167, 69, 0.4);
    }
}

/* Section Styles */
.section {
    padding: 80px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    animation: grain 10s infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, -2px); }
    50% { transform: translate(2px, 2px); }
    75% { transform: translate(-2px, 2px); }
}

.about .section-title {
    color: #2c3e50;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.about-image {
    text-align: center;
    position: relative;
}

.about-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: bounce 2s infinite;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #f0ffff 0%, #fef8fc 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><linearGradient id="serviceGradient" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23ff6b6b;stop-opacity:0.05"/><stop offset="100%" style="stop-color:%234ecdc4;stop-opacity:0.05"/></linearGradient></defs><circle cx="100" cy="100" r="80" fill="url(%23serviceGradient)"/></svg>') repeat;
    animation: serviceFloat 15s infinite linear;
}

@keyframes serviceFloat {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-10px); }
    50% { transform: translateX(10px) translateY(10px); }
    75% { transform: translateX(-5px) translateY(5px); }
    100% { transform: translateX(0) translateY(0); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,107,107,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Doctors Section */
.doctors {
    background: linear-gradient(135deg, #fafbff 0%, #f5f7ff 100%);
    color: #2c3e50;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.doctors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="white" opacity="0.1"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>') repeat;
    animation: dotsMove 20s infinite linear;
}

@keyframes dotsMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-60px) translateY(-60px); }
}

.doctors .section-title {
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.doctor-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(52, 152, 219, 0.1);
    text-align: center;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(46, 204, 113, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.doctor-card:hover::before {
    opacity: 1;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(52, 152, 219, 0.2);
}

.doctor-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.doctor-card h3::before {
    content: '\f0f0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: #3498db;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.doctor-card .specialization {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.doctor-card p:last-child {
    color: #5a6c7d;
    line-height: 1.6;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Gallery Section */
.gallery {
    background: linear-gradient(135deg, #fefcf8 0%, #fcfaf8 100%);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gallery-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><polygon points="50,0 100,50 50,100 0,50" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23gallery-pattern)"/></svg>') repeat;
    animation: galleryPattern 25s infinite linear;
}

@keyframes galleryPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(100px) translateY(100px); }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><defs><pattern id="contact-pattern" width="80" height="80" patternUnits="userSpaceOnUse"><rect width="80" height="80" fill="none"/><circle cx="40" cy="40" r="20" fill="white" opacity="0.03"/></pattern></defs><rect width="80" height="80" fill="url(%23contact-pattern)"/></svg>') repeat;
    animation: contactMove 30s infinite linear;
}

@keyframes contactMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-80px) translateY(-80px); }
}

.contact .section-title {
    color: #2c3e50;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: rgba(255,255,255,0.95);
    color: #2c3e50;
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.8);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,107,107,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-card:hover::before {
    transform: translateX(100%);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: #ff6b6b;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: none;
}

.contact-card h3 i {
    margin-right: 10px;
    color: #ff6b6b;
}

.contact-card .address {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #34495e;
    font-weight: 500;
}

.contact-card .phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
    transition: color 0.3s ease;
    text-shadow: none;
}

.contact-card .phone:hover {
    color: #2ecc71;
    text-decoration: underline;
}

.contact-card .phone i {
    margin-right: 8px;
    color: #27ae60;
}

.contact-card .location-link {
    margin-top: 15px;
    text-align: center;
}

.contact-card .location-link a {
    display: inline-block;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.contact-card .location-link a:hover {
    background: linear-gradient(45deg, #2980b9, #1f6391);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.contact-card .location-link a i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.contact-card .location-link a[href*="instagram"] {
    background: linear-gradient(45deg, #e1306c, #fd1d1d, #f77737);
    box-shadow: 0 2px 10px rgba(225, 48, 108, 0.3);
}

.contact-card .location-link a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #c13584, #e1306c, #fd1d1d);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><defs><pattern id="footer-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="none"/><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="50" height="50" fill="url(%23footer-pattern)"/></svg>') repeat;
}

.footer p {
    margin-bottom: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.footer p:last-of-type {
    font-size: 0.9rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: #ff6b6b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

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

.rotate-on-hover {
    transition: transform 0.3s ease;
}

.rotate-on-hover:hover {
    transform: rotate(5deg);
}

.scale-on-hover {
    transition: transform 0.3s ease;
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        order: 1;
    }
    
    .hero-slideshow {
        height: 300px;
        order: 2;
    }
    
    .hero h2 {
        font-size: 2rem;
    }

    .hero .motto {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-social-links {
        margin-top: 30px;
    }
    
    .hero-social-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .hero-social-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
        min-width: 140px;
    }
    
    .social-follow-text {
        font-size: 0.9rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .services-grid,
    .doctors-grid,
    .gallery-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card,
    .doctor-card,
    .contact-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .hero-slideshow {
        height: 250px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero .motto {
        font-size: 1rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero-social-links {
        margin-top: 25px;
    }
    
    .hero-social-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero-social-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: 130px;
    }
    
    .social-follow-text {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 18px 32px;
        font-size: 1.1rem;
        transform: scale(1.02);
        margin-top: 20px;
    }
    
    .contact-card .location-link a {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .floating-cta-button span {
        display: none;
    }
    
    .floating-cta-button i {
        font-size: 1.1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .service-card,
    .gallery-overlay {
        background: rgba(0,0,0,0.8);
        color: white;
    }
    
    .service-card h3,
    .service-card p {
        color: white;
    }
} 