/* --- Global Ayarlar --- */
:root {
    --primary-red: #E63946;
    --hover-red: #D62828;
    --dark-black: #1D1D1D;
    --pure-white: #FFFFFF;
    --off-white: #F8F9FA;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--dark-black);
    background-color: var(--off-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* --- Navbar (Özel Dinamik Yapı) --- */
.navbar {
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    z-index: 1050;
}

.navbar.scrolled {
    background-color: rgba(29, 29, 29, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 10px 0;
}

.navbar-logo {
    width: 100%; 
    max-width: 275px !important; /* 220px'den 330px'e çıkarıldı */
    height: auto;
    transition: all 0.3s ease;
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Hero Slider (Kritik Alan) --- */
.hero-slider-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.carousel, .carousel-inner, .carousel-item {
    height: 100%;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1); /* Hafif zoom efekti için */
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.text-stroke {
    -webkit-text-stroke: 1px var(--primary-red);
    color: white;
}

/* --- Dalga Ayırıcı --- */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}
.custom-shape-divider-bottom svg {
    display: block;
    width: 100%;
    height: 60px;
    fill: var(--off-white);
}

/* --- Kartlar ve Bölümler --- */
.feature-card {
    transition: all 0.4s ease;
    border: none !important;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: #fff5f5;
    transition: 0.5s ease;
}

.feature-card:hover .icon-box {
    background-color: var(--primary-red);
    color: white !important;
    transform: rotateY(360deg);
}

/* --- Footer --- */
footer {
    background-color: #0d0d0d !important;
    border-top: 4px solid var(--primary-red);
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

/* --- Butonlar --- */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.ls-2 { letter-spacing: 2px; }
.italic { font-style: italic; }


/* --- HAKKIMIZDA SAYFASI ÖZEL (Aşağıdakileri mevcut CSS'in en altına ekleyin) --- */

/* Hero Alanı (Karakalem Arkaplan) */
/* Hero alanı sadece sayfanın en başındaki başlık kısmı için olmalı */
.about-hero {
    min-height: 400px; /* Sabit height yerine min-height kullanın */
    height: auto; 
    padding: 100px 0; /* İçeriğin sıkışmaması için padding verin */
}

/* Hikayemiz kısmının mobilde taşmasını engellemek için */
.about-content-section {
    height: auto !important; /* Yüksekliği içeriğe göre ayarla */
    overflow: visible; /* Taşmaları gizleme, alanı genişlet */
}

/* Mobil Görünüm İçin Ekstra Güvenlik (Media Query) */
@media (max-width: 991px) {
    .about-image-stack {
        margin-bottom: 30px; /* Görsel ile metin arasına boşluk */
    }
    
    .about-content-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}



.about-hero {
    height: 60vh;
}
.about-hero-2 {
    height: 30vh;
	background-image: url('images/005.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;	
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.5));
}

/* About Image Stack */
.about-image-stack {
    position: relative;
    padding: 20px;
}

.about-image-stack .main-img {
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.about-image-stack:hover .main-img {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -10px;
    z-index: 3;
    text-align: center;
    min-width: 140px;
}

/* Kartlar için Hover Animasyonu */
.vision-card, .mission-card {
    transition: all 0.3s ease;
    border-radius: 0 15px 15px 0;
}

.vision-card:hover, .mission-card:hover {
    transform: translateX(10px);
    background-color: var(--off-white) !important;
}

/* Değerlerimiz Animasyonu */
.value-item {
    transition: all 0.4s ease;
}

.value-item:hover {
    transform: translateY(-15px);
}

.value-item i {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.value-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Breadcrumb Rengi */
.breadcrumb-item + .breadcrumb-item::before {
    color: white;
}

/* About Sayfası Navbar Fix */
/* Eğer Hakkımızda sayfası açıldığında navbar siyah olsun istiyorsanız */
.about-page .navbar:not(.scrolled) {
    background-color: rgba(0,0,0,0.4);
}


/* --- Hizmetler Sayfası Özel Stilleri --- */

/* Karakalem Arka Plan Düzenlemesi */
.aa-page .services-grid-section {
    background-image: url('images/hali-karakalem.jpg'); /* Ürettiğimiz halı görseli */
    background-size: 800px;
    background-repeat: repeat;
    background-attachment: fixed;
    background-color: rgba(255, 255, 255, 0.97); /* Beyaz katman ile silikleştirme */
    background-blend-mode: overlay;
    position: relative;
}

/* Hero Section (Hakkımızda sayfasıyla aynı yapı) */
.about-hero-3 {
    height: 30vh;
    background-image: url('images/005.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.service-img-wrapper {
    position: relative;
    padding: 10px;
    transition: transform 0.4s ease;
}

.service-img-wrapper:hover {
    transform: scale(1.02);
}

.service-icon-badge {
    position: absolute;
    bottom: -15px;
    right: 30px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
    border: 4px solid white;
    z-index: 2;
}

.service-features-list {
    margin-top: 25px;
}

.service-features-list li {
    padding: 12px 0;
    font-weight: 600;
    font-family: var(--font-heading);
    color: #444;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #ddd;
}

.service-features-list li:last-child {
    border-bottom: none;
}

.service-features-list li i {
    margin-right: 12px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.service-features-list li:hover i {
    transform: scale(1.3);
}

/* Kullanılmayan .service-secondary-card ve .icon-circle blokları temizlendi */

/* Responsive Mobil Ayarları */
@media (max-width: 991px) {
    .service-img-wrapper {
        margin-bottom: 50px;
    }
    .about-hero-2 {
        height: 40vh;
    }
    .display-2 {
        font-size: 3rem;
    }
}


/* --- İletişim Sayfası Özel --- */
.contact-card {
    transition: all 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
    background-color: #fff !important;
    border: 1px solid var(--primary-red) !important;
}

.contact-form-wrapper {
    border: 1px solid rgba(0,0,0,0.05);
}

@media (max-width: 991px) {
    .min-vh-400 {
        min-height: 350px;
    }
}



/* Mobil cihazlarda logonun ekranı kaplamaması için ayar */
@media (max-width: 768px) {
    .navbar-logo {
        max-width: 180px !important;
    }
}

/* --- Sol Sabit Sosyal Butonlar (Mobil ve Masaüstü Uyumlu) --- */
.sticky-social {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999; /* En üstte görünmesi için artırıldı */
    display: flex;
    flex-direction: column;
}

.sticky-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
    margin-bottom: 5px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.sticky-social .whatsapp { background-color: #25D366; }
.sticky-social .instagram { background-color: #E4405F; }

/* Masaüstünde Hover Efekti */
@media (min-width: 992px) {
    .sticky-social a:hover {
        width: 65px;
        padding-left: 15px;
    }
}

/* --- Mobil Özel Ayarlar --- */
@media (max-width: 991px) {
    .sticky-social {
        top: auto;
        bottom: 100px; /* Mobilde parmak mesafesi için aşağıya çektik */
        transform: none;
    }

    .sticky-social a {
        width: 45px;
        height: 45px;
        font-size: 20px;
        opacity: 0.9; /* İçeriği çok ezmemesi için hafif şeffaflık */
    }
}

/* Mobilde butonları biraz küçültelim ki içeriği çok kapatmasın */
@media (max-width: 576px) {
    .sticky-social a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .sticky-social a:hover {
        width: 45px;
    }
    .navbar-collapse {
        background-color: #1d1d1d !important; /* Slider yazılarıyla karışmaması için tam koyu renk */
        margin-top: 10px;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    /* --- Mobil Navbar ve Burger Menü Düzenlemeleri --- */
@media (max-width: 991px) {
    /* Menü butonunun her zaman görünür olmasını sağlayalım */
    .navbar-toggler {
        display: block !important; /* Görünürlüğü garantiye al */
        background-color: rgba(230, 57, 70, 0.9) !important; /* Butona kırmızı bir zemin veriyoruz (Kurumsal renk) */
        border: none !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .navbar-toggler span {
        color: #fff !important; /* İkonun beyaz olmasını sağla */
        font-size: 1.2rem;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.4);
    }

    /* Navbar şeffaf olsa bile butonun yerini netleştirelim */
    .navbar:not(.scrolled) {
        background-color: rgba(0, 0, 0, 0.1); /* Üst kısımda çok hafif bir karartma, logoyu ve butonu patlatır */
    }
}

/* Scroll yapıldığında butonun tasarımı (İstersen sadeleştirebilirsin) */
.navbar.scrolled .navbar-toggler {
    background-color: var(--primary-red) !important;
}
}