/* GENEL AYARLAR VE RENK PALETİ */
:root {
    --mavi: #3498db;
    --acik-mavi: #add8e6;
    --antrasit: #2b2b2b;
    --siyah: #111111;
    --beyaz: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--antrasit);
    color: var(--beyaz);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    opacity: 0; /* JS ile smooth giriş için */
    transition: opacity 1s ease-in-out;
    overflow-x: hidden;
}

/* KÜÇÜK BEYAZ HAREKETLİ PARTICLE (JS tetikler) */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* MOUSE ETRAFINDAKİ MAVİ BLUR IŞIK EFEKTİ */
#mouse-blur {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: top 0.05s ease-out, left 0.05s ease-out;
}

/* HEADER VE MENÜ TASARIMI */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(43, 43, 43, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo-container h1 {
    margin: 0;
    font-size: 24px;
    color: var(--beyaz);
}

/* ŞIK VE KİBAR AÇILIR MENÜ (Tüm ekranı kaplamaz) */
    nav.main-menu {
        position: absolute !important;
        top: 100%; 
        left: 5%; /* Kenarlardan boşluk bırakıp kutu görünümü verir */
        width: 90%; /* Sadece ekranın %90'ını kaplar */
        background: rgba(17, 17, 17, 0.98) !important; 
        border-radius: 0 0 15px 15px; /* Alt köşeleri yumuşatılmış */
        box-shadow: 0 15px 30px rgba(0,0,0,0.8);
        flex-direction: column !important;
        gap: 5px !important;
        padding: 15px 0 !important; /* Yukarıdan aşağıya boşluğu kısalttık */
        
        opacity: 0 !important;
        transform: translateY(-15px);
        pointer-events: none;
        transition: all 0.3s ease-in-out;
    }

    /* JavaScript çalıştığında menüyü gösterir */
    nav.main-menu.active {
        opacity: 1 !important;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Telefondaki slayt yazı boyutları (ekrana sığması için) */
    .slide-content h2 { font-size: 2.2rem !important; }
    .slide-content p { font-size: 1.1rem !important; }

/* Header Buton Efektleri */
.nav-btn {
    text-decoration: none;
    color: var(--beyaz);
    background: transparent;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 0px; /* Normalde çerçeve/radius yok */
}

.nav-btn:hover {
    color: var(--mavi);
}

.nav-btn:active {
    background-color: var(--mavi);
    color: var(--beyaz);
    border-radius: 12px; /* Tıklayınca kenarları yumuşatılmış mavi arkaplan */
    transform: scale(0.95); /* Tıklama efekti */
}

/* Bize Ulaşın Butonu (Belirgin Hareketli) */
.contact-btn {
    background: transparent;
    border: 2px solid var(--mavi);
    border-radius: 25px;
    color: var(--beyaz);
    padding: 10px 25px;
    text-decoration: none;
    animation: breatheContact 2s infinite alternate;
}

@keyframes breatheContact {
    0% { box-shadow: 0 0 5px var(--mavi); }
    100% { box-shadow: 0 0 20px var(--acik-mavi), inset 0 0 10px var(--mavi); }
}

/* --- SLIDER BÖLÜMÜ KESİN ÇÖZÜM --- */
.slider-section {
    position: relative;
    height: 85vh; 
    overflow: hidden;
}

.slide {
    position: absolute !important; /* Slaytları alt alta değil, üst üste bindirir */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Başlangıçta gizler, JavaScript sırası geleni açar */
    transition: opacity 1.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Taşmayı ve ezilmeyi önleyen mükemmel ayar */
    background-size: cover !important; 
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.slide.active {
    opacity: 1 !important; /* Sadece aktif slaytı gösterir */
    z-index: 1;
}
/* HİZMETLERİMİZ KARTLARI */
.services-section {
    background-color: var(--siyah);
    padding-bottom: 80px;
}

.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 50px;
}

.service-card {
    background-color: var(--antrasit);
    width: 320px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.4s ease;
    /* Beyaz mavi çerçeve nefes efekti */
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: cardBreathe 3s infinite alternate;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

@keyframes cardBreathe {
    0% { border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 0 10px rgba(255,255,255,0.1); }
    100% { border-color: var(--mavi); box-shadow: 0 0 20px var(--mavi), inset 0 0 15px rgba(52, 152, 219, 0.2); }
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    /* Başlıklara da mavi beyaz geçiş */
    background: linear-gradient(90deg, var(--beyaz), var(--acik-mavi));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 25px;
}

/* SATIN AL / GÖZ AT BUTONLARI */
.action-btn {
    display: inline-block;
    padding: 10px 20px;
    color: var(--beyaz);
    text-decoration: none;
    border: 1px solid var(--beyaz);
    transition: all 0.3s ease;
    border-radius: 0;
}

.action-btn:hover {
    color: var(--mavi);
    border-color: var(--mavi);
}

.action-btn:active {
    background-color: var(--mavi);
    color: var(--beyaz);
    border-radius: 12px;
}

/* ÖRNEK SİTE ŞABLONLARI (İframe sergileme) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 50px 50px 50px;
}

.iframe-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    border: 3px solid transparent;
    border-radius: 10px;
    animation: cardBreathe 4s infinite alternate;
}

.iframe-container iframe {
    width: 400%;
    height: 400%;
    transform: scale(0.25);
    transform-origin: top left;
    pointer-events: auto; /* Müşteri tıklayabilsin diye */
}

/* MEDYA GALERİLERİ (Resim ve Video) */
.media-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 50px 50px 50px;
}

.media-box {
    width: 350px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    animation: cardBreathe 3s infinite alternate;
    transition: transform 0.3s ease;
}

.media-box:hover {
    transform: scale(1.05);
}

.media-box img, .media-box video, .media-box iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FOOTER */
footer {
    background-color: #1a1a1a;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    flex-wrap: wrap;
}

.footer-info p { margin: 8px 0; font-size: 1rem; }
.footer-center { font-size: 1.5rem; font-weight: bold; color: var(--acik-mavi); }
.social-icons { display: flex; gap: 15px; }

.social-icons a {
    color: #666; /* Soluk başlangıç */
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Sosyal medya hover renkleri */
.social-icons a.fb:hover { color: #1877F2; }
.social-icons a.ig:hover { color: #E1306C; }
.social-icons a.tk:hover { color: #ff0050; }

/* --- HAMBURGER MENÜ MASAÜSTÜ BAŞLANGIÇ AYARI --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--beyaz);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* --- HAMBURGER İKONU (MASAÜSTÜNDE GİZLİ) --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--beyaz);
    transition: all 0.3s ease;
}

/* --- MOBİL GÖRÜNÜM --- */
@media screen and (max-width: 768px) {
    #main-header {
        justify-content: space-between !important;
        padding: 15px 25px !important;
    }
    
    .contact-menu { display: none !important; } /* Mobilde butonu gizler */
    .hamburger-btn { display: flex !important; } /* Mobilde ikonu gösterir */

    /* Menü Kapalı Hali (Ekranı kaplamayan kibar kutu) */
    nav.main-menu {
        position: absolute !important;
        top: 100%; 
        left: 5%; 
        width: 90%; 
        background: rgba(20, 20, 20, 0.98) !important; 
        border-radius: 0 0 15px 15px; 
        box-shadow: 0 15px 30px rgba(0,0,0,0.8);
        flex-direction: column !important;
        gap: 5px !important;
        padding: 15px 0 !important;
        text-align: center;
        
        /* Gizleme ayarı */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    /* Menü Açık Hali (Tıklanınca devreye girer) */
    nav.main-menu.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-btn {
        font-size: 15px !important;
        padding: 12px 0 !important;
        display: block;
    }

    /* X İşareti Animasyonu */
    .hamburger-btn.active .bar:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
    .hamburger-btn.active .bar:nth-child(2) { opacity: 0; }
    .hamburger-btn.active .bar:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
    
    /* Footer ve Slider Yazıları Mobil Ayarı */
    .footer-center { text-align: center; margin: 20px 0; }
    footer { flex-direction: column; text-align: center; gap: 20px; }
    .slide-content h2 { font-size: 2.2rem !important; }
    .slide-content p { font-size: 1.1rem !important; }
}
/* --- EKSTRA: SLIDER RESİMLERİNİN TAŞMASINI ÖNLEYEN KESİN ÇÖZÜM --- */
.slide {
    background-size: 100% 100% !important; /* Resmi taşırıp kesmez, kutuya %100 sığdırır */
    background-repeat: no-repeat !important;
    background-position: center !important;
}
/* PLAN KARTLARI İÇİN EKSTRALAR (style.css en altına ekle) */
.price-text {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 15px 0;
    /* Fiyatlar için ekstra belirgin beyaz-mavi geçiş efekti */
    background: linear-gradient(90deg, var(--beyaz), var(--mavi), var(--beyaz));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 3s linear infinite;
}

.plan-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.plan-list li {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.4;
}

.plan-list li::before {
    content: "✓ ";
    color: var(--mavi);
    font-weight: bold;
}

/* 1080x1920 (TikTok/Reels) Dikey Videolar İçin Kutu Boyutu */
.media-box.vertical {
    width: 250px; 
    height: 445px; /* 9:16 dikey formata uygun uzunluk */
}

.media-box.vertical video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Videoyu kutuya bozmadan, tam doldurarak oturtur */
    border-radius: 10px;
}
/* Header Logo Ayarları */
.header-logo {
    max-height: 60px; /* Logonun yüksekliğini göz zevkine göre buradan artırıp azaltabilirsin */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05); /* Üzerine gelince logonun hafifçe büyümesini sağlar */
}
/* --- SLIDER YAZI BOYUTLARI --- */
.slide-content h2 {
    font-size: 3.5rem !important; /* Masaüstü dev başlık */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    margin-bottom: 15px;
    font-weight: bold;
}

.slide-content p {
    font-size: 1.5rem !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.9);
    max-width: 800px;
    margin: 0 auto;
}
/* =========================================
   SON VE KESİN DÜZELTME (MENÜ, BUTON VE BAŞLIK)
   ========================================= */

/* 1. SOLA YAPIŞAN BAŞLIĞI ORTALAMA VE PARLATMA */
.section-title {
    text-align: center !important;
    font-size: 3rem !important;
    padding: 50px 0 20px 0 !important;
    background: linear-gradient(90deg, var(--beyaz), var(--mavi), var(--beyaz)) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: textGradient 3s linear infinite !important;
    width: 100% !important;
    display: block !important;
}

/* 2. MASAÜSTÜ MENÜ VE BUTON ÇILGINLIĞINI DÜZELTME */
@media screen and (min-width: 769px) {
    /* Menülerin görünmez katman altında kalıp tıklanmamasını çözer */
    nav.main-menu {
        display: flex !important;
        flex-direction: row !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        background: transparent !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 20px !important;
        pointer-events: auto !important; /* LİNKLERİ TEKRAR TIKLANABİLİR YAPAR */
        z-index: 1005 !important;
    }
    
    .nav-btn {
        pointer-events: auto !important; /* Butonların üzerindeki blokajı kaldırır */
    }
    
    .hamburger-btn {
        display: none !important;
    }

    /* "Hemen Ulaşın" butonunun akordeon gibi ezilmesini engeller */
    .contact-menu {
        display: block !important;
        margin-left: auto !important;
        flex-shrink: 0 !important; /* Kutuya sığmak için küçülmeyi reddeder */
    }

    .contact-btn {
        white-space: nowrap !important; /* Yazının alt alta inip yamulmasını KESİNLİKLE engeller */
        display: inline-block !important;
        pointer-events: auto !important;
    }
}
