/* 
 * Modern Healthcare Website Design
 * Theme: Premium Medical Teal
 */

:root {
    --primary-color: #2EB8AC;
    /* Medical Teal */
    --primary-dark: #25948A;
    --accent-color: #99D98C;
    /* Soft Green */
    --secondary-color: #6c757d;
    --dark-color: #2D3142;
    /* Deep Navy text */
    --light-color: #f8f9fa;
    --text-color: #5C677D;

    /* Modern Gradients & Shadows */
    --bg-gradient: linear-gradient(170deg, #F0FBFB 0%, #FFFFFF 100%);
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Softer, spread out shadow */
    --card-hover-shadow: 0 20px 50px -10px rgba(46, 184, 172, 0.2);

    --border-radius-lg: 24px;
    --border-radius-md: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: #FFFFFF;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    font-weight: 600;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.8rem;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(46, 184, 172, 0.3);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(46, 184, 172, 0.4);
}

.btn-outline-secondary {
    border: 2px solid #E0E0E0;
    color: var(--text-color);
    padding: 0.7rem 1.8rem;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background-color: var(--text-color);
    border-color: var(--text-color);
    color: white;
}

/* Hero Section */
#hero {
    padding: 180px 0 120px;
    background: var(--bg-gradient);
    border-bottom-right-radius: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    max-width: 90%;
}

/* Services Section */
.service-card {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    background: white;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--card-hover-shadow);
}

.service-card:hover::before {
    opacity: 0.05;
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(46, 184, 172, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transform: rotateY(180deg);
}

.service-card h4 {
    margin-bottom: 1rem;
}

/* About Section */
#about {
    position: relative;
}

#about img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}

.list-unstyled li {
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Contact Section */
#contact {
    background-color: #F8FAFC;
}

.card {
    border-radius: var(--border-radius-lg);
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #25948A 100%) !important;
}

.form-control {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background-color: #F9FAFB;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(46, 184, 172, 0.15);
    border-color: var(--primary-color);
    background-color: white;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    padding: 4rem 0 2rem;
}

footer .navbar-brand {
    color: white !important;
    opacity: 0.9;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 0.7;
}

@media (max-width: 991px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    #hero {
        padding: 120px 0 80px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Navbar adjustments for long brand name */
.navbar-brand {
    font-size: 1.25rem;
    white-space: normal;
    max-width: 70%;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .navbar-brand {
        max-width: 500px;
        font-size: 1.4rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    /* Increased z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Basic touch optimization */
    touch-action: manipulation;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    margin-top: 2px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .whatsapp-float {
        display: flex !important;
        /* Force display on mobile */
        width: 55px;
        height: 55px;
        font-size: 28px;
        /* Safe area handling for notched devices */
        bottom: calc(25px + env(safe-area-inset-bottom));
        /* Increased bottom spacing */
        right: 20px;
    }
}

/* Performance & Accessibility */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        transition: none;
    }

    .whatsapp-float:hover {
        transform: none;
    }
}