@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   1. TEMEL DEĞİŞKENLER VE AYARLAR
   ========================================================================== */
:root {
    --primary: #2563eb;       /* Ana Mavi */
    --primary-dark: #1e40af;  /* Koyu Mavi */
    --accent: #06b6d4;        /* Turkuaz Vurgular */
    --dark: #0f172a;          /* Zemin Rengi */
    --light: #f1f5f9;         /* Açık Gri Zemin */
    --gray: #64748b;          /* Metin Rengi */
    --white: #ffffff;
    
    --glass: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 16px;
    --whatsapp: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; scroll-behavior: smooth; }

html, body { 
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden !important; /* YATAY TAŞMAYI KİLİTLE */
    position: relative;
}

a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* --- TİPOGRAFİ --- */
h1, h2, h3, h4 { color: var(--dark); font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- LAYOUT --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; position: relative; }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); color: var(--white); }
.bg-dark h2, .bg-dark h3, .bg-dark p { color: var(--white); opacity: 0.9; }

/* --- BUTTONS --- */
.btn-primary {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    padding: 16px 40px; border-radius: 50px; font-weight: 600;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: none; cursor: pointer; transition: 0.3s;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4); }

.btn-secondary {
    background: var(--white); color: var(--primary) !important;
    padding: 16px 40px; border-radius: 50px; font-weight: 600;
    box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 2px solid transparent; cursor: pointer;
}
.btn-secondary:hover { background: var(--light); transform: translateY(-3px); }

.btn-white {
    background: var(--white); color: var(--primary) !important;
    padding: 16px 40px; border-radius: 50px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: none; transition: 0.3s;
}
.btn-white:hover { transform: translateY(-3px); background: #f8fafc; }

.btn-outline-white {
    background: transparent; border: 2px solid rgba(255,255,255,0.4); color: white !important;
    padding: 14px 40px; border-radius: 50px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 10px; transition: 0.3s;
}
.btn-outline-white:hover { background: white; color: var(--primary) !important; border-color: white; }

/* --- HEADER --- */
.top-bar { background: var(--dark); color: rgba(255,255,255,0.8); padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-bar i { color: var(--accent); margin-right: 6px; }
.main-header {
    background: var(--glass); backdrop-filter: blur(12px);
    padding: 15px 0; position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03); border-bottom: 1px solid rgba(0,0,0,0.05);
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.nav-menu ul { display: flex; gap: 30px; align-items: center; }
.nav-menu a { font-weight: 500; font-size: 1rem; color: var(--dark); position: relative; }
.nav-menu a:hover { color: var(--primary); }
.mobile-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--dark); }

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh; display: flex; align-items: center; position: relative;
    background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%); z-index: 1;
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 800px; padding-top: 40px; }
.hero h1 { color: var(--white); font-size: 4rem; line-height: 1.1; margin-bottom: 25px; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.25rem; margin-bottom: 40px; font-weight: 300; }
.hero-badge {
    background: rgba(255,255,255,0.15); padding: 8px 20px; border-radius: 30px;
    font-size: 0.9rem; color: var(--white); border: 1px solid rgba(255,255,255,0.3);
    display: inline-block; margin-bottom: 25px; backdrop-filter: blur(5px);
}
.hero .text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* --- PAGE HEADER TASARIMI --- */
.page-header {
    padding: 60px 0;
    margin-top: -20px; /* Menü ile birleşmesi için */
    border-bottom: 3px solid var(--primary);
    text-align: center;
}
.page-header-area {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax etkisi için */
    padding: 140px 0 80px; /* Üstten boşluk header'ın altına girmesini sağlar */
    margin-top: -85px; /* Menünün arkasından başlaması için */
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

/* Koyu Renk Katmanı (Overlay) */
.page-header-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(37, 99, 235, 0.8) 100%);
    z-index: 1;
}

/* Dekoratif Arka Plan Deseni (Opsiyonel) */
.page-header-area::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--white) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2; /* Yazıları overlay'in üzerine çıkar */
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    padding: 8px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.breadcrumb a:hover {
    color: var(--white);
}
.breadcrumb i {
    font-size: 0.7rem;
    color: var(--accent);
}
.breadcrumb span {
    color: var(--white);
    font-weight: 700;
}

/* --- KARTLAR & GRID --- */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title span { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.section-title h2 { font-size: 2.8rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
    background: var(--white); padding: 40px 30px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: 0.4s; position: relative; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03); z-index: 1;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card h3 { color: var(--dark); margin-bottom: 15px; font-size: 1.4rem; }
.icon-box { width: 60px; height: 60px; background: rgba(37,99,235,0.1); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; transition: 0.3s; }
.service-card:hover .icon-box { background: var(--primary); color: white; transform: rotateY(360deg); }

/* --- CTA AREA --- */
.cta-area {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    padding: 100px 0; text-align: center; color: var(--white); position: relative; overflow: hidden;
}
.cta-area h2 { color: var(--white); margin-bottom: 15px; }
.cta-area p { color: rgba(255,255,255,0.8); }

/* --- GALERİ (Masaüstü) --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(37, 99, 235, 0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay i { color: white; font-size: 2rem; }

/* --- FORM --- */
.contact-form-wrapper { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 14px 20px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 1rem; transition: 0.3s; background: #f8fafc; }
.form-control:focus { border-color: var(--primary); background: white; outline: none; }
.alert-success { background: #dcfce7; color: #166534; padding: 15px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #bbf7d0; display: flex; align-items: center; gap: 10px; }

/* --- SLIDERS & ANIMATIONS --- */
.brand-slider { background: white; box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125); height: 100px; overflow: hidden; position: relative; display: flex; align-items: center; }
.slide-track { animation: scroll 40s linear infinite; display: flex; width: calc(250px * 14); }
.brand-slide { height: 100px; width: 250px; display: flex; align-items: center; justify-content: center; padding: 0 30px; }
.brand-slide img { max-height: 60px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.brand-slide img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 7)); } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- FOOTER --- */
.main-footer { background: #0b1120; color: #94a3b8; padding: 80px 0 30px; }
.main-footer h3 { color: var(--white); margin-bottom: 25px; font-size: 1.3rem; }
.main-footer ul li { margin-bottom: 10px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; margin-top: 50px; font-size: 0.9rem; }
.reklime-link { color: var(--white); font-weight: 700; transition: 0.3s; }
.reklime-link:hover { color: var(--accent); text-shadow: 0 0 10px rgba(6, 182, 212, 0.5); }

/* --- FLOAT ACTIONS (Varsayılan: Gizli) --- */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: white; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); z-index: 998; padding: 10px 20px; justify-content: space-around; gap: 10px; }
.mobile-btn { flex: 1; text-align: center; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; display:flex; align-items:center; justify-content:center; gap:5px; }
.mb-call { background: var(--primary); color: white; }
.mb-wp { background: var(--whatsapp); color: white; }
.float-wp { position: fixed; bottom: 30px; right: 30px; background: var(--whatsapp); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); z-index: 999; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }


/* --- HİZMETLER SAYFASI ÖZEL --- */
.content-body ul {
    margin-bottom: 20px;
    list-style: none;
}
.content-body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
.content-body ul li::before {
    content: "\f00c"; /* FontAwesome Check İkonu */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}
.content-body h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    margin-top: 25px;
    color: var(--dark);
}

/* ==========================================================================
   MOBİL VE TABLET UYUMLULUK (SADECE BURASI MOBİLİ ETKİLER)
   ========================================================================== */
@media (max-width: 991px) {
    
    /* 1. LAYOUT RESET (Inline PHP stillerini ezmek için !important kullanıyoruz) */
    .container { width: 100%; padding: 0 20px; }
    .section-padding { padding: 50px 0; }
    .top-bar, .hide-mobile { display: none !important; }

    /* Gridleri Tek Sütuna Zorla */
    .grid-3 { grid-template-columns: 1fr !important; gap: 40px; }
    div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 40px !important; }

    /* 2. HEADER & MENU */
    .mobile-toggle { 
        display: block; 
        z-index: 10001; 
        position: relative; /* Buton her zaman tıklanabilir olsun */
    }

    .nav-menu {
        position: fixed; 
        top: 0; 
        right: 0; 
        width: 80%; /* Genişlik %80 olsun */
        max-width: 300px;
        height: 100vh; 
        background: var(--white); 
        display: flex;
        flex-direction: column; 
        padding: 80px 30px 40px 30px;
        
        box-shadow: -5px 0 20px rgba(0,0,0,0.1); 
        z-index: 10000; 
        overflow-y: auto;
        
        /* KRİTİK DÜZELTME BURADA */
        transform: translateX(100%); /* Sağa it */
        visibility: hidden; /* Kapalıyken tarayıcı görmesin (Boşluk yapmaz) */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        justify-content: flex-start;
    }

    .nav-menu.active { 
        transform: translateX(0); /* İçeri çek */
        visibility: visible; /* Artık görünür yap */
    }

    .nav-menu ul { 
        flex-direction: column; 
        align-items: flex-start; 
        width: 100%; 
        gap: 20px; 
    }
    
    .nav-menu ul li { 
        width: 100%; 
        border-bottom: 1px solid #f1f5f9; 
        padding-bottom: 15px; 
    }
    
    .nav-menu a { 
        font-size: 1.2rem; 
        display: block; 
        color: var(--dark);
        font-weight: 600;
    }

    /* Hizmetler Zig-Zag Düzeltmesi (Mobilde Hepsi Alt Alta) */
    .grid-2-service {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }
    /* Mobilde her zaman görseli en başa al */
    .service-img { order: -1 !important; margin-bottom: 20px; }
    .service-text { order: 1 !important; }
    /* Görseli mobilde tam ortala */
    .service-img img { min-height: 250px !important; }

    /* 3. HERO & FONT BOYUTLARI */
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .section-title h2 { font-size: 2rem; }

    /* 4. SORUNLU ALANLAR DÜZELTMESİ */

    /* A) Blog Sidebar (Sayfa altına kayması için) */
    .sidebar { width: 100% !important; margin-top: 40px !important; padding: 0 !important; }
    .blog-content img { height: auto !important; }

    /* B) Hakkımızda Dönen Animasyon (Boyut küçültme) */
    .spin-container { width: 260px !important; height: 260px !important; margin: 0 auto; }
    .spin-border { border-width: 2px !important; }
    .spin-img { width: 240px !important; height: 240px !important; }

    /* C) Galeri (Mobilde 2 sütun) */
    .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .gallery-item { height: 150px; }
    
    /* D) Fancybox (Resim Büyümesi Sorunu) */
    .fancybox__content { width: 100% !important; height: auto !important; padding: 0 !important; }
    .fancybox__image {
        max-width: 100vw !important;
        max-height: 80vh !important;
        object-fit: contain !important;
    }
    .fancybox__toolbar { background: rgba(0,0,0,0.6); }

    /* E) Harita */
    iframe { height: 300px !important; pointer-events: none; }

    /* F) İletişim Formu (Sıralama) */
    .contact-form-wrapper { order: -1; padding: 25px !important; }
    .contact-info-area { order: 1; }

    /* 5. ALT BAR & FLOAT */
    .main-footer { padding-bottom: 100px; }
    .mobile-bottom-nav { display: flex; }
    .float-wp { bottom: 85px; right: 20px; width: 50px; height: 50px; font-size: 26px; }
}

/* Slider İyileştirmeleri */
.swiper-slide {
    height: auto; /* Tüm kartları eşit boya zorlar */
}
.swiper-pagination-bullet-active {
    background-color: var(--primary) !important; /* Nokta rengini mavi yapar */
}
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: 1fr !important; } /* Çok küçük ekranda tek sütun */
    .spin-container { width: 220px !important; height: 220px !important; }
    .spin-img { width: 200px !important; height: 200px !important; }
}
@media (max-width: 768px) {
    .page-header { padding: 60px 0; }
    .page-header-area { padding: 120px 0 60px; margin-top: -80px; }
    .page-title { font-size: 2rem; }
}