: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;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.brand-text {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Mobile - Hamburger ile aynı hizaya getir */
@media (max-width: 991px) {
    .brand-text {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .navbar-brand {
        padding: 0;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
    }
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

.header.sticky .logo-light {
    display: none;
}

.header.sticky .logo-dark {
    display: block;
}

.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 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: 50px;
    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: 50px;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.header.sticky {
    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: #ffffff;
        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, #4A9FB5 0%, #3A8A9F 100%);
    padding: 15px;
    box-shadow: 0 10px 40px rgba(74, 159, 181, 0.4);
}

.doctor-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center 5%;
    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;
    font-size: 1.1rem;
}

.footer-contact li {
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 0.85rem;
}

.footer-contact .address-multiline {
    display: inline;
    line-height: 1.4;
}

@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: #ffffff;
        --border-color: #404040;
        --light-bg: #2d2d2d;
        --text-color: #e0e0e0;
    }
    
    /* HTML and Body - Comprehensive dark mode override */
    html {
        background-color: #1a1a1a !important;
    }
    
    body {
        background-color: #1a1a1a !important;
        background: #1a1a1a !important;
    }
    
    /* Main container backgrounds */
    main {
        background-color: #1a1a1a !important;
    }
    
    /* All section backgrounds - comprehensive override */
    section {
        background-color: #1a1a1a !important;
    }
    
    section.bg-light,
    .bg-light {
        background-color: #1a1a1a !important;
        background: #1a1a1a !important;
    }
    
    /* Bootstrap container overrides */
    .container,
    .container-fluid {
        background-color: transparent !important;
    }
    
    .header,
    .header .navbar,
    .navbar-expand-lg {
        background: #1a1a1a !important;
        border-bottom-color: var(--border-color);
    }
    
    /* Sticky header dark mode */
    .header.sticky,
    .header.sticky .navbar {
        background: rgba(26, 26, 26, 0.98) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Navbar toggler (hamburger icon) white in dark mode */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    /* Service cards */
    .service-card {
        background: var(--surface-color) !important;
        color: var(--text-primary);
    }
    
    .service-card h3 {
        color: var(--primary-color) !important;
    }
    
    .service-card p {
        color: var(--text-muted) !important;
    }
    
    /* Doctor card */
    .modern-doctor-card {
        background: var(--surface-color) !important;
    }
    
    .doctor-description {
        color: var(--text-muted) !important;
    }
    
    /* Contact form */
    .contact-form {
        background: var(--surface-color) !important;
    }
    
    /* Section subtitle */
    .section-subtitle {
        color: #ffffff !important;
    }
    
    /* Why us section */
    .feature-text p {
        color: var(--text-muted) !important;
    }
    
    /* Mobile navigation - High Contrast Fix */
    .navbar-collapse {
        background: #1a1a1a !important;
        border: 1px solid #404040 !important;
    }
    
    .navbar-nav .nav-link {
        color: #ffffff !important;
        border-bottom-color: #404040 !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: #2A7BA3 !important;
    }
    
    /* Mobile navbar brand text */
    .navbar-brand {
        color: #ffffff !important;
    }
    
    .navbar-brand h3,
    .navbar-brand div {
        color: #ffffff !important;
    }
    
    /* Cards */
    .card {
        background: var(--surface-color) !important;
        color: var(--text-primary);
    }
    
    /* Service icon background */
    .service-icon {
        background: var(--light-bg) !important;
    }
    
    .feature-icon {
        background: var(--light-bg) !important;
    }
    
    /* Doctor image wrapper */
    .doctor-image-wrapper {
        background: linear-gradient(135deg, #3A8A9F 0%, #2A7A8F 100%) !important;
    }
    
    /* Expertise items */
    .expertise-item {
        background: rgba(42, 123, 163, 0.2) !important;
        color: #7ED2CC !important;
        border-color: rgba(42, 123, 163, 0.3) !important;
    }
    
    /* Hero text color fix - FORCE WHITE */
    .hero-desc,
    p.hero-desc {
        color: #ffffff !important;
    }
    
    /* Form inputs */
    input, textarea, select {
        background: var(--surface-color) !important;
        color: var(--text-primary) !important;
        border-color: var(--border-color) !important;
    }
    
    input::placeholder,
    textarea::placeholder {
        color: var(--text-muted) !important;
    }
    
    /* Additional card styles */
    .card-body {
        background: var(--surface-color) !important;
        color: var(--text-primary);
    }
    
    .card-title {
        color: var(--text-primary) !important;
    }
    
    .card-text {
        color: #ffffff !important;
    }
    
    /* Hero sections - dark mode backgrounds */
    .hero {
        background-color: #1a1a1a !important;
        background: #1a1a1a !important;
    }
    
    .hero-content {
        background-color: transparent !important;
    }
    
    .hero::before,
    .hero::after {
        background-color: #1a1a1a !important;
    }
    
    /* Features section dark mode */
    .features {
        background-color: #1a1a1a !important;
    }
    
    /* Services sections dark mode */
    .services {
        background-color: #1a1a1a !important;
    }
    
    /* Why us section dark mode */
    .why-us {
        background-color: #1a1a1a !important;
    }
    
    /* About section dark mode */
    .about {
        background-color: #1a1a1a !important;
    }
    
    /* Team section dark mode */
    .team {
        background-color: #1a1a1a !important;
    }
    
    /* All sections with py-ultra class */
    .py-ultra {
        background-color: #1a1a1a !important;
    }
    
    /* Section backgrounds - comprehensive override */
    .bg-light {
        background-color: #1a1a1a !important;
        background: #1a1a1a !important;
    }
    
    /* Headings */
    h1, h2, h3, h4, h5, h6 {
        color: var(--text-primary);
    }
    
    /* Display headings */
    .display-1, .display-2, .display-3, 
    .display-4, .display-5, .display-6 {
        color: var(--text-primary) !important;
    }
    
    /* Lead text */
    .lead {
        color: #ffffff !important;
    }
    
    /* List group items */
    .list-unstyled li {
        color: var(--text-muted);
    }
    
    /* Why us section specific */
    .why-us {
        background-color: var(--background-color) !important;
    }
    
    .about {
        background-color: var(--background-color) !important;
    }
    
    /* Team section */
    .team {
        background-color: var(--background-color) !important;
    }
    
    /* Footer headings */
    .footer h4, .footer h5 {
        color: var(--text-primary) !important;
    }
    
    /* Footer paragraphs */
    .footer p {
        color: var(--text-muted) !important;
    }
    
    /* Bootstrap text utilities override */
    .text-muted {
        color: var(--text-muted) !important;
    }
    
    .text-white {
        color: #ffffff !important;
    }
    
    /* Footer bottom sections - unified black for dark mode */
    .footer-bottom {
        background-color: #1a1a1a !important;
    }
    
    /* Footer designer section - unified black for dark mode */  
    .footer-designer {
        background-color: #1a1a1a !important;
    }
    
    /* Services section backgrounds */
    .services.bg-light {
        background-color: var(--background-color) !important;
    }
    
    /* Features section */
    .features {
        background-color: var(--background-color) !important;
    }
    
    .features .card {
        background: var(--surface-color) !important;
    }
    
    .features .card-body {
        background: var(--surface-color) !important;
    }
    
    .features h4 {
        color: var(--text-primary) !important;
    }
    
    .features p {
        color: var(--text-muted) !important;
    }
    
    /* Contact form background */
    .contact-form {
        background: var(--surface-color) !important;
    }
    
    /* Map container */
    .map-container {
        border-color: var(--border-color) !important;
    }
    
    /* İletişim page specific */
    .iletisim-page {
        background-color: var(--background-color) !important;
    }
    
    .iletisim-page h2,
    .iletisim-page h3,
    .iletisim-page h4,
    .iletisim-page h5 {
        color: var(--text-primary) !important;
    }
    
    .iletisim-page p {
        color: var(--text-muted) !important;
    }
    
    /* Contact form override bg-white */
    .contact-form.bg-white {
        background: var(--surface-color) !important;
    }
    
    /* Contact info bg-light override */
    .bg-light {
        background-color: var(--surface-color) !important;
    }
    
    .contact-info h4,
    .contact-info h5 {
        color: var(--text-primary) !important;
    }
    
    .contact-info p {
        color: var(--text-muted) !important;
    }
    
    /* Kurumsal page */
    .kurumsal-page {
        background-color: var(--background-color) !important;
    }
    
    .kurumsal-page h2,
    .kurumsal-page h3,
    .kurumsal-page h4 {
        color: var(--text-primary) !important;
    }
    
    .kurumsal-page p,
    .kurumsal-page li {
        color: var(--text-muted) !important;
    }
    
    /* List items with icons */
    .kurumsal-page .list-unstyled li span {
        color: var(--text-muted) !important;
    }
    
    /* Icons stay primary color */
    .text-primary {
        color: var(--primary-color) !important;
    }
    
    /* About section spans - dark mode fix */
    .about span,
    .about .d-flex span {
        color: var(--text-primary) !important;
    }
    
    /* Kurumsal page list spans */
    .kurumsal-page ul li span {
        color: var(--text-primary) !important;
    }
    
    /* Header contact spans */
    .header-top span,
    .header-contact span {
        color: var(--text-primary) !important;
    }
    
    /* Address spans */
    .address-multiline {
        color: var(--text-primary) !important;
    }
}

/* Modern Appointment Button */
.btn-modern-appointment,
.nav-link.btn-modern-appointment {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%) !important;
    border: none;
    color: #fff !important;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.4);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    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, #1565C0 0%, #0D47A1 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(25, 118, 210, 0.5);
    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: 13px;
}

/* Modern appointment button mobile responsive */
@media (max-width: 768px) {
    .btn-modern-appointment {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 35px;
    }
    
    .btn-modern-appointment i {
        font-size: 12px;
    }
}

/* Mobile UI/UX Improvements */
@media (max-width: 768px) {
    /* Hide Facebook icon on mobile */
    .social-links a[href*="facebook"] {
        display: none !important;
    }
    
    /* Remove any unwanted mobile overlay effects */
    .navbar-toggler {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
    }
    
    /* Modern mobile header */
    .header-top {
        padding: 8px 0;
    }
    
    .header-top .header-contact span {
        font-size: 12px;
        margin-right: 15px;
    }
    
    .header-top .header-contact span:last-child {
        display: none;
    }
    
    /* Mobile footer improvements */
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 30px;
    }
    
    .footer h4,
    .footer h5 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* Mobile social links */
    .social-links {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        line-height: 45px;
        text-align: center;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        margin: 0 8px;
        transition: all 0.3s ease;
    }
    
    .social-links a:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    
    /* Mobile contact float button */
    .contact-buttons .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: 25px;
        font-size: 24px;
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    
    /* Mobile typography */
    h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 20px;
        line-height: 1.4;
    }
    
    /* Mobile spacing */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Mobile card */
    .card {
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        margin-bottom: 20px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header-top .header-contact span {
        display: block;
        margin-bottom: 5px;
    }
    
    .navbar-brand h3 {
        font-size: 18px;
    }
    
    .btn-modern-appointment {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ================================================
   FINAL OVERRIDES - DARK/LIGHT MODE MOBILE NAV
   (Must be at end to override previous rules)
   ================================================ */

/* Mobile Light Mode - Background and Text Overrides */
@media (prefers-color-scheme: light) and (max-width: 768px) {
    html, body {
        background-color: #ffffff !important;
        background: #ffffff !important;
    }
    
    main, section {
        background-color: #ffffff !important;
        background: #ffffff !important;
    }
    
    .bg-light {
        background-color: #f8f9fa !important;
        background: #f8f9fa !important;
    }
    
    /* Text colors for light mode */
    p {
        color: #333333 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #333333 !important;
    }
    
    .lead {
        color: #666666 !important;
    }
    
    .text-muted {
        color: #666666 !important;
    }
    
    .section-subtitle {
        color: #666666 !important;
    }
}

/* Light Mode Mobile Navigation - Base Styles */
@media (prefers-color-scheme: light) and (max-width: 768px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(10px);
        border-radius: 12px;
        margin-top: 10px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1050;
    }
    
    .navbar-collapse.show {
        background: rgba(255, 255, 255, 0.98) !important;
    }
    
    .navbar-nav .nav-link {
        color: var(--text-color) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        padding: 12px 0;
        font-weight: 500;
        margin-bottom: 8px;
        text-align: center;
        background: transparent !important;
    }
    
    .navbar-nav .nav-link:hover {
        color: var(--primary-color) !important;
    }
}

/* Dark Mode Mobile Navigation - FINAL Override */
@media (prefers-color-scheme: dark) and (max-width: 991px) {
    /* Mobile body and html background enforcement */
    html,
    body {
        background-color: #1a1a1a !important;
        background: #1a1a1a !important;
    }
    
    /* Mobile main and section backgrounds */
    main,
    section,
    .container,
    .container-fluid {
        background-color: #1a1a1a !important;
        background: #1a1a1a !important;
    }
    
    /* Mobile bg-light override */
    .bg-light {
        background-color: #1a1a1a !important;
        background: #1a1a1a !important;
    }
    
    .header .navbar-collapse,
    .navbar-collapse,
    #mainNav {
        background: #1a1a1a !important;
        border: 1px solid #404040 !important;
        backdrop-filter: blur(10px);
        border-radius: 12px;
        margin-top: 10px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        position: relative;
        z-index: 1050;
    }
    
    .header .navbar-collapse.show,
    .navbar-collapse.show,
    #mainNav.show {
        background: #1a1a1a !important;
    }
    
    .navbar-collapse::before,
    .navbar-collapse::after {
        display: none !important;
    }
    
    .navbar-nav .nav-link {
        color: #2A7BA3 !important;
        border-bottom: 1px solid #404040 !important;
        padding: 12px 0;
        font-weight: 500;
        margin-bottom: 8px;
        text-align: center;
        background: transparent !important;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: #1976D2 !important;
    }
    
    .btn-modern-appointment {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        font-weight: 600;
        padding: 12px 20px;
        font-size: 14px;
        background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%) !important;
        color: #fff !important;
        border: none !important;
    }
    
    /* Mobile Dark Mode - Header Fix */
    .header,
    .header .navbar,
    .navbar-expand-lg {
        background: #1a1a1a !important;
        border-bottom-color: var(--border-color);
    }
    
    .header.sticky,
    .header.sticky .navbar {
        background: rgba(26, 26, 26, 0.98) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Mobile Dark Mode Text Fix - CRITICAL - GLOBAL */
    .lead {
        color: #ffffff !important;
    }
    
    .card-text,
    .card p {
        color: #ffffff !important;
    }
    
    .section-subtitle {
        color: #ffffff !important;
    }
    
    .text-muted {
        color: #ffffff !important;
    }
    
    /* Global paragraph fix */
    p {
        color: #ffffff !important;
    }
    
    /* All spans except special ones */
    span:not(.step-number):not(.navbar-toggler-icon) {
        color: #ffffff !important;
    }
    
    /* List items */
    li {
        color: #ffffff !important;
    }
    
    /* Hero text */
    .hero-text,
    .hero-desc {
        color: #ffffff !important;
    }
    
    /* Feature descriptions */
    .feature-text p {
        color: #ffffff !important;
    }
    
    /* Service cards */
    .service-card p {
        color: #ffffff !important;
    }
    
    /* Why us content */
    .why-us-content p {
        color: #ffffff !important;
    }
    
    /* About section */
    .about p {
        color: #ffffff !important;
    }
    
    /* Doctor description */
    .doctor-description {
        color: #ffffff !important;
    }
    
    /* Footer text */
    .footer p,
    .footer-info p {
        color: #ffffff !important;
    }
    
    /* İletişim page - contact info */
    .contact-info h5 {
        color: #ffffff !important;
    }
    
    .contact-info p {
        color: #ffffff !important;
    }
    
    /* Kurumsal page */
    .kurumsal-page h3,
    .kurumsal-page h4 {
        color: #ffffff !important;
    }
    
    .kurumsal-page p {
        color: #ffffff !important;
    }
    
    .kurumsal-page ul li span {
        color: #ffffff !important;
    }
    
    /* Tedaviler page */
    .tedaviler-page h2,
    .tedaviler-page h3 {
        color: #ffffff !important;
    }
    
    /* Thank you page */
    .thank-you-page p {
        color: #ffffff !important;
    }
    
    /* All h5 headings */
    h5 {
        color: #ffffff !important;
    }
    
    /* All bg-light sections */
    .bg-light {
        background-color: var(--background-color) !important;
    }
    
    .bg-light h5 {
        color: #ffffff !important;
    }
    
    .bg-light p {
        color: #ffffff !important;
    }
}
