/* ==========================================================================
   GENEL AYARLAR & PREMIUM ARKA PLAN
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #060913; /* Daha derin, premium uzay siyahı */
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #f0f6fc;
    line-height: 1.6;
    padding-top: 110px; 
    overflow-x: hidden;
    background-image: radial-gradient(at 50% 0%, rgba(112, 0, 255, 0.12) 0px, transparent 50%),
                      radial-gradient(at 0% 100%, rgba(0, 240, 255, 0.05) 0px, transparent 40%) !important;
    background-attachment: fixed;
}

/* ==========================================================================
   YENİ NESİL ELİT SİBER MENÜ TASARIMI (HEADER)
   ========================================================================== */
header {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 80px;
    z-index: 9999 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    background: rgba(6, 9, 19, 0.70) !important; 
    backdrop-filter: blur(20px) saturate(180%);  
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.12) !important; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important; 
}

header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
}

header .logo .brand-glow {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

header .logo .brand-sub {
    color: #00f0ff;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

header .logo .brand-status-dot {
    width: 6px;
    height: 6px;
    background-color: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff66;
}

header nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.cyber-button {
    position: relative;
    padding: 10px 5px !important; 
    width: auto !important;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none !important;
    background: transparent !important;
    transition: color 0.3s ease;
}

.cyber-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f0ff, #7000ff);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-button:hover {
    color: #00f0ff !important; 
    background: transparent !important;
}

.cyber-button:hover::after {
    width: 100%;
}

.cyber-button.active {
    color: #00f0ff !important;
}
.cyber-button.active::after {
    width: 100%;
    background: #00f0ff;
}

.cyber-button.nav-accent {
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    background: rgba(0, 240, 255, 0.02) !important;
}
.cyber-button.nav-accent::after { display: none; }
.cyber-button.nav-accent:hover {
    background: rgba(0, 240, 255, 0.08) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   PREMIUM HERO (GİRİŞ) ALANI & ASİMETRİK DÜZEN
   ========================================================================== */
.main-content {
    max-width: 1200px; /* Genişletildi - İçerik nefes alacak */
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   PREMIUM HERO (GİRİŞ) ALANI - SİBER BORDER & OKUNURLUK GÜNCELLEMESİ
   ========================================================================== */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
    text-align: left;
    
    /* Yeni Siber Border ve Arka Plan Katmanı */
    background: rgba(10, 15, 30, 0.65) !important; /* Arkadaki çizgileri örtecek premium koyuluk */
    backdrop-filter: blur(5px); /* Arkadaki çizgileri harika bir şekilde flulaştırır */
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    
    /* Temaya Uygun Siber Border (Sol üst ve sağ alt köşelere odaklı parıltı) */
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-left: 4px solid #00f0ff !important; /* Sol tarafa vurgu çizgisi */
    border-radius: 24px !important;
    
    /* İçeriğin çerçeveye yapışmaması için padding */
    padding: 50px 60px !important;
    
    /* Siber Derinlik Gölgesi */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 
                inset 0 0 30px rgba(0, 240, 255, 0.02) !important;
}

.hero-text-side {
    flex: 1.6; /* Yazı alanına biraz daha genişlik verdik */
}

.hero-badge {
    display: inline-block;
    background: rgba(112, 0, 255, 0.15);
    border: 1px solid rgba(112, 0, 255, 0.4);
    color: #d8b4fe;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(112, 0, 255, 0.3);
	position: relative; /* z-index'in çalışması için pozisyon şart */
    z-index: 10;
}

.hero-wrapper h1 {
    font-size: 44px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
    box-shadow: none;
    text-align: left;
    max-width: 100%;
}

.hero-wrapper h1 span {
    background: linear-gradient(45deg, #00f0ff, #7000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.hero-description {
    font-size: 17px;
    color: #cbd5e1; /* Yazı rengini biraz daha beyaza yaklaştırıp kontrastı uçurduk */
    margin-bottom: 35px;
    max-width: 620px;
    line-height: 1.7;
}

.hero-image-side {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
}

.ana-logo {
    width: 280px; /* Çerçeve içine kusursuz oturması için hafif optimize edildi */
    height: auto;
    filter: drop-shadow(0 0 35px rgba(0, 240, 255, 0.3));
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Mobil için Çerçeve Optimizasyonu */
@media (max-width: 768px) {
    .hero-wrapper {
        padding: 35px 25px !important;
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* ==========================================================================
   MÜFREDAT MODÜLÜ (Cam Efektli & Şık)
   ========================================================================== */
.mufredat-kutusu {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(56, 189, 248, 0.2) !important;         
    border-radius: 24px !important;               
    padding: 45px !important;
    margin: 60px auto !important;                  
    max-width: 100% !important;                  
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); 
	border-left: 4px solid #00f0ff !important; /* Sol tarafa vurgu çizgisi */
}

.mufredat-ust-alan {
    display: flex;
    justify-content: space-between;    
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);  
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.mufredat-baslik {
    font-size: 26px;
    color: #38bdf8;                    
    font-weight: 800;
}

.mufredat-etiket {
    background-color: rgba(56, 189, 248, 0.08);
    color: #38bdf8;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.mufredat-metin {
    color: #cbd5e1;                    
    font-size: 16px;
    line-height: 1.8;                  
    margin-bottom: 35px;
}

/* Grid Sistemi 4 Sütunlu Elit Yapıya Çıkarıldı */
.kazanimlar-listesi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;    
    gap: 20px;                                                 
}

.kazanim-oge {
    background: rgba(30, 41, 59, 0.3) !important; 
    border: 1px solid rgba(99, 102, 241, 0.1) !important;
    border-left: 4px solid #6366f1 !important;    
    padding: 20px !important;
    border-radius: 12px !important;      
    font-size: 14.5px;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.kazanim-oge:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.4) !important;
    background: rgba(30, 41, 59, 0.6) !important;
}

/* ==========================================================================
   SOSYAL MEDYA BUTONLARI
   ========================================================================== */
.buton-kapsayici {
    display: flex;
    justify-content: center;   
    gap: 25px;                 
    margin-top: 40px;
    margin-bottom: 40px;
	flex-direction: row;
}

.instagram-butonu, .linkedin-butonu {
    display: inline-flex;
    align-items: center;
    gap: 12px; 
    padding: 16px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none; 
    border-radius: 14px; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-butonu {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 20px rgba(220, 39, 67, 0.2);
}

.linkedin-butonu {
    background-color: #0077b5;
    box-shadow: 0 4px 20px rgba(0, 119, 181, 0.2);
}

.instagram-butonu:hover, .linkedin-butonu:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.2);
}

.instagram-ikon, .linkedin-ikon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* ==========================================================================
   AKAN KOD ARKA PLANI (MATRIX CANVAS)
   ========================================================================== */
#cyber-matrix-bg {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -9999 !important; 
    opacity: 0.25; /* Arka planı biraz daha yumuşattık ki içerik parlasın */
    pointer-events: none !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (KUSURSUZ MOBİL UYUM)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column !important; 
        height: auto !important;
        padding: 15px !important;
        gap: 10px !important;
    }
    header nav { gap: 15px !important; }
    body { padding-top: 150px; }
    
    .hero-wrapper {
        flex-direction: column-reverse !important;
        text-align: center !important;
    }
    .hero-wrapper h1 { text-align: center !important; font-size: 32px; }
    .hero-description { margin: 0 auto 30px auto; }
    .ana-logo { width: 220px; }
    .mufredat-kutusu { padding: 25px !important; }
    .mufredat-ust-alan { flex-direction: column; gap: 10px; align-items: center; }
}
 /* Sadece bu sayfaya özel sergi grid yapısı ve cam kart optimizasyonları */
        .galeri-bolum {
            background: rgba(10, 15, 30, 0.45) !important;
            backdrop-filter: blur(8px) saturate(160%);
            -webkit-backdrop-filter: blur(16px) saturate(160%);
            border: 1px solid rgba(0, 240, 255, 0.12) !important;
            border-radius: 20px !important;
            padding: 35px !important;
            margin-bottom: 50px !important;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
			border-left: 4px solid #00f0ff !important;
        }

        .galeri-baslik {
            font-size: 22px;
            color: #38bdf8;
            font-weight: 800;
            margin-bottom: 25px;
            border-left: 4px solid #7000ff;
            padding-left: 12px;
            text-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
        }

        .galeri-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
            gap: 20px;
        }

        .galeri-kart {
            background: rgba(30, 41, 59, 0.4) !important;
            border: 1px solid #00f0ff; /* Siber çerçeve */
            border-radius: 14px !important;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
        }

        .galeri-kart:hover {
            transform: scale(1.01); /* Hafif büyüme */
            border-color: rgba(0, 240, 255, 0.35) !important;
            background: rgba(30, 41, 59, 0.7) !important;
            box-shadow: 0 0 15px #7000ff; /* Mor parıltı */
        }

        .galeri-kart img, .galeri-kart video {
           width: 100%;
height: 300px;           /* 1. Videonun yüksekliğiyle eşitlemek için sabit değer veriyoruz */
object-fit: cover;       /* 2. Kırpma sihrini geri alıyoruz, en-boy oranını korur */
object-position: center; /* 3. Üstten ve alttan eşit kırpıp tam ortadaki detaya odaklanır */
border-bottom: 2px solid rgba(255, 255, 255, 0.05);
transition: all 0.4s ease;
padding: 0;
    /* Eğer resmi kartın içinde sağdan soldan daraltıp (kırpıp) 
       arka planı göstermek istiyorsan bu yöntemi kullanabilirsin. */
       
    box-sizing: border-box; /* Padding verdiğimizde kartın taşmasını engeller */
        }

        .galeri-kart:hover img {
            filter: saturate(1.2);
        }

        .kart-bilgi {
            padding: 16px;
            font-size: 14.5px;
            font-weight: 600;
            color: #e2e8f0;
            text-align: center;
            background: rgba(15, 23, 42, 0.3);
        }
		/* ==========================================================================
   SİBER SİMÜLATÖR SAYFASI ÖZEL ESNEK (FLEXBOX) HİZALAMA AYARLARI
   ========================================================================== */
.sim-kapsayici {
    display: flex;
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    align-items: stretch; /* Sol ve sağ kutunun boyunu otomatik olarak eşitler */
}

.kod-alani, .gorsel-alan {
    flex: 1;
    background: rgba(10, 15, 30, 0.8);
    border: 2px solid #6366f1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
    position: relative;
    
    /* İç elemanları dikeyde hizalamak için flex yapıyoruz */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.gorsel-alan {
    border-color: #00fff2;
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.2);
}

/* Editörün altındaki buton hariç tüm dikey boşluğu kusursuz kaplaması için */
.editor-textarea {
    width: 100%;
    flex-grow: 1; 
    min-height: 350px; /* Sağ taraftaki canlı ekranın yüksekliği ile tam uyum */
    background: #050814;
    color: #00fff2;
    border: 1px solid #6366f1;
    font-family: 'Courier New', Courier, monospace;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 4px;
    resize: none;
    font-size: 16px;
    margin-bottom: 0; /* Butonla arasındaki esnek boşluğu korur */
}

.sim-buton {
    margin-top: 15px;
    width: 100%;
    cursor: pointer;
}

/* Canlı Ekran Alanı Ayarları */
.canvas-alanı {
    width: 100%;
    height: 350px; /* Yükseklik sabitlendi, sol taraf artık buna göre esneyecek */
    background: #050814;
    border: 1px solid #00fff2;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    flex-grow: 1; /* İçeriği dikeyde tam doldurması için */
}

#robot {
    width: 40px;
    height: 40px;
    background: rgb(99, 102, 241);
    border: 2px solid #00fff2;
    border-radius: 8px;
    position: absolute;
    top: 150px;
    left: 20px;
    transition: left 0.4s ease, top 0.4s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 0 10px #00fff2;
    z-index: 5;
}

/* Dinamik Balon Sınıfı */
.balon {
    position: absolute;
    border-radius: 50%;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.4);
    animation: balonSalinim 2s infinite ease-in-out alternate;
    z-index: 3;
}

@keyframes balonSalinim {
    0% { margin-left: 0px; }
    100% { margin-left: 8px; }
}

/* Siber Canlı Skor Paneli */
.skor-paneli {
    width: 100%;
    background: rgba(5, 8, 20, 0.8);
    border: 1px solid #7000ff;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.skor-yazi {
    font-family: monospace;
    font-size: 18px;
    color: #00fff2;
    text-shadow: 0 0 8px rgba(0, 255, 242, 0.6);
    font-weight: bold;
}

/* Mobil Ekranlar İçin Esneklik Koruması */
/* ==========================================================================
   RESPONSIVE DESIGN (KUSURSUZ MOBİL UYUM GÜNCELLEMESİ)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column !important; 
        height: auto !important;
        padding: 15px !important;
        gap: 12px !important;
    }
    header nav { 
        gap: 12px !important; 
        flex-wrap: wrap !important; /* Küçük telefonlarda menü butonları taşmasın, alt satıra esnesin */
        justify-content: center !important;
        width: 100% !important;
    }
    .cyber-button {
        font-size: 12px !important; /* Mobilde buton yazılarını hafif optimize ettik */
        padding: 6px 4px !important;
    }
    .cyber-button.nav-accent {
        padding: 6px 12px !important;
    }
    
    /* Menü dikeyde genişlediği için içeriğin menü arkasında kalmasını engelliyoruz */
    body { 
        padding-top: 170px !important; 
    }
    
    .main-content {
        padding: 20px 10px !important; /* Ana içerik mobilde kenarlara çok yapışmasın */
    }
    
    .hero-wrapper {
        flex-direction: column-reverse !important;
        text-align: center !important;
        padding: 35px 20px !important; /* İç padding daraltıldı, taşma önlendi */
        margin-left: 5px !important;
        margin-right: 5px !important;
        gap: 25px !important;
    }
    .hero-wrapper h1 { 
        text-align: center !important; 
        font-size: 28px !important; /* 400px ekran için başlık ideal boyuta çekildi */
    }
    .hero-description { 
        margin: 0 auto 25px auto !important; 
        font-size: 15px !important;
    }
    .ana-logo { 
        width: 180px !important; /* Mobilde kahraman resmimiz ekranı patlatmasın */
    }
    
    .mufredat-kutusu { 
        padding: 20px !important; 
        margin: 30px auto !important;
    }
    .mufredat-ust-alan { 
        flex-direction: column !important; 
        gap: 10px !important; 
        align-items: center !important; 
    }
    .mufredat-baslik {
        font-size: 22px !important;
    }
    
    /* Sosyal Medya Butonları Mobilde Alt Alta Kusursuz Hizalansın */
    .buton-kapsayici {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        padding: 0 10px !important;
    }
    .instagram-butonu, .linkedin-butonu {
        justify-content: center !important;
        width: 100% !important;
        padding: 14px 20px !important;
    }

    /* Galeri Alanı Mobil Düzenlemesi */
    .galeri-bolum {
        padding: 20px !important;
    }
    .galeri-grid {
        /* minmax değeri 320px'den 1fr'e çekildi, böylece 400px ekrana tam sığacak */
        grid-template-columns: 1fr !important; 
        gap: 15px !important;
    }
    .galeri-kart img, .galeri-kart video {
        height: 220px !important; /* Telefon ekranlarında dikey oran korunsun */
    }

    /* Siber Simülatör Alanı Mobil Taşma Çözümü */
    .sim-kapsayici { 
        flex-direction: column !important; 
        width: 100% !important; 
        padding: 0 5px !important; /* Kutunun taşmasını engelleyen sihirli dokunuş */
        gap: 20px !important;
    }
    .kod-alani, .gorsel-alan {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .editor-textarea {
        min-height: 250px !important; /* Mobilde devasa durmasın diye kırpıyoruz */
    }
    .canvas-alanı {
        height: 280px !important; /* Telefon ekranına göre yüksekliği optimize edildi */
    }
}