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

/* Utility Classes */
.hidden {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    font-family: 'Nunito Sans', system-ui, sans-serif;
    perspective: 1000px;
}

body {
    line-height: 1.6;
    color: #2B2B2B;
    background: linear-gradient(135deg, #F5F5F5 0%, #E8F4FD 50%, #F5F5F5 100%);
    background-attachment: fixed;
    transform-style: preserve-3d;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* CSS Variables */
:root {
    --primary: #6A4CC3;
    --primary-dark: #4B2FAF;
    --secondary-red: #D62828;
    --secondary-blue: #2B5BCF;
    --background-light: #EEF3FF;
    --background: #F5F5F5;
    --text-dark: #2B2B2B;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    
    /* 3D Variables */
    --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.05);
    --shadow-3d-hover: 0 30px 60px rgba(0, 0, 0, 0.15), 0 15px 30px rgba(0, 0, 0, 0.1);
    --shadow-3d-active: 0 5px 15px rgba(0, 0, 0, 0.2);
    --gradient-3d: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.1));
    --border-3d: 1px solid rgba(255, 255, 255, 0.2);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 4rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hidden {
    display: none !important;
}

/* Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(106, 76, 195, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 76, 195, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-red), #b91c1c);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 40, 40, 0.4);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

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

/* Header Styles */
.emergency-bar {
    background: linear-gradient(135deg, var(--secondary-red), #b91c1c);
    color: var(--white);
    padding: 0.75rem 0;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.emergency-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.emergency-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.emergency-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.emergency-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.emergency-item svg {
    width: 16px;
    height: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.emergency-right {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

/* Professional Main Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

/* Logo Styles */
.logo-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-content:hover {
    transform: translateY(-1px);
}

.logo-image {
    width: 12rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 220px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.logo-content:hover .logo-img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(106, 76, 195, 0.3);
}

.mobile-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 76, 195, 0.4);
}

.menu-icon, .close-icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover .menu-icon,
.mobile-menu-btn:hover .close-icon {
    transform: rotate(90deg);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--gray-700);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 76, 195, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(106, 76, 195, 0.3);
}

/* CTA Button */
.nav-cta {
    display: flex;
    align-items: center;
}

.nav-cta .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1001;
    }
    
    .nav-content {
        padding: 0.75rem 0;
        position: relative;
    }
    
    .logo-image {
        width: 10rem;
        height: 2rem;
    }
    
    .logo-img {
        width: 180px;
        height: 90px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        display: none;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 1000;
        gap: 0.5rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex !important;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1rem;
        text-align: center;
        color: var(--gray-700);
        border-radius: 0.75rem;
        margin-bottom: 0.25rem;
        width: 100%;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover {
        color: var(--white);
        background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(106, 76, 195, 0.3);
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
        color: var(--white);
    }
    
    .nav-cta {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(106, 76, 195, 0.1);
        width: 100%;
    }
    
    .nav-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hidden {
        display: none !important;
    }
        width: 100%;
    }
    
    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .emergency-right {
        display: none;
    }
    
    .emergency-left {
        justify-content: center;
        width: 100%;
    }
    
    .emergency-content {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .emergency-left {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .emergency-item {
        font-size: 0.8rem;
    }
    
    .nav-links {
        padding: 1rem;
    }
    
    .nav-link {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    transform-style: preserve-3d;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 76, 195, 0.1), rgba(43, 91, 207, 0.1));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    box-shadow: 0 4px 15px rgba(106, 76, 195, 0.3);
    transform: translateY(-1px);
}

.nav-link.active::before {
    display: none;
}

.nav-cta {
    display: none;
}

.nav-cta .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-light), var(--white));
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-branches {
    display: grid;
    gap: 1rem;
}

.branch-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
}

.branch-item .icon {
    color: var(--primary);
}

.branch-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.branch-value {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

/* Hero Doctors Showcase */
.hero-doctors {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctors-showcase {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.showcase-title {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.doctor-cards-hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.doctor-card-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doctor-card-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.doctor-info-hero {
    flex: 1;
    order: 1;
}

.doctor-photo-large {
    width: 8rem;
    height: 8rem;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    order: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder-large {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.doctor-photo {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.doctor-info-hero h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.doctor-info-hero .specialty {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.doctor-info-hero .experience {
    color: var(--gray-600);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.qualifications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.qual-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
}

.showcase-cta {
    text-align: center;
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* Branch Locations */
.branch-locations {
    background: var(--background-light);
    padding: 4rem 0;
}

.branches-grid {
    display: grid;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.branch-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.branch-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.branch-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.branch-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--white);
}

.branch-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.branch-subtitle {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.branch-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.detail-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.4;
}

.detail-value a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.detail-value a:hover {
    color: var(--primary-dark);
}

.branch-actions {
    display: flex;
    gap: 1rem;
}

.btn-map, .btn-call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-map {
    background: var(--primary);
    color: var(--white);
}

.btn-map:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-call {
    background: var(--secondary-red);
    color: var(--white);
}

.btn-call:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-map svg, .btn-call svg {
    width: 1rem;
    height: 1rem;
}

/* Trust Badges */
.trust-badges {
    background: var(--white);
    padding: 3rem 0;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.badge {
    text-align: center;
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
}

.badge-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: background-color 0.3s ease;
}

.badge:hover .badge-icon {
    background: var(--background-light);
}

.badge-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.badge h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.badge p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Services Section */
.services {
    background: var(--background-light);
    padding: 4rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

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

.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.service-icon.cardiology {
    background: rgba(214, 40, 40, 0.1);
}

.service-icon.cardiology svg {
    color: var(--secondary-red);
}

.service-icon.general {
    background: rgba(43, 91, 207, 0.1);
}

.service-icon.general svg {
    color: var(--secondary-blue);
}

.service-icon.emergency {
    background: rgba(214, 40, 40, 0.1);
}

.service-icon.emergency svg {
    color: var(--secondary-red);
}

.service-icon.diagnostics {
    background: rgba(106, 76, 195, 0.1);
}

.service-icon.diagnostics svg {
    color: var(--primary);
}

.service-icon.surgery {
    background: rgba(43, 91, 207, 0.1);
}

.service-icon.surgery svg {
    color: var(--secondary-blue);
}

.service-icon.multispecialty {
    background: rgba(106, 76, 195, 0.1);
}

.service-icon.multispecialty svg {
    color: var(--primary);
}

.service-content h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.service-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

.section-cta {
    text-align: center;
}

/* Doctors Preview */
.doctors-preview {
    background: var(--white);
    padding: 4rem 0;
}

.doctors-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.doctor-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
}

.doctor-image {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, rgba(106, 76, 195, 0.2), rgba(43, 91, 207, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-card:hover .doctor-image {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.doctor-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.qualification {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.specialty {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.doctor-info {
    border-top: 1px solid var(--gray-100);
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.doctor-info p {
    margin-bottom: 0.5rem;
}

.doctor-cta {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.doctor-cta:hover {
    color: var(--primary-dark);
}

/* Testimonials */
.testimonials {
    background: var(--background-light);
    padding: 4rem 0;
}

.testimonial-slider {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    text-align: center;
    display: none;
}

.testimonial-card.active {
    display: block;
}

.stars {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.testimonial-card blockquote {
    font-size: 1.25rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid var(--gray-100);
    padding-top: 1.5rem;
}

.testimonial-author h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.treatment {
    color: var(--primary);
    font-weight: 600;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-nav:hover {
    background: var(--gray-100);
}

.testimonial-nav svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--gray-600);
}

.prev {
    left: -1rem;
}

.next {
    right: -1rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: none;
    background: var(--gray-300);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: var(--primary);
}

/* Appointment CTA */
.appointment-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 4rem 0;
    color: var(--white);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.cta-options {
    display: grid;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto 2rem;
}

.cta-option {
    background: var(--white);
    color: var(--primary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-option:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cta-option.emergency {
    background: var(--secondary-red);
    color: var(--white);
}

.cta-option.emergency:hover {
    background: #b91c1c;
}

.cta-option.whatsapp {
    background: #10b981;
    color: var(--white);
}

.cta-option.whatsapp:hover {
    background: #059669;
}

.cta-option svg {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.cta-option h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cta-option p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.contact-info .contact-item {
    text-align: center;
}

.contact-info h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info p {
    opacity: 0.9;
}

/* Contact Map */
.contact-map {
    background: var(--white);
    padding: 4rem 0;
}

.map-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.map-placeholder {
    background: var(--gray-100);
    border-radius: 1rem;
    height: 24rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gray-500);
}

.map-icon {
    width: 4rem;
    height: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.map-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-subtitle {
    font-size: 0.875rem;
}

.contact-details h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(106, 76, 195, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.contact-icon.phone {
    background: rgba(214, 40, 40, 0.1);
}

.contact-icon.phone svg {
    color: var(--secondary-red);
}

.contact-icon.email {
    background: rgba(43, 91, 207, 0.1);
}

.contact-icon.email svg {
    color: var(--secondary-blue);
}

.contact-detail h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-detail p {
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--primary);
    font-weight: 600;
}

.contact-detail a:hover {
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.25rem;
}

.footer-logo h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.footer-logo p {
    font-size: 0.875rem;
    color: var(--gray-300);
}

.footer-description {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background: var(--primary-dark);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-300);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-item .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-contact-item p {
    color: var(--gray-300);
    font-size: 0.875rem;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-300);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-bottom-links a {
    color: var(--gray-300);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-contact {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .badges-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .emergency-right {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-links {
        display: flex;
    }
    
    .nav-cta {
        display: block;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .cta-content h2 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .map-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 3.5rem;
    }
    
    .cta-content h2 {
        font-size: 3.5rem;
    }
}

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

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

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

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Certificates & Standards */
.certificates {
    background: var(--white);
    padding: 4rem 0;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

.certificate-item {
    text-align: center;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.certificate-logo {
    width: 5rem;
    height: 5rem;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    color: var(--primary);
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.certificate-item p {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Doctor Timetable */
.doctor-timetable {
    background: var(--background-light);
    padding: 4rem 0;
}

.timetable-container {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.timetable-controls {
    display: flex;
    gap: 0.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--background-light);
}

.timetable-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--white);
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.timetable-btn.active {
    background: var(--primary);
    color: var(--white);
}

.timetable-content {
    padding: 2rem;
    min-height: 400px;
}

.loading-timetable {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--gray-500);
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.timetable-grid {
    display: grid;
    gap: 1.5rem;
}

.doctor-schedule {
    background: var(--background-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.doctor-schedule:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.schedule-avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.schedule-info h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.schedule-info p {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.schedule-slots {
    display: grid;
    gap: 0.75rem;
}

.time-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.time-slot:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slot-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.slot-time svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.slot-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.slot-status.available {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.slot-status.busy {
    background: rgba(214, 40, 40, 0.1);
    color: var(--secondary-red);
}

.slot-status.break {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.slot-book-btn {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slot-book-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.slot-book-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

.no-schedule {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.no-schedule svg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: var(--gray-300);
}

@media (min-width: 640px) {
    .certificates-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .timetable-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Multi-Hospital Timetable Styles */
.doctor-schedule.multi-hospital {
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.multi-hospital-slots {
    margin-top: 1rem;
}

.hospital-schedule {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1rem;
    background: var(--background-light);
}

.hospital-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.hospital-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hospital-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.hospital-slots {
    margin-top: 0.5rem;
}

.hospital-count {
    font-size: 0.75rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.25rem;
    display: inline-block;
}

.session-times {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.session-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.session-label {
    font-weight: 600;
}

.session-hours {
    color: var(--gray-600);
}

/* Doctor Avatar Large (for doctors.html) */
.doctor-avatar-large {
    width: 8rem;
    height: 8rem;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doctor-avatar-large img,
.doctor-real-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

/* Specializations Section */
.specializations-section {
    margin-bottom: 2rem;
}

.specializations-section .section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.specializations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.specialization-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.specialization-item:hover {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spec-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.specialization-item span {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 500;
}


/* Doctors Page - New Layout with Image on Right */
.doctor-header-new {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
}

.doctor-info-left {
    flex: 1;
}

.doctor-info-left h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.doctor-avatar-extra-large {
    width: 16rem;
    height: 16rem;
    border-radius: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    order: 2;
}

.doctor-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-large {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--white);
}

/* Mobile Responsive for Doctors Page */
@media (max-width: 768px) {
    .doctor-header-new {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }
    
    .doctor-avatar-extra-large {
        width: 100%;
        height: 20rem;
        align-self: center;
    }
    
    .doctor-info-left h2 {
        font-size: 1.5rem;
    }
}

/* Mobile Responsive for Hero Doctors */
@media (max-width: 640px) {
    .doctor-card-hero {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .doctor-photo-large {
        width: 10rem;
        height: 10rem;
    }
}

/* Doctors Preview Section - Bigger Images */
.doctor-image-large {
    width: 8rem;
    height: 8rem;
    background: linear-gradient(135deg, rgba(106, 76, 195, 0.2), rgba(43, 91, 207, 0.2));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
}

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

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-heartbeat {
    animation: heartbeat 1.5s infinite;
}

.animate-slide-in-top {
    animation: slideInFromTop 0.6s ease-out forwards;
}

/* Staggered Animation Delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Hover Animations */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn:hover::before {
    left: 100%;
}

/* Card Animations - Fixed for About Page */
.doctor-card,
.service-card,
.stat-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.doctor-card.animate-in,
.service-card.animate-in,
.stat-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure Core Values are always visible */
.services .service-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hero Section Animations */
.hero-title {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero-description {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-doctors {
    opacity: 0;
    animation: fadeInRight 1s ease-out 0.8s forwards;
}

/* Loading Animation for Images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
/* Enhanced Social Media Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    z-index: 2;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.social-link.facebook::before {
    background: #1877f2;
}

.social-link.facebook:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.social-link.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
}

.social-link.instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.instagram:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
}

.social-link.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.social-link.youtube::before {
    background: #ff0000;
}

.social-link.youtube:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}
/* Corporate Video Section */
.corporate-video {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
}

.video-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.video-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
    background: var(--gray-100);
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.video-iframe {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
}

.video-info h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.video-info p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.video-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.video-stats .stat {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.video-stats .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.video-stats .stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-wrapper {
        aspect-ratio: 16/9;
    }
    
    .video-iframe {
        height: 100%;
    }
}

/* Google Reviews Section */
.google-reviews {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--background-light), var(--white));
    position: relative;
    overflow: hidden;
}

.google-reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.review-branch {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(106, 76, 195, 0.1);
    position: relative;
}

.review-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary-blue));
}

.review-branch:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.branch-review-header {
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(135deg, rgba(238, 243, 255, 0.8), var(--white));
    border-bottom: 1px solid rgba(106, 76, 195, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
}

.branch-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(106, 76, 195, 0.3);
}

.branch-icon svg {
    width: 2rem;
    height: 2rem;
}

.branch-info {
    flex: 1;
}

.branch-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.branch-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    border: 1px solid rgba(106, 76, 195, 0.2);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.google-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.google-badge svg {
    width: 18px;
    height: 18px;
}

.review-widget-container {
    padding: 2.5rem;
    min-height: 450px;
    background: var(--white);
    position: relative;
}

.shapo-widget {
    width: 100%;
    max-width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    min-height: 400px;
    background: var(--white);
}

/* Ensure Shapo widget is responsive */
.shapo-widget iframe {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0.5rem;
    border: none;
}

/* Trust Indicators */
.review-trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(106, 76, 195, 0.1);
    position: relative;
}

.review-trust-indicators::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary-blue));
    border-radius: 0 0 1rem 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(238, 243, 255, 0.5), rgba(255, 255, 255, 0.8));
    border-radius: 1rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(106, 76, 195, 0.1);
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 76, 195, 0.02), rgba(43, 91, 207, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(106, 76, 195, 0.15);
}

.trust-item:hover::before {
    opacity: 1;
}

.trust-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(106, 76, 195, 0.25);
    transition: all 0.3s ease;
}

.trust-item:hover .trust-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(106, 76, 195, 0.35);
}

.trust-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.trust-content {
    flex: 1;
}

.trust-content h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.trust-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .google-reviews {
        padding: 3rem 0;
    }
    
    .reviews-grid {
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .branch-review-header {
        padding: 2rem 1.5rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .branch-icon {
        align-self: center;
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .branch-info h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .branch-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .review-widget-container {
        padding: 1.5rem;
        min-height: 350px;
    }
    
    .review-trust-indicators {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }
    
    .trust-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .trust-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .trust-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-width: 480px) {
    .google-reviews {
        padding: 2rem 0;
    }
    
    .branch-review-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .branch-info h3 {
        font-size: 1.125rem;
    }
    
    .review-widget-container {
        padding: 1rem;
        min-height: 300px;
    }
    
    .review-trust-indicators {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .trust-item {
        padding: 1rem;
    }
}

/* Loading state for widgets */
.review-widget-container:empty::before {
    content: 'Loading Google Reviews...';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    color: var(--gray-500);
    font-style: italic;
    background: var(--gray-100);
    border-radius: 0.5rem;
}

/* Animation for review cards */
.review-branch {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.review-branch:nth-child(2) {
    animation-delay: 0.2s;
}

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

/* Premium hospital styling enhancements */
.google-reviews .section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.google-reviews .section-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary-blue));
    border-radius: 2px;
}

.google-reviews .section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.google-reviews .section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Ensure proper spacing and alignment */
.review-branch .branch-info {
    flex: 1;
}

.branch-review-header {
    position: relative;
}

.branch-review-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(106, 76, 195, 0.2), transparent);
}

/* Widget content styling */
.shapo-widget * {
    font-family: 'Nunito Sans', sans-serif !important;
}

/* Loading state improvements */
.review-widget-container:empty::before {
    content: 'Loading Google Reviews...';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    color: var(--gray-500);
    font-style: italic;
    background: linear-gradient(135deg, var(--gray-100), var(--white));
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

/* Animation improvements */
.review-branch {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.review-branch:nth-child(2) {
    animation-delay: 0.3s;
}

.trust-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.trust-item:nth-child(1) {
    animation-delay: 0.6s;
}

.trust-item:nth-child(2) {
    animation-delay: 0.8s;
}

.trust-item:nth-child(3) {
    animation-delay: 1s;
}

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

/* Enhanced hover effects */
.review-branch:hover .branch-icon {
    transform: scale(1.05);
}

.review-branch:hover .google-badge {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .google-reviews .section-header h2 {
        font-size: 2.25rem;
    }
    
    .google-reviews .section-header p {
        font-size: 1rem;
    }
    
    .branch-review-header::after {
        left: 1.5rem;
        right: 1.5rem;
    }
}

/* Hide images in Google Reviews widgets */
.shapo-widget img,
.shapo-widget [class*="image"],
.shapo-widget [class*="photo"],
.shapo-widget [class*="avatar"],
.shapo-widget picture,
.shapo-widget figure {
    display: none !important;
}

/* Hide profile pictures and user avatars in reviews */
.shapo-widget iframe {
    border-radius: 0.5rem;
    border: none;
}

/* Additional CSS to hide images within the widget content */
#shapo-widget-ba0a1149e45292e45904 img,
#shapo-widget-4801cf00554632ebb81a img,
#shapo-widget-ba0a1149e45292e45904 picture,
#shapo-widget-4801cf00554632ebb81a picture,
#shapo-widget-ba0a1149e45292e45904 [style*="background-image"],
#shapo-widget-4801cf00554632ebb81a [style*="background-image"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide any circular profile elements that might contain images */
.shapo-widget [class*="circle"],
.shapo-widget [class*="round"],
.shapo-widget [style*="border-radius: 50%"],
.shapo-widget [style*="border-radius:50%"] {
    display: none !important;
}

/* Focus on text content only */
.shapo-widget {
    font-family: 'Nunito Sans', sans-serif !important;
}

/* Ensure review text is prominent */
.review-widget-container {
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Style the widget container to focus on text */
.shapo-widget * {
    font-family: inherit !important;
}

/* ===== 3D ENHANCEMENTS ===== */

/* 3D Base Classes */
.card-3d {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-3d);
    background: var(--gradient-3d);
    border: var(--border-3d);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.card-3d:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: var(--shadow-3d-hover);
}

.card-3d:active {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: var(--shadow-3d-active);
}

/* 3D Button Effects */
.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.btn-3d:hover {
    transform: translateY(-2px) rotateX(2deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-3d:hover::before {
    left: 100%;
}

.btn-3d:active {
    transform: translateY(-1px) rotateX(2deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* 3D Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-link {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 76, 195, 0.1), rgba(43, 91, 207, 0.1));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    transform: translateY(-2px) rotateX(5deg);
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(106, 76, 195, 0.15), rgba(43, 91, 207, 0.15));
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* 3D Logo Effects */
.logo-content {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-content:hover {
    transform: translateY(-3px) rotateY(5deg) rotateX(5deg);
}

.logo-img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: filter 0.3s ease;
}

.logo-content:hover .logo-img {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

/* 3D Hero Section */
.hero {
    background: linear-gradient(135deg, 
        rgba(238, 243, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(238, 243, 255, 0.9) 100%);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(106, 76, 195, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(43, 91, 207, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(214, 40, 40, 0.05) 0%, transparent 50%);
    animation: float3d 20s ease-in-out infinite;
}

@keyframes float3d {
    0%, 100% { transform: translateZ(0) rotateX(0deg); }
    50% { transform: translateZ(20px) rotateX(2deg); }
}

.hero-title {
    transform-style: preserve-3d;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: heroTitle3d 1s ease-out 0.2s both;
}

@keyframes heroTitle3d {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(-15deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.hero-description {
    animation: heroDesc3d 1s ease-out 0.4s both;
}

@keyframes heroDesc3d {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* 3D Cards */
.card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-3d);
    background: var(--gradient-3d);
    border: var(--border-3d);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(3deg);
    box-shadow: var(--shadow-3d-hover);
}

/* 3D Service Cards */
.service-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-3d);
    background: var(--gradient-3d);
    border: var(--border-3d);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-6px) rotateX(3deg) rotateY(2deg);
    box-shadow: var(--shadow-3d-hover);
}

.service-icon {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-icon {
    transform: translateZ(10px) rotateY(8deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 3D Doctor Cards */
.doctor-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-3d);
    background: var(--gradient-3d);
    border: var(--border-3d);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.doctor-card:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(3deg);
    box-shadow: var(--shadow-3d-hover);
}

.doctor-image {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.doctor-card:hover .doctor-image {
    transform: translateZ(15px) rotateY(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 3D Branch Cards */
.branch-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-3d);
    background: var(--gradient-3d);
    border: var(--border-3d);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.branch-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(3deg);
    box-shadow: var(--shadow-3d-hover);
}

.branch-icon {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 16px rgba(106, 76, 195, 0.3);
}

.branch-card:hover .branch-icon {
    transform: translateZ(12px) rotateY(8deg);
    box-shadow: 0 10px 20px rgba(106, 76, 195, 0.3);
}

/* 3D Testimonial Cards */
.testimonial-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-3d);
    background: var(--gradient-3d);
    border: var(--border-3d);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.testimonial-card.active {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d-hover);
}

/* 3D CTA Section */
.appointment-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary-blue) 100%);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.appointment-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: ctaFloat3d 15s ease-in-out infinite;
}

@keyframes ctaFloat3d {
    0%, 100% { transform: translateZ(0) rotateX(0deg); }
    50% { transform: translateZ(30px) rotateX(3deg); }
}

.cta-option {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-3d);
    background: var(--gradient-3d);
    border: var(--border-3d);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cta-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.cta-option:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(2deg);
    box-shadow: var(--shadow-3d-hover);
}

/* 3D Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a1a 50%, var(--text-dark) 100%);
    position: relative;
    transform-style: preserve-3d;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(106, 76, 195, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(43, 91, 207, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 3D Social Links */
.social-link {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

.social-link:hover {
    transform: translateY(-3px) rotateX(8deg) rotateY(8deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* 3D Floating Elements */
.floating-3d {
    animation: floating3d 6s ease-in-out infinite;
}

@keyframes floating3d {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg) rotateY(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotateX(5deg) rotateY(5deg); 
    }
    50% { 
        transform: translateY(-20px) rotateX(0deg) rotateY(10deg); 
    }
    75% { 
        transform: translateY(-10px) rotateX(-5deg) rotateY(5deg); 
    }
}

/* 3D Scroll Animations */
.scroll-3d {
    opacity: 0;
    transform: translateY(50px) rotateX(-15deg);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-3d.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* 3D Hover Effects for Interactive Elements */
.interactive-3d {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.interactive-3d:hover {
    transform: translateZ(5px) rotateX(2deg) rotateY(2deg);
}

/* 3D Loading Animations */
.loading-3d {
    animation: loading3d 2s ease-in-out infinite;
}

@keyframes loading3d {
    0%, 100% { 
        transform: rotateY(0deg) rotateX(0deg); 
    }
    25% { 
        transform: rotateY(90deg) rotateX(15deg); 
    }
    50% { 
        transform: rotateY(180deg) rotateX(0deg); 
    }
    75% { 
        transform: rotateY(270deg) rotateX(-15deg); 
    }
}

/* 3D Parallax Effects */
.parallax-3d {
    transform-style: preserve-3d;
    will-change: transform;
}

/* 3D Glass Morphism */
.glass-3d {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
}

/* 3D Depth Layers */
.depth-layer-1 { transform: translateZ(10px); }
.depth-layer-2 { transform: translateZ(20px); }
.depth-layer-3 { transform: translateZ(30px); }
.depth-layer-4 { transform: translateZ(40px); }
.depth-layer-5 { transform: translateZ(50px); }

/* Mobile 3D Optimizations */
@media (max-width: 768px) {
    .card-3d:hover,
    .service-card:hover,
    .doctor-card:hover,
    .branch-card:hover {
        transform: translateY(-8px) rotateX(3deg) rotateY(2deg);
    }
    
    .btn-3d:hover {
        transform: translateY(-2px) rotateX(3deg);
    }
    
    .nav-link:hover {
        transform: translateY(-1px) rotateX(2deg);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .card-3d,
    .btn-3d,
    .service-card,
    .doctor-card,
    .branch-card,
    .testimonial-card,
    .cta-option,
    .social-link,
    .nav-link {
        transform: none !important;
        animation: none !important;
    }
    
    .card-3d:hover,
    .btn-3d:hover,
    .service-card:hover,
    .doctor-card:hover,
    .branch-card:hover,
    .cta-option:hover,
    .social-link:hover,
    .nav-link:hover {
        transform: none !important;
    }
}