/* Variables & General */
:root {
    --primary-color: #2575fc;
    --secondary-color: #6a11cb;
    --accent-color: #00d2ff;
    --dark-text: #1a1a2e;
    --light-bg: #f8faff;
    --font-main: 'Poppins', sans-serif;
    --gradient-main: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background-color: #fff;
    overflow-x: hidden;
}

/* Typography Gradient */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Buttons */
.btn-custom {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 10px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 117, 252, 0.2);
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 117, 252, 0.3);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 25px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-link {
    color: var(--dark-text);
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.icon-bg {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    background: var(--light-bg);
}

.shape-blob {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.3;
    z-index: 0;
    animation: blob-bounce 10s infinite alternate;
}

@keyframes blob-bounce {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, 30px) rotate(10deg); }
}

.floating-card {
    position: absolute;
    bottom: 50px;
    left: -30px;
    animation: float 4s ease-in-out infinite;
    max-width: 200px;
}

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

/* Services */
.section-padding { padding: 100px 0; }
.ls-2 { letter-spacing: 2px; }

.service-card {
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: #eef2ff;
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(10deg);
}

.read-more {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Appointment */
.appointment-section {
    background: url('https://img.freepik.com/free-vector/clean-medical-background_53876-97927.jpg') no-repeat center center/cover;
}
.appointment-box {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
}
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* IMPROVED DOCTORS SECTION */
.doctor-card {
    transition: 0.3s ease-in-out;
}
.doctor-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.doctor-img-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.doctor-img-wrapper img {
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: 0.5s;
}

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

.social-overlay {
    position: absolute;
    bottom: -50px; /* Hidden initially */
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    text-align: center;
    transition: bottom 0.3s;
    backdrop-filter: blur(3px);
}

.doctor-card:hover .social-overlay {
    bottom: 0; /* Show on hover */
}

.social-overlay a {
    color: var(--primary-color);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: 0.2s;
}
.social-overlay a:hover { color: var(--secondary-color); }

/* Footer */
.hover-white:hover { color: white !important; }

/* Scroll Animations */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: 0.8s ease-out; }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: 0.8s ease-out; }

.visible { opacity: 1; transform: translate(0); }

/* Mobile Fixes */
@media (max-width: 991px) {
    .hero-section { text-align: center; padding-top: 100px; }
    .floating-card { position: relative; bottom: 0; left: 0; margin: 20px auto; }
    .shape-blob { width: 300px; height: 300px; }
}

/* --- Contact Modal Styles --- */
.modal-content { overflow: hidden; }

/* Modal Button Hover Effects */
.hover-bg-success:hover { background-color: #25D366 !important; color: white !important; border-color: #25D366; }
.hover-bg-success:hover .text-muted-dark { color: rgba(255,255,255,0.8) !important; }

.hover-bg-primary:hover { background-color: var(--primary-color) !important; color: white !important; }
.hover-bg-primary:hover .text-muted-dark { color: rgba(255,255,255,0.8) !important; }

.hover-bg-dark:hover { background-color: var(--dark-text) !important; color: white !important; }
.hover-bg-dark:hover .text-muted-dark { color: rgba(255,255,255,0.8) !important; }