:root {
    /* LOGO RENKLERİNE GÖRE BURAYI DÜZENLE */
    --primary-color: #0056b3;
    /* Koyu Mavi (Ana Renk) */
    --secondary-color: #00c9ff;
    /* Açık Mavi / Turkuaz */
    --text-dark: #333333;
    --text-light: #6c757d;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    /* Taşmaları engeller */
}

/* 1. PRELOADER (Yükleme Ekranı) */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 201, 255, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 2. NAVBAR */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
    padding-top: 15px;
    padding-bottom: 15px;
    transition: all 0.3s;
}

.navbar-brand img {
    max-height: 35px;
    /* SVG Logo boyutu */
    width: auto;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin-right: 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width .3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* 3. HERO SECTION (Parallax & Gradient) */
.hero-section {
    position: relative;
    background: linear-gradient(to right, rgba(0, 40, 90, 0.85), rgba(0, 160, 220, 0.6)), url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&q=80');
    background-attachment: fixed;
    /* Parallax Etkisi */
    background-size: cover;
    background-position: center;
    height: 85vh;
    /* Ekranın %85'i */
    display: flex;
    align-items: center;
    color: var(--white);
}

/* 4. HİZMET KARTLARI (3D Hover Efekti) */
.service-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border-radius: 15px;
    background: #fff;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--secondary-color);
}

.service-icon {
    transition: transform 0.6s;
    color: var(--secondary-color);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

/* 5. FLOATING BUTTONS (Nefes Alma Animasyonu) */
.floating-contact {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    animation: pulse-animation 2s infinite;
}

.float-whatsapp {
    background-color: #25D366;
    animation-name: pulse-green;
}

.float-phone {
    background-color: var(--primary-color);
    animation-name: pulse-blue;
}

.float-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 86, 179, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
    }
}

/* 6. GENEL BUTONLAR */
.btn-randevu {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-randevu:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Footer */
footer {
    background-color: #f1f5f9;
    border-top: 5px solid var(--secondary-color);
}

 
/* 2. Accordion (Sıkça Sorulan Sorular) */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    background-color: #fff;
}
.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--primary-color);
    box-shadow: none;
}

/* 3. Müşteri Yorumları Kartı */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid #eee;
}
.testimonial-card::before {
    content: '\f10d'; /* Tırnak işareti ikonu */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 40px;
    color: rgba(0,0,0,0.05);
}

/* --- KURUMSAL SAYFA & ALT SAYFA BAŞLIKLARI --- */

/* 1. Sayfa Başlığı (Banner Alanı) */
.page-header {
    /* Arka plan resmi ve üzerine koyu mavi filtre */
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)), url('https://images.unsplash.com/photo-1629909615184-74f495363b63?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Resmi sabitler (Parallax hissi verir) */
    padding: 140px 0 80px 0; /* Navbar'ın altında kalmaması için üstten boşluk */
    color: #fff;
    margin-bottom: 50px;
    text-align: center;
}

.page-header h1 {
    font-weight: 700;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 2. Breadcrumb (Anasayfa > Kurumsal linkleri) */
.breadcrumb {
    justify-content: center; /* Ortalar */
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: var(--secondary-color); /* Aktif sayfa rengi (Turkuaz) */
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5); /* Araya konan / işareti */
}

/* 3. Doktor Kartları İçin Ekstra Düzenleme (Opsiyonel) */
/* Doktor resimlerinin üzerine gelince hafif büyümesi için */
.card img.rounded-circle {
    transition: transform 0.3s ease;
    border: 3px solid var(--secondary-color); /* Resim etrafına çerçeve */
    padding: 3px;
}

.card:hover img.rounded-circle {
    transform: scale(1.1); /* Hover olunca resim büyür */
}

/* --- MOBİL CİHAZLAR İÇİN ÖZEL AYARLAR (RESPONSIVE) --- */

@media (max-width: 768px) {
    
    /* 1. Hero (Ana Slider) Ayarları */
    .hero-section {
        height: auto; /* Sabit yükseklik yerine içeriğe göre uzasın */
        min-height: 600px; /* Ama en az bu kadar olsun */
        padding: 100px 0 50px 0; /* Üstten boşluk (Navbar payı) */
        text-align: center; /* Mobilde yazılar ortalı daha güzel durur */
        background-attachment: scroll; /* Mobilde titremeyi önlemek için parallax'ı kapatıyoruz */
    }
    
    .hero-section h1.display-3 {
        font-size: 2.5rem; /* Başlığı küçültüyoruz */
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    /* 2. Alt Sayfa Başlıkları (Banner) */
    .page-header {
        padding: 100px 0 40px 0; /* Yüksekliği azalttık */
        margin-bottom: 30px;
        background-attachment: scroll; /* Titremeyi önle */
    }

    .page-header h1 {
        font-size: 2rem; /* Sayfa başlığını küçülttük */
    }

    /* 3. Genel Yazı Boyutları */
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    /* 4. Navbar (Menü) */
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 15px;
    }
    
    .nav-link {
        padding: 10px 0; /* Linklerin arasını açalım, parmakla basmak kolay olsun */
        border-bottom: 1px solid #f0f0f0;
    }
    
    .btn-randevu {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }

    /* 5. İstatistik Sayacı */
    .stat-item {
        margin-bottom: 30px; /* Sayıların birbirine girmemesi için boşluk */
    }

    /* 6. Sabit Butonlar (WhatsApp & Telefon) */
    .floating-contact {
        bottom: 15px;
        left: 15px;
        gap: 10px;
    }
    
    .float-btn {
        width: 45px; /* Mobilde butonlar bir tık daha kibar olsun */
        height: 45px;
        font-size: 22px;
    }
}

/* --- YATAY TAŞMAYI ENGELLE (FIX) --- */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}

/* Dekoratif yuvarlakların taşmasını önle */
.position-absolute {
    max-width: 100%;
}

/* Instagram ve Facebook Float Buton Renkleri */
.float-ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.float-fb {
    background-color: #1877F2;
}