﻿/* =========================================
   1. TEMEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
:root {
    --bg-dark: #0f0f1c;
    --primary: #b026ff; /* Mor */
    --secondary: #00f3ff; /* Mavi/Cyan */
    --text-light: #f0f0f0;
    --text-muted: #888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: none;
}

/* Canvas Arka Plan */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* DÜZELTME: En arkada kalmasını sağlar */
}

/* --- KİLİT İKONU GÖRÜNÜRLÜK FIX'İ --- */

/* Mobil menüdeki ikonun önünde boşluk bırakma */
.mobile-menu a i {
    margin-right: 10px;
}

/* YENİ VE BASİT İKON GÖSTERİMİ: Sadece ikonun görünmesini sağlayan kurallar */
.nav-links .admin-access-item a.lock-icon-fix {
    font-size: 1.2em;
    padding: 10px 15px;
    transition: all 0.3s ease;
    color: var(--primary); /* İkon rengini tema rengi yapar */
    /* Metni gizlemek için en güvenilir yöntemler */
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    width: 25px; /* İkonun sığacağı kadar yer */
    height: 1.2em;
    display: inline-block;
}

    /* İkonu (fa-lock) linkin ortasına yerleştir */
    .nav-links .admin-access-item a.lock-icon-fix:before {
        font-family: 'Font Awesome 6 Free';
        content: "\f023"; /* fa-lock ikonu Unicode */
        font-weight: 900; /* Solid ikon */
        text-indent: 0; /* İkonun görünmesini sağlar */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Tam ortalama */
        font-size: 1em;
        color: var(--primary);
        display: block;
    }


/* =========================================
 MODAL KAPAT BUTONU STİLİ
 ========================================= */
.btn-close-modal {
    display: block;
    margin: 30px auto 0 auto; /* Modalin altına ortalar */
    /* Boyutlandırma ve Metin */
    width: 200px; /* Genellikle aksiyon butonları biraz daha geniştir */
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none; /* A etiketinden geliyorsa */
    text-align: center;
    /* Neon Stil (Mor) */
    background: var(--primary); /* Mor arka plan */
    color: var(--bg-dark); /* Koyu metin */
    border: none; /* Düz renk butonda kenarlık olmaz */
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.6); /* Hafif neon gölge */

    transition: all 0.3s ease-in-out;
}

    .btn-close-modal:hover {
        /* Hover Efekti (Büyük ihtimalle ışık yoğunluğunu artırır) */
        background: var(--secondary); /* Cyan'a döner */
        color: var(--bg-dark);
        box-shadow: 0 0 25px var(--secondary), 0 0 50px var(--secondary); /* Güçlü Cyan parlama */
        transform: scale(1.05); /* Hafif büyütme efekti */
    }

.modal-content {
    padding-bottom: 30px;
}

/* =========================================
   2. NAVBAR STİLİ (GÜNCELLENMİŞ)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent; /* Başlangıçta tam şeffaf */
    transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 25px 5%; /* Yukarıdan biraz daha fazla boşluk */
    display: flex;
    justify-content: center; /* Nav linklerini ortala */
    align-items: center;
}

    /* Sayfa aşağı kaydırıldığında aktif olacak stil */
    .navbar.scrolled {
        background-color: rgba(15, 15, 28, 0.9); /* Biraz daha koyu şeffaflık */
        box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.3), 0 5px 15px rgba(0, 0, 0, 0.7); /* Daha belirgin neon gölge */
        backdrop-filter: blur(12px); /* Daha güçlü bir bulanıklık (Daha şık) */
        padding: 18px 5%; /* Kaydırma sonrası zarifçe küçülsün */
    }

/* Navigasyon İçerik Kapsayıcısı (Linkleri ve Logoyu yönetir) */
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: center; /* Linkleri ortalamak için */
    width: 100%;
    position: relative; /* Logo noktası için referans */
    max-width: 1100px; /* Navbar içeriğinin maksimum genişliği */
    margin: 0 auto;
}

/* Logo Noktası Stili */
.logo-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary-light); /* Daha parlak gölge */
    display: inline-block;
    position: absolute; /* Nav-inner'a göre konumlandır */
    left: 0; /* Sol tarafta kalır */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    animation: pulse-logo 2s infinite alternate ease-in-out; /* Hafif animasyon */
}

@keyframes pulse-logo {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 10px var(--primary);
    }

    100% {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 0 15px var(--primary), 0 0 25px var(--primary-light);
    }
}

/* Navigasyon Linklerinin Stili */
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
}

    .nav-links a {
        color: var(--text-light);
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        position: relative;
        padding: 8px 16px;
        transition: color 0.4s, transform 0.4s, box-shadow 0.4s, border 0.4s, opacity 0.4s;
        /* Hafif Silik Etki */
        opacity: 0.75;
        /* OVAL ÇERÇEVE BURADA GÜNCELLENDİ */
        border: 1px solid rgba(var(--primary-rgb), 0.3);
        border-radius: 20px;
        box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.4);
    }

        .nav-links a:hover {
            color: var(--secondary);
            opacity: 1;
            transform: scale(0.98) translateY(0.5px);
            border: 1px solid var(--secondary);
            border-radius: 20px; /* Hover için de oval kalsın */
            box-shadow: 0 0 18px var(--secondary), inset 0 0 8px var(--secondary);
            text-shadow: 0 0 10px var(--secondary);
            transition: color 0.2s, transform 0.2s, box-shadow 0.2s, border 0.2s, opacity 0.2s;
        }

        /* YENİ VE DAHA GÜZEL LİNK ANİMASYONU */
        .nav-links a::before {
            content: '';
            position: absolute;
            left: 0;
            bottom: -5px; /* Çizgiyi linkin altına al */
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--secondary), transparent); /* Neon gradyan */
            box-shadow: 0 0 8px var(--secondary);
            transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Yaylanan geçiş */
        }

        .nav-links a:hover::before {
            width: 100%;
        }

        /* Hover efekti için alttan çizgi (opsiyonel ama şık) */
        .nav-links a::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0;
            width: 0;
            height: 2px;
            background-color: var(--secondary);
            box-shadow: 0 0 8px var(--secondary);
            transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
        }

        .nav-links a:hover::after {
            width: 100%;
            left: 0;
        }

        .nav-links a.active {
            color: var(--secondary);
            opacity: 1;
            border: 1px solid var(--secondary);
            border-radius: 20px; /* AKTİF DURUM İÇİN DE OVAL KALSIN */
            box-shadow: 0 0 15px var(--secondary), inset 0 0 6px var(--secondary);
            text-shadow: 0 0 8px var(--secondary);
            transition: all 0.2s ease-in-out;
        }

/* Hamburger Simgesi (Varsayılan olarak gizli) */
.hamburger {
    display: none; /* Büyük ekranda hala gizli */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0; /* Padding'i sıfırla */
    width: 30px; /* Hamburger butonunun genişliğini sabitle */
    height: 30px; /* Hamburger butonunun yüksekliğini sabitle */
    position: relative;
    z-index: 10001; /* En üstte olmalı */
    display: none; /* Çizgileri ortalamak için flex kullan */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    /* Hamburger Çizgileri */
    .hamburger span {
        display: block;
        width: 100%; /* Buton genişliğine göre */
        height: 3px;
        background-color: var(--primary); /* Mor renk */
        margin: 4px 0; /* Çizgiler arasındaki boşluğu ayarla */
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        box-shadow: 0 0 5px var(--primary);
        border-radius: 2px; /* Hafif yuvarlak köşeler */
    }

    /* Hamburger Açılma Animasyonu (X şekline dönüşüm) */
    .hamburger[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg); /* Çizgileri ortaya topla ve döndür */
    }

    .hamburger[aria-expanded="true"] span:nth-child(2) {
        opacity: 0; /* Ortadaki çizgiyi gizle */
    }

    .hamburger[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg); /* Çizgileri ortaya topla ve döndür */
    }


/* Mobil Menü Kapsayıcısı */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* İstenen: Transparan tam ekran */
    background-color: rgba(15, 15, 28, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Başlangıçta gizli */
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

    /* Menü Açıkken */
    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu ul {
        list-style: none;
        text-align: center;
        padding: 0;
    }

    .mobile-menu li {
        margin: 40px 0;
    }

    .mobile-menu a {
        color: var(--text-light);
        font-size: 2.5rem;
        font-weight: bold;
        text-decoration: none;
        transition: color 0.2s;
        text-shadow: 0 0 10px var(--primary);
    }

        .mobile-menu a:hover {
            color: var(--secondary);
            text-shadow: 0 0 15px var(--secondary);
        }

@media (max-width: 768px) {
    /* 1. Normal Navigasyon Linklerini Gizle */
    .nav-pill {
        display: none;
    }

    /* 2. Hamburger Simgesini Görünür Yap */
    .hamburger {
        display: flex; /* Mobil görünümde flex olarak görünür */
        /* Z-index ve position zaten üstte olmasını sağlıyor */
    }

    /* 3. Mobil Navbar Düzeni (Logo ve Hamburgeri Yana Yasla) */
    .navbar {
        display: flex;
        justify-content: space-between; /* Logo ve hamburgeri iki yana yasla */
        align-items: center;
        padding: 15px 5%; /* Kenarlardan boşluk bırak */
    }

    /* 4. Logo Noktasının Konumu */
    .logo-dot {
        position: static; /* Absolute konumlandırmayı kaldır */
        margin-right: auto; /* Solda kalmasını sağlar, hamburgeri sağa iter */
        left: unset; /* Önceki left kuralını iptal et */
        /* Logo boyutunu biraz büyütmek isterseniz: */
        width: 15px;
        height: 15px;
        box-shadow: 0 0 12px var(--primary);
    }

    /* 5. Nav-inner'ı mobil görünümde gizle veya etkisiz hale getir */
    /* Çünkü logo ve hamburger doğrudan navbar içinden yönetiliyor */
    .nav-inner {
        display: none; /* Mobilde sadece logo ve hamburger olsun */
    }

    /* Mobil menü hala tam ekran ve transparan */
    .mobile-menu {
        display: flex; /* Kural çalışmazsa tekrar flex yap */
    }
}

/* Büyük Ekran (769px ve üzeri) Kuralları */
@media (min-width: 769px) {
    /* Navbar'ın iç düzenini büyük ekrana göre ayarla */
    .navbar {
        justify-content: center; /* Navigasyon linklerini ortalamak için */
        padding: 20px 5%; /* Büyük ekran padding'i */
    }

    /* Nav-inner'ı büyük ekranda ortalanmış navigasyon için geri getir */
    .nav-inner {
        display: flex;
        align-items: center;
        flex-grow: 1;
        justify-content: center;
        position: relative; /* Logo noktasını nav-inner içinde konumlandırmak için */
    }

    /* Logo noktasını büyük ekranda nav-inner içinde sol tarafa sabitle */
    .logo-dot {
        position: absolute; /* nav-inner'a göre konumlandır */
        left: 0;
        margin-right: 0; /* Mobil kuralını iptal et */
        width: 12px;
        height: 12px;
        box-shadow: 0 0 10px var(--primary);
    }

    /* Büyük ekranlarda hamburgeri gizle */
    .hamburger {
        display: none;
    }

    /* Büyük ekranlarda mobil menüyü tamamen gizle */
    .mobile-menu {
        display: none;
    }
}

/* Custom Cursor */
.cursor, .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
}

.cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary);
    transition: transform 0.1s ease-out;
    mix-blend-mode: exclusion;
}

/* Bölüm Genel Ayarları */
section {
    position: relative;
    z-index: 10;
    padding: 100px 5%;
    min-height: 100vh;
}

/* =========================================
   2. BAŞLIK STİLLERİ (Genel)
   ... (Diğer CSS kodlarınız burada devam ediyor) ...
*/


/* =========================================
   8. MOBİL UYUMLULUK
   ========================================= */
@media (max-width: 768px) {
        .glitch-name {
        font-size: 3rem;
    }

        .bio {
        font-size: 1rem;
    }

        .section-title {
        font-size: 2rem;
    }

        .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

        .social-icons a {
        margin-left: 0;
        margin-right: 15px;
    }

        .nyan-cat {
        width: 100px;
    }

    /* Mobil cihazlarda büyük kediyi gizle (Çok yer kapladığı için) */

}

:root {
    --bg-dark: #0f0f1c;
    --primary: #b026ff; /* Mor */
    --secondary: #00f3ff; /* Mavi/Cyan */
    --text-light: #f0f0f0;
    --text-muted: #888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: none;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Tüm içeriğin arkasında kalmasını sağlar */
}

/* Custom Cursor */
.cursor, .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
}

.cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary);
    transition: transform 0.1s ease-out;
    mix-blend-mode: exclusion;
}

/* Bölüm Genel Ayarları */
section {
    position: relative;
    z-index: 10;
    padding: 100px 5%;
    min-height: 100vh;
}

/* =========================================
   2. BAŞLIK STİLLERİ (Genel)
   ========================================= */
.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    color: var(--text-light);
    padding: 0;
}

    /* Varsayılan Alt Çizgi (Eğer özel başlık stili uygulanmazsa çalışır) */
    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 60px;
        height: 4px;
        background: var(--primary);
        box-shadow: 0 0 10px var(--primary);
    }


/* =========================================
   NYAN CAT: YATAY KAYMA + HAFİF DİKEY SALINIM
   ========================================= */

.nyan-cat-wrapper {
    position: fixed;
    /* top değeri JavaScript ile ayarlanacak */
    left: 0;
    z-index: 10;
    pointer-events: none; /* Mouse etkileşimini engelle */
    width: 150px;
    /* Yavaşça ekran boyunca kaymasını sağlayan animasyon */
    animation: flyAcross 25s linear infinite;
    /* JavaScript'in top değerini yumuşakça uygulaması için */
    transition: top 1s ease-out;
}

.nyan-cat {
    width: 100%;
    height: auto;
    /* Hafif dikey salınım (abartılmayacak kadar) */
    animation: floatCat 3s ease-in-out infinite;
    border-radius: 5px;
}

/* YATAY HAREKET KEYFRAMES */
@keyframes flyAcross {
    0% {
        /* Kedinin genişliği kadar soldan başla */
        transform: translateX(-150px);
    }

    100% {
        /* Ekranın genişliği kadar sağa git */
        transform: translateX(100vw);
    }
}

/* HAFİF DİKEY SALINIM KEYFRAMES */
@keyframes floatCat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        /* Abartılmayacak kadar, sadece 10px dikey hareket */
        transform: translateY(-10px);
    }
}

/* =========================================
   3. HOME (GİRİŞ) BÖLÜMÜ - Sola Dayalı ve Ortalı
   ========================================= */
/* Hero Section'ı Arka Planın Üstüne Getirme */
#home {
    /* Bu üç satır `#home` ve `sleepy-cat-container`'ın mutlak konumlandırma için bir bağlam oluşturmasını sağlar. */
    position: relative;
    display: flex;
    align-items: center; /* Dikey ortala */

    justify-content: flex-start; /* Sola dayalı */
    min-height: 100vh;
    padding: 0 5%;
    z-index: 10; /* Canvas'ın üstünde kalması için */
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    text-align: left;
}

.hello {
    font-size: 1.2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
    /* GÖLGE DEĞERİ ARTIRILDI */
    text-shadow: 0 0 10px var(--primary), 0 0 20px rgba(176, 38, 255, 0.5);
}

/* --- GLITCH ANİMASYONU (KESİN ÇÖZÜM) --- */

/* 1. H1 (BEYZA R.) ve SPAN (KILIÇASLAN) için Ortak Stil */
.glitch-name {
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--text-light); /* Ana metin rengi */
    text-shadow: 0 0 5px var(--primary); /* Ana metne mor parlama */
    line-height: 1.1;
    margin: 0; /* Boşlukları kaldır */
}

/* 2. H1 için Marjin (Soyadından ayırmak ve üst üste bindirmek için) */
h1.glitch-name {
    margin-bottom: -15px; /* Soyadı yukarı çekerek alt satırda bitişik gösterir */
    display: block; /* H1 zaten block'tur ama emin olalım */
}

/* 3. Soyadı (KILIÇASLAN) Bloku */
.surname-glitch {
    display: block; /* Tamamen alt satıra geçmesini sağlar */
    margin-top: 0;
}

/* 4. Glitch Katmanları (H1 ve SPAN için ORTAK tanım) */
.glitch-name::before,
.glitch-name::after {
    /* Metin tekrarını engellemek için, her element kendi 'title' değerini (BEYZA R. veya KILIÇASLAN) çeker */
    content: attr(title);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Tıklanabilirliği etkilemez */
}

/* 5. BEYZA R. GLITCH AYARLARI */

h1.glitch-name::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary); /* Mavi kayma */
    clip: rect(20px, 9999px, 40px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

h1.glitch-name::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary); /* Mor kayma */
    clip: rect(50px, 9999px, 70px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}


/* 6. KILIÇASLAN GLITCH AYARLARI */

.surname-glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary); /* Mavi kayma */
    clip: rect(10px, 9999px, 30px, 0);
    animation: glitch-anim 2.3s infinite linear alternate-reverse;
}

.surname-glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary); /* Mor kayma */
    clip: rect(40px, 9999px, 60px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}


/* KEYFRAMES (Değişmedi) */
@keyframes glitch-anim {
    0% {
        clip: rect(63px, 9999px, 86px, 0);
        transform: skew(0.5deg);
    }

    20% {
        clip: rect(10px, 9999px, 33px, 0);
        transform: skew(0.8deg);
    }

    40% {
        clip: rect(90px, 9999px, 100px, 0);
        transform: skew(0.6deg);
    }

    60% {
        clip: rect(70px, 9999px, 80px, 0);
        transform: skew(0.7deg);
    }

    80% {
        clip: rect(100px, 9999px, 110px, 0);
        transform: skew(0.9deg);
    }

    100% {
        clip: rect(35px, 9999px, 55px, 0);
        transform: skew(0.5deg);
    }
}


.bio {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.highlight {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary);
    font-weight: bold;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* CV İndir Butonu */
.btn-contact {
    width: auto;
    padding: 12px 30px;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    /* GÖNDER Butonunun Stili */
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.2);
    animation: softGlow 3s infinite alternate; /* Gönder butonu ile aynı animasyon */
    transition: all 0.3s ease;
}

    .btn-contact:hover {
        transform: translateY(-3px);
        background: var(--primary);
        color: #fff;
        box-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary);
    }

.social-icons a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-left: 20px;
    transition: 0.2s;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

    .social-icons a:hover {
        color: var(--secondary);
        text-shadow: 0 0 15px var(--secondary);
        transform: scale(1.1);
    }

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* =========================================
   GELİŞMİŞ İÇ İÇE OCTAHEDRON ANİMASYONU
   ========================================= */

/* Kapsayıcı (Konumlandırma ve 3D Perspektifi tutar) */
.octahedron-container {
    position: absolute;
    top: 50%;
    /* Konumu daha da sola kaydırıldı */
    right: 20%;
    transform: translateY(-50%); /* Dikey merkezleme */

    width: 250px; /* Biraz daha büyütüldü */
    height: 250px;
    perspective: 1500px;
    z-index: 5;
    pointer-events: none;
}

/* Tüm Octahedron'lar için ortak stil */
.octahedron {
    width: 100%;
    height: 100%;
    position: absolute; /* İç içe binmelerini sağlar */
    transform-style: preserve-3d;
}

    /* Dış (Büyük) Octahedron */
    .octahedron.outer {
        animation: rotateOuter 20s linear infinite; /* Yavaş ve Mor */
    }

    /* İç (Küçük) Octahedron */
    .octahedron.inner {
        /* Hafifçe küçült ve döndür */
        transform: scale(0.6);
        animation: rotateInner 12s linear infinite reverse; /* Hızlı ve Cyan (Ters Dönüş) */
    }

.face {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border: 125px solid transparent; /* Üçgen boyutu büyütüldü (Yarısı: 250/2) */
    border-top: 0;
    opacity: 0.9;
    transform-origin: 0 0;
    backface-visibility: hidden;
}

/* --- FACE RENGİ VE PARLAKLIK AYARLARI --- */

/* DIŞ (MOR/ANA) OCTAHEDRON */
.outer .face {
    border-bottom-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.outer .f2, .outer .f4, .outer .f6, .outer .f8 {
    /* Mor tonu ile hafif farklılık */
    border-bottom-color: rgba(176, 38, 255, 0.7);
}

/* İÇ (CYAN/DETAY) OCTAHEDRON */
.inner .face {
    border-bottom-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.inner .f2, .inner .f4, .inner .f6, .inner .f8 {
    /* Cyan tonu ile hafif farklılık */
    border-bottom-color: rgba(0, 243, 255, 0.7);
}


/* 3D OCTAHEDRON POZİSYONLARI (Boyut ve Z mesafesi güncellendi: 177px = 125 * sqrt(2)) */
.face {
    /* translateZ(177px) ile 3D konumu ayarlandı */
    transform: translateZ(177px);
    /* Bu kısmı basitleştiriyoruz, z-mesafesi büyük olan için */
    transform-origin: 0 0;
}

/* Üst Piramit Yüzleri (Rotate Z ekseninde 55 derece açı) */
.f1 {
    transform: rotateY(0deg) rotateX(90deg) translateZ(177px) rotateX(55deg);
}

.f2 {
    transform: rotateY(90deg) rotateX(90deg) translateZ(177px) rotateX(55deg);
}

.f3 {
    transform: rotateY(180deg) rotateX(90deg) translateZ(177px) rotateX(55deg);
}

.f4 {
    transform: rotateY(270deg) rotateX(90deg) translateZ(177px) rotateX(55deg);
}

/* Alt Piramit Yüzleri */
.f5 {
    transform: rotateY(0deg) rotateX(-90deg) translateZ(177px) rotateX(55deg);
}

.f6 {
    transform: rotateY(90deg) rotateX(-90deg) translateZ(177px) rotateX(55deg);
}

.f7 {
    transform: rotateY(180deg) rotateX(-90deg) translateZ(177px) rotateX(55deg);
}

.f8 {
    transform: rotateY(270deg) rotateX(-90deg) translateZ(177px) rotateX(55deg);
}


/* DÖNME KEYFRAMES */
@keyframes rotateOuter {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes rotateInner {
    0% {
        transform: scale(0.6) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: scale(0.6) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}


/* =========================================
   4. YETENEKLER (MARQUEE) - Eğik Stil
   ========================================= */
.marquee-container {
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    background-color: rgba(176, 38, 255, 0.1);
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.3);
    transform: rotate(-3deg) scale(1.02); /* Eğiklik burada */
    margin: 50px 0;
    position: relative; /* z-index'in çalışması için gereklidir */
    z-index: 999; /* Kedi (50) bu yazının arkasında kalacak */
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    content: var(--marquee-text);
}

    .marquee-content::after {
        /* ::after ile içeriği kopyala ve hemen arkasına ekle */
        content: attr(data-content); /* VEYA doğrudan metni yazabilirsiniz */
        display: inline-block;
        margin-left: 40px; /* İlk içerikle arasında boşluk bırakmak için */
    }

    .marquee-content span {
        margin-right: 40px;
        padding: 0 10px;
    }

    .marquee-content i {
        font-size: 0.5rem;
        vertical-align: middle;
    }

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =========================================
   5. PROJELER
   ========================================= */
/* Projeler Başlığı (İletişim ile Aynı Stil) */
#projects {
    display: flex;
    flex-direction: column;
    align-items: center; /* Başlığı ortalamak için */
}

    #projects .section-title {
        text-align: center; /* Ortala */
        display: block;
        width: 100%;
        /* Neon Stil ve Animasyon */
        color: #e0e0e0;
        text-shadow: 0 0 5px var(--primary), 0 0 15px var(--primary), 0 0 30px var(--primary);
        animation: neon-breath 3s ease-in-out infinite alternate;
        border: none;
        padding: 0;
        box-shadow: none;
    }

        #projects .section-title::after {
            display: none;
        }
/* Alt çizgiyi kaldır */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    width: 100%;
}

.project-card {
    background-color: #1a1a2e;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(176, 38, 255, 0.3);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.3);
    transition: 0.3s;
    cursor: pointer;
}

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px var(--primary);
        border-color: var(--primary);
    }

.card-image i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--secondary);
    text-shadow: 0 0 5px var(--secondary);
}

.tech-stack span {
    display: inline-block;
    background-color: rgba(176, 38, 255, 0.2);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-top: 5px;
}

/* Modal Stili (Aynı Kaldı) */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-dark);
    margin: 15% auto;
    padding: 30px;
    border: 2px solid var(--secondary);
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 30px var(--secondary);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-img-placeholder {
    width: 100%;
    height: 150px;
    background-color: #1a1a2e;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 5px;
    color: var(--text-muted);
}

/* =========================================
   6. İLETİŞİM BÖLÜMÜ
   ========================================= */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    /* İletişim Başlığı (Ortalı ve Yumuşak Neon) */
    #contact .section-title {
        text-align: center;
        display: block;
        width: 100%;
        margin-bottom: 40px;
        color: #e0e0e0;
        text-shadow: 0 0 5px var(--primary), 0 0 15px var(--primary), 0 0 30px var(--primary);
        animation: neon-breath 3s ease-in-out infinite alternate;
        border: none;
        padding: 0;
        box-shadow: none;
    }

        #contact .section-title::after {
            display: none;
        }

/* Yumuşak Neon Animasyonu */
@keyframes neon-breath {
    from {
        text-shadow: 0 0 5px var(--primary), 0 0 15px var(--primary);
        opacity: 0.8;
    }

    to {
        text-shadow: 0 0 10px var(--primary), 0 0 25px var(--primary), 0 0 40px var(--secondary);
        opacity: 1;
    }
}

.contact-container {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    /* Neon Kare Çerçeve */
    padding: 50px;
    border: 2px solid var(--secondary);
    border-radius: 15px;
    box-shadow: 0 0 30px var(--secondary), inset 0 0 20px rgba(0, 243, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.big-text {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 30px;
}

/* Büyük Uçan İkon */
.floating-icon {
    display: inline-block;
    margin-top: 20px;
}

.floating-icon i {
    font-size: 6rem;
    /* background: linear-gradient(45deg, var(--secondary), var(--primary)); */
    /* -webkit-text-fill-color: transparent; */
    filter: drop-shadow(0 0 15px var(--secondary));
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Form Alanı */
.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    width: 100%;
    position: relative;
    margin-bottom: 30px;
}

    .form-group input, .form-group textarea {
        width: 100%;
        padding: 10px 0;
        background: transparent;
        border: none;
        border-bottom: 2px solid var(--text-muted);
        outline: none;
        color: var(--text-light);
        font-size: 1rem;
        transition: 0.3s;
    }

        .form-group input:focus, .form-group textarea:focus {
            border-bottom: 2px solid var(--primary);
        }

    .form-group label {
        position: absolute;
        top: 10px;
        left: 0;
        color: var(--text-muted);
        pointer-events: none;
        transition: 0.3s;
    }

    .form-group input:focus + label, .form-group input:not(:placeholder-shown):valid + label,
    .form-group textarea:focus + label, .form-group textarea:not(:placeholder-shown):valid + label {
        top: -15px;
        font-size: 0.8rem;
        color: var(--primary);
        text-shadow: 0 0 5px var(--primary);
    }

/* Gönder Butonu (Şeffaf ve Şık) */
.btn { /* Genel btn class'ı yerine contact-form içindeki btn'yi hedefliyoruz */
    /* Düz buton stilini geçersiz kılmak için */
    background: transparent !important;
    border: none !important;
}

.contact-form .btn {
    width: auto;
    min-width: 200px;
    padding: 12px 30px;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-top: 20px;
    cursor: pointer;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.2);
    animation: softGlow 3s infinite alternate;
    transition: all 0.3s ease;
}

    .contact-form .btn:hover {
        background: var(--primary);
        color: #fff;
        box-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary);
        transform: translateY(-3px);
    }

/* Butonun Parlama Animasyonu */
@keyframes softGlow {
    0% {
        box-shadow: 0 0 5px rgba(176, 38, 255, 0.2), inset 0 0 5px rgba(176, 38, 255, 0.1);
        border-color: rgba(176, 38, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 15px rgba(176, 38, 255, 0.6), inset 0 0 10px rgba(176, 38, 255, 0.3);
        border-color: var(--primary);
    }
}

/* =========================================
   NYAN CAT SERBEST DOLAŞIM İÇİN CSS
   ========================================= */

.nyan-cat-wrapper {
    position: fixed;
    /* top ve left değerleri artık JAVASCRIPT tarafından yönetilecek. */
    left: 0; /* Başlangıç değeri */
    top: 0; /* Başlangıç değeri */
    z-index: 10;
    pointer-events: none; /* Mouse etkileşimini engelle (Linklere tıklanabilsin) */
    width: 150px;
    /* JavaScript tarafından konum değiştirildiğinde yumuşak hareket etmesini sağlar */
    transition: transform 0.8s linear, top 0.8s linear, left 0.8s linear;
}

.nyan-cat {
    width: 100%;
    height: auto;
    /* Yüzme/yükselme efekti (Bu animasyon kalabilir, kediye sadece dikey bir hareket katar) */
    animation: floatCat 3s ease-in-out infinite;
    border-radius: 5px;
}

/* Kediye yavaş bir yukarı-aşağı salınım veren animasyon (korundu) */
@keyframes floatCat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* =========================================
   8. MOBİL UYUMLULUK
   ========================================= */
@media (max-width: 768px) {
    .glitch-name {
        font-size: 3rem;
    }

    .bio {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .social-icons a {
        margin-left: 0;
        margin-right: 15px;
    }

    .nyan-cat {
        width: 100px;
    }
}

