/* --- GENEL AYARLAR (RESET) --- */
:root {
    --primary-color: #2E3439; /* Koyu Gri */
    --accent-color: #A9BFD1;  /* Açık Mavi/Gri */
    --font-main: 'Rubik', sans-serif;
    --font-heading: 'Nunito', sans-serif;
    --bg-light: #ffffff;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--primary-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTON STİLLERİ --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background-color: #444;
}

.btn-outline {
    border: 2px solid rgba(46,52,57, 0.1);
    color: var(--primary-color);
}
.btn-outline:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

/* --- HEADER --- */
.site-header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px; /* Logo boyutunu sınırladık */
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    font-size: 16px;
    color: var(--primary-color);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-color);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none; /* Mobilde açacağız */
    font-size: 24px;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 80px 0;
    background-color: #fff;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-image, .hero-content {
    flex: 1; /* 50% - 50% Bölüşüm */
}

/* Sitedeki orjinal düzende görsel solda, yazı sağda gibiydi,
   ama Elementor'da bazen tersi olur. Flex ile kolayca yer değişir. */

.sub-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--accent-color); /* Gradient yerine düz renk */
    margin-bottom: 10px;
    font-weight: 700;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-desc {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.hero-form {
    display: flex;
    gap: 10px;
}

.hero-form input {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
    font-family: var(--font-main);
}

/* --- RESPONSIVE (MOBİL) --- */
/* --- MOBİL MENÜ STİLLERİ (style.css EN ALTINA) --- */

@media (max-width: 768px) {
    /* İkonu Görünür Yap */
    .mobile-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--primary-color);
    }

    /* Menüyü Başlangıçta Gizle */
    .main-nav {
        display: none; /* Gizli */
        position: absolute;
        top: 100%; /* Header'ın hemen altı */
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    /* JavaScript ile 'active' sınıfı eklenince görünür yap */
    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease; /* Kayma efekti */
    }

    /* Linkleri Alt Alta Diz */
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 10px;
        border-bottom: 1px solid #f9f9f9;
    }
}

/* Basit Açılma Animasyonu */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- HİZMETLER BÖLÜMÜ --- */
.services-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Hafif gri arka plan ayrımı için */
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.sub-heading {
    color: var(--accent-color);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.main-heading {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-desc {
    color: #666;
    margin-bottom: 30px;
}

/* Hizmetler Grid Yapısı */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive Grid */
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Linki tüm kutuya yaymak için */
    border: 1px solid #eee;
}

.service-item:hover {
    transform: translateY(-10px); /* Hoverda yukarı kalkma efekti */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon-box img {
    max-width: 80px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Tüm kutuyu tıklanabilir yapma hilesi */
.service-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

/* --- İSTATİSTİKLER BÖLÜMÜ --- */
.stats-section {
    padding: 80px 0;
    background: #fff;
}

.stats-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 sütunlu yapı */
    gap: 40px;
    flex: 1;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    /* Metne gradient (renk geçişi) verme - Webkit */
    background: linear-gradient(90deg, #2E3439 0%, #A9BFD1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
}

.stats-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.stats-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- RESPONSIVE DÜZENLEMELER --- */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
    }
    .stats-image {
        order: -1; /* Görseli mobilde üste al */
        width: 100%;
    }
    .stats-grid {
        width: 100%;
        text-align: center;
    }
    .stat-item {
        text-align: center;
    }
}
/* --- REFERANSLAR (SLIDER) --- */
.references-section {
    padding: 60px 0;
    overflow: hidden; /* Taşmaları gizle */
}

.slider-area {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Slider Kenarlarına Gölgelendirme Efekti */
.slider-area::before,
.slider-area::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.slider-area::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.slider-area::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.logo-track {
    display: flex;
    width: calc(250px * 12); /* Logo genişliği x Toplam Logo Sayısı */
    animation: scroll 30s linear infinite; /* Sonsuz döngü animasyonu */
}

.slide {
    width: 250px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    filter: grayscale(100%); /* Başlangıçta siyah-beyaz */
    opacity: 0.7;
    transition: 0.3s;
}

.slide img:hover {
    filter: grayscale(0%); /* Üzerine gelince renkli */
    opacity: 1;
}

/* Animasyon Keyframes */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); } /* Yarısı kadar kaydır */
}


/* --- FOOTER (ALT BİLGİ) --- */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

/* İletişim Kutuları */
.contact-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-box .icon {
    font-size: 24px;
    color: var(--accent-color);
}

.contact-box h4 {
    margin: 0;
    font-size: 16px;
}

.contact-box span {
    font-size: 12px;
    color: #999;
}

/* Bülten Formu */
.newsletter-form {
    display: flex;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    padding: 5px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px;
    width: 100%;
    outline: none;
}

.newsletter-form button {
    background: var(--accent-color);
    border: none;
    color: var(--primary-color);
    padding: 0 15px;
    cursor: pointer;
    border-radius: 3px;
}

/* Sosyal İkonlar */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Footer Linkleri */
.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px; /* Kayma efekti */
}

/* Alt Telif Kısmı */
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .slider-area::before, .slider-area::after {
        width: 30px; /* Mobilde gölgeyi küçült */
    }
}

.stats-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya sığdırır, taşanı keser, sündürmez */
    border-radius: 20px;
    max-height: 500px; /* Çok uzun resimleri sınırlar */
}

/* İstatistikler İçin Yeni Düzen */
.stat-wrapper {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    /* Gradient Rengi Kapsayıcıya Veriyoruz */
    background: linear-gradient(90deg, #2E3439 0%, #A9BFD1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    display: inline-block; /* Yan yana durması için */
}

/* JS animasyon yaparken bozulmasın diye */
.stat-number, .symbol {
    display: inline;
}
/* --- HERO SECTION DÜZELTMELERİ --- */

/* Kapsayıcıyı hizalama sorununa karşı sabitleyelim */
.hero-container {
    display: flex;
    align-items: center; /* Dikey ortalama */
    justify-content: space-between;
    gap: 50px;
    padding: 50px 0;
}

.hero-content {
    flex: 1;
    text-align: left; /* Yazıları sola yasla (Orijinal tasarım) */
}

.hero-image {
    flex: 1;
    text-align: center; /* Resmi ortala */
}

/* Butonları yan yana tutan kutu */
.hero-btn-container {
    display: flex;
    gap: 20px; /* Butonlar arası boşluk */
    margin-top: 35px;
    align-items: center;
}

/* Buton Genel Stili */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px; /* Biraz daha dolgun butonlar */
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px; /* Hap şeklinde */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Hafif gölge */
    font-family: var(--font-heading);
}

/* Hover (Üzerine gelince) Efekti */
.btn-hero:hover {
    transform: translateY(-3px); /* Hafif yukarı kalkar */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 1. Buton: Telefon (Sitenin ana rengi) */
.primary-btn {
    background: var(--primary-color); /* Koyu Gri */
    color: #fff;
    border: 2px solid var(--primary-color);
}
.primary-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

/* 2. Buton: WhatsApp (Yeşil) */
.whatsapp-btn {
    background: #25D366;
    color: #fff;
    border: 2px solid #25D366;
}
.whatsapp-btn:hover {
    background: transparent;
    color: #25D366;
}

/* --- MOBİL UYUMLULUK (RESPONSIVE) --- */
@media (max-width: 991px) {
    .hero-container {
        flex-direction: column; /* Alt alta al */
        text-align: center; /* Her şeyi ortala */
        gap: 30px;
    }

    .hero-content {
        text-align: center; /* Mobilde yazıyı ortala */
        order: 2; /* Yazı altta olsun */
    }

    .hero-image {
        order: 1; /* Resim üstte olsun */
    }

    .hero-btn-container {
        justify-content: center; /* Butonları ortala */
        flex-direction: column; /* Mobilde butonlar alt alta olsun (daha kolay tıklanır) */
        width: 100%;
    }

    .btn-hero {
        width: 100%; /* Butonlar tam genişlik */
        max-width: 300px; /* Ama çok da devasa olmasın */
    }
}

/* --- DİNAMİK SAYFA STİLLERİ --- */

.dynamic-content-wrapper {
    padding-top: 30px;  /* Header ile arasındaki mesafe */
    padding-bottom: 60px; /* Footer ile arasındaki mesafe */
    min-height: 60vh; /* İçerik az olsa bile footer hemen yukarı çıkmasın */
}

.dynamic-page-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee; /* İnce bir çizgi ile ayırır */
    padding-bottom: 15px;
}

.dynamic-page-body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* Editörden eklenen resimler taşmasın */
.dynamic-page-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 5px;
    margin: 20px 0;
}

/* Editörden gelen listeler düzgün görünsün */
.dynamic-page-body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}
/* --- PORTFÖY SAYFASI ÖZEL STİLLERİ --- */

/* 1. PRESTIGE HERO (Başlık Alanı) */
.portfolio-hero {
    background-color: var(--primary-color); /* Koyu Kurumsal Renk */
    color: #fff;
    padding: 100px 0 120px 0; /* Geniş boşluk */
    position: relative;
    overflow: hidden;
    margin-bottom: -50px; /* Grid'in içine girmesi için */
}

.portfolio-hero .hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.portfolio-hero .hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.portfolio-hero .hero-subtitle {
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Arka planda hafif desen/gradyan */
.hero-overlay {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* 2. PRESTIGE GRID (Logoların Dizilimi) */
.portfolio-content {
    background-color: #f9f9f9; /* Hafif gri zemin */
    padding-bottom: 100px;
}

.prestige-grid {
    display: grid;
    /* Responsive Grid: Mobilde 2, Tablette 3, Masaüstünde 5 sütun */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2; /* Hero'nun üzerine çıkması için */
}

/* 3. CLIENT CARD (Logo Kutusu) */
.client-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Yumuşak gölge */
    padding: 30px;
    height: 180px; /* Hepsi sabit yükseklik */
    display: flex;
    align-items: center;     /* Dikey ortala */
    justify-content: center; /* Yatay ortala */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
    border: 1px solid transparent;
}

/* Hover Efekti: Kart yukarı kalkar, gölge artar */
.client-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

/* 4. LOGO AYARLARI (Otomatik Boyutlandırma Sihri) */
.logo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-card img {
    max-width: 100%;
    max-height: 100px; /* Logo maksimum yüksekliği */
    object-fit: contain; /* Resmi kutuya sığdırır ama kesmez/sündürmez */
    filter: grayscale(100%) opacity(0.6); /* Siyah-beyaz ve hafif soluk */
    transition: all 0.4s ease;
}

/* Hoverda Logo Canlanır */
.client-card:hover img {
    filter: grayscale(0%) opacity(1); /* Renkli ve net */
    transform: scale(1.05); /* Çok hafif büyür */
}

/* 5. "SİZİN LOGONUZ" KARTI (CTA) */
.join-us-card {
    border: 2px dashed #ddd;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.join-us-card:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.join-content {
    text-align: center;
    color: #999;
}

.join-content i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

/* Tüm kutuyu link yapma hilesi (Bootstrap mantığı) */
.stretched-link::after {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    content: "";
}

/* 6. ALT KISIM */
.portfolio-footer {
    text-align: center;
    margin-top: 80px;
}

.portfolio-footer h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-hero { padding: 60px 0 80px 0; }
    .portfolio-hero .hero-title { font-size: 32px; }
    .prestige-grid { gap: 15px; grid-template-columns: repeat(2, 1fr); } /* Mobilde 2'li */
    .client-card { height: 140px; padding: 15px; }
    .client-card img { max-height: 70px; }
}
/* --- POP ART İLETİŞİM KARTI STİLLERİ --- */

.pop-contact-wrapper {
    display: flex;
    justify-content: center; /* Kartı ortalar */
    /* padding: 20px; Bu paddingi kaldırdık çünkü zaten kolonda olacak */
}

.pop-contact-card {
    background: #ffffff;
    border: 3px solid #000000;
    box-shadow: 8px 8px 0px 0px #000000;
    padding: 30px;
    width: 100%; /* Bulunduğu kolonu kaplasın */
    transition: all 0.2s ease;
}

.pop-contact-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0px 0px var(--accent-color); /* Sitenin vurgu rengi */
}

.pop-contact-card h2 {
    margin-top: 0;
    font-family: var(--font-heading); /* Sitenin başlık fontu */
    text-transform: uppercase;
    font-weight: 900;
    font-size: 24px;
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #000;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    flex-direction: column; /* Mobilde daha iyi görünmesi için alt alta */
    gap: 5px;
}

.contact-label {
    background: #facc15; /* Pop-art sarısı */
    border: 2px solid #000;
    padding: 4px 10px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    display: inline-block;
    font-family: var(--font-heading);
    color: #000;
    box-shadow: 2px 2px 0px 0px #000; /* Etikete de gölge ekledik */
}

.contact-text {
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    font-size: 16px;
    margin-top: 5px;
}

/* WhatsApp Butonu */
.pop-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white !important; /* Link rengini zorla beyaz yap */
    text-decoration: none;
    padding: 15px 20px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px 0px #000;
    font-weight: 800;
    margin-top: 25px;
    width: 100%;
    transition: all 0.1s;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 1px;
}

.pop-whatsapp-btn:hover {
    background-color: #1ebc57;
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0px 0px #000;
    color: #fff;
}

.pop-whatsapp-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px 0px #000;
}

.pop-whatsapp-btn svg {
    margin-right: 10px;
    fill: white;
    width: 20px;
    height: 20px;
}