/* Genel Ayarlar */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

section[id], .scroll-offset {
    scroll-margin-top: 90px;
}

/* Navbar */
.nav-link { color: #333; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: #dc3545 !important; }

/* --- HERO SECTION PARALLAX --- */
.hero-section {
    position: relative;
    /* Hero 1 resmi buradan çekiliyor */
    background: url('/static/img/hero1.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* PARALLAX EFEKTİ */
    height: 85vh; /* Yüksekliği biraz artırdım, daha heybetli dursun */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- ÜRÜNLER SECTION PARALLAX --- */
.products-section {
    position: relative;
    /* Hero 2 resmi buradan çekiliyor */
    background: url('/static/img/hero2.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* PARALLAX EFEKTİ */
}

/* Karartma (Ortak) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Karartma oranı */
}

/* Ürün Kartları */
.product-card {
    transition: transform 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
}

/* Harita Alanı */
.map-section iframe {
    display: block; /* Alt boşluğu engellemek için */
    filter: grayscale(20%); /* Haritayı hafif gri yaparak siteye uyumlu hale getirdim */
}

/* Diğer Yardımcılar */
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

/* Hizmet Kartları */
.shadow-hover { transition: all 0.3s ease; }
.shadow-hover:hover { transform: translateY(-5px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; }
.card-img-wrapper { overflow: hidden; height: 250px; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.shadow-hover:hover .card-img-wrapper img { transform: scale(1.05); }

/* WhatsApp Butonu */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.1); }
.hover-white:hover { color: #fff !important; }

/* Blog Detay Sayfaları */
.blog-body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

.article-body {
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    font-weight: 700;
    color: #111;
    margin-top: 2rem;
}

.article-body h1 { font-size: 2.5rem; }
.article-body h2 { font-size: 2rem; }
.article-body h3 { font-size: 1.5rem; }

.article-body p,
.article-body li {
    color: #555;
}

.article-body img {
    border-radius: 12px;
    object-fit: cover;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.95rem;
    color: #6c757d;
}

.article-meta i {
    color: #dc3545;
}

.article-body .table th {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-body .alert {
    border-radius: 12px;
}

@media (max-width: 992px) {
    .article-body {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .article-body {
        padding: 1.5rem;
    }

    .article-body h1 {
        font-size: 1.9rem;
    }

    .article-body h2 {
        font-size: 1.6rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
