/* ZAMONAVIY TIBBIY DIZAYN - KUNDUZGI REJIM 
assets/css/light-style.css */

:root {
    /* Asosiy tibbiy ranglar */
    --primary: #0ea5e9;          /* Tibbiy ko'k */
    --primary-dark: #2D8FBD;     /* To'q ko'k */
    --primary-light: #38bdf8;    /* Och ko'k */
    --secondary: #06b6d4;        /* Ikkilamchi ko'k */
    --accent: #10b981;           /* Tibbiy yashil */
    --success: #10b981;          /* Muvaffaqiyat yashil */
    --warning: #f59e0b;          /* Ogohlantirish sariq */
    --danger: #ef4444;           /* Xavf qizil */
    --info: #3b82f6;             /* Ma'lumot ko'k */
    
    /* Orqa fon ranglari */
    --bg-body: #fafbfc;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-card: #ffffff;
    --bg-hover: #f0f9ff;
    
    /* Matn ranglari */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Soyalar */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* Border */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Animatsiya */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 { 
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* NAVIGATION */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    transition: var(--transition-normal);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

.navbar-brand i {
    font-size: 1.75rem;
    margin-right: 0.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--primary);
    background: var(--bg-hover);
    font-weight: 600;
}

/* BUTTONS - 3D tibbiy effekt */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-2px) translateZ(5px);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: translateY(0) translateZ(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    box-shadow: 
        0 4px 6px -1px rgba(14, 165, 233, 0.3),
        0 2px 4px -1px rgba(14, 165, 233, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 
        0 10px 15px -3px rgba(14, 165, 233, 0.4),
        0 4px 6px -2px rgba(14, 165, 233, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-3px) translateZ(10px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: 
        inset 0 0 0 2px var(--primary),
        0 10px 15px -3px rgba(14, 165, 233, 0.4);
    transform: translateY(-3px) translateZ(10px);
}

.btn-light {
    background: var(--bg-primary);
    color: var(--primary);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-light:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    box-shadow: 
        0 4px 6px -1px rgba(14, 165, 233, 0.2),
        0 2px 4px -1px rgba(14, 165, 233, 0.1);
    transform: translateY(-2px) translateZ(5px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Doctor card buttons - tibbiy dizayn */
.doctor-card .btn {
    position: relative;
    overflow: hidden;
}

.doctor-card .btn::after {
    content: '🩺';
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
    transition: right 0.3s ease;
}

.doctor-card .btn:hover::after {
    right: 10px;
}

/* Appointment Button */
.appointment-btn {
    background: var(--primary);
    color: var(--text-white);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.appointment-btn::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: width 0.6s, height 0.6s;
}

.appointment-btn:hover::before {
    width: 300px;
    height: 300px;
}

.appointment-btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* THEME TOGGLE */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    transform: rotate(15deg);
}

/* Hero Section - jozibali 3D effekt */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: url('data:image/svg+xml,<svg viewBox="0 0 1200 80" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 C300,0 900,80 1200,40 L1200,80 L0,80 Z" fill="%23fafbfc"/></svg>');
    background-size: cover;
}

.hero-title-3d {
    display: inline-block;
    animation: fadeInUp 1s ease;
    position: relative;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-title-3d::after {
    content: '⚕️';
    position: absolute;
    top: -20px;
    right: -40px;
    font-size: 2rem;
    opacity: 0.2;
    transform: rotate(-15deg);
    animation: float 4s ease-in-out infinite;
}

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

.hero-image {
    animation: float 6s ease-in-out infinite;
}

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

/* CARDS - 3D effekt bilan */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition-normal);
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 40%, rgba(14, 165, 233, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px) translateZ(20px) rotateX(-2deg);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 12px 16px rgba(0, 0, 0, 0.1),
        0 30px 40px -10px rgba(14, 165, 233, 0.25);
    border-color: var(--primary-light);
}

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

/* Service Cards - 3D tibbiy dizayn */
.service-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    background: linear-gradient(to bottom, var(--bg-card) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--secondary));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.service-card:hover::before {
    opacity: 0.3;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition-normal);
    position: relative;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255,255,255,0.5);
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: inherit;
    opacity: 0;
    filter: blur(10px);
    transition: var(--transition-normal);
    z-index: -1;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    transform: translateY(-5px) translateZ(15px) rotateY(-15deg);
    box-shadow: 
        0 10px 20px -5px rgba(14, 165, 233, 0.5),
        inset 0 -2px 4px rgba(0,0,0,0.2);
}

.service-card:hover .service-icon::after {
    opacity: 0.3;
    transform: scale(1.2);
}

/* Doctor Cards - 3D tibbiy dizayn */
.doctor-card {
    text-align: center;
    padding: 2rem;
    transform-style: preserve-3d;
    background: linear-gradient(to bottom, var(--bg-card) 0%, rgba(14, 165, 233, 0.02) 100%);
}

.doctor-card::after {
    content: '⚕️';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.1;
    transition: var(--transition-normal);
}

.doctor-card:hover::after {
    opacity: 0.2;
    transform: rotate(15deg) scale(1.2);
}

.doctor-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    transform-style: preserve-3d;
}

.doctor-avatar::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
    filter: blur(15px);
}

.doctor-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    background: var(--bg-card);
}

.doctor-card:hover .doctor-avatar::before {
    opacity: 0.6;
    transform: scale(1.1);
}

.doctor-card:hover .doctor-avatar img {
    transform: translateZ(20px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Stats Cards - 3D tibbiy dizayn */
.stats-card {
    text-align: center;
    padding: 2rem;
    position: relative;
    transform-style: preserve-3d;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(14, 165, 233, 0.03) 100%);
}

.stats-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50%;
    transform: translateZ(-10px);
}

.stats-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    transition: var(--transition-normal);
    filter: drop-shadow(0 4px 6px rgba(14, 165, 233, 0.3));
}

.stats-card:hover i {
    transform: translateY(-5px) translateZ(20px) scale(1.1);
    filter: drop-shadow(0 8px 12px rgba(14, 165, 233, 0.4));
}

.stats-card h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-card:hover {
    transform: translateY(-6px) translateZ(15px) rotateX(-3deg);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(14, 165, 233, 0.2);
}

/* FORMS */
.form-control,
.form-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Feature Icons */
.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--text-white);
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

.feature-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ACCORDION */
.accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    border: none;
    padding: 1.25rem;
    font-size: 1rem;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-hover);
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

/* FOOTER */
.medical-footer {
    background: var(--text-primary);
    color: var(--text-white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    display: block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--text-white);
    transform: translateX(4px);
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-light);
    font-size: 1rem;
}

.contact-text {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Medical animation in footer */
.medical-footer::before {
    content: '💉 🩺 💊 🏥 🔬';
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1.5rem;
    opacity: 0.1;
    animation: slide 30s linear infinite;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Admin Link */
.admin-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Medical Divider */
.medical-divider-footer {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.scroll-top.show {
    display: flex;
    animation: slideInUp 0.3s ease;
}

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

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-nav {
        background: var(--bg-card);
        padding: 1.5rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
    }
    
    .nav-link {
        display: block;
        margin: 0.25rem 0;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
    }
    section .row.mb-4 .col-sm-6 .d-flex.align-items-center {
        justify-content: flex-start !important;
        padding-left: 5px !important;
        margin-left: 0 !important;
    }
    
    section .row.mb-4 .col-sm-6 {
        padding-left: 5px !important;
    }
    
    section .row.mb-4 .feature-icon {
        margin-left: 0 !important;
        margin-right: 12px !important;
    }
}

@media (max-width: 576px) {
    :root {
        font-size: 14px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .whatsapp-float,
    .scroll-top {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .scroll-top,
    .theme-toggle,
    .medical-footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
}

/* Selection */
::selection {
    background: rgba(14, 165, 233, 0.2);
    color: var(--primary-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Element specific styles from original */
.display-3.fw-bold.mb-4 {
    padding: 0px;
    margin: 0px;
    background-color: transparent;
    border-radius: 0px;
    border: 0px solid transparent;
    box-shadow: none;
    opacity: 1;
    animation: fadeInUp 1s ease;
    transition: all 900ms ease;
}

.hero-section.text-white.py-5.position-relative.overflow-hidden {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 1;
    padding: 0px;
}

.row.g-4 {
    box-shadow: none;
}

.text-center {
    box-shadow: none;
    opacity: 1;
    border-radius: 0px;
    border: 0px solid transparent;
    padding: 0px;
    margin: 0px;
    display: block;
}

.py-5 {
    padding: 0px;
    margin: 0px;
    border-radius: 0px;
}

.text-center.mb-5.aos-init.aos-animate {
    padding: 0px;
    border-radius: 8px;
    border: 0px solid transparent;
    box-shadow: none;
    opacity: 1;
}

.text-center.mt-5.aos-init.aos-animate {
    margin: 0px;
    background-color: transparent;
    border-radius: 50px;
    border: 0px solid transparent;
    box-shadow: none;
}

/* Special doctor card container styles */
.card.doctor-card.h-100.border-0.shadow-sm {
    padding: 0;
    overflow: visible;
    background: transparent;
}

.card-body.text-center.p-4 {
    padding: 2rem !important;
    margin: 0px;
    display: block;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-light);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(14, 165, 233, 0.15);
    opacity: 1;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(14, 165, 233, 0.02) 100%);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    position: relative;
}

.card-body.text-center.p-4::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.card-body.text-center.p-4:hover {
    transform: translateY(-10px) translateZ(20px) rotateX(-3deg);
    border-color: var(--primary-light);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 30px 40px -10px rgba(14, 165, 233, 0.3),
        0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-body.text-center.p-4:hover::before {
    opacity: 0.3;
}

/* ========== PAGE HEADER STYLES ========== */
.page-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Qo'shimcha chiroyli effektlar */
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

/* Animatsiyali fon */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(270deg, #0ea5e9, #6366f1, #8b5cf6);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    opacity: 0.8;
    z-index: -1;
}

/* Gradient animatsiyasi */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Page header ichidagi elementlar uchun */
.page-header .container {
    position: relative;
    z-index: 2;
}

/* YANGI: Yozuvlar uchun animatsiyali rang va soya */
.page-header h1,
.page-header p {
    animation: textColorChange 15s ease infinite;
    transition: all 0.3s ease;
}

/* Yozuvlar rangi animatsiyasi */
@keyframes textColorChange {
    0% {
        color: #ffffff;
        text-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.3),
            0 6px 20px rgba(0, 0, 0, 0.2),
            0 2px 4px rgba(0, 0, 0, 0.4);
    }
    25% {
        color: #f0f9ff;
        text-shadow: 
            0 3px 6px rgba(0, 0, 0, 0.25),
            0 5px 15px rgba(0, 0, 0, 0.15),
            0 1px 3px rgba(0, 0, 0, 0.3);
    }
    50% {
        color: #1e293b;
        text-shadow: 
            0 2px 4px rgba(255, 255, 255, 0.8),
            0 4px 8px rgba(255, 255, 255, 0.5),
            0 1px 2px rgba(255, 255, 255, 0.9);
    }
    75% {
        color: #e0e7ff;
        text-shadow: 
            0 3px 6px rgba(0, 0, 0, 0.25),
            0 5px 15px rgba(0, 0, 0, 0.15),
            0 1px 3px rgba(0, 0, 0, 0.3);
    }
    100% {
        color: #ffffff;
        text-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.3),
            0 6px 20px rgba(0, 0, 0, 0.2),
            0 2px 4px rgba(0, 0, 0, 0.4);
    }
}

/* Katta sarlavha uchun maxsus 3D effekt */
.page-header h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
    transform: translateZ(0);
    perspective: 1000px;
}

/* Tavsif matni uchun */
.page-header p.lead {
    opacity: 0.95;
    font-weight: 500;
}

/* Ikonka uchun ham animatsiya */
.page-header .fa-user-md,
.page-header .fa-phone,
.page-header .fa-hospital,
.page-header .fa-stethoscope {
    animation: iconFloat 4s ease-in-out infinite, textColorChange 15s ease infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Hover effektlari */
.page-header h1:hover {
    transform: scale(1.02) translateZ(10px);
    transition: transform 0.3s ease;
}

/* Yana ham kuchli 3D effekt uchun */
.page-header h1::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    top: 2px;
    z-index: -1;
    opacity: 0.1;
    filter: blur(2px);
}

/* Testimonial carousel 3D */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0.9;
    font-size: 18px;
    background-color: var(--primary);
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon::before {
    content: '‹';
    font-size: 28px;
    color: white;
    font-weight: bold;
}

.carousel-control-next-icon::before {
    content: '›';
    font-size: 28px;
    color: white;
    font-weight: bold;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
    box-shadow: 
        0 10px 15px -3px rgba(14, 165, 233, 0.4),
        0 4px 6px -2px rgba(14, 165, 233, 0.3);
}

/* Smooth animations */
[data-aos] {
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #0056b3;
        --text-primary: #000000;
        --bg-body: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Google Map Container - Zamonaviy 3D dizayn */
.google-map-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
    transform-style: preserve-3d;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
    box-shadow: 
        0 10px 30px rgba(14, 165, 233, 0.3),
        0 5px 15px rgba(14, 165, 233, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.google-map-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        var(--primary) 0%, 
        var(--secondary) 25%, 
        var(--accent) 50%, 
        var(--primary) 75%, 
        var(--secondary) 100%);
    border-radius: inherit;
    opacity: 0.7;
    z-index: -1;
    filter: blur(5px);
}

.google-map-container::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--bg-card);
    border-radius: calc(var(--border-radius-lg) - 4px);
    z-index: 0;
}

.google-map-container iframe {
    position: relative;
    width: 100%;
    border-radius: calc(var(--border-radius-lg) - 8px);
    z-index: 1;
    transition: var(--transition-normal);
}

.google-map-container:hover {
    transform: translateY(-8px) translateZ(20px) rotateX(-2deg);
    box-shadow: 
        0 20px 50px rgba(14, 165, 233, 0.4),
        0 10px 30px rgba(14, 165, 233, 0.3),
        inset 0 3px 6px rgba(255, 255, 255, 0.3);
}

.google-map-container:hover::before {
    opacity: 1;
    filter: blur(8px);
}

.google-map-container:hover iframe {
    transform: scale(1.02);
}

/* 3D Map Label */
.map-label {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--gradient-button);
    color: var(--text-white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 
        0 4px 10px rgba(14, 165, 233, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-label i {
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Navbar Logo Image */
.navbar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: var(--transition-fast);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.3));
}