/* ==========================================
   MODERN OZTURKSOFT CSS - TEK KAYNAK
   ========================================== */

:root {
    --primary: #3b82f6;
    --accent: #60a5fa;
    --dark-bg: #020617;
    --card-bg: #0f172a;
    --nav-bg: rgba(2, 6, 23, 0.9);
    --text-main: #ffffff;
    --text-dim: #bbcee7;
    --white-blue-grad: linear-gradient(to right, #ffffff, #4253d3);
}

/* ==========================================
   GLOBAL RESET & BASE
   ========================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    line-height: 1.6; 
    color: var(--text-main);
    background: var(--dark-bg);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    animation: fadeInPage 0.5s ease-in-out;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Breadcrumb nav'ı fixed nav kurallarından sıfırla */
nav.breadcrumb {
    position: static !important;
    height: auto !important;
    width: auto !important;
    padding: 0 !important;
    background: none !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    z-index: auto !important;
    justify-content: flex-start !important;
    display: flex !important;
    gap: 8px !important;
}
nav.breadcrumb::after { display: none !important; }

nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 20px var(--primary);
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.9));
}

.nav-links { 
    display: flex; 
    gap: 30px; 
    list-style: none; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-dim); 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: 0.3s; 
}

.nav-links a:hover { 
    color: var(--primary); 
}

.menu-toggle {
    display: none;
    position: relative; 
    z-index: 9999 !important; /* Diğer her şeyin üstünde olsun */
    cursor: pointer;
    padding: 10px; /* Tıklama alanını genişletir */
}

/* Mobilde butonun görünür olduğundan emin olalım */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }
}

.menu-toggle:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 
                 0 0 20px rgba(59, 130, 246, 0.5);
}


/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%; 
    height: 180px;
    background: linear-gradient(to bottom, transparent, var(--dark-bg));
    z-index: 5;
    pointer-events: none;
}

.hero-bg-container {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: imageFade 30s linear infinite;
}

.hero-slide:nth-child(1) { 
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=1920'); 
    animation-delay: -2s; 
}
.hero-slide:nth-child(2) { 
    background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?q=80&w=1920'); 
    animation-delay: -26s; 
}
.hero-slide:nth-child(3) { 
    background-image: url('https://images.unsplash.com/photo-1510511459019-5dee997d7db4?q=80&w=1920'); 
    animation-delay: -20s; 
}
.hero-slide:nth-child(4) { 
    background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=1920'); 
    animation-delay: -14s; 
}
.hero-slide:nth-child(5) { 
    background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?q=80&w=1920'); 
    animation-delay: -8s; 
}

@keyframes imageFade {
    0%   { opacity: 0; transform: scale(1.05); }
    6%   { opacity: 1; transform: scale(1.03); }
    20%  { opacity: 1; transform: scale(1.01); }
    26%  { opacity: 0; transform: scale(1);    }
    100% { opacity: 0; transform: scale(1);    }
}

.hero-content { 
    position: relative; 
    z-index: 10; 
    text-align: center; 
    max-width: 900px; 
    padding: 0 20px; 
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
    line-height: 1.1;
    background: var(--white-blue-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle { 
    font-size: 1.15rem; 
    color: var(--text-dim); 
    margin-bottom: 40px; 
    max-width: 700px; 
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.highlight {
    background: var(--white-blue-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   SECTIONS
   ========================================== */
section { 
    padding: 100px 8% 80px;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--white-blue-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-12px);
    background: #111a35;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card ul li {
    color: var(--text-dim);
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
}

.card ul li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Icon Box for Service Cards */
.icon-box {
    width: 60px; 
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-bottom: 25px;
    transition: 0.3s;
    font-size: 1.8rem;
}

.card:hover .icon-box {
    background: var(--primary);
    transform: rotate(-5deg) scale(1.1);
}

.card:hover .icon-box i {
    color: white;
}

.icon {
    font-size: 1.8rem; 
    color: var(--primary); 
    transition: 0.3s;
}

/* ==========================================
   GRID LAYOUTS
   ========================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Tech Tags */
.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    display: inline-block;
}

.tech-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================
   REFERENCES SECTION
   ========================================== */
.ref-section {
    background: var(--dark-bg);
    padding: 80px 0 120px;
    overflow: hidden;
}

.ref-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.ref-section-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: var(--white-blue-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ref-section-header p {
    color: var(--text-dim);
    font-size: 1rem;
}

.ref-slider-box {
    white-space: nowrap;
    position: relative;
}

.ref-container {
    display: inline-block;
    animation: scroll 40s linear infinite;
}

.ref-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 60px;
    color: #64748b;
    font-size: 1.2rem;
    font-weight: 700;
    filter: grayscale(1);
    transition: 0.3s;
}

.ref-logo:hover {
    filter: grayscale(0);
    color: var(--text-main);
}

.ref-logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    padding: 50px 8%;
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

footer p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  
    nav {
        height: 70px !important;
        padding: 0 5% !important;
    }

    .logo-img {
        height: 70px !important; /* Mobilde biraz daha küçülttük */
    }

    /* Hamburger Butonu */
    .menu-toggle {
        display: block !important;
        font-size: 1.5rem;
        color: white;
        z-index: 3000;
    }

    /* Sağdan Açılan Yan Panel */
    .nav-links {
        position: fixed !important;
        top: 0;
        right: 0;
        width: 280px; /* Biraz daha daraltıldı */
        height: 100vh;
        background: #0f172a;
        display: flex !important;
        flex-direction: column !important;
        padding: 100px 30px !important;
        gap: 15px;
        z-index: 2500;
        transform: translateX(100%); /* Başlangıçta ekranın dışında */
       
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }



    .nav-links li {
        list-style: none;
        width: 100%;
    }

    .nav-links a {
        color: #ffffff !important;
        font-size: 1.1rem !important;
        padding: 12px 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Hero Bölümü Düzenlemeleri */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* Desktop'ta Hamburgeri Gizle */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
}

/* Masaüstünde ve varsayılan durumda kesinlikle gizle */
.close-menu {
    display: none !important;
}

.card {
    pointer-events: auto; /* Tıklanabilir olmasını sağlar */
}


/* Butonların her zaman en üstte ve tıklanabilir olmasını sağlar */
.contact-card .btn {
    position: relative; /* Katman önceliği için */
    z-index: 100 !important; /* Diğer her şeyin üstüne çıkarır */
    pointer-events: auto !important; /* Tıklamayı zorunlu hale getirir */
    cursor: pointer !important;
}

/* Eğer kartın içinde tıklamayı engelleyen bir yapı varsa onu düzeltir */
.contact-card {
    position: relative;
    z-index: 1;
}


@media (max-width: 768px) {
    /* 1. Hero Bölümü Düzenlemesi */
    .about-hero {
        height: auto !important;
        min-height: 80vh;
        padding-top: 100px !important; /* Navbar altına girmemesi için */
        padding-bottom: 40px;
    }

    .about-hero h1 {
        font-size: 2.4rem !important; /* Mobilde devasa başlığı küçült */
    }

    /* 2. Grid ve Esnek Yapıları Alt Alta Getir */
    section {
        padding: 60px 5% !important; /* Yanlardaki %8 boşluğu %5'e düşür */
    }

    /* Görsel ve Metin kutusunu alt alta diz */
    section > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important; 
        gap: 40px !important;
    }

    /* 3. Kurucu Görseli ve Etiket */
    div[style*="aspect-ratio"] {
        max-width: 300px;
        margin: 0 auto;
    }

    div[style*="position: absolute; bottom: -20px"] {
        right: 0 !important;
        bottom: -10px !important;
        padding: 10px 15px !important;
        font-size: 0.8rem;
    }

    /* 4. Yazıları Ortala */
    h2 {
        font-size: 1.8rem !important;
        text-align: center;
    }

    p {
        text-align: center;
        font-size: 1rem !important;
    }

    /* 5. CTA Kutusu (Alt Kısım) */
    section[style*="text-align: center"] > div {
        padding: 40px 20px !important;
        border-radius: 20px !important;
    }

    section[style*="text-align: center"] h2 {
        font-size: 1.6rem !important;
    }
}

html, body {
    overflow-x: hidden; /* Yatay kaydırmayı tamamen yasaklar */
    width: 100%;
}

* {
    max-width: 100vw; /* Hiçbir eleman ekran genişliğini geçemez */
}


@media (max-width: 768px) {
    
    /* 2. Hero & Üst Bölümler (Navbar Altında Kalmayı Engeller) */
    .hero, .about-hero, .contact-section, .contact-hero {
        padding-top: 110px !important; /* Navbar'dan kurtarır */
        height: auto !important;
        min-height: 80vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;    /* İÇERİĞİ YATAYDA TAM ORTALAR */
        justify-content: center !important; /* İÇERİĞİ DİKEYDE ORTALAR */
        text-align: center !important;
    }

    /* 3. İçerik Kapsayıcılarını Merkeze Sabitle (Sola Kaymayı Engeller) */
    .hero-content, .contact-container, .about-hero > div {
        width: 100% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* 4. Başlık ve Metinleri Ortala */
    h1, h2, p, .hero-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .hero-content h1, .about-hero h1 { 
        font-size: 2.2rem !important; 
        margin-top: 0 !important;
    }
    
    h2 { font-size: 1.8rem !important; }

    /* 5. Section ve Grid/Kart Yapıları (Görseldeki Taşmayı ve Sıkışmayı Engeller) */
    section {
        padding: 80px 5% 40px !important;
        width: 100% !important;
    }

    .grid, [style*="grid-template-columns"], section > div[style*="grid-template-columns"] {
        display: flex !important; /* Mobilde grid yerine flex hayat kurtarır */
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 25px !important;
    }

    .card, .contact-card {
        width: 100% !important;
        max-width: 320px !important; /* Kart mobilde çok yayılamaz */
        margin: 0 auto !important;   /* Ekranın tam ortasına kilitler */
        display: block !important;
    }

    /* 6. Butonları Alt Alta ve Ortada Diz */
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        align-items: center !important;
    }

    .btn {
        width: 85% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }

    /* 7. HTML İçindeki Satır İçi (Inline) Stilleri Ezme */
    div[style*="aspect-ratio"] {
        max-width: 280px !important;
        margin: 0 auto 30px !important;
    }

    div[style*="position: absolute; bottom: -20px"] {
        right: 0 !important;
        bottom: -10px !important;
        padding: 10px 15px !important;
        font-size: 0.8rem;
    }

    section[style*="text-align: center"] > div {
        padding: 40px 20px !important;
        border-radius: 20px !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    /* 1. E-posta butonu ve yanındaki ikonun çakışmasını engelle */
    .contact-card div[style*="display: flex"] {
        flex-direction: column !important; /* İkon ve butonu alt alta alır */
        align-items: center !important;
        gap: 10px !important;
    }

    /* 2. Butonların genişliğini ve taşmasını düzelt */
    .contact-card a.btn, 
    .contact-card .btn {
        width: 100% !important;      /* Kartın içine tam yayılsın */
        max-width: 280px !important; /* Ama çok devasa olmasın */
        padding: 12px 10px !important; 
        font-size: 0.85rem !important; /* Uzun e-posta adresleri sığsın diye */
        white-space: nowrap !important; /* Yazıyı tek satırda tutar */
        overflow: hidden !important;   /* Taşarsa gizler (veya aşağı atar) */
        text-overflow: ellipsis;       /* Çok uzunsa sonuna ... koyar */
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* 3. Zarf ve Telefon ikonlarının butonun tepesinde düzgün durması */
    .contact-card i, 
    .contact-card svg {
        margin-right: 0 !important;
        margin-bottom: 5px;
        font-size: 1.5rem !important;
    }

    /* 4. "Hemen Ara" butonundaki telefon ikonuna boşluk ver */
    .btn i.fa-phone, 
    .btn i {
        margin-right: 8px !important;
    }
    
}

@media (max-width: 768px) {
    /* İstatistiklerin bulunduğu ana kapsayıcı */
    .stat-section, .stats-container, div[style*="display: flex; gap: 40px"] {
        display: flex !important;
        flex-direction: column !important; /* İstatistikleri alt alta dizer */
        align-items: center !important;    /* Yatayda ortalar */
        gap: 30px !important;              /* Aralarındaki boşluk */
        width: 100% !important;
    }

    /* Her bir istatistik grubu (Örn: "4 Saat" ve "Yanıt Süresi") */
    .stat-item, .stat-box, div[style*="display: flex; gap: 15px"] {
        display: flex !important;
        flex-direction: column !important; /* Rakam ve metni alt alta alır */
        align-items: center !important;    /* Metinleri ortalar */
        gap: 8px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 250px;
    }

    /* Büyük rakamların (Örn: 4 Saat) stili */
    .stat-item h3, .stat-item h2, .stat-item strong, .stat-item > span:first-of-type {
        font-size: 2.5rem !important; /* Mobilde biraz küçülterek sığdırır */
        margin-bottom: 0 !important;
        color: var(--primary);
    }

    /* Alttaki açıklama metninin (Örn: Yanıt Süresi) stili */
    .stat-item p, .stat-item span {
        font-size: 0.95rem !important;
        color: var(--text-dim);
        margin: 0 !important;
    }

    /* Dikey Çizginin Düzenlenmesi */
    /* Bu komut, görseldeki o dikey çizgiyi (border) mobilde gizler veya dikey ortalar */
    div[style*="border-right"] {
        border-right: none !important; /* Dikey çizgiyi mobilde gizleyelim */
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Yerine yatay ince çizgi koyalım */
        width: 80% !important; /* Çizgi tam yayılmasın */
        height: 1px !important;
        margin: 15px 0 !important;
    }
}

@media (max-width: 768px) {
    /* 1. Kapsayıcıyı dikey yap ve çizgileri tamamen kaldır */
    div[style*="display: flex"][style*="gap: 40px"],
    div[style*="display: flex"][style*="justify-content: center"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        border: none !important;
    }

    /* 2. Dikey çizgileri (border-right) zorla kapat */
    div[style*="border-right"], 
    .stat-item {
        border-right: none !important;  /* Dikey çizgiyi siler */
        border-bottom: 1px solid rgba(255,255,255,0.1) !important; /* Altına ince çizgi atar */
        padding-right: 0 !important;
        padding-bottom: 20px !important;
        width: 80% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* 3. Son elemandaki çizgiyi kaldır (çirkin durmasın) */
    div[style*="border-right"]:last-child,
    .stat-item:last-child {
        border-bottom: none !important;
    }

    /* 4. Yazıların hizasını garantiye al */
    div[style*="font-size: 45px"], 
    div[style*="font-size: 35px"] {
        font-size: 2.5rem !important; /* Rakamlar çok büyükse küçültür */
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    /* Menünün varsayılan hali (Ekranın dışında sağda bekliyor) */
    .nav-links {
        position: fixed !important;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #0f172a;
        display: flex !important;
        flex-direction: column !important;
        padding: 100px 30px !important;
        gap: 15px;
        z-index: 2500;
        transform: translateX(100%); /* BU SATIR ONU GİZLER */
        transition: transform 0.4s ease-in-out; /* Akıcı açılış için */
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    /* JavaScript ile bu sınıf eklendiğinde menü görünür olur */
    .nav-links.nav-active {
        transform: translateX(0%); /* Ekranın içine geri getirir */
    }

    /* Hamburger ikonunun her zaman üstte ve beyaz olduğundan emin olalım */
    .menu-toggle {
        display: block !important;
        font-size: 2rem !important;
        color: white !important;
        z-index: 3001 !important; /* Menü panelinin bile üstünde olsun */
    }
}



/* MOBİL MENÜ KESİN ÇÖZÜM */
@media (max-width: 768px) {
    .nav-links {
        display: flex !important; /* display: none'ı devre dışı bırakıyoruz */
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        background: #0f172a !important;
        flex-direction: column !important;
        padding: 100px 30px !important;
        z-index: 2500 !important;
        /* Başlangıçta ekranın sağında gizli tut */
        transform: translateX(100%) !important;
        transition: transform 0.4s ease-in-out !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    /* JS ile 'active' sınıfı geldiğinde burası çalışır */
    .nav-links.active {
        transform: translateX(0%) !important;
    }

    .nav-links li {
        width: 100%;
        margin: 10px 0;
    }

    .nav-links a {
        color: white !important;
        font-size: 1.2rem !important;
        display: block;
        text-decoration: none;
    }

    .menu-toggle {
        display: block !important;
        cursor: pointer;
        z-index: 3000;
    }
}

/* ==========================================
   YUKARI ÇIK BUTONU STİLLERİ
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary); /* Daha önce tanımladığınız mavi renk */
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    z-index: 2000;
    opacity: 0; /* Başlangıçta görünmez */
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px); /* Hafif aşağıda başlasın */
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Yerine gelsin */
}

.back-to-top:hover {
    background: #2563eb; /* Bir ton koyu mavi */
    transform: translateY(-5px); /* Üzerine gelince zıplasın */
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}




/* Kurumsal WhatsApp Butonu - Başlangıçta Yuvarlak İkon */
.corp-wa-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    height: 60px;
    width: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 16px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RTL (Arabic) — flip to bottom-right, expand leftward */
[dir="rtl"] .corp-wa-btn {
    left: auto;
    right: 40px;
    justify-content: flex-end;
    padding-left: 0;
    padding-right: 16px;
}

[dir="rtl"] .corp-wa-btn .wa-text {
    transform: translateX(10px);
}

[dir="rtl"] .corp-wa-btn:hover .wa-text {
    margin-left: 0;
    margin-right: 12px;
    transform: translateX(0);
}

.corp-wa-btn i {
    font-size: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.corp-wa-btn .wa-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    opacity: 0;
    margin-left: 0;
    /* Sola yaslı olduğu için yazının soldan sağa kayarak gelmesi daha şık durur */
    transform: translateX(-10px); 
    transition: all 0.4s ease;
}

/* MASAÜSTÜ: Üzerine Gelince Kapsül Olarak Açılma */
.corp-wa-btn:hover {
    width: 180px;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.corp-wa-btn:hover .wa-text {
    opacity: 1;
    margin-left: 12px;
    transform: translateX(0);
}

/* MOBİL İÇİN DALGA (RIPPLE) ANİMASYONU - transform+opacity kullanır (GPU composited) */
@keyframes mobileWaves {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.7); opacity: 0;   }
    100% { transform: scale(1.7); opacity: 0;   }
}

/* MOBİL CİHAZLAR İÇİN OPTİMİZASYON */

@media (max-width: 768px) {
    .corp-wa-btn {
        bottom: 20px;
        right: auto;
        left: 20px;
        height: 60px;
        width: 60px;
        padding-left: 14px;
        border-radius: 50%;
        overflow: visible;
    }
    .corp-wa-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: rgba(37, 211, 102, 0.4);
        z-index: -1;
        animation: mobileWaves 2s infinite;
        will-change: transform, opacity;
    }
    
    .corp-wa-btn i {
        font-size: 32px; /* Kapsüle uyumlu olması için biraz küçültüldü */
        min-width: 32px;
    }
    
    /* Mobilde yazıyı iptal ediyoruz, sadece dalgalı ikon dikkat çekecek */
    .corp-wa-btn .wa-text {
        display: none; 
    }
    
    /* Mobilde hover ile genişlemeyi kapattık */
    .corp-wa-btn:hover {
        width: 60px; 
    }
}

h1 {
    line-height: 1.2; 
    padding-bottom: 15px; /* Alt kancalara güvenli alan */
}