/* --- style.css (FİNAL VERSİYON) --- */

/* 1. FONTLAR */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700;800&display=swap');

/* 2. DEĞİŞKENLER (RENKLER) */
:root {
    --bg-main: #fffcf8;      /* Kırık beyaz zemin */
    --text-dark: #2d2d2d;    /* Koyu yazı */
    --text-muted: #6c757d;   /* Soluk yazı */
    --accent: #ff6b6b;       /* Vurgu Rengi: Mercan */
    --accent-dark: #e65555;  /* Vurgu koyu ton */
    --card-bg: #ffffff;
    --shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* 3. SIFIRLAMA VE GENEL AYARLAR */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth; /* Sayfa içi linklerde yumuşak kaydırma */
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; transition: 0.3s; cursor: pointer; }
ul { list-style: none; }
section { padding: 80px 5%; position: relative; z-index: 1; }

/* 4. HEADER & MENÜ */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 30px 5%; 
    background: transparent;
    z-index: 10000; /* Header seviyesi */
    transition: all 0.6s ease;
}

/* Sticky Class */
header.sticky {
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Logo Resim Ayarı */
header .logo img {
    height: 100px; 
    width: auto;
    display: block;
    transition: 0.6s ease;
    cursor: pointer;
}

header.sticky .logo img {
    height: 70px;
}

/* Navigasyon */
nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
nav a { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); position: relative; }

nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background: var(--accent); transition: 0.3s;
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { color: var(--accent); }

/* Header Butonu */
.btn-accent {
    background-color: var(--accent); color: white !important;
    padding: 12px 30px; border-radius: 50px;
    font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    display: inline-block; cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}
.btn-accent:hover { background-color: var(--accent-dark); transform: translateY(-3px); }
.btn-accent:active { transform: scale(0.95); box-shadow: 0 2px 10px rgba(255, 107, 107, 0.2); }

/* 5. HERO (GİRİŞ BÖLÜMÜ) */
.hero {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 85vh; padding-top: 150px;
    position: relative; z-index: 2;
}
.hero-text { max-width: 600px; }
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }

.hero-img-box { 
    width: 45%; height: 500px; 
    border-radius: 30px; overflow: hidden; 
    box-shadow: var(--shadow); position: relative;
}
.hero-img-box img { width: 100%; height: 100%; object-fit: cover; }

/* 6. ORTAK BİLEŞENLER */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px auto; }
.section-header h2 { font-size: 3rem; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* 7. MARKALAR BANDI */
.brands-section {
    padding: 50px 0; background: #fff;
    border-bottom: 1px solid #eee; text-align: center; margin-top: -50px;
    position: relative; z-index: 3;
}
.brands-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; opacity: 0.6; }
.brand-item { font-size: 1.5rem; font-weight: 700; color: #ccc; display: flex; align-items: center; gap: 10px; }
.brand-item i { font-size: 2rem; }

/* 8. HİZMETLER */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card {
    background: white; padding: 40px; border-radius: 20px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent; display: flex; flex-direction: column; height: 100%;
    cursor: pointer; 
}
.service-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: var(--shadow); }
.service-card:active { transform: scale(0.98); border-color: var(--accent-dark); }

.icon-box { 
    width: 70px; height: 70px; background: var(--bg-main); 
    border-radius: 15px; display: flex; align-items: center; justify-content: center; 
    font-size: 2rem; color: var(--accent); margin-bottom: 25px; 
}
.service-card:hover .icon-box { background: var(--accent); color: white; }

/* Mini Hizmetler */
.home-services { background: #fff; }
.mini-service-card {
    padding: 30px; border: 1px solid #eee; border-radius: 15px;
    transition: 0.3s; background: white; cursor: pointer;
}
.mini-service-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: var(--shadow); }

/* 9. ÇALIŞMA SÜRECİ */
.process-section { background: var(--bg-main); text-align: center; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 50px; }
.process-step { position: relative; padding: 20px; }
.step-number { 
    background: var(--accent); color: white; width: 50px; height: 50px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1.2rem; font-weight: 800; margin: 0 auto 20px auto; 
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* 10. FİYATLANDIRMA */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; max-width: 1200px; margin: 0 auto; align-items: center;
}
.price-card {
    background: white; padding: 50px 40px; border-radius: 25px;
    text-align: center; box-shadow: var(--shadow); transition: 0.4s; border: 1px solid #eee;
}
.price-card.popular {
    background: var(--accent); color: white; transform: scale(1.05); border: none; z-index: 5;
}
.price { font-size: 3.5rem; font-weight: 800; margin-bottom: 30px; line-height: 1; }
.price span { font-size: 1rem; font-weight: 600; color: #999; }
.features-list { text-align: left; margin-bottom: 30px; }
.features-list li { margin-bottom: 15px; font-weight: 600; display: flex; align-items: center; }
.features-list li i { color: var(--accent); margin-right: 10px; }
.price-card.popular h3, .price-card.popular .price, 
.price-card.popular span, .price-card.popular li, 
.price-card.popular i { color: white !important; }

.btn-price {
    display: block; width: 100%; padding: 15px; border-radius: 50px;
    background: var(--bg-main); color: var(--text-dark); font-weight: 800; margin-top: 30px;
    cursor: pointer; transition: 0.3s;
}
.btn-price:hover { background: #eee; }
.price-card.popular .btn-price { background: white; color: var(--accent); }
.price-card.popular .btn-price:hover { background: #f0f0f0; }

/* 11. ANASAYFA PORTFOLYO KISMI */
.portfolio-grid { 
    display: grid; 
    /* Mobilde taşmayı önlemek için 350px'i 300px yaptım */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 25px; 
}
.work-item { 
    position: relative; overflow: hidden; border-radius: 20px; 
    cursor: pointer; height: 350px; transition: transform 0.2s ease;
}
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; display: block; }
.work-item:hover img { transform: scale(1.05); }
.work-item:active { transform: scale(0.96); } 
.work-info { 
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); 
    color: white; opacity: 0; transition: 0.3s; pointer-events: none;
}
.work-item:hover .work-info { opacity: 1; }

/* 12. MÜŞTERİ YORUMLARI */
.testimonials { background: white; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { 
    background: var(--bg-main); padding: 40px; border-radius: 20px; 
    text-align: left; position: relative; border: 1px solid #eee;
}
.testimonial-card i { color: var(--accent); font-size: 2rem; margin-bottom: 20px; opacity: 0.3; }
.testimonial-text { font-style: italic; color: #555; margin-bottom: 20px; font-size: 0.95rem; }

/* 13. FOOTER */
footer {
    text-align: center; padding: 50px; background: #fff;
    border-top: 1px solid #eee; font-size: 0.9rem; color: var(--text-muted);
}
.social-links { margin-bottom: 20px; }
.social-links a { font-size: 1.5rem; margin: 0 10px; color: var(--text-dark); transition: 0.3s; }
.social-links a:hover { color: var(--accent); transform: translateY(-3px); display: inline-block; }

/* 14. MODAL (TEKLİF KUTUSU) */
.modal-overlay {
    display: none; position: fixed; 
    z-index: 11000; /* Header'ın (10000) üzerine çıkması için artırdım */
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-kutu {
    background-color: #fff; padding: 30px; border-radius: 15px;
    width: 90%; max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(-20px); transition: transform 0.3s ease;
}
.modal-overlay.aktif { display: flex; opacity: 1; pointer-events: auto; }
.modal-overlay.aktif .modal-kutu { transform: translateY(0); }
.modal-kutu input, .modal-kutu textarea {
    width: 100%; padding: 10px; margin: 8px 0 15px 0;
    border: 1px solid #ccc; border-radius: 5px;
    font-family: inherit; box-sizing: border-box;
}
.gonder-btn {
    background-color: #000; color: white; padding: 12px 20px; border: none; border-radius: 5px;
    cursor: pointer; width: 100%; font-size: 16px; font-weight: bold; transition: 0.2s;
}
.gonder-btn:hover { background-color: #333; }
.kapat-btn {
    position: absolute; top: 10px; right: 20px;
    font-size: 30px; font-weight: bold; color: #aaa; cursor: pointer;
}
.kapat-btn:hover { color: #000; }

/* ---------------------------------------------------------
   15. PORTFOLYO SAYFASI ÖZEL STİLLER 
--------------------------------------------------------- */

/* Kategori Kartları */
.category-card {
    position: relative; height: 300px; border-radius: 20px; overflow: hidden; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}
.category-card:hover { transform: translateY(-5px); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.category-card:hover img { transform: scale(1.1); }
.category-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px; color: white; pointer-events: none;
}
.category-overlay span { font-size: 0.9rem; color: #ddd; display: block; margin-top: 5px; }

/* Galeri Modalı (Portfolyo Sayfası İçin) */
.gallery-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.98); 
    z-index: 11000; /* Header'ın üzerine çıkması için artırdım */
    overflow-y: auto; padding: 40px 5%;
}
.gallery-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px; border-bottom: 1px solid #eee; padding-bottom: 20px;
}
.close-gallery { font-size: 2rem; cursor: pointer; color: #333; transition: 0.3s; }
.close-gallery:hover { color: var(--accent); transform: rotate(90deg); }
.modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* Portfolyo İçindeki Resimler */
.modal-grid .work-item img { cursor: zoom-in; }

/* Lightbox (Tam Ekran Resim) */
.image-viewer-modal {
    display: none; position: fixed; z-index: 20000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95); align-items: center; justify-content: center;
}
.viewer-content { max-width: 90%; max-height: 90vh; object-fit: contain; animation: zoom 0.3s; }
@keyframes zoom {from {transform:scale(0.9); opacity: 0;} to {transform:scale(1); opacity: 1;}}
.close-viewer { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 50px; cursor: pointer; z-index: 20002; }
.prev-btn, .next-btn {
    cursor: pointer; position: absolute; top: 50%; padding: 16px; margin-top: -50px;
    color: white; font-weight: bold; font-size: 30px; transition: 0.3s; z-index: 20003;
    background: rgba(0,0,0,0.3); border-radius: 3px;
}
.next-btn { right: 0; } .prev-btn { left: 0; }
.prev-btn:hover, .next-btn:hover { background: rgba(255,255,255,0.2); }

/* 16. RESPONSIVE */
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--text-dark); }
.mobile-btn { display: none; }
.desktop-btn { display: inline-block; }

@media (max-width: 768px) {
    header { padding: 15px 5%; }
    .menu-toggle { display: block; z-index: 1001; }
    .desktop-btn { display: none; }
    .mobile-btn { display: block; margin-top: 20px; width: 100%; text-align: center; }

    nav {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: #ffffff; border-bottom: 1px solid #eee; padding: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05); opacity: 0; visibility: hidden;
        transform: translateY(-20px); transition: all 0.3s ease;
        flex-direction: column; z-index: 999;
    }
    nav.active { opacity: 1; visibility: visible; transform: translateY(0); }
    nav ul { flex-direction: column; text-align: center; gap: 20px; width: 100%; }
    nav a { font-size: 1.1rem; display: block; width: 100%; }

    .hero { flex-direction: column; text-align: center; padding-top: 130px; }
    .hero-text { margin-bottom: 40px; }
    .hero-img-box { width: 100%; height: 300px; }
    .price-card.popular { transform: scale(1); z-index: 1; }
}
/* --- MOBİL DÜZELTMELER (EN ALTA EKLE) --- */

@media (max-width: 768px) {
    
    /* 1. Sayfanın sağa-sola oynamasını engelle */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* 2. O kocaman başlığı küçült */
    .hero h1 {
        font-size: 2.5rem; /* 4.5rem'den 2.5rem'e düşürdük */
        line-height: 1.2;
        word-wrap: break-word; /* Kelime sığmazsa alt satıra geçsin */
    }

    /* 3. Altındaki açıklama yazısını da dengele */
    .hero p {
        font-size: 1rem;
    }

    /* 4. Header'ın ekrandan taşmasını engelle */
    header {
        width: 100%;
        max-width: 100vw; /* Ekran genişliğini geçmesin */
        box-sizing: border-box; /* Padding'i genişliğe dahil et */
        padding: 15px 20px; /* Kenar boşluklarını mobilde biraz azalttım */
    }
    
    /* 5. Logo mobilde çok büyükse biraz kısalım */
    header .logo img {
        max-height: 60px; /* Mobilde logo boyutu */
    }
}
/* --- RESİM DÜZELTME YAMASI (EN ALTA YAPIŞTIR) --- */

.category-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Sihirli kod bu: Yamulmayı engeller */
    display: block !important;
}

/* Eğer alttaki proje detay resimleri de bozuksa bunu da ekle */
.work-item img {
    width: 100% !important;
    height: 100% !important; 
    object-fit: cover !important;
    display: block !important;
}
/* Modalları varsayılan olarak gizle */
.gallery-modal {
    display: none; 
    /* Diğer stil kodların burada kalabilir ama display: none şart */
}