@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400&display=swap');

:root {
    --bg-color: #050a14;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --text-main: #e0e0e0;
}

/* =========================================
   1. TEMEL AYARLAR (RESET & BASE)
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at center, #1a2a40 0%, var(--bg-color) 100%);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    /* Mobilde inputa tıklayınca zoom yapmasını engeller */
    font-size: 16px; 
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* Footer'ı aşağı it */
    width: 100%;
}

/* =========================================
   2. HEADER & NAVIGASYON (PREMIUM GLASS)
   ========================================= */
header#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 10, 20, 0.6);
    backdrop-filter: none;
}

/* Scroll yapınca header küçülsün ve koyulaşsın */
header.scrolled {
    padding: 10px 0;
    background: rgba(5, 10, 20, 0.95);
    border-bottom: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
}

.header-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO AYARLARI --- */
.logo-area {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 50px;
    /* Masaüstü logo yüksekliği */
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.5));
}

.logo-area:hover .site-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--neon-purple));
}

/* --- NAVİGASYON (MASAÜSTÜ) --- */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    position: relative;
    text-decoration: none;
    color: #a0a0a0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: 0.3s;
    padding: 5px 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-blue);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

/* --- HAMBURGER MENU ICON (Gizli) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* --- RESPONSIVE (MOBİL TASARIM) --- */
@media screen and (max-width: 768px) {

    header#main-header {
        padding: 15px 0;
    }

    .site-logo {
        height: 40px;
        /* Mobilde logo biraz daha küçük */
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
        /* Menünün üstünde kalsın */
    }

    /* Menü açıldığında Hamburger animasyonu (X şekli) */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--neon-purple);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--neon-purple);
    }

    /* Mobil Menü Kutusu (Sağdan Gelen) */
    .nav-menu {
        position: fixed;
        /* Header yüksekliğine göre biraz aşağıdan başlatıyoruz */
        top: 70px; 
        right: 20px; /* Tam sağa yapışmasın, boşluklu olsun */
        
        /* Genişlik ve Yükseklik Ayarı */
        /* %30 çok dar olacağı için en az 180px olsun dedik, yoksa yazılar sığmaz */
        min-width: 180px; 
        width: 45%; /* Ekranın yaklaşık yarısından az */
        height: auto; /* İçeriği kadar yer kaplasın (yaklaşık %30-40 olur) */
        
        /* Görünüm: Yüzen Neon Kart */
        background: rgba(5, 10, 20, 0.95); /* Koyu arka plan */
        backdrop-filter: blur(15px); /* Buzlu cam */
        border: 1px solid var(--neon-purple); /* Mor neon çerçeve */
        border-radius: 15px; /* Köşeleri yuvarla */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 
                    0 0 15px rgba(188, 19, 254, 0.3); /* Mor ışık yayımı */
        
        /* Başlangıçta Gizle */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scale(0.95); /* Hafif yukarıda ve küçük */
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
        
        /* İçerik düzeni */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }

    /* Menü Aktif Olunca (JS sınıf ekleyince) */
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1); /* Yerine otursun */
        right: 20px; /* Sağ konumunu koru */
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px; /* Linkler arası boşluk */
        padding: 20px;
        width: 100%;
        text-align: center;
    }

    /* Linklerin boyutu daha kibar olsun */
    .nav-menu a {
        font-size: 1.1rem; 
        display: block;
        padding: 5px;
        border-radius: 8px;
    }
    
    /* Mobilde linke basınca arka plan hafif parlasın */
    .nav-menu a:active {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Container ayarı (header fixed olduğu için üst boşluk lazım) */
.main-container {
    margin-top: 100px;
}

/* =========================================
   3. BİLEŞENLER (KARTLAR, BUTONLAR, FORM)
   ========================================= */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Kart Işık Efekti */
.card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(transparent, rgba(0, 243, 255, 0.1), rgba(188, 19, 254, 0.1), transparent);
    transform: rotate(45deg);
    animation: cyber-scan 6s linear infinite;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin-top: 0;
    line-height: 1.3;
}

h1 { font-size: 3rem; background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.btn:hover {
    box-shadow: 0 5px 25px rgba(188, 19, 254, 0.6);
    transform: scale(1.05);
}

/* Formlar */
.form-group { margin-bottom: 20px; }
.form-control {
    width: 100%;
    padding: 15px; /* Mobilde parmakla basması kolay olsun */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px; /* iOS zoom engellemek için önemli */
    outline: none;
    transition: 0.3s;
}
.form-control:focus {
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* =========================================
   4. ÖZEL SAYFA STİLLERİ (INDEX, HERO, STATS)
   ========================================= */
.hero-section { text-align: center; padding: 60px 20px; position: relative; }
.typing-text::after { content: '|'; color: var(--neon-purple); animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}
.service-card { text-align: center; transition: all 0.3s ease; }
.neon-icon { font-size: 3rem; margin-bottom: 20px; display: inline-block; text-shadow: 0 0 20px var(--neon-blue); }

.stats-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
    margin: 60px 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    text-align: center;
}
.stat-item h3 { font-size: 2.5rem; color: var(--neon-blue); margin-bottom: 5px; text-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }
.stat-item p { color: #aaa; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }

footer { text-align: center; padding: 30px; color: #8892b0; font-size: 0.9rem; margin-top: auto; }

/* =========================================
   5. ANİMASYONLAR (PRELOADER & REVEAL)
   ========================================= */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #02050a; z-index: 9999;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
}
.loader-ring {
    width: 80px; height: 80px; border: 4px solid transparent;
    border-top-color: var(--neon-blue); border-right-color: var(--neon-purple);
    border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px;
}
.loader-text { color: var(--neon-blue); font-family: 'Orbitron', sans-serif; letter-spacing: 2px; animation: pulse 1.5s infinite alternate; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { opacity: 0.5; } 100% { opacity: 1; text-shadow: 0 0 10px var(--neon-blue); } }
@keyframes cyber-scan { 0% { transform: translateY(-100%) rotate(45deg); } 100% { transform: translateY(100%) rotate(45deg); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-50px); }
.reveal-left.active { transform: translateX(0); }

h1, h2.neon-title { animation: neon-breath 3s ease-in-out infinite alternate; }
@keyframes neon-breath { from { text-shadow: 0 0 5px rgba(0, 243, 255, 0.2); } to { text-shadow: 0 0 15px rgba(0, 243, 255, 0.6), 0 0 30px rgba(188, 19, 254, 0.4); } }


/* =========================================
   6. GELİŞMİŞ MOBİL UYUMLULUK (RESPONSIVE)
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. Header Düzenlemesi */
    header {
        flex-direction: column; /* Alt alta diz */
        align-items: center;
        padding: 15px;
        gap: 15px;
        background: rgba(5, 10, 20, 0.95); /* Arka planı koyulaştır */
        border-radius: 20px; /* Kenarları daha az yuvarla */
        margin-bottom: 20px;
        position: relative; /* Sticky özelliğini mobilde bazen kapatmak iyidir, ama kalsın */
        top: 10px;
    }

    /* Logo Yazısı */
    .brand {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }

    /* Menü Listesi (Grid Yapısı) */
    nav ul {
        display: grid; /* Flex yerine Grid kullanıyoruz */
        grid-template-columns: 1fr 1fr; /* Ekranı 2 eşit parçaya böl */
        gap: 10px; /* Butonlar arası boşluk */
        width: 100%; /* Tüm genişliği kapla */
        padding: 0;
    }

    /* Menü Linkleri (Buton Görünümü) */
    nav a {
        display: flex;
        justify-content: center; /* Yazıyı ortala */
        align-items: center;
        padding: 12px 10px; /* Yükseklik ver */
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.08); /* Hafif belirgin zemin */
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        text-align: center;
        width: 100%;
        box-sizing: border-box; /* Taşmayı engelle */
    }
    
    /* Aktif Buton */
    nav a.active {
        background: var(--neon-blue);
        color: #000;
        font-weight: bold;
        box-shadow: 0 0 10px var(--neon-blue);
        border-color: var(--neon-blue);
    }
    
    /* Hover Çizgisini Kaldır (Mobilde gerek yok) */
    nav a::after { display: none; }

    /* 2. Diğer Mobil Ayarlar */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.5rem !important; }
    
    .container { width: 94%; padding: 10px 0; }
    .card { padding: 20px; margin-bottom: 20px; }

    /* Flex yapıları bozup alt alta diz */
    div[style*="display: flex"], 
    .stats-bar,
    .about-container {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Butonları Tam Genişlik Yap */
    .btn { display: block; width: 100%; text-align: center; margin-bottom: 10px; }
    
    /* İletişim sayfasındaki yan yana bilgileri düzelt */
    div[style*="justify-content: center; gap: 40px"] {
        gap: 20px !important;
    }
}
/* =========================================
   WOW FAKTÖRÜ: NEON CURSOR & 3D TILT
   ========================================= */

/* 1. Özel İmleç (Sadece PC için) */
@media (pointer: fine) {
    body {
        cursor: none; /* Standart oku gizle */
    }
    
    #cursor {
        position: fixed;
        top: 0; left: 0;
        width: 20px; height: 20px;
        border: 2px solid var(--neon-blue);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none; /* Tıklamayı engellemesin */
        z-index: 10000;
        transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
        box-shadow: 0 0 10px var(--neon-blue);
        mix-blend-mode: difference; /* Arka planla renk etkileşimi */
    }

    /* Linklerin üzerine gelince imleç değişsin */
    #cursor.hovered {
        width: 50px;
        height: 50px;
        background: rgba(0, 243, 255, 0.3);
        border-color: var(--neon-purple);
        box-shadow: 0 0 20px var(--neon-purple);
        mix-blend-mode: normal;
    }
}

/* 2. Hack Mode (Konami Code sonrası) */
body.hacked {
    background: #000 !important;
}
body.hacked * {
    color: #0f0 !important;
    border-color: #0f0 !important;
    box-shadow: none !important;
    font-family: 'Courier New', Courier, monospace !important;
}
body.hacked .card {
    background: #000;
}