﻿/* ==========================================================================
   1. DEĞİŞKENLER VE TEMEL AYARLAR (Global)
   ========================================================================== */
:root {
    --ana-renk: #00cec9; /* Canlı Turkuaz */
    --koyu-renk: #2d3436;
    --acik-gri: #f9f9f9;
    --beyaz: #ffffff;
    --text-gri: #636e72;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--koyu-renk);
    background-color: var(--beyaz);
    line-height: 1.6;
}

.container {
    max-width: 1400px; /* 1200'den 1400'e çıkardık, site nefes alacak */
    margin: 0 auto;
    padding: 0 40px; /* Yanlardaki güvenli boşluğu biraz artırdık */
    width: 100%;
}

/* ==========================================================================
   2. NAVBAR BÖLÜMÜ (Navbar.razor)
   ========================================================================== */
.navbar-wrapper {
    background-color: var(--beyaz);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    color: var(--koyu-renk);
    transition: 0.3s;
}

.logo-text-p {
    color: var(--ana-renk);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

    .nav-links a {
        text-decoration: none;
        color: var(--koyu-renk);
        font-weight: 500;
        transition: 0.3s;
    }

        .nav-links a:hover {
            color: var(--ana-renk);
        }

.nav-btn {
    background: var(--ana-renk);
    color: white !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.3);
    display: inline-flex;
    align-items: center;
}

    .nav-btn:hover {
        transform: scale(1.05);
        background-color: #00b5b1 !important;
    }

/* ==========================================================================
   LOGO VE NAVBAR STİLLERİ
   ========================================================================= */

/* Logo Link Konteyneri */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%; /* Navbar yüksekliğine uyum sağla */
    padding: 5px 0; /* Üstten ve alttan küçük bir nefes alma boşluğu */
}

/* 🖼️ Logonun Kendisi - İşte Kritik Boyutlandırma */
.main-logo {
    height: 55px; /* İşte ideal yükseklik. Müşteri ne büyük der, ne küçük. */
    width: auto; /* En-boy oranını bozmadan otomatik genişlik */
    display: block;
    object-fit: contain; /* Resmin kutu içinde düzgün kalmasını garantiler */
}

/* Arama motorları için gizli başlık (SEO) */
.logo-text-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 📱 Mobil Uyumluluk İçin Ekstra Dokunuş */
@media (max-width: 768px) {
    .main-logo {
        height: 45px; /* Çok küçük telefonlarda logoyu biraz daha küçültelim */
    }
}
/* ==========================================================================
   HERO BÖLÜMÜ (Eski Sade Tasarım)
   ========================================================================== */
/* ==========================================================================
   YAZILARI RESİM ÜZERİNDEKİ BOŞLUĞA HİZALAYAN HERO
   ========================================================================== */
.hero-full-bg {
    position: relative;
    width: 100%;
    min-height: 85vh; /* Ekranın %85'ini kaplar */
    display: flex;
    align-items: center;
    /* Arka plan ayarları */
    background-image: url('images/hero.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center; /* Resmin sağı (teknisyen) her zaman görünür kalsın */
    background-color: #f8f9fa; /* Resim yüklenene kadar boşluk görünmesin */
}

.hero-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-content-box {
    max-width: 600px; /* Yazıların resmin üzerine fazla taşmamasını sağlar */
    padding: 40px;
    /* Mobilde yazıların okunması için hafif şeffaf beyaz zemin desteği (isteğe bağlı) */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border-radius: 20px;
}

/* --- Yazı Stilleri --- */
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #2d3436;
    line-height: 1.1;
    margin: 20px 0;
}

.highlight {
    color: #00cec9;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #636e72;
    margin-bottom: 35px;
}

/* --- Buton Stilleri --- */
.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #00cec9;
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 206, 201, 0.2);
    transition: 0.3s;
}

.btn-whatsapp {
    background: #25D366;
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

    .btn-primary:hover, .btn-whatsapp:hover {
        transform: translateY(-3px);
    }

/* ==========================================================================
   RESPONSIVE (MOBİL) AYARLAR
   ========================================================================== */

@media (max-width: 992px) {
    .hero-full-bg {
        /* Mobilde resim yazının altına gelsin diye ayar */
        background-position: center top;
        min-height: auto;
        padding: 60px 0;
    }

    .hero-container {
        justify-content: center;
    }

    .hero-content-box {
        text-align: center;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.9); /* Mobilde resmin üzerinde yazı okunabilsin diye */
        margin: 0 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        justify-content: center;
    }
}
/* ==========================================================================
   4. HİZMETLER BÖLÜMÜ (Services.razor) - YENİ RESİMLİ TASARIM
   ========================================================================== */
.services-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden; /* Resmin köşelerinin yuvarlak kalması için */
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border-color: var(--ana-renk);
    }

.card-img {
    width: 100%;
    height: 230px;
    object-fit: contain; /* 'cover' yerine 'contain' yaptık */
    background-color: #f9f9f9; /* Boşluk kalırsa arkası çirkin görünmesin diye hafif gri bir zemin */
    display: block;
    padding: 10px; /* Resim kenarlara çok yapışmasın derseniz ekleyebilirsiniz */
}

.card-body {
    padding: 25px;
    text-align: left;
}

    .card-body h3 {
        margin-bottom: 12px;
        color: var(--koyu-renk);
        font-size: 1.4rem;
    }

    .card-body p {
        color: var(--text-gri);
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

/* Mobilde resim yüksekliğini biraz azaltalım */
@media (max-width: 768px) {
    .card-img {
        height: 200px;
    }
}
/* ==========================================================================
   FOOTER TASARIMI
   ========================================================================== */
.site-footer {
    background-color: var(--soft-gri);
    padding: 80px 0 0 0;
    border-top: 1px solid var(--kenarlik);
    color: var(--text-gri);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr; /* Sütun genişlikleri */
    gap: 50px;
    padding-bottom: 50px;
}

/* Logo ve Yazı */
.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 350px;
}

/* Başlıklar */
.site-footer h4 {
    color: var(--koyu-renk);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Linkler */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-gri);
    transition: 0.3s;
}

    .footer-links a:hover {
        color: var(--ana-renk);
        padding-left: 5px;
    }

/* İletişim */
.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Alt Telif Hakkı Bandı */
/* --- Footer Bottom Düzenlemesi --- */
.footer-bottom-flex {
    display: flex;
    justify-content: space-between; /* Yazıları iki uca yaslar */
    align-items: center;
    flex-wrap: wrap; /* Mobilde taşmasın diye */
    gap: 15px;
}

.developer-credit {
    font-size: 0.85rem;
    color: var(--text-gri);
}

.abodev-link {
    text-decoration: none;
    color: var(--koyu-renk); /* Senin markan biraz daha belirgin olsun */
    margin-left: 5px;
    position: relative;
    transition: 0.3s;
}

    .abodev-link strong {
        color: var(--ana-renk); /* Markanı turkuaz renkle vurgulayalım */
        letter-spacing: 1px;
    }

    .abodev-link:hover {
        opacity: 0.8;
        transform: translateY(-2px);
        display: inline-block;
    }

/* 📱 Mobil Uyumluluk İçin Ekstra */
@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column; /* Mobilde yazılar alt alta gelsin */
        text-align: center;
    }
}

/* 📱 Footer Mobil Uyumluluk */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Mobilde her şey alt alta */
        text-align: center;
        gap: 40px;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-logo {
        margin: 0 auto 20px auto;
    }
}

/* ==========================================================================
   6. RESPONSIVE (MOBİL & TABLET AYARLARI)
   ========================================================================== */

/* Masaüstü Ayarları (768px ve üstü) */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: left;
        padding: 100px 0;
    }

    .hero-text h1 {
        font-size: 3.8rem;
    }

    .hero-text p {
        margin-left: 0;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobil Ayarları (768px ve altı) */
@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Küçük Telefon Ayarları (600px ve altı) */
@media (max-width: 600px) {
    .nav-link-item {
        display: none;
    }

    .btn-text {
        display: none;
    }

    .logo {
        font-size: 18px;
    }

    .nav-btn {
        padding: 8px 12px !important;
        font-size: 16px;
    }

    .navbar {
        padding: 5px 0;
    }
}

/* ==========================================================================
   7. ÖZELLİKLER BÖLÜMÜ (Features.razor)
   ========================================================================== */
.features-section {
    background-color: var(--koyu-renk);
    color: white;
    padding: 50px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    margin-bottom: 10px;
    color: var(--ana-renk);
}

/* ==========================================================================
   GALERİ BÖLÜMÜ (Resimli Grid)
   ========================================================================== */
.gallery-grid {
    display: grid;
    /* Masaüstünde 4'lü, tablette 3'lü, mobilde 1 veya 2'li dizecek otomatik yapı */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

/* Kategori Rozeti (Öncesi/Sonrası vb.) */
.gallery-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: var(--koyu-renk);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Resim Konteyneri */
.gallery-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px; /* Sabit yükseklik */
    line-height: 0; /* Alttaki boşluğu engeller */
}

/* 🖼️ Gerçek Resim Stili */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmin en-boy oranını bozmadan kutuya sığdırır */
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1); /* Hafif zum efekti */
}

/* Üzerine Gelince Çıkan Katman (Overlay) */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0)); /* Alttan koyu geçiş */
    display: flex;
    align-items: flex-end; /* Yazıyı alta hizala */
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .gallery-overlay span {
        color: white;
        font-size: 1.1rem;
        font-weight: 600;
        transform: translateY(10px);
        transition: transform 0.3s ease;
    }

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

    .gallery-item:hover .gallery-overlay span {
        transform: translateY(0);
    }

/* ==========================================================================
   9. SIKÇA SORULAN SORULAR (Faq.razor)
   ========================================================================== */
.faq-section {
    padding: 60px 20px;
    background: #fff;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faq-item h5 {
    font-size: 1.1rem;
    color: var(--ana-renk);
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-gri);
}

/* ==========================================================================
   10. İLETİŞİM VE FORM BÖLÜMÜ (Contact.razor)
   ========================================================================== */
.contact-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Form alanı daha geniş */
    gap: 0;
    background: var(--beyaz);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    margin-top: 40px;
}

/* Form Alanı */
.contact-form {
    padding: 50px;
    background-color: var(--beyaz);
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-family: inherit;
        transition: 0.3s;
    }

        .form-group input:focus {
            border-color: var(--ana-renk);
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 206, 201, 0.1);
        }

.submit-btn {
    background: var(--ana-renk);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

    .submit-btn:hover {
        background: #00b5b1;
        transform: translateY(-2px);
    }

/* Sidebar Bilgi Alanı */
.contact-sidebar {
    padding: 50px;
    background-color: var(--koyu-renk);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

    .info-item .icon {
        font-size: 1.5rem;
    }

.wa-btn {
    display: block;
    background: #25D366;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

/* Form Mobil Uyumluluk */
@media (max-width: 992px) {
    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-form, .contact-sidebar {
        padding: 30px;
    }
}
/* Harita Bölümü Stili */
.contact-map {
    width: 100%;
    min-height: 400px; /* Mobilde ve masaüstünde yeterli yükseklik */
    background: #e5e3df;
    line-height: 0; /* Altta oluşabilecek boşluğu engeller */
}

    .contact-map iframe {
        width: 100%;
        height: 100%;
        filter: grayscale(0.2) contrast(1.1); /* Hafif modern bir dokunuş, isterseniz silebilirsiniz */
        transition: 0.5s;
    }

        .contact-map iframe:hover {
            filter: grayscale(0); /* Üzerine gelince renkler canlansın */
        }
/* ==========================================================================
   11. WHATSAPP SABİT BUTON (WhatsAppButton.razor)
   ========================================================================== */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: 0.3s;
}

    .whatsapp-fixed img {
        width: 35px;
        height: 35px;
    }

    .whatsapp-fixed:hover {
        transform: scale(1.1) rotate(10deg);
    }

.tooltip-text {
    position: absolute;
    right: 75px;
    background: #2d3436;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.whatsapp-fixed:hover .tooltip-text {
    opacity: 1;
}

/* ==========================================================================
   12. MARKA BANDI (BrandBar.razor)
   ========================================================================== */
.brand-bar {
    background-color: var(--acik-gri);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.brand-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.7;
    font-weight: 600;
    font-size: 0.9rem;
}

.brand-list {
    display: flex;
    gap: 30px;
}

.brand-item {
    color: var(--koyu-renk);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .brand-wrapper {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .whatsapp-fixed {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Yorumları Yan Yana Dizen Ray Sistemi */
.testimonial-track {
    display: flex; /* Kartları yan yana dizer */
    flex-wrap: nowrap; /* Kartların alt satıra geçmesini engeller */
    gap: 20px; /* Kartlar arası boşluk */
    overflow-x: auto; /* Taşarsa yatayda kaydırma çubuğu çıkarır */
    padding: 20px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Mobilde yağ gibi kayması için */
}

    /* Kaydırma çubuğunu şıklaştıralım (isteğe bağlı) */
    .testimonial-track::-webkit-scrollbar {
        height: 6px;
    }

    .testimonial-track::-webkit-scrollbar-thumb {
        background: var(--ana-renk);
        border-radius: 10px;
    }

/* Kartların boyutu sabit kalsın ki ezilmesinler */
.testimonial-card {
    flex: 0 0 auto; /* Bu satır çok kritik! Kartın büzülmesini engeller */
    width: 320px; /* Kart genişliği */
    background: var(--soft-gri);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--kenarlik);
    transition: 0.3s;
}
