/* =========================================
   1. GENEL AYARLAR & TİPOGRAFİ
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0d6efd;       /* Ana Mavi */
    --secondary-color: #212529;     /* Koyu Gri */
    --light-bg: #f8f9fa;            /* Açık Zemin */
    --text-color: #555;             /* Metin Rengi */
    --border-radius: 10px;          /* Köşe Yuvarlaklığı */
}

html, body {
    overflow-x: hidden; /* Mobilde sağa kaymayı engeller */
    max-width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.7;
}

a { text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary-color); }

h1, h2, h3, h4, h5, h6 { color: var(--secondary-color); font-weight: 700; }

/* Butonlar */
.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.btn-primary { box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4); }
.btn:hover { transform: translateY(-3px); }

/* =========================================
   2. HEADER & BANNER
   ========================================= */
.top-header { font-size: 0.9rem; }
.top-header a:hover { color: #0d6efd !important; }

.navbar { padding: 10px 0; background: #fff; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.navbar-brand img { 
    height: 60px !important; width: auto; object-fit: contain; 
}
@media (min-width: 992px) { .navbar-brand img { height: 80px !important; } }

.nav-link { color: #444 !important; font-weight: 500; margin-left: 15px; }
.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }

/* Dropdown Menü */
.dropdown-menu { border-radius: 10px; margin-top: 10px; border:none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dropdown-item { padding: 10px 20px; transition: 0.3s; }
.dropdown-item:hover { background-color: #f8f9fa; color: var(--primary-color); padding-left: 25px; }

/* Banner (Page Header) */
.page-header {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Efekt */
    padding: 120px 0; 
    position: relative;
    margin-bottom: 60px;
}
.page-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(13, 110, 253, 0.6));
}
.page-header .container { position: relative; z-index: 2; }

/* --- DÜZELTME: Banner Başlıklarını Zorla Beyaz Yap --- */
.page-header h1, .page-header h2, .page-header h3, .page-header div {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
/* Tarih gibi gri yazıları hafif beyaz yap */
.page-header .text-white-50 { color: rgba(255, 255, 255, 0.8) !important; }


/* Breadcrumb (Navigasyon Yolu) */
.breadcrumb-item a { color: rgba(255,255,255,0.7) !important; font-weight: 400; }
.breadcrumb-item a:hover { color: #fff !important; }
/* Sarı olan (aktif sayfa) sarı kalsın */
.breadcrumb-item.active { color: #ffc107 !important; font-weight: 600; }

/* =========================================
   3. HAKKIMIZDA & SPLIT LAYOUT
   ========================================= */
.about-section { padding-bottom: 60px; }
.about-img-wrapper { position: relative; border-radius: var(--border-radius); }
.about-img-wrapper img {
    border-radius: var(--border-radius); box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: transform 0.5s ease; max-width: 100%;
}
.about-img-wrapper:hover img { transform: scale(1.02); }

/* Tecrübe Rozeti */
.experience-badge {
    position: absolute; bottom: 20px; left: -10px;
    background: var(--primary-color); color: #fff;
    padding: 15px 25px; border-radius: var(--border-radius);
    text-align: center; box-shadow: 0 10px 20px rgba(13, 110, 253, 0.4); z-index: 3;
}
.experience-badge h3 { color: #fff; margin: 0; font-weight: 800; line-height: 1; font-size: 1.8rem; }
.experience-badge span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }

.about-content h5 { color: var(--primary-color); letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; }
.about-content h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 25px; }

/* =========================================
   4. HİZMET VE BLOG KARTLARI
   ========================================= */
.service-card-home {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s ease;
    border: 1px solid #f0f0f0; height: 100%;
}
.service-card-home:hover {
    transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-color: var(--primary-color);
}
.service-img-box { height: 220px; overflow: hidden; position: relative; }
.service-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.service-card-home:hover .service-img-box img { transform: scale(1.1); }

.service-icon {
    width: 60px; height: 60px; background: var(--primary-color); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: -30px auto 20px; position: relative;
    border: 4px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.service-content { padding: 0 25px 25px; text-align: center; }
.service-content h4 a { color: #333; font-weight: 700; font-size: 1.2rem; }

/* =========================================
   5. DETAY SAYFASI İÇERİK (EDİTÖR STİLLERİ)
   ========================================= */
/* Admin panelinden gelen ham HTML'i güzelleştirir */
.content-area {
    font-size: 1.1rem; /* Yazıyı biraz büyüttük */
    line-height: 1.9; /* Satır aralığını açtık (KRİTİK DÜZELTME) */
    color: #4a4a4a;
    font-weight: 400;
}

.content-area p {
    margin-bottom: 30px; /* Paragraflar arasına daha fazla boşluk (KRİTİK DÜZELTME) */
    text-align: justify; /* Yazıyı iki yana yaslar */
}

/* Alt Başlıklar (H3, H4) */
.content-area h3, .content-area h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid var(--primary-color);
    background: #fcfcfc;
    padding-top: 10px; padding-bottom: 10px;
    border-radius: 4px;
}

/* Listeler (Mavi Tik) */
.content-area ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}
.content-area ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    font-weight: 500;
}
.content-area ul li::before {
    content: "\f00c"; /* FontAwesome Check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0; top: 4px;
    color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
    width: 24px; height: 24px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 24px;
}

/* İçerik içindeki Resimler (Garantileme) */
.content-area img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    clear: both !important;
    margin: 30px auto !important;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Alıntılar */
.content-area blockquote {
    background: #f1f8ff;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    font-style: italic;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

/* =========================================
   6. SIDEBAR (YAN MENÜ)
   ========================================= */
.card-header.bg-primary { background: var(--primary-color) !important; padding: 15px 20px; border: none; }
.list-group-item { border: none; border-bottom: 1px solid #eee; padding: 12px 20px; color: #666; font-weight: 500; transition: 0.3s; }
.list-group-item:hover { background-color: #f8f9fa; color: var(--primary-color); padding-left: 25px; }
.list-group-item.active { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; padding-left: 25px; }

/* =========================================
   7. İLETİŞİM & HARİTA
   ========================================= */
.contact-section .icon-box { box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s; }
.contact-section .icon-box:hover { background-color: var(--secondary-color) !important; color: #fff !important; }
.map-container { width: 100%; height: 450px; border-radius: 10px; overflow: hidden; }
.map-container iframe { width: 100% !important; height: 100% !important; border: none; display: block; }

/* =========================================
   8. VIDEO GALERİ
   ========================================= */
.video-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; transition: 0.4s;
}
.video-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.video-thumb { position: relative; height: 240px; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.video-card:hover .video-thumb img { transform: scale(1.1); }

.play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; background: rgba(220, 53, 69, 0.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; padding-left: 4px; animation: pulse-red 2s infinite;
}
.video-card:hover .play-btn { background: #ff0000; transform: translate(-50%, -50%) scale(1.1); }
.video-body { padding: 20px; text-align: center; border-top: 1px solid #eee; }
.video-body h6 { font-size: 1rem; font-weight: 700; color: #333; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================
   9. FOTO GALERİ (PREMIUM)
   ========================================= */
.gallery-nav .nav-link {
    color: #555; background: #fff; border: 2px solid #eee;
    border-radius: 50px; padding: 10px 30px; margin: 5px; font-weight: 600; transition: 0.3s;
}
.gallery-nav .nav-link:hover, .gallery-nav .nav-link.active {
    background-color: var(--primary-color) !important; color: #fff !important;
    border-color: var(--primary-color) !important; transform: translateY(-2px);
}

.gallery-item {
    position: relative; border-radius: 15px; overflow: hidden; cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.gallery-item img { width: 100%; height: 280px; object-fit: cover; transition: 0.6s; }
.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 110, 253, 0.85); opacity: 0;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    transition: 0.4s; z-index: 1;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 2rem; transform: translateY(20px); transition: 0.4s; }
.gallery-item:hover .gallery-overlay i { transform: translateY(0); }

/* =========================================
   10. SLIDER (HERO)
   ========================================= */
.hero-slider .carousel-item { height: 85vh; min-height: 500px; background-color: #000; }
.hero-slider .carousel-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 6s linear; }
.hero-slider .carousel-item.active img { transform: scale(1.15); }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.3)); z-index: 1; }

/* İç Çerçeve */
.hero-slider::after {
    content: ""; position: absolute; top: 20px; left: 20px; right: 20px; bottom: 0;
    border-top: 1px solid rgba(255,255,255,0.2); border-left: 1px solid rgba(255,255,255,0.2);
    border-right: 1px solid rgba(255,255,255,0.2); z-index: 10; pointer-events: none;
    border-radius: 10px 10px 0 0;
}
.hero-caption {
    position: absolute; top: 50%; left: 10%; transform: translateY(-50%);
    z-index: 20; text-align: left; max-width: 800px; padding-left: 30px;
    border-left: 5px solid var(--primary-color);
}
.hero-caption h1 { font-size: 3rem; color: #fff; margin-bottom: 15px; opacity: 0; transform: translateY(-30px); transition: 1s 0.5s; }
.hero-caption p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 30px; opacity: 0; transform: translateY(30px); transition: 1s 0.8s; }
.hero-btn-group { opacity: 0; transition: 1s 1.2s; }
.hero-slider .carousel-item.active .hero-caption h1,
.hero-slider .carousel-item.active .hero-caption p,
.hero-slider .carousel-item.active .hero-btn-group { opacity: 1; transform: translateY(0); }

/* Alt Fade */
.hero-bottom-fade {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to bottom, transparent, #fff); z-index: 15; pointer-events: none;
}

/* =========================================
   11. QUICK MENU (HIZLI ERİŞİM)
   ========================================= */
.quick-menu-section { position: relative; margin-top: -60px; z-index: 20; padding-bottom: 40px; }
.quick-card {
    display: block; text-decoration: none; color: #fff; padding: 30px 20px;
    text-align: center; border-radius: 12px; height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: 0.3s;
}
.quick-card:hover { transform: translateY(-5px); color: #fff; box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.quick-card i { font-size: 2.5rem; margin-bottom: 15px; display: inline-block; transition: 0.3s; }
.quick-card:hover i { transform: scale(1.2) rotate(5deg); }
.quick-card h5 { font-weight: 800; font-size: 1rem; margin-bottom: 5px; color: #fff; }
.quick-card p { font-size: 0.8rem; margin: 0; opacity: 0.9; font-weight: 400; }

.qc-1 { background: linear-gradient(135deg, #E0BBE4, #957DAD); }
.qc-2 { background: linear-gradient(135deg, #98c1d9, #3d5a80); }
.qc-3 { background: linear-gradient(135deg, #e6b8a2, #b5838d); }
.qc-4 { background: linear-gradient(135deg, #83c5be, #006d77); }
.qc-5 { background: linear-gradient(135deg, #ffcdb2, #e5989b); }
.qc-6 { background: linear-gradient(135deg, #6c757d, #343a40); }

.quick-menu-prev, .quick-menu-next {
    width: 35px; height: 35px; background: #fff; border-radius: 50%;
    color: #333; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; z-index: 10;
    position: absolute; top: 50%; transform: translateY(-50%);
}
.quick-menu-prev:hover, .quick-menu-next:hover { background: var(--primary-color); color: #fff; }
.quick-menu-prev { left: -10px; } .quick-menu-next { right: -10px; }

/* =========================================
   12. NEDEN BİZ (ÖZELLİK KUTULARI)
   ========================================= */
.features-section {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0;
    position: relative;
    /* background-image: url('../img/pattern-dark.png'); Varsa desen */
}

.feature-box {
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: 0.3s;
    background: rgba(255,255,255,0.02);
    height: 100%; /* Kutuların boyunu eşitler */
}

.feature-box:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.feature-box i {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: 0.3s;
}
.feature-box:hover i { color: #fff; }

.feature-box h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-box p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
    transition: 0.3s;
}
.feature-box:hover p { color: #eee; }


/* =========================================
   13. CTA (TEKLİF AL BANDI)
   ========================================= */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), #0a58ca);
    padding: 80px 0;
    color: #fff;
    text-align: center;
    margin-top: 50px;
}
.cta-section h2 { color: #fff; margin-bottom: 15px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; max-width: 700px; margin: 0 auto 30px; }


/* =========================================
   14. FOOTER
   ========================================= */
footer { background-color: #151515; color: #bbb; padding-top: 60px; margin-top: 0; /* CTA olduğu için margin'i sıfırladık */ font-size: 0.9rem; }
footer h5 { color: #fff; margin-bottom: 20px; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 5px; }
footer a { color: #bbb; } footer a:hover { color: #fff; padding-left: 5px; }

/* =========================================
   MOBİL UYUMLULUK
   ========================================= */
@media (max-width: 768px) {
    .hero-slider .carousel-item { height: 60vh; min-height: 400px; }
    .hero-caption { left: 5%; width: 90%; padding-left: 15px; border-left-width: 3px; }
    .hero-caption h1 { font-size: 1.8rem; }
    .hero-slider::after { display: none; }
    .quick-menu-section { margin-top: 0; padding-top: 20px; }
    .quick-menu-prev { left: 0; } .quick-menu-next { right: 0; }
    .experience-badge { left: 0; bottom: 10px; }
    .top-header { display: none; }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}