/* Professional Template Styles */

/* ============ CSS CUSTOM PROPERTIES (VARIABLES) ============ */
:root {
    /* Healthcare Color Palette */
    --primary-blue: #0066CC;
    --blue-light: #1976D2;
    --blue-lighter: #42A5F5;
    --blue-dark: #004C99;
    --health-green: #4CAF50;
    --green-light: #66BB6A;
    --care-teal: #009688;
    --teal-light: #26A69A;
    --emergency-red: #DC2626;
    --medical-light-bg: #F0F8FF;
    --trust-blue-bg: #E3F2FD;

    /* Layout & Spacing */
    --container-max-width: min(1200px, 95vw);
    --section-padding: clamp(3rem, 8vw, 5rem);
    --card-padding: clamp(1.5rem, 3vw, 2.5rem);

    /* Logo & Icon Sizes */
    --logo-size: clamp(2rem, 3vw, 3.125rem);
    --logo-size-mobile: clamp(1.875rem, 4vw, 2.5rem);
    --icon-size-small: clamp(2.5rem, 4vw, 3rem);
    --icon-size-medium: clamp(3rem, 5vw, 4.375rem);
    --icon-size-large: clamp(4rem, 6vw, 5rem);

    /* Hero Image Sizes */
    --hero-image-width: clamp(15rem, 40vw, 31.25rem);
    --hero-image-height: clamp(12rem, 30vw, 25rem);

    /* Button & Interactive Elements */
    --button-size: clamp(2.5rem, 4vw, 3.75rem);
    --touch-target-min: 2.75rem;
    --progress-bar-height: 0.25rem;

    /* Form Elements */
    --form-max-width: min(600px, 90vw);

    /* Animations */
    --transition-speed: 0.3s;
    --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.25rem);
    width: 100%;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    overflow: visible;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    height: var(--logo-size);
    width: var(--logo-size);
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform var(--transition-speed) var(--transition-ease);
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: #0066CC;
    text-decoration: none;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #0066CC;
}

.nav-menu a.active {
    color: #0066CC;
    font-weight: 600;
}

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

.phone {
    color: #059669;
    font-weight: 600;
}

.cta-button {
    background: #dc2626;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #b91c1c;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Mega Menu Navigation Styles */
.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-main {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-main>li {
    position: relative;
    margin: 0;
    padding: 0;
}

.nav-main>li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-main>li>a:hover,
.nav-main>li>a.active {
    color: #0066CC;
    background: rgba(0, 102, 204, 0.05);
}

.nav-main>li>a i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-main>li.active>a i {
    transform: rotate(180deg);
}

/* Mega Menu Container */
.has-mega-menu {
    position: static;
}

.mega-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 65px;
    width: 100vw;
    background: #ffffff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-top: 4px solid #0066CC;
    pointer-events: none;
    overflow: visible;
}

.has-mega-menu.active .mega-menu,
.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.mega-menu-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    background: #ffffff;
}

.mega-menu-column h3 {
    color: #0066CC;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3f2fd;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-column h3 i {
    font-size: 20px;
    color: #0066CC;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-menu-column ul li {
    margin-bottom: 0;
}

.mega-menu-column ul li a {
    display: block;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 36px;
    line-height: 1.5;
}

.mega-menu-column ul li a:before {
    content: '→';
    position: absolute;
    left: 14px;
    color: #0066CC;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mega-menu-column ul li a:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0066CC;
    padding-left: 40px;
    transform: translateX(4px);
}

.mega-menu-column ul li a:hover:before {
    transform: translateX(4px) scale(1.2);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-self: center;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #334155;
    border-radius: 3px;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Navigation Styles */
.mobile-nav {
    display: none;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 30px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a:active {
    background: rgba(0, 102, 204, 0.05);
    color: #0066CC;
    padding-left: 40px;
}

.mobile-nav-list li a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.mobile-nav-list .mobile-call-btn {
    border: none;
}

.mobile-nav-list .mobile-call-btn a {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white !important;
    font-weight: 600;
    border-radius: 8px;
    margin: 20px;
    padding: 16px 30px !important;
    border: none;
}

.mobile-nav-list .mobile-call-btn a:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    padding-left: 30px !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Responsive Styles for Mega Menu */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 10001;
        position: relative;
    }

    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none !important;
    }

    /* Show and style simple mobile navigation */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: white;
        padding: 80px 0 30px;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 10000;
    }

    .mobile-nav.active {
        right: 0;
    }

    .header .container {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .nav-brand {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
        margin-left: auto;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-button {
        padding: 10px 15px;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .header {
        padding: 0.625rem 0;
        min-height: 56px;
    }

    .brand-text {
        font-size: clamp(0.7rem, 3vw, 0.85rem);
    }

    .logo {
        height: 36px;
        width: 36px;
    }

    .whatsapp-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        align-self: center;
    }

    .whatsapp-button i {
        font-size: 20px;
    }

    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
        align-self: center;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
        margin: 2.5px 0;
    }

    .mobile-nav {
        max-width: 90%;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.375rem;
    }

    .header {
        padding: 0.5rem 0;
        min-height: 52px;
    }

    .brand-text {
        font-size: 0.65rem;
    }

    .logo {
        height: 32px;
        width: 32px;
    }

    .nav-actions {
        gap: 0.25rem;
        align-self: center;
    }

    .whatsapp-button {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        align-self: center;
    }

    .whatsapp-button i {
        font-size: 18px;
    }

    .mobile-menu-toggle {
        width: 26px;
        height: 26px;
        align-self: center;
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }
}

.whatsapp-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85), rgba(25, 118, 210, 0.75)),
        url('images/hero-background.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: #e2e8f0;
    margin-bottom: 40px;
    line-height: 1.7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.stat-label {
    font-size: 14px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.btn-primary {
    background: #0066CC;
    color: white;
}

.btn-primary:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #0066CC;
    border: 2px solid #0066CC;
}

.btn-secondary:hover {
    background: #0066CC;
    color: white;
}

/* Professional Healthcare Image - Hero Section */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.professional-healthcare-image {
    width: var(--hero-image-width);
    height: var(--hero-image-height);
    aspect-ratio: 5 / 4;
    position: relative;
    border-radius: clamp(1rem, 2vw, 1.25rem);
    overflow: hidden;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 102, 204, 0.3);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.professional-healthcare-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 102, 204, 0.4);
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: clamp(1rem, 2vw, 1.25rem);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 102, 204, 0.9), rgba(0, 102, 204, 0.6), transparent);
    padding: 30px;
    border-radius: 0 0 20px 20px;
}

.healthcare-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-logo {
    width: var(--icon-size-small);
    height: var(--icon-size-small);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.badge-text h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.badge-text p {
    color: #e2e8f0;
    font-size: 14px;
    margin: 2px 0 0 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}






/* Services Section */

/* Service Segment Positioning */
.specialty-segment {
    top: 15%;
    left: 5%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9), rgba(25, 118, 210, 0.8));
}

.nursing-segment {
    top: 8%;
    right: 5%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.8));
}

.physio-segment {
    top: 45%;
    right: -5%;
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.9), rgba(25, 118, 210, 0.8));
}

.lab-segment {
    bottom: 8%;
    right: 5%;
    background: linear-gradient(135deg, rgba(244, 244, 245, 0.9), rgba(226, 232, 240, 0.8));
    border: 3px solid rgba(0, 102, 204, 0.3);
}

.hospital-segment {
    bottom: 15%;
    left: 5%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.8));
}

.funeral-segment {
    top: 45%;
    left: -5%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.8));
}

/* Segment Content */
.segment-content {
    text-align: center;
    color: white;
    padding: 1rem;
}

.segment-content h4 {
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.segment-icon {
    font-size: 24px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.segment-image {
    font-size: 16px;
    opacity: 0.8;
    margin-top: 5px;
}

/* Special styling for lab segment */
.lab-segment .segment-content {
    color: #42A5F5;
}

.lab-segment .segment-content h4 {
    color: #1976D2;
    text-shadow: none;
}

/* Floating Service Icons */
.floating-service-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #42A5F5, #64B5F6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
    animation: float 4s ease-in-out infinite;
    cursor: pointer;
    pointer-events: all;
    border: 3px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.floating-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.4);
}

.emergency-icon {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.user-icon {
    top: 50%;
    right: 2%;
    animation-delay: 1s;
}

.home-icon {
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-12px) scale(1.05);
        opacity: 1;
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: #64748b;
    /* max-width: 1055px; */
    width: 50%;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
    border-color: #0066CC;
}

.service-card .learn-more {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    align-items: center;
    color: #0066CC;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.service-card:hover .learn-more {
    opacity: 1;
    transform: translateY(0);
}

.service-card .learn-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

.service-icon {
    width: var(--icon-size-medium);
    height: var(--icon-size-medium);
    background: linear-gradient(135deg, #0066CC, #42A5F5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.service-icon i {
    font-size: 28px;
    color: white !important;
}

/* Prevent icon color change on click/focus/active */
.service-icon:focus,
.service-icon:active,
.service-icon:focus i,
.service-icon:active i {
    color: white !important;
    outline: none;
}

.service-card:focus .service-icon i,
.service-card:active .service-icon i {
    color: white !important;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.service-card p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    color: #475569;
    position: relative;
    padding-left: 28px;
    line-height: 1.6;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
    margin-right: 8px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #F0F8FF;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

.about p {
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.7;
}

.mission-vision {
    margin-bottom: 40px;
}

.mission,
.vision {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mission h3,
.vision h3 {
    color: #0066CC;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.certifications h3 {
    color: #1e293b;
    margin-bottom: 16px;
}

.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cert-item {
    background: #0066CC;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* DPDPA Compliance Badge */
.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0066CC, #1976D2);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.compliance-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.compliance-badge i {
    font-size: 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-item {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item i {
    font-size: 32px;
    color: #0066CC;
    margin-bottom: 12px;
}

.grid-item span {
    display: block;
    font-weight: 600;
    color: #1e293b;
}

/* Enhanced Mission/Vision Styles */
.about-commitment {
    font-weight: 600;
    color: #0066CC;
    font-size: 1.1rem;
    margin-top: 15px;
}

.mission h4,
.vision h4 {
    color: #FF9800;
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 8px;
}

.mission-points {
    margin-top: 20px;
}

.point-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.point-item i {
    color: #4CAF50;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.point-item strong {
    color: #1e293b;
}

.vision-highlight {
    font-weight: 600;
    color: #FF9800;
    margin-top: 15px;
}

/* Why Health Umbrella Section */
.why-health-umbrella {
    padding: 80px 0;
    background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
}

.why-health-umbrella .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.why-health-umbrella h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.why-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.why-icon {
    font-size: 2.5rem;
    color: #0066CC;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.why-card p {
    color: #64748b;
    line-height: 1.7;
}

.companion-message {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.companion-message h3 {
    font-size: 1.8rem;
    color: #0066CC;
    margin-bottom: 20px;
}

.companion-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1e293b;
    margin-bottom: 25px;
}

.commitment-banner {
    background: #0066CC;
    color: white;
    padding: 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Leadership Section */
.leadership-section {
    padding: 80px 0;
    background: white;
}

.founder-section,
.board-section,
.advisory-section,
.partners-section {
    margin-bottom: 60px;
}

.founder-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 35px;
    align-items: start;
    background: #E3F2FD;
    padding: 40px;
    border-radius: 12px;
    border-left: 6px solid #0066CC;
    max-width: 1100px;
    margin: 0 auto;
}

.founder-photo-placeholder {
    width: 150px;
    height: 150px;
    background: #BBDEFB;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0066CC;
    gap: 10px;
}

.founder-photo-placeholder i {
    font-size: 3rem;
}

.founder-photo-placeholder p {
    font-size: 0.75rem;
    text-align: center;
}

/* Actual founder photo styles */
.founder-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    border: 4px solid #ffffff;
    background: #f8fafc;
    flex-shrink: 0;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-message {
    margin-top: 20px;
}

.founder-message p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #334155;
    font-size: 0.95rem;
    text-align: justify;
}

.founder-message p:last-child {
    margin-bottom: 0;
}

.founder-content h3 {
    font-size: 1.9rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.founder-title {
    font-weight: 600;
    color: #0066CC;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.company-name {
    color: #64748b;
    margin-bottom: 28px;
    font-size: 0.95rem;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 102, 204, 0.15);
}

.founder-message-placeholder {
    font-style: italic;
    line-height: 1.8;
    color: #424242;
}

.message-guide {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-style: normal;
}

.message-guide strong {
    color: #1e293b;
}

.message-guide ul {
    margin-left: 20px;
    margin-top: 10px;
}

.message-guide li {
    color: #64748b;
    margin-bottom: 5px;
}

.placeholder-box {
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    text-align: center;
}

.placeholder-box i {
    font-size: 3rem;
    color: #0066CC;
    margin-bottom: 20px;
}

.placeholder-box h4 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.placeholder-box p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 15px;
}

.placeholder-box ul {
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
    color: #64748b;
}

.placeholder-box li {
    margin-bottom: 10px;
}

.advisory-intro,
.partners-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
}

.domain-tags,
.partner-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.domain-tags .tag {
    background: #009688;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.partner-categories .category {
    background: #FBC02D;
    color: #1e293b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #E0F2F1;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: #009688;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 25px;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    color: #1e293b;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.author-photo-placeholder {
    width: 60px;
    height: 60px;
    background: #B2DFDB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #009688;
}

.author-photo-placeholder i {
    font-size: 1.5rem;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.author-location {
    color: #64748b;
    font-size: 0.875rem;
}

.rating {
    margin-top: 5px;
    color: #FBC02D;
}

.rating i {
    font-size: 0.875rem;
}

.testimonials-cta {
    text-align: center;
    margin-top: 40px;
}

.testimonials-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #1e293b;
}

/* Blog Section */
.blog-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.blog-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-section .section-header h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 15px;
}

.blog-section .section-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-preview-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.blog-preview-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-preview-card:hover .blog-preview-image img {
    transform: scale(1.08);
}

.blog-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.blog-tag.emergency {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.blog-tag.nursing {
    background: linear-gradient(135deg, #059669, #047857);
}

.blog-preview-content {
    padding: 25px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-preview-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6b7280;
}

.blog-preview-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-preview-meta i {
    color: #0066CC;
}

.blog-preview-content h3 {
    font-size: 1.25rem;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.blog-preview-card:hover .blog-preview-content h3 {
    color: #0066CC;
}

.blog-preview-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066CC;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.blog-read-more:hover {
    gap: 12px;
    color: #1976D2;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(3px);
}

.blog-view-all {
    text-align: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #0066CC;
    border: 2px solid #0066CC;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #0066CC;
    color: white;
}

.btn-outline i {
    transition: transform 0.3s ease;
}

.btn-outline:hover i {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #1e293b;
    color: white;
}

.contact .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact .section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact .section-header p {
    font-size: 1.125rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 20px;
    color: #0066CC;
    margin-top: 5px;
}

.contact-item h4 {
    color: #e2e8f0;
    margin-bottom: 8px;
}

.contact-item p {
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

/* Specific styling for contact section social links - VERTICAL STACK */
.contact .social-links,
.contact-info .social-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    align-items: flex-start !important;
    margin-top: 20px !important;
    width: fit-content !important;
}

.social-link {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1976D2, #42A5F5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.social-link:hover {
    background: linear-gradient(135deg, #1976D2, #0066CC);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

/* Footer Social Links - Completely Rewritten with Higher Specificity */
.footer .footer-brand .social-links,
.footer-brand .social-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    margin-top: 25px !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.footer .footer-brand .social-links a,
.footer-brand .social-links a,
.footer .footer-brand .social-link,
.footer-brand .social-link {
    width: 55px !important;
    height: 55px !important;
    min-width: 55px !important;
    min-height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    font-size: 22px !important;
    line-height: 55px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 5px 12px rgba(0, 102, 204, 0.4) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #1976D2, #42A5F5) !important;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.footer .footer-brand .social-links a i,
.footer-brand .social-links a i,
.footer .footer-brand .social-link i,
.footer-brand .social-link i {
    font-size: 22px !important;
    line-height: 1 !important;
}

.footer .footer-brand .social-links a:hover,
.footer-brand .social-links a:hover,
.footer .footer-brand .social-link:hover,
.footer-brand .social-link:hover {
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: linear-gradient(135deg, #1976D2, #0066CC) !important;
}

/* Mobile responsive sizing for social links */
@media (max-width: 480px) {
    .social-links {
        gap: 15px;
        justify-content: center;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Footer social links larger on mobile */
    .footer .footer-brand .social-links,
    .footer-brand .social-links {
        gap: 12px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .footer .footer-brand .social-links a,
    .footer-brand .social-links a,
    .footer .footer-brand .social-link,
    .footer-brand .social-link {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        font-size: 20px !important;
        line-height: 48px !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }

    .footer .footer-brand .social-links a i,
    .footer-brand .social-links a i,
    .footer .footer-brand .social-link i,
    .footer-brand .social-link i {
        font-size: 20px !important;
    }
}

/* Tablet and medium screen footer social links */
@media (max-width: 768px) {

    .footer .footer-brand .social-links,
    .footer-brand .social-links {
        gap: 14px !important;
        justify-content: center !important;
    }

    .footer .footer-brand .social-links a,
    .footer-brand .social-links a,
    .footer .footer-brand .social-link,
    .footer-brand .social-link {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        font-size: 20px !important;
        line-height: 50px !important;
    }

    .footer .footer-brand .social-links a i,
    .footer-brand .social-links a i,
    .footer .footer-brand .social-link i,
    .footer-brand .social-link i {
        font-size: 20px !important;
    }
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
}

.contact-form h3 {
    margin-bottom: 30px;
    color: #e2e8f0;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 12px 16px;
    color: white;
    font-family: inherit;
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form select {
    color: #94a3b8;
}

.contact-form option {
    background: #1e293b;
    color: white;
}

/* Footer - Option A Layout */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066CC, #00a8ff, #0066CC);
}

/* Top Section: Brand + All Services */
.footer-top {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    padding-bottom: 50px;
    border-bottom: 1px solid #334155;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0 12px;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 15px;
}

.footer-logo {
    height: 80px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}

.footer-services h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-services h3 i {
    color: #0066CC;
    font-size: 24px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
}

.services-grid a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
}

.services-grid a i {
    color: #0066CC;
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.services-grid a:hover {
    color: #ffffff;
    background: rgba(0, 102, 204, 0.1);
    transform: translateX(4px);
}

/* Middle Section: Three Columns */
.footer-middle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid #334155;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h4 i {
    color: #0066CC;
    font-size: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: #0066CC;
    padding-left: 4px;
}

/* Emergency Contact Styling */
.footer-contact ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact ul li a i {
    color: #0066CC;
    font-size: 18px;
    width: 24px;
    flex-shrink: 0;
}

.footer-contact ul li a span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact .contact-phone span strong {
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact .whatsapp-link {
    background: linear-gradient(135deg, #25D366, #128C7E);
    padding: 10px 16px;
    border-radius: 8px;
    color: white !important;
    margin-top: 8px;
    font-weight: 500;
}

.footer-contact .whatsapp-link:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    padding-left: 16px;
}

.footer-contact .address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #94a3b8;
    margin-top: 12px;
}

.footer-contact .address i {
    color: #0066CC;
    font-size: 18px;
    width: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    margin-top: 40px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #64748b;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #0066CC;
}

.footer-bottom-links span {
    color: #475569;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0066CC, #0052A3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #0052A3, #003d7a);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Professional Service Segment Hover and Active States */
.service-segment:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.service-segment.segment-active {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.5);
    transform: scale(1.02);
}

.service-segment.segment-active .segment-icon,
.service-segment.segment-active .segment-image {
    color: white;
}

.central-health-hub:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .mega-menu-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 40px 30px;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .mega-menu-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 30px 25px;
        max-width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 20px;
    }

    .footer-middle {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .whatsapp-float {
        bottom: 100px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 clamp(0.75rem, 3vw, 1rem);
        max-width: 100%;
    }

    .header {
        padding: 0.75rem 0;
        width: 100%;
        left: 0;
        right: 0;
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        min-height: inherit;
        flex-wrap: nowrap;
    }

    .nav-brand {
        flex: 0 1 auto;
        gap: 0.5rem;
        min-width: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .nav-brand a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
    }

    .logo {
        height: var(--logo-size-mobile);
        width: var(--logo-size-mobile);
        flex-shrink: 0;
    }

    .brand-text {
        font-size: clamp(0.75rem, 3.5vw, 0.95rem);
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
        align-self: center;
        margin: 0;
        margin-left: auto;
    }

    .whatsapp-button {
        padding: 0;
        margin: 0;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        align-self: center;
    }

    .whatsapp-button i {
        font-size: 22px;
    }

    .whatsapp-text {
        display: none;
    }

    .phone {
        display: none;
    }

    .cta-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        align-self: center;
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
    }

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero {
        background-attachment: scroll;
        padding: clamp(5rem, 15vw, 7rem) 0 clamp(2rem, 5vw, 3rem);
        margin-top: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 3rem);
        text-align: center;
    }

    .hero-text {
        order: 1;
        padding: clamp(1rem, 3vw, 1.5rem);
        margin: 0;
        margin-top: 1rem;
    }

    .hero-image {
        order: 2;
        display: flex;
        justify-content: center;
        margin-top: clamp(1.5rem, 4vw, 2.5rem);
        padding: 0 0.75rem;
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .stat {
        min-width: 100px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Blog Section Mobile */
    .blog-section {
        padding: 60px 0;
    }

    .blog-section .section-header h2 {
        font-size: 1.75rem;
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-preview-image {
        height: 200px;
    }

    .blog-preview-content {
        padding: 20px;
    }

    .blog-preview-content h3 {
        font-size: 1.1rem;
    }

    /* Professional Hero Section Mobile */
    .professional-healthcare-image {
        width: 100%;
        max-width: 22rem;
        height: auto;
        aspect-ratio: 5 / 4;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
    }

    .hero-main-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .image-overlay {
        bottom: 0;
        left: 0;
        right: 0;
        padding: clamp(0.75rem, 2vw, 1rem);
        border-radius: 0 0 clamp(0.75rem, 2vw, 1rem) clamp(0.75rem, 2vw, 1rem);
    }

    .healthcare-badge {
        max-width: calc(100% - 1.25rem);
        padding: clamp(0.375rem, 1.5vw, 0.625rem) clamp(0.5rem, 2vw, 0.75rem);
        gap: clamp(0.375rem, 1.5vw, 0.625rem);
        border-radius: clamp(0.375rem, 1.5vw, 0.625rem);
        transform: scale(0.85);
    }

    .image-overlay {
        padding: clamp(0.5rem, 1.5vw, 0.75rem);
    }

    .badge-logo {
        width: clamp(1.5rem, 4vw, 2rem);
        height: clamp(1.5rem, 4vw, 2rem);
    }

    .badge-text h4 {
        font-size: clamp(0.75rem, 2vw, 0.875rem);
        line-height: 1.1;
    }

    .badge-text p {
        font-size: clamp(0.5rem, 1.5vw, 0.625rem);
        line-height: 1.1;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        text-align: center;
        max-width: 100%;
    }

    .footer-services h3 {
        font-size: 20px;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .services-grid a {
        font-size: 14px;
        padding: 10px 12px;
    }

    .footer-middle {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col h4 {
        justify-content: center;
    }

    .footer-col ul li a {
        justify-content: center;
    }

    .footer-contact ul li a {
        justify-content: center;
    }

    .footer-contact .address {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-bottom-links span {
        display: none;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .whatsapp-float {
        bottom: 90px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 6px 0;
    }

    .logo {
        height: clamp(1.875rem, 4vw, 2rem);
        width: clamp(1.875rem, 4vw, 2rem);
    }

    .brand-text {
        font-size: 14px;
    }

    .hero {
        padding: 70px 0 40px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .professional-healthcare-image {
        width: 100%;
        max-width: 18rem;
        height: auto;
        aspect-ratio: 5 / 4;
    }

    .healthcare-badge {
        display: none;
    }

    .image-overlay {
        display: none;
    }

    .hero-stats {
        gap: 10px;
    }

    .stat {
        min-width: 80px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .services,
    .about,
    .contact {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }
}

/* ============ PHASE 1 ANIMATIONS STYLES ============ */

/* 1. Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--progress-bar-height);
    background: rgba(0, 102, 204, 0.1);
    z-index: 1001;
    pointer-events: none;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066CC, #42A5F5, #1976D2);
    width: 0%;
    transition: width var(--transition-speed) ease;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 102, 204, 0.3);
}

/* 2. Enhanced Scroll-to-Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: clamp(1.5rem, 3vw, 1.875rem);
    right: clamp(1.5rem, 3vw, 1.875rem);
    width: var(--button-size);
    height: var(--button-size);
    border-radius: 50%;
    background: linear-gradient(135deg, #0066CC, #1976D2);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.625rem) scale(0.8);
    transition: all 0.4s var(--transition-ease);
    z-index: 999;
    box-shadow: 0 0.5rem 1.5625rem rgba(0, 102, 204, 0.4);
    font-size: clamp(1rem, 2vw, 1.125rem);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.scroll-to-top-btn:hover {
    transform: translateY(0) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.5);
}

.scroll-to-top-btn:active {
    transform: translateY(0) scale(0.95);
}

/* 3. Enhanced Header Transitions */
.header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

/* 4. Enhanced Service Card Animations */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.15) !important;
    border-color: rgba(0, 102, 204, 0.2) !important;
}

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

.service-icon i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 5. Button Ripple Effect */
.btn-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 6. Mobile Menu Enhancement */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    background: none;
    border: none;
    cursor: pointer;
    padding: clamp(0.5rem, 1vw, 0.625rem);
    gap: 0.25rem;
}

.mobile-menu-toggle span {
    width: clamp(1.25rem, 2vw, 1.5rem);
    height: 0.125rem;
    background: #0066CC;
    border-radius: 0.125rem;
    transition: all var(--transition-speed) var(--transition-ease);
    transform-origin: center;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 102, 204, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu li {
        padding: 0;
    }

    .nav-menu a {
        display: block;
        padding: 15px 30px;
        border-bottom: 1px solid rgba(0, 102, 204, 0.1);
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: rgba(0, 102, 204, 0.05);
        color: #0066CC;
        padding-left: 40px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 480px) {
    .scroll-progress-bar {
        height: 3px;
    }

    .scroll-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 14px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 16px;
        padding: 16px 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .professional-healthcare-image img {
        height: 300px;
    }

    .image-overlay {
        padding: 15px;
    }

    .healthcare-badge {
        padding: 15px;
        gap: 10px;
    }

    .badge-logo {
        width: 35px;
        height: 35px;
    }

    .badge-text h4 {
        font-size: 14px;
    }

    .badge-text p {
        font-size: 11px;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {

    .scroll-to-top-btn,
    .service-card,
    .progress-fill,
    .mobile-menu-toggle span,
    .nav-menu {
        transition: none;
        animation: none;
    }

    .scroll-to-top-btn:hover {
        transform: none;
    }

    .service-card:hover {
        transform: none;
    }
}

/* Enhanced Button States */
.btn,
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover,
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.25);
}

.btn:active,
.cta-button:active {
    transform: translateY(0);
}

/* Enhanced Mobile Image Responsiveness */
.hero-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        padding: 30px 20px;
        margin-bottom: 20px;
        order: 1;
    }

    .hero-image {
        margin-top: 0;
        width: 100%;
        overflow: hidden;
        order: 2;
    }

    .hero-main-image {
        height: 300px;
        max-width: 100%;
        width: 100%;
        object-fit: cover;
    }

    .professional-healthcare-image {
        max-width: 100%;
        width: 100%;
        position: relative;
    }

    .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 102, 204, 0.1);
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        padding: 15px;
    }

    .healthcare-badge {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 12px 16px;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .hero-main-image {
        height: 280px;
        border-radius: 8px;
    }

    .image-overlay {
        padding: 12px;
    }

    .healthcare-badge {
        padding: 12px 16px;
        border-radius: 8px;
    }

    .badge-logo {
        width: 30px;
        height: 30px;
    }

    .badge-text h4 {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .badge-text p {
        font-size: 10px;
    }
}

/* Enhanced Service Icons with Medical Blue Theme */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066CC, #42A5F5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.4);
}

/* Enhanced Typography for Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .section-header h2 {
        font-size: 32px;
        line-height: 1.2;
    }

    .section-header p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .service-card h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .service-card p {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 15px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 14px;
    }

    .service-features li {
        font-size: 13px;
        padding: 4px 0;
        padding-left: 24px;
    }

    .service-features li::before {
        left: 0;
        margin-right: 8px;
    }
}

/* Touch Target Enhancement for Mobile */
@media (max-width: 768px) {

    .nav-menu a,
    .btn,
    .cta-button,
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu a {
        padding: 15px 30px;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {

    .scroll-to-top-btn,
    .service-card,
    .progress-fill,
    .mobile-menu-toggle span,
    .nav-menu,
    .btn-ripple {
        transition: none !important;
        animation: none !important;
    }

    .scroll-to-top-btn:hover,
    .service-card:hover {
        transform: none !important;
    }
}

/* Focus States for Accessibility */
.scroll-to-top-btn:focus,
.btn:focus,
.cta-button:focus,
.nav-menu a:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #0066CC;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .scroll-to-top-btn {
        background: #000;
        border: 2px solid #fff;
    }

    .progress-fill {
        background: #000;
    }

    .service-icon {
        background: #000;
        border: 2px solid #fff;
    }
}

/* ============ PHASE 2 ANIMATIONS STYLES ============ */

/* 5. Enhanced Form Input Animations */
input,
textarea,
select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* 6. Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* 7. Enhanced Hover Animations */
.logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    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, 102, 204, 0.1), transparent);
    transition: left 0.5s ease;
}

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

/* 8. Section Fade-in Animations */
.section-header {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-text,
.hero-image {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 9. Enhanced Button Micro-interactions */
.btn,
.cta-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before,
.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn:hover::before,
.cta-button:hover::before {
    width: clamp(12rem, 30vw, 18.75rem);
    height: clamp(12rem, 30vw, 18.75rem);
}

/* Enhanced Mobile Navigation Animation */
@media (max-width: 768px) {
    .nav-menu.active {
        animation: slideInFromTop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Menu Toggle Button Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: clamp(1.875rem, 4vw, 2rem);
    height: clamp(1.875rem, 4vw, 2rem);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 0.1875rem;
    width: 100%;
    background: #0066CC;
    border-radius: 0.1875rem;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

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

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

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        margin-left: 0.5rem;
    }

    .contact-info {
        grid-column: 2;
        grid-row: 1;
    }

    .nav-menu {
        position: absolute;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s var(--transition-ease), opacity 0.3s ease;
        opacity: 0;
        z-index: 999;
        box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }

    .nav-menu.active {
        max-height: 25rem;
        opacity: 1;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(0, 102, 204, 0.1);
        list-style: none;
    }

    .nav-menu a {
        font-size: clamp(1rem, 3vw, 1.125rem);
        font-weight: 500;
        padding: 1rem 1.25rem;
        display: block;
        color: #334155;
    }

    .nav-menu a:hover {
        background: rgba(0, 102, 204, 0.05);
        color: #0066CC;
    }
}

/* Mobile Layout Enhancements */
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    body {
        position: relative;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    /* Prevent hero content from overlapping header */
    .hero {
        margin-top: clamp(1rem, 3vw, 2rem);
        padding-top: clamp(5rem, 12vw, 7rem);
        width: 100%;
    }

    .hero-content {
        max-width: 100%;
        overflow: hidden;
        padding: 0 clamp(0.5rem, 2vw, 1rem);
    }

    .professional-healthcare-image {
        position: relative;
        z-index: 1;
        max-width: 90%;
    }

    .overlay-content {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .hero-main-image {
        border-radius: clamp(0.75rem, 2vw, 1rem);
    }

    .image-overlay {
        border-radius: clamp(0.75rem, 2vw, 1rem);
    }

    .healthcare-badge {
        display: none;
    }

    .image-overlay {
        display: none;
    }

    .overlay-content {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .badge-text {
        flex: 1;
        min-width: 0;
    }

    .badge-text h4,
    .badge-text p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Ensure header stays on top */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Layout stacking management */
.hero {
    position: relative;
    z-index: 1;
    clear: both;
}

.header {
    z-index: 1000;
    isolation: isolate;
}

/* ============ CONTACT SECTION MOBILE FIX ============ */
/* Fix for mobile contact page not displaying completely */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }

    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Move "Get in Touch" section to top */
    .contact-info {
        order: -1 !important;
    }

    .contact h2 {
        font-size: 28px;
        margin-bottom: 25px;
        text-align: center;
    }

    .contact-details {
        margin-bottom: 25px;
    }

    .contact-item {
        margin-bottom: 20px;
    }

    .contact-item i {
        font-size: 18px;
        min-width: 25px;
    }

    .contact-item h4 {
        font-size: 16px;
    }

    .contact-item p {
        font-size: 14px;
        word-break: break-word;
    }

    /* Social links horizontal on mobile for contact */
    .contact .social-links,
    .contact-info .social-links {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .contact .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Contact form adjustments */
    .contact-form {
        padding: 0;
    }

    .contact-form h3 {
        font-size: 22px;
        text-align: center;
        margin-bottom: 20px;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        width: 100% !important;
        padding: 12px 15px;
        font-size: 16px;
    }

    .contact-form textarea {
        min-height: 120px;
    }

    .contact-form button {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Tablet adjustments for contact */
@media (max-width: 1024px) and (min-width: 769px) {
    .contact-content {
        gap: 40px;
    }

    .contact-info {
        order: -1;
    }
}

/* Responsive Styles for New Sections */
@media (max-width: 968px) {

    /* About Section Enhanced */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-points {
        margin-top: 15px;
    }

    .point-item {
        flex-direction: column;
        gap: 10px;
    }

    /* Why Health Umbrella */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .companion-message {
        padding: 30px 20px;
    }

    .companion-message h3 {
        font-size: 1.5rem;
    }

    /* Leadership Section */
    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px;
    }

    .founder-photo-placeholder {
        margin: 0 auto 20px;
    }

    .founder-photo {
        margin: 0 auto 20px;
    }

    .founder-message p {
        text-align: left;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {

    /* Section Headers */
    .why-health-umbrella h2,
    .testimonials-section h2,
    .leadership-section h2 {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* About Section */
    .about h2 {
        font-size: 28px;
    }

    .mission,
    .vision {
        padding: 20px;
    }

    .mission h4,
    .vision h4 {
        font-size: 1rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .grid-item {
        padding: 20px;
    }

    /* Why Section */
    .why-card {
        padding: 25px 20px;
    }

    .why-icon {
        font-size: 2rem;
    }

    .why-card h3 {
        font-size: 1.2rem;
    }

    .commitment-banner {
        padding: 20px;
        font-size: 1rem;
    }

    /* Leadership */
    .founder-content h3 {
        font-size: 1.5rem;
    }

    .founder-photo-placeholder {
        width: 120px;
        height: 120px;
    }

    .founder-photo {
        width: 110px;
        height: 110px;
    }

    .founder-photo-placeholder i {
        font-size: 2.5rem;
    }

    .placeholder-box {
        padding: 25px 20px;
    }

    .placeholder-box i {
        font-size: 2.5rem;
    }

    .placeholder-box h4 {
        font-size: 1.1rem;
    }

    .domain-tags .tag,
    .partner-categories .category {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 25px 20px;
    }

    .quote-icon {
        font-size: 2.5rem;
        top: 15px;
        left: 20px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .author-photo-placeholder {
        width: 50px;
        height: 50px;
    }

    .author-photo-placeholder i {
        font-size: 1.2rem;
    }

    .testimonials-cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {

    /* Further mobile optimization */
    .why-health-umbrella,
    .leadership-section,
    .testimonials-section {
        padding: 50px 0;
    }

    .about {
        padding: 60px 0;
    }

    .why-health-umbrella h2,
    .testimonials-section h2,
    .about h2 {
        font-size: 24px;
    }

    .founder-card {
        padding: 20px 15px;
    }

    .founder-photo-placeholder {
        width: 100px;
        height: 100px;
    }

    .founder-photo-placeholder i {
        font-size: 2rem;
    }

    .founder-photo {
        width: 100px;
        height: 100px;
    }

    .founder-content h3 {
        font-size: 1.3rem;
    }

    .founder-message p {
        font-size: 0.9rem;
    }

    .message-guide ul {
        margin-left: 15px;
    }

    .companion-message {
        padding: 20px 15px;
    }

    .companion-message h3 {
        font-size: 1.3rem;
    }

    .companion-message p {
        font-size: 1rem;
    }

    .commitment-banner {
        font-size: 0.95rem;
        padding: 18px;
    }
}

/* ==========================================
   BOOKING MODAL STYLES
   ========================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    animation: slideDown 0.3s ease forwards;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    color: #ffffff;
    padding: 24px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 i {
    font-size: 28px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Booking Form */
.booking-form {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #0066CC;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066CC;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230066CC' d='M6 8L0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Emergency Toggle */
.emergency-toggle {
    background: #fef2f2;
    border: 2px solid #fee2e2;
    border-radius: 8px;
    padding: 16px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    position: relative;
    width: 50px;
    height: 26px;
    appearance: none;
    background: #cbd5e1;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-label input[type="checkbox"]:checked {
    background: #ef4444;
}

.toggle-label input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked::before {
    left: 27px;
}

.toggle-text {
    font-weight: 600;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.toggle-text i {
    font-size: 18px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.form-actions .btn {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.form-actions .btn i {
    font-size: 18px;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.form-actions .btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.form-actions .btn-secondary:hover {
    background: #e2e8f0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
    }

    .modal-container {
        max-height: 95vh;
        border-radius: 12px;
        margin-top: 10px;
    }

    .modal-header {
        padding: 20px;
        border-radius: 12px 12px 0 0;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-header h2 i {
        font-size: 24px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .booking-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .emergency-toggle {
        padding: 12px;
    }

    .toggle-text {
        font-size: 14px;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 18px;
    }

    .booking-form {
        padding: 16px;
    }
}

/* Tawk.to Chat Widget Positioning on Mobile */
@media (max-width: 768px) {

    /* Adjust Tawk.to widget to prevent overlap with WhatsApp button */
    #tawk-bubble-container,
    .widget-visible {
        bottom: 20px !important;
        right: 15px !important;
    }

    /* Add extra clearance between WhatsApp float and Tawk widget */
    .whatsapp-float {
        z-index: 9998;
    }

    /* Ensure Tawk widget appears below WhatsApp button */
    #tawkchat-minified-box,
    .tawk-min-container {
        bottom: 20px !important;
    }
}

@media (max-width: 480px) {

    /* Further adjust for very small screens */
    #tawk-bubble-container,
    .widget-visible {
        bottom: 15px !important;
        right: 12px !important;
    }
}