html, body {
    width: 100%;
    overflow-x: hidden !important;
}
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@600;700&display=swap');

:root {
    --primary-color: #002147; /* Lacivert (Yeni) */
    --secondary-color: #003B73; /* Daha Açık Lacivert (Yeni) */
    --success-color: #28a745; /* Yeşil */
    --success-color-dark: #218838; /* Yeşil Hover */
    --text-color: #495057;
    --heading-color: #212529;
    --background-color: #ffffff;
    --section-bg-light: linear-gradient(180deg, #f8f9fa, #ffffff);
    --section-bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 8px 20px -5px rgba(0, 33, 71, 0.15);
    --border-radius: 12px;
    --font-sans: 'Lato', sans-serif;
    --font-mono: 'Montserrat', sans-serif;
}

/* Success Button */
.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: #fff;
}
.btn-success:hover {
    background-color: var(--success-color-dark);
    border-color: var(--success-color-dark);
}

body {
    padding-top: 80px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    scroll-behavior: smooth;
    line-height: 1.7;
    overflow-x: hidden;
}

#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.logo-spinner {
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    animation: rotate 3s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    color: var(--primary-color);
}
.logo-spinner::before { content: 'TCB'; font-weight: 600; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    transition: top 0.3s;
    border-bottom: 1px solid var(--border-color);
}
.navbar .navbar-brand { font-family: var(--font-mono); color: var(--primary-color); font-size: 1.5rem; }
.navbar .nav-link { color: var(--heading-color); transition: color 0.3s; font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--secondary-color); }

.hero { padding: 100px 0; min-height: 90vh; display: flex; align-items: center; }
.hero h1 { font-family: var(--font-mono); font-size: clamp(36px, 6vw, 60px); color: var(--heading-color); font-weight: 700; }
.hero .lead { font-size: 1.5rem; color: var(--primary-color); font-weight: 500; margin-top: 1rem; }
.hero .btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 33, 71, 0.2);
}
.hero .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 59, 115, 0.3);
}
.hero .btn-secondary {
    padding: 15px 30px; /* Match btn-primary padding */
}

#heroCarousel .carousel-inner {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.hero-image-placeholder, .hero-image-placeholder-2, .hero-image-placeholder-3 {
    width: 100%;
    height: 100%;
    min-height: 450px;
    background-color: #e9ecef;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    background-size: cover;
    background-position: center;
}
.hero-image-placeholder {
    background-image: url('https://via.placeholder.com/600x450/e9ecef/6c757d?text=Slider+Resim+1');
}
.hero-image-placeholder-2 {
    background-image: url('https://via.placeholder.com/600x450/dde2e6/6c757d?text=Slider+Resim+2');
}
.hero-image-placeholder-3 {
    background-image: url('https://via.placeholder.com/600x450/ced4da/6c757d?text=Slider+Resim+3');
}


.logo-slider {
    background-color: #f8f9fa;
    padding: 30px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.logo-track { display: inline-block; animation: slide 30s linear infinite; }
.slide-logo {
    display: inline-flex;
    align-items: center;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    font-family: var(--font-mono);
}
.slide-logo:hover { filter: grayscale(0%); opacity: 1; }
.slide-logo i { font-size: 2.5rem; margin-right: 15px; color: var(--primary-color); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

section { padding: 100px 0; margin-bottom: 60px; opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
section.is-visible { opacity: 1; transform: translateY(0); }
#uzmanlik, #yorumlar { background: var(--section-bg-light); }
.section-heading { font-family: var(--font-mono); font-size: 2.5rem; color: var(--heading-color); margin-bottom: 60px; position: relative; text-align: center; }
.section-heading::after { content: ''; display: block; width: 60px; height: 4px; background-color: var(--primary-color); margin: 15px auto 0; }
.blob-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; opacity: 0.15; z-index: -1; }

/* Hakkımızda resim stilleri */
#hakkimizda .about-img-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 15px; height: 450px; }
#hakkimizda .img-placeholder { border-radius: var(--border-radius); box-shadow: var(--shadow); background-color: #e9ecef; display: flex; justify-content: center; align-items: center; color: var(--text-color); }
#hakkimizda .img-placeholder.main-img { grid-column: 1 / 2; grid-row: 1 / 3; }
#hakkimizda .img-placeholder.sub-img-1 { grid-column: 2 / 3; grid-row: 1 / 2; }
#hakkimizda .img-placeholder.sub-img-2 { grid-column: 2 / 3; grid-row: 2 / 3; }
#hakkimizda h3 { font-family: var(--font-mono); color: var(--heading-color); }

.card { background-color: #fff; border: 1px solid var(--border-color); color: var(--text-color); transition: transform 0.3s, box-shadow 0.3s; border-radius: var(--border-radius); box-shadow: 0 4px 6px rgba(0,0,0,0.04); }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.card-title { font-family: var(--font-mono); color: var(--heading-color); }
.card .img-placeholder { height: 200px; background-color: #e9ecef; border-bottom: 1px solid var(--border-color); border-radius: var(--border-radius) var(--border-radius) 0 0; }
#uzmanlik .card { border: none; }
#uzmanlik .card i { transition: transform 0.3s, color 0.3s; }
#uzmanlik .card:hover i { transform: scale(1.2); color: var(--secondary-color) !important; }

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.gallery-item .img-placeholder {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.gallery-item:hover .img-placeholder {
    transform: scale(1.1);
}
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 33, 71, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--border-radius);
}
.gallery-item:hover .overlay {
    opacity: 1;
}
.gallery-item .overlay span {
    color: #fff;
    font-size: 1.2rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Müşteri Yorumları Yeni Stilleri */
#yorumlar .carousel-item .row {
    display: flex;
}
#yorumlar .carousel-control-prev, #yorumlar .carousel-control-next {
    width: 5%;
}
#yorumlar .carousel-control-prev-icon, #yorumlar .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 20px;
}
.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 0 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Kartların aynı yüksekliğe sahip olmasını sağlar */
}
.profile-pic-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--border-color);
    margin-bottom: 20px;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Küçülmesini engelle */
}
.testimonial-card p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 15px;
    flex-grow: 1; /* Metnin mevcut alanı doldurmasını sağlar */
}
.testimonial-card cite {
    font-weight: 700;
    color: var(--heading-color);
    font-style: normal;
    flex-shrink: 0;
}
.testimonial-card span {
    font-size: 0.9rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* İletişim Bölümü Yeni Stilleri */
#iletisim h4 {
    font-family: var(--font-mono);
    color: var(--heading-color);
}
#iletisim .footer-contact i {
    font-size: 1.2rem;
}
.map-placeholder {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.form-control { border-radius: var(--border-radius); padding: 0.85rem 1.1rem; }
.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 .25rem rgba(0, 59, 115, .25),
                0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-lg { border-radius: var(--border-radius); }

.main-footer { background-color: #001f3f; color: #adb5bd; padding: 60px 0 0; }
.footer-heading { font-family: var(--font-mono); color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-text { font-size: 0.9rem; }
.footer-links li a { color: #adb5bd; text-decoration: none; transition: color 0.3s, padding-left 0.3s; display: inline-block; margin-bottom: 8px; }
.footer-links li a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { margin-bottom: 10px; display: flex; align-items: center; }
.footer-contact li a {
    display: flex;
    align-items: center;
}
.footer-contact i { color: var(--primary-color); margin-right: 15px; margin-top: 5px; }
.social-icons {
    display: flex;
    align-items: center;
}
.social-icons .social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
    transition: background-color 0.3s, transform 0.3s;
}
.social-icons .social-icon i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.social-icons .social-icon:hover { background-color: var(--primary-color); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid #002b5c; color: #6c757d; font-size: 0.85rem; }

/* Tema Değiştirici Stilleri */
.theme-switcher {
    background-color: var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: none;
    padding: 5px;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}
.theme-switcher:hover {
    background-color: #ccc;
}
.theme-switcher .icon {
    color: var(--primary-color);
    font-size: 14px;
    transition: transform 0.3s ease;
}
.theme-switcher .icon.fa-sun {
    display: none; /* Varsayılan olarak güneşi gizle */
}

/* Karanlık Mod Değişkenleri */
[data-theme='dark'] {
    --primary-color: #0056b3; /* Standart Mavi (Karanlık Mod için yeni primary) */
    --secondary-color: #007bff; /* Daha Parlak Mavi (Karanlık Mod için yeni secondary) */
    --text-color: rgba(255, 255, 255, 0.75);
    --heading-color: #ffffff;
    --background-color: #0d1117;
    --section-bg-light: linear-gradient(180deg, #161b22, #0d1117);
    --section-bg-white: #0d1117;
    --border-color: #30363d;
    --shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.4);
}

/* Karanlık Modda Geçersiz Kılınacak Stiller */
[data-theme='dark'] body {
    color: var(--text-color);
}
[data-theme='dark'] .navbar {
    background-color: rgba(13, 17, 23, 0.8); /* --background-color'dan gelen renk */
    border-bottom-color: var(--border-color);
}
[data-theme='dark'] .navbar .nav-link,
[data-theme='dark'] #hakkimizda h3,
[data-theme='dark'] .card-title,
[data-theme='dark'] #iletisim h4 {
    color: var(--heading-color);
}
[data-theme='dark'] .navbar .nav-link:hover,
[data-theme='dark'] .navbar .nav-link.active {
    color: var(--secondary-color);
}
[data-theme='dark'] .hero .lead {
    color: var(--primary-color);
}
[data-theme='dark'] .logo-slider {
    background-color: #161b22; /* Koyu tema için section-bg-light'ın düz rengi */
    border-top-color: var(--border-color);
    border-bottom-color: var(--border-color);
}
[data-theme='dark'] .slide-logo {
    color: var(--text-color);
}
[data-theme='dark'] .blob-bg {
    opacity: 0.1;
    fill: #0056b3; /* fill rengini de değiştirelim */
}
[data-theme='dark'] .card,
[data-theme='dark'] .testimonial-card {
    background-color: #161b22;
    border-color: var(--border-color);
}
[data-theme='dark'] .form-control {
    background-color: #161b22;
    border-color: var(--border-color);
    color: var(--heading-color);
}
[data-theme='dark'] .form-control::placeholder {
    color: var(--text-color);
}
[data-theme='dark'] .main-footer {
    background-color: #05080c;
}
[data-theme='dark'] .footer-bottom {
    border-top-color: var(--border-color);
}
[data-theme='dark'] .footer-heading {
    color: #fff;
}
[data-theme='dark'] .footer-links li a,
[data-theme='dark'] .footer-text {
    color: rgba(255, 255, 255, 0.6);
}
[data-theme='dark'] .footer-links li a:hover {
    color: #fff;
}

/* Karanlık modda tema değiştirici ikonları */
[data-theme='dark'] .theme-switcher .icon.fa-moon {
    display: none;
}
[data-theme='dark'] .theme-switcher .icon.fa-sun {
    display: inline-block;
}
[data-theme='dark'] .hero-image-placeholder,
[data-theme='dark'] .hero-image-placeholder-2,
[data-theme='dark'] .hero-image-placeholder-3,
[data-theme='dark'] #hakkimizda .img-placeholder,
[data-theme='dark'] .card .img-placeholder,
[data-theme='dark'] .gallery-item .img-placeholder,
[data-theme='dark'] .profile-pic-placeholder {
    background-color: #21262d;
    border-color: var(--border-color);
    color: var(--text-color);
}
[data-theme='dark'] #heroCarousel .carousel-inner {
    box-shadow: none; /* Veya koyu tema için ayarlanmış bir gölge */
}
[data-theme='dark'] .navbar .navbar-brand {
    color: var(--primary-color);
}
[data-theme='dark'] .social-icons .social-icon {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}
[data-theme='dark'] .social-icons .social-icon:hover {
    background-color: var(--primary-color);
}
[data-theme='dark'] .section-heading::after {
    background-color: var(--primary-color);
}
[data-theme='dark'] #yorumlar .carousel-control-prev-icon,
[data-theme='dark'] #yorumlar .carousel-control-next-icon {
    background-color: var(--primary-color);
}
[data-theme='dark'] .testimonial-card cite {
    color: var(--heading-color);
}
[data-theme='dark'] .testimonial-card span {
    color: var(--primary-color);
}
[data-theme='dark'] .footer-contact i {
    color: var(--primary-color);
}
[data-theme='dark'] .logo-spinner {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Custom Modal Styles */
.modal-content {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-header .modal-title {
    font-family: var(--font-mono);
    color: var(--heading-color);
}

.modal-body {
    color: var(--text-color);
}

.modal-body strong {
    color: var(--heading-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Modal Kapatma Düğmesi (btn-close) için tema uyumu */
.modal-header .btn-close {
    background: none;
    opacity: 0.7;
}

[data-theme='light'] .modal-header .btn-close {
    filter: none;
}

[data-theme='dark'] .modal-header .btn-close {
    filter: invert(1) grayscale(100) brightness(200%);
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body img {
    border-radius: var(--border-radius);
}

/* Sayaç butonları için yeni stiller */
.stat-item.stat-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 10px; /* Küçültülmüş padding */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%; /* Kartların aynı yüksekliğe sahip olmasını sağlar */
    cursor: default; /* Tıklanabilir olmaması için varsayılan imleç */
}

.stat-item.stat-button:hover {
    transform: translateY(-3px); /* Hover efekti küçültüldü */
    box-shadow: 0 6px 15px rgba(0, 33, 71, 0.3); /* Gölge küçültüldü */
    background-color: var(--secondary-color);
}

.stat-item.stat-button .stat-number-wrapper {
    color: #fff;
    margin-bottom: 3px; /* Boşluk azaltıldı */
}

.stat-item.stat-button .stat-number {
    font-family: var(--font-mono);
    font-size: 1.8rem; /* Küçültülmüş font boyutu */
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-item.stat-button .stat-suffix {
    font-family: var(--font-mono);
    font-size: 1rem; /* Küçültülmüş font boyutu */
    font-weight: 600;
    color: #fff;
}

.stat-item.stat-button .stat-label {
    font-size: 0.9rem; /* Küçültülmüş font boyutu */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 5px;
}

/* Dark Mode uyumluluğu */
[data-theme='dark'] .stat-item.stat-button {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
}

[data-theme='dark'] .stat-item.stat-button:hover {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow); /* Koyu temada da gölgeyi koruyabilir */
}

[data-theme='dark'] .stat-item.stat-button .stat-number-wrapper,
[data-theme='dark'] .stat-item.stat-button .stat-number,
[data-theme='dark'] .stat-item.stat-button .stat-suffix,
[data-theme='dark'] .stat-item.stat-button .stat-label {
    color: #fff;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1085; /* Bootstrap'in toast (1090) z-index'inin hemen altına ayarlandı */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Butonlar arası boşluk */
}

.fab {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none; /* Linkler için */
}

.fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Specific button styles */
#scrollToTopBtn {
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    /* Sayfa yüklendiğinde gizli, JS ile görünür olacak */
}

#scrollToTopBtn:hover {
    background-color: var(--secondary-color);
}

#whatsappBtn {
    background-color: #25D366; /* WhatsApp yeşili */
}

#whatsappBtn:hover {
    background-color: #1DA851;
}

/* Dark Mode uyumluluğu */
[data-theme='dark'] #scrollToTopBtn {
    background-color: var(--primary-color);
}
[data-theme='dark'] #scrollToTopBtn:hover {
    background-color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fab-container {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    .fab {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}
/* Toast container fix for pointer events */
.toast-container {
    pointer-events: none;
}

.toast-container > .toast {
    pointer-events: auto;
}