/* Genel Container Ayarları */
.container {
    margin: 0;
    padding: 0;
    width: 100%;
    left: 0;
    max-width: 100% !important;
}
.container img {
    object-fit: contain;
}

/* Hero Bölümü */
.main-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden; /* İçerik dışına taşmaları engellemek için */
}

/* Arka Plan Resmi (HTML üzerinden eklenecek) */
/* Not: HTML’de <img> etiketi içerisine responsive özellikler (srcset, width, height) ekleyerek performansı artırmalısın */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmin kapsayıcıyı doldurmasını sağlar */
    z-index: -2;     /* İçerik ve karanlık efektin altında kalır */
}

/* Karanlık Efekt */
.main-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: 0.5s all;
    z-index: -1;     /* Arka plan resmin üzerine, içeriklerin altına */
    animation: shadow 2s linear infinite ;
}

@keyframes shadow {
    0% {
        background: rgba(0, 0, 0, 0.4);
    }
    50% {
        background: rgba(0, 0, 0, 0);
    }
    100%{
        background: rgba(0, 0, 0, 0.4);

    }
}

/* İçerik */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 20px;
}

.main-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.main-hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* CTA Buton */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2rem;
    color: white;
    background: #ffcc00;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}
.cta-button:hover {
    background: #e6b800;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .main-hero h1 {
        font-size: 2rem;
    }
    .main-hero p {
        font-size: 1rem;
    }
    .cta-button {
        font-size: 1rem;
        padding: 12px 24px;
    }
}

/* Hizmetler Bölümü */
.hakkimizda-learn-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70vh;
    gap: 20px;
    padding: 50px 5%;
    background: #f9f9f9;
    flex-wrap: wrap;
}

.text-content {
    max-width: 40%;
    min-width: 300px;
}

.text-content h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 10px;
}

.text-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
}

.learn-more-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #ffcc00;
    color: black;
    font-size: 1rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
}
.learn-more-btn:hover {
    background: #e6b800;
}

/* Swiper Slider */
.servicelide {
    width: 55%;
    max-width: 600px;
}

.service-card {
    width: 280px;
    height: auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-info {
    background: #ffcc00;
    padding: 15px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: black;
    text-align: center;
}

.service-info p {
    font-size: 1rem;
    color: black;
    margin: 0;
    text-align: center;
}

/* Responsive Ayarlar */
@media (max-width: 1100px) {
    .hakkimizda-learn-more {
        flex-direction: column;
        text-align: center;
        height: auto;
    }
    .text-content {
        max-width: 100%;
        order: 2;
    }
    .servicelide {
        padding: 50px !important;
        order: 1;
        width: 100%;
    }
    .service-card {
        width: 100%;
        max-width: 300px;
        margin: auto;
    }
}

/* Swiper Genel Ayarlar */
.swiper {
    height: auto;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
