:root {
    /* PLAN.md'deki diş hekimliğine uygun renk paleti */
    --primary-color: #2A7BA3;      /* Primary: Sakin mavi */
    --secondary-color: #4FB0C6;    /* Secondary: Turkuaz */
    --accent-color: #7ED2CC;       /* Accent: Mint */
    --background-color: #FFFFFF;   /* Background: Temiz beyaz */
    --surface-color: #FFFFFF;      /* Surface: Beyaz */
    --border-color: #E6EEF4;       /* Border/Divider: Açık mavi-gri */
    --text-primary: #1F2D3D;       /* Text Primary: Koyu mavi-gri */
    --text-muted: #5A6B7B;         /* Text Muted: Orta gri */
    --success-color: #2E7D5B;      /* Success: Yeşil */
    --warning-color: #E6A23C;      /* Warning: Turuncu */
    --error-color: #C15656;        /* Error: Kırmızı */
    --light-bg: #F8FBFF;          /* Light background: Çok açık mavi */
    --header-height: 90px;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(42, 123, 163, 0.1);
    
    /* Mobile-first responsive variables */
    --container-padding: 1rem;
    --section-padding: 2rem 0;
    --card-padding: 1.5rem;
    --button-height: 48px;
    --input-height: 48px;
    --touch-target: 44px;
    
    /* Typography scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;  
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Safe area support for iOS */
    --safe-area-top: env(safe-area-inset-top, 0);
    --safe-area-right: env(safe-area-inset-right, 0);
    --safe-area-bottom: env(safe-area-inset-bottom, 0);
    --safe-area-left: env(safe-area-inset-left, 0);
}

/* Fonts - PLAN.md'ye uygun modern fontlar */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Modern CSS Reset & Cross-Browser Normalization */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', 'Manrope', 'DM Sans', 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--background-color);
    font-size: var(--font-size-base);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: var(--safe-area-top);
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    padding-bottom: var(--safe-area-bottom);
    overflow-x: hidden;
}

/* Enhanced focus management for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Improved image handling */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Form elements normalization */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* List normalization */
ul, ol {
    list-style: none;
}

/* Table normalization */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Link normalization */
a {
    color: inherit;
    text-decoration: none;
}

/* Header Styles */
.header {
    background: #fff;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.btn-appointment {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--border-radius);
    margin-left: 1rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-appointment:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.header-top {
    background-color: var(--primary-color);
    padding: 12px 0;
    color: #fff;
    font-size: 0.9rem;
}

.header-info {
    opacity: 0.9;
}

.header-info i {
    margin-right: 5px;
    color: var(--accent-color);
}

.header-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.social-link {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    color: var(--accent-color);
    opacity: 1;
}

.phone-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: var(--accent-color);
    padding: 6px 12px;
    border-radius: var(--border-radius);
}

.phone-link:hover {
    background-color: #ff5252;
    color: #fff;
}

.phone-link:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

.navbar-brand {
    position: relative;
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

.header.sticky .logo-light {
    display: none;
}

.header.sticky .logo-dark {
    display: block;
}

.header.sticky {

/* Custom Button Styles - PLAN.md uyumlu */
.btn-primary {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 123, 163, 0.2);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--text-primary);
    border: 2px solid var(--text-primary);
    color: #fff;
    padding: 15px 40px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 0;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

/* Services Section */
.services-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s;
    overflow: hidden;
}

.services-card:hover {
    transform: translateY(-5px);
}

.services-card img {
    height: 200px;
    object-fit: cover;
}

/* Team Section */
.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   FLOATING ACTION BUTTONS
   ======================================== */

/* WhatsApp Float Button - Enhanced for mobile */
.whatsapp-float {
    position: fixed;
    bottom: calc(20px + var(--safe-area-bottom));
    right: calc(20px + var(--safe-area-right));
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.whatsapp-float:hover {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-float:active {
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    transform: scale(0.95);
}

/* Enhanced mobile touch targets */
@media (max-width: 47.9375em) {
    .whatsapp-float {
        width: 64px;
        height: 64px;
        font-size: 28px;
        bottom: calc(24px + var(--safe-area-bottom));
        right: calc(24px + var(--safe-area-right));
    }
}

/* Contact buttons container */
.contact-buttons {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
}

.contact-buttons > * {
    pointer-events: auto;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   MOBILE-FIRST RESPONSIVE DESIGN
   ======================================== */

/* Base styles for mobile (320px+) */
.container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Touch-friendly buttons */
.btn {
    min-height: var(--button-height);
    min-width: var(--touch-target);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--border-radius);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:active {
    -webkit-transform: scale(0.98);
    -moz-transform: scale(0.98);
    -ms-transform: scale(0.98);
    transform: scale(0.98);
}

/* Enhanced form inputs */
input, textarea, select {
    min-height: var(--input-height);
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--background-color);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 123, 163, 0.1);
    outline: none;
}

/* ========================================
   BREAKPOINT SYSTEM (Mobile-First)
   ======================================== */

/* Extra Small devices (320px and up) - Base styles above */

/* Small devices (375px and up) */
@media (min-width: 23.4375em) {
    :root {
        --container-padding: 1.25rem;
        --section-padding: 2.5rem 0;
    }
    
    .btn {
        padding: var(--space-3) var(--space-8);
    }
}

/* Medium devices (768px and up) - Tablets */
@media (min-width: 48em) {
    :root {
        --container-padding: 2rem;
        --section-padding: 4rem 0;
        --card-padding: 2rem;
        --font-size-3xl: 2.25rem;
        --font-size-4xl: 3rem;
    }
    
    .header-top {
        display: block;
    }
    
    .hero {
        padding: 120px 0;
    }
    
    .btn {
        min-height: 52px;
        padding: var(--space-4) var(--space-10);
        font-size: var(--font-size-lg);
    }
}

/* Large devices (1024px and up) - Small desktops */
@media (min-width: 64em) {
    :root {
        --section-padding: 6rem 0;
        --card-padding: 2.5rem;
    }
    
    .hero {
        padding: 150px 0;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Extra large devices (1200px and up) - Desktops */
@media (min-width: 75em) {
    :root {
        --section-padding: 8rem 0;
        --font-size-4xl: 3.5rem;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* Ultra wide devices (1400px and up) */
@media (min-width: 87.5em) {
    .container {
        max-width: 1600px;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Legacy mobile support */
@media (max-width: 47.9375em) {
    .header-top {
        display: none;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    /* Mobile navigation improvements */
    .navbar-collapse {
        background: var(--background-color);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-top: var(--space-4);
        padding: var(--space-6);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: var(--space-2);
    }
    
    .navbar-nav .nav-link {
        padding: var(--space-3) var(--space-4);
        border-radius: var(--border-radius);
        transition: background-color 0.2s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--light-bg);
    }
}

/* ========================================
   LOGO STYLES
   ======================================== */

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
}

/* Logo Initials (MS) */
.logo-initials {
    background: linear-gradient(135deg, #c9a96e, #b8956a);
    color: white;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Georgia', serif;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.logo-initials:hover {
    transform: scale(1.05);
}

/* Logo Text */
.logo-text {
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    font-style: italic;
}

.logo-text::first-letter {
    font-size: 24px;
    font-weight: bold;
}

/* Responsive Logo Styles */
@media (max-width: 768px) {
    .logo-initials {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 10px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo-text::first-letter {
        font-size: 18px;
    }
}

/* Modern Doctor Card Styles */
.modern-doctor-card {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(42, 123, 163, 0.1);
    border: 1px solid rgba(42, 123, 163, 0.08);
    margin: 20px 0;
    transition: all 0.4s ease;
}

.modern-doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(42, 123, 163, 0.15);
}

.doctor-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.doctor-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2A7BA3, #4FB0C6);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.doctor-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2A7BA3;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.doctor-card-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

/* Doctor Image Section */
.doctor-image-section {
    position: relative;
}

.doctor-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    padding: 20px;
}

.doctor-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(42, 123, 163, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.experience-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-text {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* Doctor Info Section */
.doctor-info-section {
    padding-top: 10px;
}

.doctor-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-primary {
    background: linear-gradient(135deg, #2A7BA3, #4FB0C6);
    color: white;
}

.tag-secondary {
    background: linear-gradient(135deg, #7ED2CC, #4FB0C6);
    color: white;
}

.doctor-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5A6B7B;
    margin-bottom: 30px;
}

/* Expertise Section */
.expertise-section {
    margin-bottom: 30px;
}

.expertise-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2A7BA3;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expertise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.expertise-item {
    background: rgba(42, 123, 163, 0.08);
    color: #2A7BA3;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(42, 123, 163, 0.15);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    background: rgba(42, 123, 163, 0.12);
    transform: translateY(-2px);
}

/* Contact Info */
.contact-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5A6B7B;
    font-weight: 500;
}

.contact-item i {
    color: #2A7BA3;
    width: 20px;
    text-align: center;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.whatsapp-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.instagram-btn {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
    color: white;
}

.instagram-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(228, 64, 95, 0.3);
}

.email-btn {
    background: linear-gradient(135deg, #2A7BA3, #4FB0C6);
    color: white;
}

.email-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(42, 123, 163, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .doctor-card-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .doctor-name {
        font-size: 2rem;
    }
    
    .modern-doctor-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .doctor-name {
        font-size: 1.8rem;
    }
    
    .modern-doctor-card {
        padding: 25px 15px;
        border-radius: 16px;
    }
    
    .doctor-image {
        height: 300px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-buttons {
        justify-content: center;
    }
    
    .social-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .doctor-tags {
        justify-content: center;
    }
    
    .expertise-list {
        justify-content: center;
    }
}

/* Reduced Padding for Light Sections */
.py-reduced {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

@media (min-width: 768px) {
    .py-reduced {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Reduced Bottom Margin */
.mb-reduced {
    margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
    .mb-reduced {
        margin-bottom: 3rem !important;
    }
}

/* Minimal Padding for Even Tighter Sections */
.py-minimal {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

@media (min-width: 768px) {
    .py-minimal {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Minimal Bottom Margin */
.mb-minimal {
    margin-bottom: 1rem !important;
}

@media (min-width: 768px) {
    .mb-minimal {
        margin-bottom: 1.5rem !important;
    }
}

/* Ultra Minimal Padding - Almost No Space */
.py-ultra {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

@media (min-width: 768px) {
    .py-ultra {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Ultra Minimal Bottom Margin */
.mb-ultra {
    margin-bottom: 0.5rem !important;
}

@media (min-width: 768px) {
    .mb-ultra {
        margin-bottom: 1rem !important;
    }
}

/* Contact Info Adjustments */
.footer-contact {
    margin-left: -30px;
}

/* Contact Info Title Alignment */
.footer-contact-title {
    margin-left: -30px;
}

.footer-contact li {
    word-break: break-all;
    overflow-wrap: break-word;
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .footer-contact {
        margin-left: 0;
    }
    
    .footer-contact-title {
        margin-left: 0;
    }
}

/* Social Buttons Spacing in Doctor Card */
.modern-doctor-card .social-buttons {
    margin-top: 1.5rem !important;
}

/* Address Multi-line Formatting */
.address-multiline {
    display: inline-block;
    line-height: 1.4;
}

/* Header Address - Single Line on Desktop */
.header-info .address-multiline br {
    display: none;
}

@media (max-width: 768px) {
    .header-info .address-multiline br {
        display: block;
    }
}

/* ========================================
   MODERN CSS UTILITIES & PERFORMANCE
   ======================================== */

/* GPU-accelerated animations */
.gpu-accelerated {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    perspective: 1000px;
}

/* Smooth scrolling containers */
.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes spin {
    0% { -moz-transform: rotate(0deg); }
    100% { -moz-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced card hover effects with vendor prefixes */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-will-change: transform, box-shadow;
    -moz-will-change: transform, box-shadow;
    will-change: transform, box-shadow;
}

.card-hover:hover {
    -webkit-transform: translateY(-8px);
    -moz-transform: translateY(-8px);
    -ms-transform: translateY(-8px);
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Responsive images with lazy loading support */
.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    -webkit-object-fit: cover;
    -moz-object-fit: cover;
    -ms-object-fit: cover;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.responsive-image.loading {
    opacity: 0;
    background: var(--border-color);
}

.responsive-image.loaded {
    opacity: 1;
}

/* Modern grid system utilities */
.grid {
    display: -webkit-grid;
    display: -moz-grid;
    display: -ms-grid;
    display: grid;
    gap: var(--space-4);
}

.grid-2 {
    -webkit-grid-template-columns: repeat(2, 1fr);
    -moz-grid-template-columns: repeat(2, 1fr);
    -ms-grid-template-columns: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    -webkit-grid-template-columns: repeat(3, 1fr);
    -moz-grid-template-columns: repeat(3, 1fr);
    -ms-grid-template-columns: repeat(3, 1fr);
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 47.9375em) {
    .grid-2,
    .grid-3 {
        -webkit-grid-template-columns: 1fr;
        -moz-grid-template-columns: 1fr;
        -ms-grid-template-columns: 1fr;
        grid-template-columns: 1fr;
    }
}

/* Flexbox utilities with vendor prefixes */
.flex {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
}

.flex-center {
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.flex-between {
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

/* Text utilities */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-wrap {
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* Visibility utilities */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 1px solid var(--text-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        -webkit-animation-duration: 0.01ms !important;
        -moz-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        -moz-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --surface-color: #2d2d2d;
        --text-primary: #ffffff;
        --text-muted: #cccccc;
        --border-color: #404040;
        --light-bg: #2d2d2d;
    }
    
    .header {
        background: var(--surface-color);
        border-bottom-color: var(--border-color);
    }
}

/* Modern Appointment Button */
.btn-modern-appointment {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: none;
    color: #fff !important;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-modern-appointment::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-modern-appointment:hover::before {
    left: 100%;
}

.btn-modern-appointment:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.4);
    color: #fff !important;
    text-decoration: none !important;
}

.btn-modern-appointment:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
}

.btn-modern-appointment:focus {
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3), 0 0 0 3px rgba(33, 150, 243, 0.1);
    outline: none;
}

.btn-modern-appointment i {
    font-size: 16px;
}

/* Modern appointment button mobile responsive */
@media (max-width: 768px) {
    .btn-modern-appointment {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 40px;
    }
}