@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #040201;
    --panel-bg: rgba(12, 6, 3, 0.55);
    --fire-main: #f27d0c;
    --fire-light: #f07f13;
    --fire-red: #d92020;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html{ scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

/* --- 1. SİNEMATİK AÇILIŞ (SPLASH SCREEN) --- */
#splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-dark);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#splash-screen.fade-out {
    transform: translateY(-100vh); /* Yukarı doğru kayarak açılır */
    opacity: 0;
}

.splash-content { text-align: center; }

.splash-loader {
    width: 50px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--fire-main), transparent);
    margin: 20px auto 0;
    position: relative; overflow: hidden;
}
.splash-loader::after {
    content: ''; position: absolute; left: -100%; top: 0; height: 100%; width: 100%;
    background: var(--text-main); animation: loadingBar 1.5s infinite;
}
@keyframes loadingBar { 100% { left: 100%; } }

/* Glitch Efekti (Açılış Yazısı İçin) */
.glitch {
    font-size: 3.5rem; font-weight: 750; color: #fff; letter-spacing: 5px; position: relative;
    text-shadow: 0 0 15px var(--fire-main);
}
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-dark);
}
.glitch::before { left: 2px; text-shadow: -2px 0 var(--fire-red); clip: rect(44px, 450px, 56px, 0); animation: glitch-anim 5s infinite linear alternate-reverse; }
.glitch::after { left: -2px; text-shadow: -2px 0 var(--fire-main); clip: rect(85px, 450px, 140px, 0); animation: glitch-anim2 5s infinite linear alternate-reverse; }

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    10% { clip: rect(112px, 9999px, 76px, 0); }
    20% { clip: rect(85px, 9999px, 5px, 0); }
    100% { clip: rect(27px, 9999px, 115px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(76px, 9999px, 116px, 0); }
    11% { clip: rect(43px, 9999px, 98px, 0); }
    50% { clip: rect(12px, 9999px, 85px, 0); }
    100% { clip: rect(99px, 9999px, 145px, 0); }
}

/* --- 2. KATMANLI PARALLAX ARKA PLAN --- */
#parallax-bg-wrapper {
    position: fixed; top: -5%; left: -5%; width: 110%; height: 110%; /* Taşıp rahat oynaması için %110 */
    z-index: 1; pointer-events: none;
}
.parallax-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    will-change: transform; transition: transform 0.1s ease-out; /* Mouse hareketini yumuşatır */
}
/* Katmanların Görsel Filtre Ayarları */
.layer-back { opacity: 0.4; }
.layer-mid { opacity: 0.5; filter: blur(1px); }/* 0.25 */
.layer-front { opacity: 0.3; filter: blur(4px); }

/* --- 3. ANA UYGULAMA VE SİNEMATİK GEÇİŞLER --- */
.app-container {
    display: flex; height: 100vh; width: 100%; position: relative; z-index: 10;
    opacity: 0; transform: scale(1.05); transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}
body.loaded .app-container { opacity: 1; transform: scale(1); }

.sidebar { width: 320px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 25px; border-right: 1px solid rgba(242, 125, 12, 0.15); }
.glass-panel { background: var(--panel-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(242,125,12,0.08); }

/* Sağ Panel ve Mercek Geçiş Efekti */
/* .content-area { flex: 1; height: 100%; padding: 60px 8%; overflow-y: auto; position: relative; perspective: 1000px; }
.content-area::-webkit-scrollbar { width: 6px; }
.content-area::-webkit-scrollbar-thumb { background: var(--fire-main); border-radius: 3px; }


.page-section {
    display: none;
    will-change: transform, opacity;
}
.page-section.active {
    display: block;
    animation: cinematicZoomIn 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
} */

/* Sağ İçerik Alanı - Manyetik Kaydırma (Scroll Snap) Eklendi */
.content-area {
    flex: 1;
    height: 100%;
    padding: 0 8%;
    overflow-y: auto;
    position: relative;
    perspective: 1000px;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory; /* Sihirli mıknatıs özelliği */
     animation: cinematicZoomIn 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.content-area::-webkit-scrollbar { display: none; width: 6px; }
.content-area::-webkit-scrollbar-thumb { background: var(--fire-main); border-radius: 3px; }

/* --- 1. ANA TAŞIYICI (Sadece Kaydırma İçin - Hareket Etmez!) --- */
.page-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    /* Mıknatıs özelliği burada, ancak kutu sabit olduğu için artık ışınlanma yapmaz */
    scroll-snap-align: center; 
}

/* --- 2. İÇ ELEMANLARIN BAŞLANGIÇ HALİ (Aşağıda, Bulanık ve Gizli) --- */
.page-section .section-header,
.page-section .content-card,
.page-section .skills-grid,
.page-section .projects-grid,
.page-section .gallery-grid,
.page-section .media-container {
    opacity: 0;
    /* Elemanlar kutunun içindeyken %10 aşağıdan ve küçülmüş olarak başlar */
    transform: translateY(10vh) scale(0.95);
    filter: blur(10px);
    will-change: transform, opacity, filter;
}

/* --- 3. SAYFA GÖRÜNÜNCE TETİKLENEN YAĞ GİBİ AKAN ANİMASYONLAR --- */

/* Aşama 1: Başlıklar hemen netleşir ve yerine süzülür */
.page-section.in-view .section-header {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    /* Apple tarzı yaylanma efekti (cubic-bezier) */
    transition: opacity 0.8s ease-out, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease-out;
    margin-bottom: 30px;
}

/* Aşama 2: İçerikler (Kartlar vb.) 0.2 saniye gecikmeli olarak başlığı takip eder */
.page-section.in-view .content-card,
.page-section.in-view .skills-grid,
.page-section.in-view .projects-grid,
.page-section.in-view .gallery-grid,
.page-section.in-view .media-container {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition: opacity 1s ease-out 0.2s, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, filter 1s ease-out 0.2s;
}

@keyframes cinematicZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.93) translateZ(-50px);
        clip-path: circle(0% at 50% 50%);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
        clip-path: circle(100% at 50% 50%);
    }
}

/* --- 4. 3D TILT KART AYARLARI --- */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.tilt-card:hover {
    border-color: var(--fire-main);
    box-shadow: 0 15px 35px rgba(242, 125, 12, 0.2);
}

/* Ortak İçerik Düzenleri */
.section-header h2 { font-size: 2.4rem; font-weight: 300; letter-spacing: 1px; }
.highlight { color: var(--fire-main); font-weight: 700; text-shadow: 0 0 15px rgba(242, 125, 12, 0.4); }
.header-line { width: 50px; height: 4px; background: var(--fire-main); margin-top: 10px; border-radius: 2px; box-shadow: 0 0 10px var(--fire-main); }
.content-card { padding: 35px; border-radius: 12px; margin-bottom: 30px; }
.content-card p { color: var(--text-muted); line-height: 1.8; }

/* Profil ve Menü */
.profile-section { text-align: center; margin-bottom: 30px; }
.avatar-glow { width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; border: 3px solid var(--fire-main); box-shadow: 0 0 25px rgba(242, 125, 12, 0.4); }
.avatar-glow img { width: 100%; height: 100%; object-fit: cover; }
.neon-text { font-size: 1.7rem; font-weight: 700; text-shadow: 0 0 10px var(--fire-main); letter-spacing: 2px; }
.typing-container { color: var(--fire-light); font-size: 0.85rem; margin-top: 5px; height: 20px; letter-spacing: 1px; }
.cursor { animation: blink 0.7s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.sidebar-nav { display: flex; flex-direction: column; gap: 12px; }
.nav-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1rem; padding: 14px 20px; border-radius: 8px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 15px; }
.nav-btn:hover { color: var(--text-main); background: rgba(242, 125, 12, 0.08); }
.nav-btn.active { color: #fff; background: linear-gradient(90deg, rgba(242,125,12,0.25) 0%, transparent 100%); border-left: 4px solid var(--fire-main); box-shadow: inset 8px 0 15px rgba(242,125,12,0.05); }

.social-links { display: flex; justify-content: center; gap: 20px; }
.social-links a { color: var(--text-muted); font-size: 1.2rem; transition: 0.3s; }
.social-links a:hover { color: var(--fire-main); transform: translateY(-3px); }

/* Yetenekler */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.skill-item { margin-top: 20px; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; }
.progress-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--fire-red), var(--fire-light)); box-shadow: 0 0 8px var(--fire-main); }

/* Projeler & Galeri */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.project-card { padding: 30px; border-radius: 12px; border: 1px solid rgba(242,125,12,0.12); }
.project-icon { font-size: 2rem; color: var(--fire-main); margin-bottom: 15px; }
.tag { background: rgba(242,125,12,0.15); color: var(--fire-main); padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; margin-right: 5px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.gallery-item { border-radius: 10px; overflow: hidden; border: 1px solid rgba(242,125,12,0.2); height: 160px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.gallery-item:hover img { transform: scale(1.08); }

.media-container iframe { border-radius: 8px; border: 1px solid rgba(242,125,12,0.15); margin-top: 15px; }

#fire-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.ember { position: absolute; bottom: -10px; width: 3px; height: 3px; background: var(--fire-main); border-radius: 50%; box-shadow: 0 0 8px var(--fire-main); animation: floatEmber linear infinite; }
@keyframes floatEmber { 0% { transform: translateY(0) scale(1); opacity: 0.9; } 100% { transform: translateY(-110vh) scale(0.2); opacity: 0; } }

@media (max-width: 900px) {
    .app-container { flex-direction: column; overflow-y: auto; }
    .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid rgba(242, 125, 12, 0.15); }
    .content-area { overflow-y: visible; padding: 40px 5%; }
    .skills-grid { grid-template-columns: 1fr; }
}





/* --- SİHİRLİ KIVILCIM İMLECİ --- */
body { cursor: none; } /* Standart Windows/Mac imlecini gizle */

/* Tıklanamayan alanlarda kendi imlecini göster */
a, button, .tilt-card, .masonry-item { cursor: none; }

.cursor-dot {
    width: 6px; height: 6px; 
    background: var(--fire-main);
    position: fixed; top: 0; left: 0; 
    transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; 
    pointer-events: none;
    box-shadow: 0 0 10px var(--fire-main), 0 0 20px var(--fire-light);
}

.cursor-outline {
    width: 36px; height: 36px; 
    border: 2px solid rgba(242, 125, 12, 0.5);
    position: fixed; top: 0; left: 0; 
    transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9998; 
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Tıklanabilir (Hover) bir öğeye gelince büyüme ve renk değiştirme efekti */
.cursor-outline.hover-active {
    width: 55px; height: 55px;
    background-color: rgba(242, 125, 12, 0.1);
    border-color: var(--fire-main);
    backdrop-filter: blur(2px);
}