/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Genel Ayarlar ve Değişkenler */
:root {
    --primary-color: #007bff;
    --secondary-color: #2c3e50;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --text-dark: #343a40;
    --text-light: #6c757d;
    --font-family: 'Poppins', sans-serif;
}

/* Temel Stiller */
body {
    font-family: var(--font-family);
    margin: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word;
}
.container { max-width: 1140px; margin: auto; padding: 0 20px; }
.btn { display: inline-block; padding: 12px 28px; background-color: var(--primary-color); color: #fff; text-decoration: none; border-radius: 50px; transition: all 0.3s ease; font-weight: 600; border: 2px solid transparent; }
.btn:hover { background-color: #fff; color: var(--primary-color); border-color: var(--primary-color); transform: translateY(-3px); }
section { padding: 80px 0; overflow-x: hidden; }
h1, h2 { font-weight: 700; color: var(--secondary-color); }
h1 { font-size: 2.5em; margin-bottom: 20px; }
h2 { text-align: center; font-size: 2.8em; margin-bottom: 50px; }
.extra-images-title { margin-top: 60px; }

/* Header & Navigasyon */
.site-header { background: var(--background-white); box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
nav.container { display: flex; justify-content: space-between; align-items: center; }
nav .logo img { height: 80px; display: block; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 15px; }
.nav-menu li a { padding: 10px 15px; text-decoration: none; color: var(--text-dark); font-weight: 600; transition: color 0.3s, background-color 0.3s; border-radius: 5px; }
.nav-menu li a:hover { color: var(--primary-color); background-color: #f1f3f5; }

/* Mobil Menü Butonu (Hamburger) */
.menu-toggle { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
.hamburger-bar { width: 30px; height: 3px; background-color: var(--secondary-color); border-radius: 10px; transition: all 0.3s linear; }
.menu-toggle.active .hamburger-bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-toggle.active .hamburger-bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .hamburger-bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Slider */
.slider-container { height: 100vh; padding: 0; }
.swiper-container { width: 100%; height: 100%; }
.swiper-slide { display: flex; justify-content: center; align-items: center; background-size: cover; background-position: center; color: #fff; }
.slide-content { text-align: center; background: rgba(0,0,0,0.6); padding: 50px; border-radius: 10px; max-width: 80%; }
.slide-content h1 { font-size: 4.5em; margin: 0; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); color: #fff; }
.slide-content p { font-size: 1.5em; margin-top: 15px; text-shadow: 1px 1px 4px rgba(0,0,0,0.7); }

/* Anasayfa: Hakkımda Özeti */
.about-summary-section { background: var(--background-white); }
.about-summary-grid { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 50px; }
.about-summary-image img { width: 100%; max-width: 300px; display: block; margin: auto; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-summary-text h2 { text-align: left; }
.about-summary-text p { color: var(--text-light); margin-bottom: 25px; }

/* Projeler Sayfası ve Anasayfa Projeler */
.latest-projects, .all-projects-section { background: var(--background-light); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.project-card { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.project-card-link { display: block; text-decoration: none; }
.project-card img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover img { transform: scale(1.1); }
.project-card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 20px 20px; color: white; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); opacity: 0; transition: opacity 0.4s ease; }
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-overlay h3 { margin: 0; }

/* Anasayfa: Yetenekler */
.skills-section { background: var(--background-white); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 30px; text-align: center; }
.skill-item { padding: 20px; transition: transform 0.3s; }
.skill-item:hover { transform: translateY(-10px); }
.skill-item img { height: 60px; margin-bottom: 10px; }
.skill-item span { font-weight: 600; color: var(--text-dark); }

/* Anasayfa: İletişim */
.contact-section { background: var(--background-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; }
.contact-info h3 { font-size: 1.8em; color: var(--secondary-color); }
#contact-form form { display: flex; flex-direction: column; gap: 20px; }
#contact-form input, #contact-form textarea { padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1em; font-family: var(--font-family); }

/* Proje Detay Sayfası Tasarımı */
.project-detail-page { background: var(--background-white); padding-top: 60px; padding-bottom: 80px; }
.project-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; }
.project-main-content h1 { font-size: 3em; margin-bottom: 30px; line-height: 1.3; }
.project-main-content h2 { text-align: left; font-size: 1.8em; margin-top: 40px; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.main-project-image { width: 100%; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.project-description { margin-bottom: 30px; font-size: 1.1em; color: var(--text-light); }
.project-gallery-detailed { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.gallery-item-detailed { text-align: center; }
.gallery-item-detailed img { width: 100%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.gallery-item-description { margin-top: 15px; color: var(--text-light); font-style: italic; font-size: 0.95em; }
.project-sidebar { position: sticky; top: 120px; }
.project-info-box { background: var(--background-light); padding: 30px; border-radius: 12px; border: 1px solid #e9ecef; }
.project-info-box h3 { margin-top: 0; font-size: 1.5em; margin-bottom: 25px; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; display: inline-block; }
.project-info-box ul { list-style: none; padding: 0; margin: 0; }
.project-info-box ul li { margin-bottom: 20px; }
.project-info-box ul li strong { display: block; color: var(--text-dark); font-weight: 600; margin-bottom: 5px; }
.project-info-box ul li span { color: var(--text-light); }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background-color: #e9ecef; color: var(--text-dark); padding: 5px 12px; border-radius: 50px; font-size: 0.85em; font-weight: 500; }
.btn-full { width: 100%; text-align: center; margin-top: 20px; }

/* Hakkımda Sayfası (ve diğer statik sayfalar) */
.page-content { background: #fff; min-height: 60vh; }
.about-content { line-height: 1.7; font-size: 1.05em; }
.about-content img { max-width: 100%; height: auto; border-radius: 8px; }
.about-content table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 20px 0; }
.about-content th, .about-content td { padding: 10px; border: 1px solid #ddd; }

/* Footer */
footer { text-align: center; padding: 25px; background-color: var(--secondary-color); color: #fff; }

/* =========================================== */
/* MOBİL UYUMLULUK (MEDIA QUERIES)             */
/* =========================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    h2 { font-size: 2.5em; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .about-summary-grid, .contact-grid, .project-detail-grid { grid-template-columns: 1fr; }
    .about-summary-text, .contact-grid, .project-main-content, .about-summary-grid { text-align: center; }
    .about-summary-text h2, .project-main-content h2 { text-align: center; }
    .about-summary-text h2 { margin-top: 20px; }
    .slide-content h1 { font-size: 3em; }
    .slide-content p { font-size: 1.2em; }
    .project-sidebar { position: static; margin-top: 50px; }
}

/* Mobil (max-width: 768px) */
@media (max-width: 768px) {
    section { padding: 60px 20px; }
    h1 { font-size: 2em; }
    h2 { font-size: 2.2em; }
    .project-grid { grid-template-columns: 1fr; }
    
    /* Mobil Navigasyon */
    .menu-toggle { display: flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Header yüksekliğine göre ayarlanmalı */
        left: 0;
        background: var(--background-white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu li a { display: block; padding: 15px; width: 100%; }

    /* Slider Mobil */
    .slider-container { height: 80vh; }
    .slide-content { padding: 25px; }
    .slide-content h1 { font-size: 2.2em; }
    .slide-content p { font-size: 1em; }

    /* Hakkımda Özeti Mobil */
    .about-summary-grid { gap: 30px; }
    .about-summary-image img { max-width: 200px; }
    .about-summary-text h2 { font-size: 2em; }
    .about-summary-text p { font-size: 0.95em; }
    
    /* Hakkımda Sayfası İçerik Mobil Düzeltmeleri */
    .about-content { font-size: 0.95em; text-align: left; }
    .about-content h1, .about-content h2, .about-content h3 { text-align: center; }
    .about-content img { max-width: 95%; margin-left: auto; margin-right: auto; }
    .about-content img[style*="float"] { float: none !important; display: block; margin: 20px auto !important; }
    
    /* Proje Detay Sayfası Mobil Düzeltmeleri */
    .project-main-content h1 { font-size: 2.2em; text-align: center; }
    .project-gallery-detailed { grid-template-columns: 1fr; gap: 20px; }
    .contact-grid { text-align: left; }
}

/* =========================================== */
/* HİZMETLER SAYFASI STİLLERİ                  */
/* =========================================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
}
.service-card img {
    max-height: 80px;
    margin-bottom: 20px;
}
.service-card h3 {
    color: var(--secondary-color);
}
.service-card p {
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* Hizmet Detay Sayfası */
.service-detail-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}
/* Resim ve yazının yerini değiştirmek için */
.service-detail-block.reverse {
    direction: rtl; /* Sağdan sola akış */
}
.service-detail-block.reverse > * {
    direction: ltr; /* İçerik soldan sağa kalsın */
}
.detail-text h2 {
    text-align: left;
    margin-bottom: 15px;
}
.detail-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .service-detail-block, .service-detail-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .detail-text h2 {
        text-align: center;
    }
}
/* =========================================== */
/* GELİŞTİRİLMİŞ HİZMET DETAY SAYFASI          */
/* =========================================== */

.service-detail-page {
    padding-top: 0; /* Section'ın kendi boşluğunu kaldırıyoruz */
}

/* Giriş (Hero) Bölümü */
.service-hero {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 80px;
}
.service-hero-icon {
    max-height: 100px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1); /* Siyah ikonları beyaz yapar */
}
.service-hero h1 {
    color: white;
    font-size: 3.5em;
    margin-bottom: 15px;
}
.service-hero-subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* Detay Blokları */
.service-detail-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}
.service-detail-block.reverse { direction: rtl; }
.service-detail-block.reverse > * { direction: ltr; }
.detail-text h2 { text-align: left; margin-bottom: 15px; font-size: 2.2em; }
.detail-text p { color: var(--text-light); }
.detail-image img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

@media (max-width: 992px) {
    .service-hero h1 { font-size: 2.8em; }
}

@media (max-width: 768px) {
    .service-hero { padding: 60px 20px; margin-bottom: 60px; }
    .service-hero h1 { font-size: 2.2em; }
    
    .service-detail-block, .service-detail-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
    }
    .detail-text h2 { text-align: center; }
    /* Resmi metinden önce göstermek için */
    .service-detail-block.reverse .detail-text { grid-row-start: 2; }
}