/* --- TEMEL AYARLAR --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --antrasit: #2B2D42;
    --koyu-gri: #4A4E69;
    --acik-gri: #CED4DA;
    --beyaz: #FFFFFF;
    --bygen-mavi: #0D6EFD; 
    --bygen-mavi-hover: #0B5ED7; 
}

body { font-family: 'Poppins', sans-serif; background-color: var(--antrasit); color: var(--beyaz); line-height: 1.6; }
* { margin: 0; padding: 0; box-sizing: border-box; }
.container { width: 90%; max-width: 1200px; margin: auto; }
a { text-decoration: none; color: var(--bygen-mavi); }

/* --- HEADER & NAVİGASYON (Sticky Olarak Güncellendi) --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--antrasit);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 10px;
    border-bottom: 1px solid var(--koyu-gri);
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
}
.logo img { height: 75px; filter: drop-shadow(0 0 8px rgba(13, 110, 253, 0.3)); transition: filter 0.3s ease; }
.logo img:hover { filter: drop-shadow(0 0 12px rgba(13, 110, 253, 0.5)); }
.main-nav ul { list-style: none; display: flex; align-items: center; }
.main-nav ul li { margin-left: 30px; position: relative; }
.main-nav a { color: var(--beyaz); font-weight: 600; transition: color 0.3s ease; padding-bottom: 5px; border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 5px; }
.main-nav a:hover { color: var(--bygen-mavi); }
.main-nav a.active { color: var(--bygen-mavi); border-bottom: 2px solid var(--bygen-mavi); }
.main-nav a .fa-chevron-down { font-size: 0.8em; transition: transform 0.3s ease; }

/* ALT MENÜ (DROPDOWN) STİLLERİ */
.dropdown:hover .fa-chevron-down { transform: rotate(180deg); }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* Sağ hizalı açılır menü */
    background-color: #1c1d2b;
    border: 1px solid var(--koyu-gri);
    border-radius: 5px;
    padding: 5px 0;
    list-style: none;
    z-index: 1000;
    min-width: 230px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dropdown:hover .dropdown-menu { display: block; opacity: 1; transform: translateY(0); }
.dropdown-menu li { margin: 0; border-top: 1px solid var(--koyu-gri); }
.dropdown-menu li:first-child { border-top: none; }
.dropdown-menu a { color: var(--acik-gri); padding: 12px 20px; display: block; white-space: nowrap; border-bottom: none; transition: all 0.3s ease; }
.dropdown-menu a:hover { background-color: var(--bygen-mavi); color: var(--beyaz); padding-left: 25px; }

/* GENEL SAYFA STİLLERİ */
.page-header { text-align: center; padding: 40px 0; border-bottom: 1px solid var(--koyu-gri); }
.page-header h1 { font-size: 2.8rem; }
.page-header p { font-size: 1.2rem; color: var(--acik-gri); max-width: 700px; margin: 15px auto 0 auto; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 40px; color: var(--beyaz); }

/* HERO (ANA SAYFA) */
.hero { text-align: center; padding: 50px 20px 60px; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--acik-gri); max-width: 600px; margin: 0 auto 20px auto; }
.cta-button { background-color: var(--bygen-mavi); color: var(--beyaz); padding: 15px 20px; text-decoration: none; font-weight: 700; border-radius: 5px; font-size: 1.1rem; transition: all 0.3s ease; display: inline-block; border: 1px solid var(--bygen-mavi); }
.cta-button:hover { transform: scale(1.05); background-color: var(--bygen-mavi-hover); border-color: var(--bygen-mavi-hover); }

/* BANNER SLIDER (ANA SAYFA) */
.slider-section { padding: 20px 0; }
.banner-slider { position: relative; width: 100%; height: 200px; overflow: hidden; background-color: #202230; border-radius: 8px; border: 1px solid var(--koyu-gri); }
.banner-slider .swiper-slide { display: flex; align-items: center; justify-content: space-between; padding: 0 5%;}
.banner-slider .slide-content { flex-basis: 60%; }
.banner-slider .slide-content h2 { font-size: 2rem; color: var(--beyaz); margin-bottom: 10px; }
.banner-slider .slide-content p { font-size: 1rem; color: var(--acik-gri); }
.banner-slider .slide-image { flex-basis: 35%; text-align: right; }
.banner-slider .slide-image img { max-height: 160px; width: auto; }
.banner-slider .slide-button { margin-top: 15px; }
.banner-slider .swiper-pagination-bullet-active { background: var(--bygen-mavi); }
.banner-slider .swiper-button-next, .banner-slider .swiper-button-prev { color: var(--bygen-mavi); }

/* SERVICES (ANA SAYFA) */
.services { padding: 40px 0; }
.services .section-title { margin-bottom: 40px; }
.services-page-grid { padding: 40px 0; }
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 10px;
}
.service-box-link { 
    display: block; 
    color: inherit; 
    text-decoration: none; 
}
.service-box { 
    background-color: var(--koyu-gri); 
    padding: 0;
    border-radius: 8px; 
    transition: all 0.3s ease; 
    height: 100%; 
    border: 1px solid transparent; 
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.service-box:hover { 
    transform: translateY(-10px); 
    background-color: #5a688a; 
    border-color: var(--bygen-mavi); 
}
.service-icon {
    font-size: 3rem;
    color: var(--bygen-mavi);
    margin-top: 30px;
}
.service-box h3 { 
    font-size: 1.5rem; 
    color: var(--beyaz); 
    margin-top: 20px; 
    margin-bottom: 10px;
    transition: color 0.3s ease; 
    padding: 0 20px;
}
.service-box:hover h3 { 
    color: var(--bygen-mavi); 
}
.service-box p { 
    color: var(--acik-gri); 
    padding: 0 20px; 
    flex-grow: 1;
}
/* Ana sayfadaki ikonlu kutular için en boy oranı */
.services .service-box {
    aspect-ratio: 1/1;
}

/* FOOTER */
.main-footer { background-color: #1c1d2b; color: var(--acik-gri); text-align: center; padding: 30px 20px; margin-top: 40px; border-top: 1px solid var(--koyu-gri); }
.main-footer a { color: var(--beyaz); }

/* --- HAKKIMIZDA SAYFASI --- */
.about-page {
    padding: 40px 0;
}
.content-box {
    background-color: var(--koyu-gri);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--bygen-mavi);
}
.content-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.about-intro {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
}
.about-intro-image { flex-basis: 50%; }
.about-intro-image img { width: 100%; border-radius: 8px; }
.about-intro-text { flex-basis: 50%; }
.about-intro-text h2 { font-size: 2.5rem; color: var(--beyaz); margin-bottom: 20px; }
.about-intro-text p { font-size: 1.1rem; color: var(--acik-gri); line-height: 1.8; }
.mission-vision-container { display: flex; gap: 40px; }
.mission-box, .vision-box {
    flex: 1;
    padding: 40px;
}
.mission-box h3, .vision-box h3 { font-size: 2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.mission-box p, .vision-box p { font-size: 1.1rem; color: var(--acik-gri); }
.values-section { padding: 60px 0; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.value-item {
    text-align: center;
}
.value-item i {
    font-size: 3rem;
    color: var(--bygen-mavi);
    margin-bottom: 20px;
}
.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.value-item p {
    color: var(--acik-gri);
}

/* --- İLETİŞİM SAYFASI --- */
.contact-page {
    display: flex;
    gap: 40px;
    padding: 40px 0;
}
.contact-form-container, .contact-info-container {
    flex: 1;
}
.contact-form-container h3, .contact-info-container h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--beyaz);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--acik-gri);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--koyu-gri);
    border: 1px solid #5a688a;
    border-radius: 5px;
    color: var(--beyaz);
    font-size: 1rem;
}
.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--bygen-mavi);
    margin-right: 20px;
    margin-top: 5px;
}
.info-item h4 {
    font-size: 1.2rem;
    color: var(--beyaz);
    margin-bottom: 5px;
}
.info-item p {
    color: var(--acik-gri);
}
.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}
.success-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}
.error-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}
/* --- HİZMETLER LİSTE SAYFASI (GENEL) --- */
.services-list-section {
    padding: 40px 0;
}
.service-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    background-color: var(--koyu-gri);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--bygen-mavi);
}
.service-row.reverse {
    flex-direction: row-reverse;
}
.service-image {
    flex-basis: 40%;
}
.service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.service-text {
    flex-basis: 60%;
}
.service-text h2 {
    font-size: 2.2rem;
    color: var(--beyaz);
    margin-bottom: 20px;
}
.service-text p {
    font-size: 1.1rem;
    color: var(--acik-gri);
    margin-bottom: 30px;
}
.service-text ul { padding-left: 20px; list-style: none; }
.service-text ul li { margin-bottom: 10px; position: relative; padding-left: 25px;}
.service-text ul i { color: var(--bygen-mavi); position: absolute; left: 0; top: 5px; }


/* --- HİZMETLER SAYFASI (ANA LİSTE) - GÜNCELLENMİŞ --- */
.featured-service {
    display: flex;
    background-color: var(--koyu-gri);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--bygen-mavi);
    color: inherit;
}
.featured-service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.featured-service-image { flex: 0 0 40%; }
.featured-service-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-service-text { padding: 40px; flex: 1; align-self: center; }
.featured-service-text h3 { font-size: 2rem; margin-bottom: 15px; color: var(--beyaz); }
.featured-service-text p { font-size: 1.1rem; color: var(--acik-gri); }

.services-page-grid .service-box {
    aspect-ratio: auto;
    justify-content: flex-start; /* İçeriği yukarıdan başlatır */
    height: 100%;
}
.services-page-grid .service-box p {
    padding-bottom: 20px;
    /* flex-grow: 1; is inherited from the base .service-box rule, ensuring alignment */
}
.service-card-image {
    height: 180px; /* Yüksekliği küçülttüm */
    overflow: hidden;
}
.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.services-page-grid .service-box:hover .service-card-image img {
    transform: scale(1.05);
}


/* --- HİZMET DETAY SAYFASI SLIDER --- */
.image-slider-section {
    padding: 40px 0;
}
.image-slider-section .section-title {
    margin-bottom: 10px;
}
.image-slider-section .section-description {
    text-align: center;
    color: var(--acik-gri);
    margin-bottom: 30px;
}
.service-detail-slider {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--koyu-gri);
    background-color: #202230;
}
.service-detail-slider .swiper-slide {
    text-align: center;
    background: #2B2D42;
    display: flex;
    justify-content: center;
    align-items: center;
}
.service-detail-slider .swiper-slide a {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.service-detail-slider .swiper-slide img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.service-detail-slider .swiper-button-next,
.service-detail-slider .swiper-button-prev {
    color: var(--bygen-mavi);
    top: 50%;
    transform: translateY(-50%);
}
.service-detail-slider .swiper-pagination {
    bottom: 10px;
}
.slide-caption { /* Slider alt yazısı için stil */
    text-align: center;
    font-size: 1.1rem;
    margin-top: 15px;
    color: var(--acik-gri);
    min-height: 20px;
}

/* --- TEKNİK SERVİS PROGRAMI SAYFASI --- */
.gallery-section {
    padding: 40px 0;
}
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.image-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    border: 1px solid var(--koyu-gri);
}
.image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.image-gallery a::after {
    content: '\f00e'; /* Font Awesome search-plus icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: var(--beyaz);
    font-size: 2.5rem;
    background-color: rgba(13, 110, 253, 0.7);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.image-gallery a:hover img {
    transform: scale(1.1);
    filter: blur(2px);
}
.image-gallery a:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.product-benefits { padding: 40px 0; text-align: center; }
.product-benefits h2 { font-size: 2.5rem; margin-bottom: 30px; }
.product-benefits ul { list-style: none; display: inline-block; text-align: left; padding: 0;}
.product-benefits li { font-size: 1.2rem; margin-bottom: 15px; display: flex; align-items: center; }
.product-benefits i { color: var(--bygen-mavi); margin-right: 15px; font-size: 1.5rem; }

.product-features { padding: 40px 0; background-color: #202230; margin-top: 20px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-card { background-color: var(--koyu-gri); padding: 30px; border-radius: 8px; text-align: center; border-top: 4px solid var(--bygen-mavi); transition: transform 0.3s ease; }
.feature-card:hover { transform: translateY(-10px); }
.feature-icon { font-size: 3rem; color: var(--bygen-mavi); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.feature-card p { color: var(--acik-gri); }

.who-for { padding: 60px 0; }
.who-for .section-title { margin-bottom: 30px; }
.who-for-list ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; padding: 0; }
.who-for-list li { background-color: var(--koyu-gri); padding: 10px 20px; border-radius: 20px; font-weight: 600; }

/* --- CTA (CALL TO ACTION) BÖLÜMÜ --- */
.cta-section {
    background-color: var(--koyu-gri);
    text-align: center;
    padding: 50px 20px;
    margin-top: 40px;
    border-radius: 8px;
}
.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}
.cta-section p {
    font-size: 1.1rem;
    color: var(--acik-gri);
    margin-bottom: 25px;
}
/* --- GENEL SWIPER AYARLARI --- */
.swiper-pagination-bullet {
    background-color: var(--beyaz);
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background-color: var(--bygen-mavi);
    opacity: 1;
}

/* --- MOBİL UYUMLULUK --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.mobile-menu-toggle {
    display: none; /* Masaüstünde gizli */
    background: none;
    border: none;
    color: var(--beyaz);
    font-size: 1.5rem;
    cursor: pointer;
}
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-slider .slide-content h2 { font-size: 1.5rem; }
    .banner-slider .slide-image { display: none; }
    .banner-slider .slide-content { flex-basis: 100%; text-align: center; }
    .banner-slider .swiper-slide { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-page { flex-direction: column; }
    .featured-service { flex-direction: column; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: var(--koyu-gri);
    }
    .main-nav.is-active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    .dropdown ul.dropdown-menu {
        position: static;
        display: none;
        background: none;
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .mobile-menu-toggle {
        display: block;
    }
}
@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .about-intro { flex-direction: column; text-align: center; }
    .mission-vision-container { flex-direction: column; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .who-for-list ul { flex-direction: column; align-items: center; }
    .service-row { flex-direction: column !important; }
}
/* --- HİZMETLER SAYFASI (ANA LİSTE) - GÜNCELLENMİŞ VE İZOLE EDİLMİŞ --- */

/* Üstteki Büyük Öne Çıkan Hizmet Kutusu */
a.featured-service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 40px;
}
.featured-service {
    display: flex;
    background-color: var(--koyu-gri);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--bygen-mavi);
}
a.featured-service-link:hover .featured-service {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.featured-service-image {
    flex: 0 0 40%;
    min-width: 40%;
}
.featured-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-service-text {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-service-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--beyaz);
}
.featured-service-text p {
    font-size: 1.1rem;
    color: var(--acik-gri);
}

/* Alttaki Hizmet Kartları Grid Yapısı (3'lü Grup) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* <-- İsteğine göre 3'lü grup yapıldı */
    gap: 30px;
}
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: flex; /* Yüksekliğin eşitlenmesi için */
}

/* Yeni Kart Yapısı */
.service-card {
    background-color: var(--koyu-gri);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.service-card-link:hover .service-card {
    transform: translateY(-10px);
    border-color: var(--bygen-mavi);
}

/* Kart Resim Alanı */
.service-card__image {
    width: 100%;
    aspect-ratio: 16 / 10; /* Resimler için sabit en-boy oranı */
    overflow: hidden;
}
.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi alana sığdırır, gerekirse kırpar */
    transition: transform 0.3s ease;
}
.service-card-link:hover .service-card__image img {
    transform: scale(1.05);
}

/* Kart İçerik (Başlık ve Yazı) Alanı */
.service-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Kartın alt kısmını doldurur, hizalamayı sağlar */
}
.service-card__content h3 {
    font-size: 1.4rem;
    color: var(--beyaz);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.service-card-link:hover .service-card__content h3 {
    color: var(--bygen-mavi);
}
.service-card__content p {
    color: var(--acik-gri);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Mobil için ek düzenleme */
@media (max-width: 992px) {
    .featured-service {
        flex-direction: column;
    }
    .service-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablette 2'li grup */
    }
}
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr; /* Mobilde tek sıra */
    }
}