/* General Body and Container Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fcfcfc; /* Sayfanın genel arka plan rengini beyaz yaptık */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px; /* İçerik genişliğini sınırlar */
    margin: 0 auto; /* Ortalar */
    padding: 0 20px; /* Yanlardan boşluk bırakır */
}

/* --- Hero Section - Dramatik ve Dinamik Tasarım --- */
.hero-section {
    position: relative; /* Z-index'in çalışması için relative veya absolute olması gerekir */
    height: 600px;
    /* Kavisli kısmı kaplayacak gradient */
    background: linear-gradient(45deg, #28a745, #28a745);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    z-index: 10; /* En üst katmanda olması için yüksek bir z-index değeri verdik */

    /* Alt kısmı kavisli yapmak için maskeleme */
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path fill="black" d="M0,0 L0,70 Q500,100 1000,70 L1000,0 Z"></path></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path fill="black" d="M0,0 L0,70 Q500,100 1000,70 L1000,0 Z"></path></svg>');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: bottom;
    mask-position: bottom;
}

/* Hero Section içindeki arka plan rengi ve bulanıklık kaldırıldı */
.hero-overlay {
    background: none; /* Arka plan görseli olmadığı için overlay'e gerek kalmaz */
    backdrop-filter: none; /* Bulanıklık efekti kaldırıldı */
    position: static; /* Pozisyonu statik yaparak normal akışa döndürdük */
    width: auto;
    height: auto;
    padding: 20px;
    opacity: 1; /* Animasyonla gelmesine gerek kalmadı */
    animation: none; /* Animasyonu iptal ettik */
}

/* Yeni animasyon: Overlay'in yavaşça belirmesi */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-section h1 {
    font-size: 5.5em;
    margin-bottom: 25px;
    letter-spacing: 4px;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); /* Gölgeyi biraz hafiflettik */
    animation: none; /* Animasyonları iptal ettik */
    opacity: 1;
    transform: none;
}

.hero-section p {
    font-size: 1.8em;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Gölgeyi biraz hafiflettik */
    animation: none; /* Animasyonları iptal ettik */
    opacity: 1;
    transform: none;
}

/* Yeni animasyonlar: metinlerin sağdan ve soldan kayarak girmesi */
@keyframes textSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textSlideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Section Titles - Modern ve Temiz --- */
.section-title {
    font-size: 3.2em;
    text-align: center;
    margin-bottom: 30px; /* Daha fazla boşluk */
    color: #2c3e50; /* Koyu mavi-gri başlık rengi */
    position: relative;
    padding-bottom: 25px; /* Çizgi ile başlık arasına daha fazla boşluk */
    font-weight: 700;
    letter-spacing: 1px; /* Harf aralığı eklendi */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px; /* Daha geniş ve belirgin çizgi */
    height: 6px; /* Daha kalın çizgi */
    background: linear-gradient(90deg, #34d17f, #28a745); /* Canlı yeşil gradient */
    border-radius: 4px;
}

/* --- Services Section --- */
.services-section {
    padding: 120px 0; /* Mevcut padding */
    background-color: #fcfcfc; /* Temiz, açık bir arka plan */
    margin-top: -80px; /* Bu değeri kavisin yüksekliğine ve istediğiniz birleşme noktasına göre ayarlayın */
    position: relative; /* Z-index için gerekli olabilir */
    z-index: 9; /* Banner'ın (z-index: 1) üzerine gelmesi için */
}

.services-section > p {
    max-width: 900px;
    margin: 0 auto 80px auto;
    font-size: 1.2em;
    color: #555;
    line-height: 1.8;
    text-align: center;
    font-weight: 300; /* Daha hafif font */
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Daha esnek kart boyutları */
    gap: 50px; /* Kartlar arası boşluğu artırdık */
    margin-top: 60px;
}

/* Service Card - Minimalist ve Premium Tasarım */
.service-card {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(40, 167, 69, 0.03), transparent 70%);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #28a745;
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Sadece transform için geçiş, renk veya filtre için değil */
    transition: transform 0.0s cubic-bezier(0.25, 0.8, 0.25, 1); /* Daha hızlı bir geçiş için 0.2s'den 0.0s'ye düşürüldü */
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    transform: scale(1.15); /* Hafif ekrana doğru büyüme efekti */
}

.service-icon img {
    max-width: 60px;
    height: auto;
    /* filter: grayscale(80%); Bu satırı tamamen kaldırın */
    /* Resim ikonları için sadece transform geçişi, filtre yok */
    transition: transform 0.0s ease; /* Daha hızlı bir geçiş için 0.2s'den 0.0s'ye düşürüldü */
}

.service-card:hover .service-icon img {
    filter: none; /* Filtreyi tamamen kaldırır */
    transform: none; /* Önceki dönüşü kaldırır, sadece üstteki scale'i alır */
}

.service-icon i {
    font-size: 3.8em;
    color: #28a745; /* İkon rengi - sabit kalsın */
    /* Sadece transform geçişi, renk veya dönüş yok */
    transition: transform 0.0s ease; /* Daha hızlı bir geçiş için 0.2s'den 0.0s'ye düşürüldü */
}

.service-card:hover .service-icon i {
    color: #28a745; /* Rengi sabit tutar */
    transform: none; /* Önceki dönüşü kaldırır, sadece üstteki scale'i alır */
}

.service-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #2c3e50;
    transition: color 0.3s ease;
    font-weight: 600;
}

.service-card:hover h3 {
    color: #28a745; /* Hover'da başlık rengi değişimi */
}

.service-card p {
    font-size: 1.05em;
    color: #666;
    line-height: 1.7;
}

/* --- Production Gallery Section - YENİ TASARIM --- */
.production-gallery {
    padding: 100px 0; /* İç boşluğu artırdık */
    background-color: #f0f2f5; /* Temiz bir arka plan */
    position: relative; /* Butonlar için relative */
    overflow: hidden; /* Taşmayı gizler */
}

/* Galeri başlığı için daha iyi bir görünüm */
.production-gallery .section-title {
    margin-bottom: 60px; /* Başlıkla galeri arasında daha fazla boşluk */
}

.gallery-wrapper {
    position: relative;
    overflow: hidden; /* Kaydırma alanı için */
    padding: 20px 0; /* Kaydırma için boşluk, görsellerin hafifçe dışarı taşmasını sağlar */
    /* Kenarlarda hafif opaklık efekti (görsellerin kaydığını vurgulamak için) */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-items {
    display: flex; /* Yatay sıralama */
    width: max-content; /* İçeriğin toplam genişliği kadar olur */
    animation: scrollGallery 35s linear infinite; /* Animasyon hızını ayarladık */
    animation-play-state: running; /* Başlangıçta oynat */
    will-change: transform; /* Performans optimizasyonu */
}

.gallery-wrapper:hover .gallery-items {
    animation-play-state: paused; /* Hover'da animasyonu durdur */
}

.gallery-item {
    flex-shrink: 0; /* Öğelerin küçülmesini engeller */
    width: 320px; /* Görselin genişliği */
    height: 220px; /* Görselin yüksekliği */
    margin: 0 18px; /* Öğeler arası boşluk */
    border-radius: 12px; /* Hafif yuvarlak köşeler */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); /* Hafif ve modern gölge, biraz daha belirgin */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Hafif bir kenarlık */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya sığdırır */
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px); /* Hafif yukarı kayma efekti */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* Hover'da daha belirgin gölge */
    border-color: #28a745; /* Hover'da kenarlık rengi değişimi */
}

.gallery-item:hover img {
    transform: scale(1.1); /* Hover'da görselin daha belirgin büyümesi */
}

/* Kayan Animasyon - Sonsuz döngü için %50 kaydırma */
@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Butonlar için konumlandırma ve stil (Manuel kontrol için, otomatik akışta işlevsizdir) */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(40, 167, 69, 0.8); /* Marka rengine uygun koyu yeşil */
    color: #fff;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 8px; /* Daha yumuşak köşeler */
    font-size: 1.5em;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0.8; /* Başlangıçta hafif şeffaf */
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(40, 167, 69, 1); /* Hover'da tam renk */
    transform: translateY(-50%) scale(1.05); /* Hover'da hafif büyüme */
    opacity: 1;
}

.swiper-button-prev {
    left: 20px;
}

.swiper-button-next {
    right: 20px;
}


/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 4.8em;
    }
    .hero-section p {
        font-size: 1.6em;
    }
    .services-cards {
        gap: 40px;
    }
    .service-card {
        padding: 35px;
    }
    .service-icon {
        width: 90px;
        height: 90px;
    }
    .service-icon img {
        max-width: 55px;
    }
    .service-icon i {
        font-size: 3.5em;
    }
    .service-card h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: 500px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    .hero-section h1 {
        font-size: 4em;
        letter-spacing: 3px;
    }
    .hero-section p {
        font-size: 1.4em;
    }
    .section-title {
        font-size: 2.8em;
    }
    .services-section {
        padding: 100px 0;
    }
    .services-section > p {
        margin-bottom: 60px;
    }
    .services-cards {
        gap: 30px;
    }
    .service-card {
        padding: 30px;
    }
    .service-icon {
        width: 80px;
        height: 80px;
    }
    .service-icon img {
        max-width: 50px;
    }
    .service-icon i {
        font-size: 3.2em;
    }
    .service-card h3 {
        font-size: 1.5em;
    }
    .production-gallery .section-title {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 450px;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }
    .hero-section h1 {
        font-size: 3.2em;
        letter-spacing: 2px;
    }
    .hero-section p {
        font-size: 1.2em;
    }
    .section-title {
        font-size: 2.5em;
    }
    .services-section {
        padding: 80px 0;
    }
    .services-section > p {
        margin-bottom: 50px;
        font-size: 1.1em;
    }
    .services-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    .service-card {
        padding: 25px;
    }
    .service-icon {
        width: 70px;
        height: 70px;
    }
    .service-icon img {
        max-width: 45px;
    }
    .service-icon i {
        font-size: 2.8em;
    }
    .service-card h3 {
        font-size: 1.3em;
    }
    .service-card p {
        font-size: 1em;
    }
    .production-gallery {
        padding: 60px 0;
    }
    .gallery-item {
        width: 280px; /* Daha küçük görseller */
        height: 190px;
        margin: 0 10px;
    }
    /* Butonlar için konumlandırma */
    .swiper-button-prev,
    .swiper-button-next {
        padding: 12px 18px;
        font-size: 1.3em;
    }
    .gallery-wrapper {
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 380px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    .hero-section h1 {
        font-size: 2.5em;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    .hero-section p {
        font-size: 1em;
        padding: 0 10px;
    }
    .section-title {
        font-size: 2em;
    }
    .services-section {
        padding: 60px 0;
    }
    .services-section > p {
        margin-bottom: 40px;
        font-size: 0.95em;
    }
    .services-cards {
        grid-template-columns: 1fr; /* Çok küçük ekranlarda kartları alt alta sıralar */
        gap: 20px;
    }
    .service-card {
        padding: 20px;
    }
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    .service-icon img {
        max-width: 40px;
    }
    .service-icon i {
        font-size: 2.5em;
    }
    .service-card h3 {
        font-size: 1.2em;
    }
    .service-card p {
        font-size: 0.9em;
    }
    .gallery-item {
        width: 85vw; /* Viewport genişliğinin daha çoğunu kaplar */
        height: 170px;
        margin: 0 8px;
    }
    /* Mobil cihazlarda butonları gizledik, sadece otomatik kaydırma */
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
    .gallery-wrapper {
        padding: 10px 0; /* Mobil görünümde daha az boşluk */
        mask-image: none; /* Mobil görünümde maskelemeyi kaldır */
        -webkit-mask-image: none;
    }
}
