/* TurkEye Clinic - Modern Styles
   ================================ */

/* CSS Variables */
:root {
    --primary-color: #212e65;
    --primary-light: #2a3a7d;
    --primary-dark: #1a2550;
    --secondary-color: #ffffff;
    --light-gray: #f8f9fa;
    --text-gray: #6c757d;
    --muted-blue: #7c88b8;
    --accent-blue: #007BFF;
    --service-blue: #004590;
    --heading-blue: #003366;
    --card-shadow: 0 10px 40px rgba(33, 46, 101, 0.1);
    --card-shadow-hover: 0 20px 60px rgba(33, 46, 101, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Smooth reveal animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal-up {
    animation: revealUp 0.8s ease-out forwards;
}

.reveal-left {
    animation: revealLeft 0.8s ease-out forwards;
}

.reveal-right {
    animation: revealRight 0.8s ease-out forwards;
}

.reveal-scale {
    animation: scaleIn 0.6s ease-out forwards;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--secondary-color);
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevent horizontal overflow globally */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Navigation - Modern Glass Effect */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100vw;
    overflow: visible !important;
    z-index: 1040 !important;
}

.navbar .container {
    overflow: visible !important;
}

    .navbar.scrolled {
        padding: 0.5rem 0;
        background-color: rgba(33, 46, 101, 0.98) !important;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    }

    /* Mobile Navigation */
    @media (max-width: 991px) {
        .navbar {
            padding: 0.5rem 0 !important;
        }

        .navbar > .container {
            padding-right: 10px !important;
            padding-left: 10px !important;
            max-width: 100% !important;
            width: 100% !important;
            margin: 0 !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            flex-wrap: nowrap !important;
            overflow: visible !important;
        }

        .navbar-brand {
            flex: 1 1 auto !important;
            min-width: 0 !important;
            max-width: calc(100% - 55px) !important;
            overflow: hidden !important;
            white-space: nowrap !important;
            text-overflow: ellipsis !important;
            margin-right: 10px !important;
        }

        .navbar-brand img {
            height: 35px !important;
            margin-right: 8px !important;
        }

        /* Hide text on very small screens */
        @media (max-width: 400px) {
            .navbar-brand {
                font-size: 0.9rem !important;
            }
        }

        .navbar-toggler {
            flex: 0 0 auto !important;
            z-index: 1060;
            border: 2px solid rgba(255, 255, 255, 0.5) !important;
            padding: 6px 8px !important;
            border-radius: 6px !important;
            background: rgba(255, 255, 255, 0.1) !important;
            position: relative !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            margin-left: auto !important;
            margin-right: 0 !important;
        }

        .navbar-toggler:focus {
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25) !important;
            outline: none !important;
        }

        .navbar-toggler:hover {
            background: rgba(255, 255, 255, 0.2) !important;
        }

        .navbar-toggler-icon {
            width: 20px !important;
            height: 20px !important;
        }

        /* Hide desktop language selector completely on mobile */
        .language-selector {
            display: none !important;
        }

        /* Force override ALL Bootstrap navbar-collapse styles */
        .navbar .navbar-collapse,
        .navbar-collapse,
        #navbarNav {
            position: fixed !important;
            top: 0 !important;
            right: 0 !important;
            left: auto !important;
            bottom: 0 !important;
            width: 85% !important;
            max-width: 320px !important;
            height: 100vh !important;
            height: 100dvh !important;
            min-height: 100vh !important;
            background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 80px 25px 30px !important;
            box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
            flex-direction: column !important;
            overflow-y: auto !important;
            z-index: 9999 !important;
            transform: translateX(100%) !important;
            -webkit-transform: translateX(100%) !important;
            transition: transform 0.35s ease-out !important;
            -webkit-transition: -webkit-transform 0.35s ease-out !important;
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: auto !important;
            flex-basis: auto !important;
            flex-grow: 0 !important;
        }

        .navbar .navbar-collapse.show,
        .navbar-collapse.show,
        #navbarNav.show {
            transform: translateX(0) !important;
            -webkit-transform: translateX(0) !important;
        }

        /* Override Bootstrap collapse behavior completely */
        .navbar-collapse.collapsing,
        .navbar-collapse.collapse,
        #navbarNav.collapsing,
        #navbarNav.collapse {
            transform: translateX(100%) !important;
            -webkit-transform: translateX(100%) !important;
            height: 100vh !important;
            height: 100dvh !important;
            display: flex !important;
            visibility: visible !important;
            transition: transform 0.35s ease-out !important;
        }

        .navbar-collapse.collapse.show,
        #navbarNav.collapse.show {
            transform: translateX(0) !important;
            -webkit-transform: translateX(0) !important;
        }

        /* Mobile menu overlay - separate element */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 1035;
            pointer-events: none;
        }

        .mobile-menu-overlay.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        /* Mobile menu close button */
        .mobile-menu-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .mobile-menu-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .mobile-menu-close::before,
        .mobile-menu-close::after {
            content: '';
            position: absolute;
            width: 18px;
            height: 2px;
            background: var(--secondary-color);
            border-radius: 2px;
        }

        .mobile-menu-close::before {
            transform: rotate(45deg);
        }

        .mobile-menu-close::after {
            transform: rotate(-45deg);
        }

        .navbar-nav {
            width: 100%;
            text-align: left;
        }

        .nav-item {
            margin: 4px 0;
            opacity: 0;
            transform: translateX(30px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .navbar-collapse.show .nav-item {
            opacity: 1;
            transform: translateX(0);
        }

        .navbar-collapse.show .nav-item:nth-child(1) { transition-delay: 0.1s; }
        .navbar-collapse.show .nav-item:nth-child(2) { transition-delay: 0.15s; }
        .navbar-collapse.show .nav-item:nth-child(3) { transition-delay: 0.2s; }
        .navbar-collapse.show .nav-item:nth-child(4) { transition-delay: 0.25s; }
        .navbar-collapse.show .nav-item:nth-child(5) { transition-delay: 0.3s; }

        .navbar-nav .nav-link {
            font-size: 1.1rem;
            padding: 14px 15px !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: block;
            color: var(--secondary-color) !important;
            font-weight: 500;
            border-radius: 8px;
            margin-bottom: 4px;
        }

        .navbar-nav .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--secondary-color) !important;
            padding-left: 20px !important;
        }

        /* Mobile Language Selector */
        .mobile-language-selector {
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-top: auto;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            width: 100%;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
        }

        .navbar-collapse.show .mobile-language-selector {
            display: flex !important;
            opacity: 1;
            transform: translateY(0);
        }

        .mobile-lang-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--secondary-color);
            padding: 10px 20px;
            border-radius: 25px;
            font-size: 0.95rem;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .mobile-lang-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
            color: var(--secondary-color);
        }

        .mobile-lang-btn.active {
            background: var(--secondary-color);
            color: var(--primary-color);
            border-color: var(--secondary-color);
            font-weight: 600;
        }

        /* Hide desktop language selector on mobile */
        .language-selector.d-none.d-lg-block {
            display: none !important;
        }
    }

    .navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color) !important;
    display: flex;
    align-items: center;
    transition: transform var(--transition-normal);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
    transition: transform var(--transition-normal);
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all var(--transition-normal);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--muted-blue) !important;
    transform: translateY(-2px);
}

/* Language Selector */
.language-selector {
    margin-left: 2rem;
    position: relative;
    z-index: 1100;
}

.language-selector .dropdown {
    position: relative;
}

.language-selector .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1100 !important;
    margin-top: 8px !important;
}

/* Varsayilan olarak mobil dil secicisini gizle (Masaustunde gorunmemesi icin) */
.mobile-language-selector {
    display: none !important;
}

/* Only show mobile language selector on mobile screens when menu is open */
@media (max-width: 991px) {
    .navbar-collapse.show .mobile-language-selector {
        display: flex !important;
    }
}

.language-dropdown .dropdown-toggle {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 400;
    padding: 6px 14px;
    border-radius: 25px;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-dropdown .dropdown-toggle:hover,
.language-dropdown .dropdown-toggle:focus {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.language-dropdown .dropdown-menu {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    padding: 8px;
    animation: dropdownFade 0.3s ease;
}

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

.language-dropdown .dropdown-item {
    color: var(--primary-color);
    padding: 10px 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-dropdown .dropdown-item:hover {
    background-color: var(--light-gray);
    transform: translateX(5px);
}

.language-dropdown .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--secondary-color);
}

/* Hero Section - Modern */
.hero {
    background: linear-gradient(135deg, rgba(33, 46, 101, 0.9) 0%, rgba(124, 136, 184, 0.85) 100%),
        url('/images/stock-photo-about-us.webp') center/cover fixed;
    color: var(--secondary-color);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(124, 136, 184, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(33, 46, 101, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-10px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(15px, 10px) rotate(3deg);
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f0f0f0 100%);
    border: none;
    color: var(--primary-color);
    padding: 14px 40px;
    font-weight: 600;
    border-radius: 30px;
    transition: all var(--transition-normal);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(33, 46, 101, 0.3);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--muted-blue));
    border-radius: 2px;
}

/* About Section */
.about-content {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(33, 46, 101, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

/* Mobile About Section - Card Style */
@media (max-width: 768px) {
    #about {
        padding: 50px 0;
    }

    #about .container {
        padding: 0 20px;
    }

    .about-content {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
    }

    .about-content::before {
        display: none;
    }

    .about-content .lead,
    .about-content p {
        background: var(--secondary-color);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 15px;
        box-shadow: 0 4px 20px rgba(33, 46, 101, 0.08);
        border-left: 4px solid var(--primary-color);
        text-align: left !important;
        position: relative;
    }

    .about-content .lead {
        font-size: 1rem;
        line-height: 1.7;
        border-left-color: var(--accent-blue);
    }

    .about-content .lead::before {
        content: '\f05a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: -10px;
        left: 15px;
        background: var(--accent-blue);
        color: #fff;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }

    .about-content p:not(.lead) {
        font-size: 0.95rem;
        line-height: 1.7;
        color: #555;
    }

    .about-content p:not(.lead)::before {
        content: '\f3c5';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: -10px;
        left: 15px;
        background: var(--primary-color);
        color: #fff;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }
}

/* Service Cards - Glassmorphism */
.service-card {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(33, 46, 101, 0.12); /* Belirgin golge */
    border: 1px solid rgba(0,0,0,0.03);
    transition: all var(--transition-normal);
    border-left: 4px solid var(--accent-blue);
    min-height: 160px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(33, 46, 101, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
    border-left-color: var(--primary-color);
}

.service-card i {
    font-size: 2.2rem;
    color: var(--service-blue);
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
    display: inline-block;
}

.service-card:hover i {
    transform: scale(1.15) rotate(-5deg);
    color: var(--primary-color);
}

.service-card h5 {
    color: var(--heading-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: #696969;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Doctor Cards */
.doctor-card {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(33, 46, 101, 0.15); /* Belirgin golge */
    border: 1px solid rgba(0,0,0,0.03);
    transition: all var(--transition-normal);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    height: auto; /* Icerik kadar yukseklik */
    position: relative;
    overflow: hidden;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--muted-blue));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.doctor-card:hover::before {
    transform: scaleX(1);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.doctor-photo {
    width: 110px; /* Fotopgraf boyutu biraz kucultuldu */
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 1rem; /* Alt bosluk azaltildi */
    border: 3px solid var(--primary-color);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: 0 5px 20px rgba(33, 46, 101, 0.2);
}

.doctor-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.doctor-card:hover .doctor-photo {
    border-color: var(--muted-blue);
    transform: scale(1.05);
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-normal);
}

.doctor-card:hover .doctor-photo img {
    transform: scale(1.1);
}

.doctor-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.doctor-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.doctor-card p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#doctors .row {
    align-items: stretch;
}

#doctors .row > [class*="col-"] {
    display: flex;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, var(--light-gray) 0%, #f0f4f8 100%);
}

.contact-info {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--muted-blue));
    border-radius: 2px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.contact-item:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(33, 46, 101, 0.1), rgba(124, 136, 184, 0.1));
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-item div h6 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item div p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 100%;
    min-height: 400px;
}

.map-container iframe,
.map-container .map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

#contact .row {
    align-items: stretch;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--muted-blue), var(--primary-color), var(--muted-blue));
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--secondary-color);
    margin: 0 15px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 1;
}

/* Floating Chat Buttons */
.whatsapp-float,
.telegram-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 24px;
    border-radius: 50%;
    text-align: center;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.whatsapp-float {
    right: 24px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
}

.telegram-float {
    left: 24px;
    background: linear-gradient(135deg, #229ED9 0%, #1a7ab8 100%);
    color: #fff;
}

.whatsapp-float:hover,
.telegram-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* Pulse Animation */
.whatsapp-float::before,
.telegram-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.whatsapp-float::before {
    background: rgba(37, 211, 102, 0.4);
}

.telegram-float::before {
    background: rgba(34, 158, 217, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Announcement Modal */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.announcement-content {
    position: relative;
    background: var(--secondary-color);
    max-width: 500px;
    margin: 12vh auto;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideInUp 0.4s ease;
}

.announcement-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-gray);
    transition: all var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.announcement-close:hover {
    color: var(--primary-color);
    background: var(--light-gray);
    transform: rotate(90deg);
}

.countdown-timer {
    margin: 25px 0;
}

.countdown-items {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e8ecf1 100%);
    border-radius: 12px;
    min-width: 70px;
}

.countdown-item span:first-child {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.countdown-item span:last-child {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

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

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--muted-blue));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(33, 46, 101, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 46, 101, 0.4);
}

/* Blog Cards */
.blog-card {
    background: var(--secondary-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    margin-bottom: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: all var(--transition-fast);
}

.blog-card-link i {
    margin-left: 8px;
    transition: transform var(--transition-fast);
}

.blog-card-link:hover {
    color: var(--muted-blue);
}

.blog-card-link:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    /* Mobile Service Cards - Accordion Style */
    #services {
        padding: 50px 0;
    }

    #services .container {
        padding: 0 15px;
    }

    #services .row {
        margin: 0 -8px;
    }

    #services .row > [class*="col-"] {
        padding: 0 8px;
    }

    .service-card {
        padding: 0;
        min-height: auto;
        margin-bottom: 10px;
        cursor: pointer;
        border-radius: 12px;
        border-left: none;
        overflow: hidden;
        background: var(--secondary-color);
        box-shadow: 0 2px 10px rgba(33, 46, 101, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(33, 46, 101, 0.12);
    }

    .service-card::before {
        display: none;
    }

    .service-card .service-header {
        display: flex;
        align-items: center;
        padding: 16px;
        background: var(--secondary-color);
        position: relative;
    }

    .service-card .d-flex {
        display: flex !important;
        align-items: center;
        margin-bottom: 0 !important;
        width: 100%;
        padding: 16px;
        position: relative;
    }

    .service-card i {
        font-size: 1.4rem;
        margin-right: 12px !important;
        margin-bottom: 0 !important;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(33, 46, 101, 0.08), rgba(124, 136, 184, 0.08));
        border-radius: 10px;
        color: var(--primary-color);
        flex-shrink: 0;
        transition: all 0.3s ease;
    }

    .service-card.active i {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
        color: #fff;
    }

    .service-card h3.h5 {
        font-size: 0.95rem !important;
        line-height: 1.3;
        margin-bottom: 0 !important;
        flex: 1;
        padding-right: 30px;
        color: var(--heading-blue);
    }

    .service-card .d-flex::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.85rem;
        color: var(--muted-blue);
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease, color 0.3s ease;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--light-gray);
        border-radius: 50%;
    }

    .service-card.active .d-flex::after {
        transform: translateY(-50%) rotate(180deg);
        color: var(--primary-color);
        background: rgba(33, 46, 101, 0.1);
    }

    .service-card p {
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0 16px;
        font-size: 0.9rem;
        color: #666;
        line-height: 1.6;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease;
        opacity: 0;
        background: var(--light-gray);
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .service-card.active p {
        max-height: 200px;
        padding: 16px;
        opacity: 1;
    }

    .service-card.active {
        background: var(--secondary-color);
        box-shadow: 0 6px 25px rgba(33, 46, 101, 0.15);
    }

    /* Remove old ::after since we moved it */
    .service-card::after {
        display: none;
    }

    .language-selector {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .whatsapp-float,
    .telegram-float {
        width: 60px;
        height: 60px;
        font-size: 2.2rem;
        bottom: 18px;
    }

    .whatsapp-float {
        right: 16px;
    }

    .telegram-float {
        left: 16px;
    }

    .back-to-top {
        bottom: 90px;
        right: 16px;
        width: 45px;
        height: 45px;
    }

    .contact-info,
    .map-container {
        margin-bottom: 1.5rem;
    }

    .countdown-items {
        gap: 10px;
    }

    .countdown-item {
        padding: 10px;
        min-width: 60px;
    }

    .countdown-item span:first-child {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .about-content {
        padding: 1.5rem 1rem;
    }

    .about-content .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .announcement-content {
        margin: 10vh 15px;
        padding: 2rem 1.5rem;
    }
}

/* Mobile Doctor Cards - Horizontal Scroll with Auto Reveal */
@media (max-width: 768px) {
    #doctors {
        padding: 50px 0;
        overflow: hidden;
    }

    #doctors .container {
        padding: 0;
        max-width: 100%;
    }

    #doctors .section-title {
        padding: 0 20px;
    }

    #doctors .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
        margin: 0;
        gap: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #doctors .row::-webkit-scrollbar {
        display: none;
    }

    #doctors .row > [class*="col-"] {
        flex: 0 0 auto;
        width: 280px;
        max-width: 85vw;
        scroll-snap-align: center;
        padding: 0;
    }

    .doctor-card {
        margin-bottom: 0;
        padding: 20px 15px;
        border-radius: 16px;
        height: 100%;
        min-height: 320px;
        background: var(--secondary-color);
        box-shadow: 0 4px 20px rgba(33, 46, 101, 0.1);
        transform: scale(0.95);
        opacity: 0.7;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.4s ease,
                    box-shadow 0.4s ease;
    }

    .doctor-card.in-view {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 8px 30px rgba(33, 46, 101, 0.15);
    }

    .doctor-card.in-view::before {
        transform: scaleX(1);
    }

    .doctor-card::before {
        height: 4px;
        transform: scaleX(0);
        transition: transform 0.5s ease;
    }

    .doctor-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
        border-width: 3px;
    }

    .doctor-card.in-view .doctor-photo {
        border-color: var(--muted-blue);
    }

    .doctor-card h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .doctor-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .doctor-card p:first-of-type {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    /* Scroll indicator dots */
    .doctors-scroll-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        padding: 0 20px;
    }

    .scroll-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(33, 46, 101, 0.2);
        transition: all 0.3s ease;
    }

    .scroll-dot.active {
        width: 24px;
        border-radius: 4px;
        background: var(--primary-color);
    }
}

/* Enhanced Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Hover micro-interactions */
@media (hover: hover) {
    .service-card:hover i {
        animation: iconBounce 0.5s ease;
    }

    .doctor-card:hover .doctor-photo img {
        animation: photoZoom 0.5s ease forwards;
    }

    .btn-primary:hover {
        animation: buttonPulse 0.4s ease;
    }
}

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

@keyframes photoZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes buttonPulse {
    0% { box-shadow: 0 10px 30px rgba(33, 46, 101, 0.3); }
    50% { box-shadow: 0 15px 40px rgba(33, 46, 101, 0.4); }
    100% { box-shadow: 0 10px 30px rgba(33, 46, 101, 0.3); }
}

/* Smooth page transitions */
.page-transition {
    animation: pageLoad 0.5s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Extra small screens - ensure hamburger is always visible */
@media (max-width: 360px) {
    .navbar > .container {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    .navbar-brand {
        font-size: 0.85rem !important;
        max-width: calc(100% - 50px) !important;
    }

    .navbar-brand img {
        height: 30px !important;
        margin-right: 5px !important;
    }

    .navbar-toggler {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 4px !important;
    }

    .navbar-toggler-icon {
        width: 18px !important;
        height: 18px !important;
    }
}

/* iPhone SE and very small devices */
@media (max-width: 320px) {
    .navbar-brand {
        font-size: 0 !important; /* Hide text, show only logo */
        max-width: calc(100% - 45px) !important;
    }

    .navbar-brand img {
        height: 28px !important;
        margin-right: 0 !important;
    }

    .navbar-toggler {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .telegram-float,
    .back-to-top,
    .scroll-progress {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 50px 0;
    }
}
