/* ==========================================
   MEGA CSS: STİL VE ANİMASYON MOTORU
   ========================================== */

:root {
    --bg-color: #030305;
    --primary-color: #4f46e5;
    --secondary-color: #818cf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    cursor: none;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: #000;
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.glitch-text {
    font-size: 3rem; font-weight: 900; letter-spacing: 5px; color: white;
    position: relative; margin-bottom: 20px;
}

.loading-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.1); margin: 0 auto; overflow: hidden; }
.loading-bar .progress { width: 0%; height: 100%; background: var(--primary-color); animation: load 2s ease forwards; }
@keyframes load { 0% { width: 0; } 100% { width: 100%; } }

/* SCROLL PROGRESS */
.scroll-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 10000; background: transparent; }
.scroll-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary-color), #ec4899); width: 0%; }

/* MANYETİK İMLEÇ */
.cursor-dot, .cursor-outline, .cursor-glow {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; pointer-events: none; z-index: 9999;
}
.cursor-dot { width: 6px; height: 6px; background-color: #fff; }
.cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.5); transition: width 0.3s, height 0.3s, background-color 0.3s; }
.cursor-glow { width: 400px; height: 400px; background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(0,0,0,0) 60%); z-index: 0; }
.cursor-hover { width: 80px; height: 80px; background-color: rgba(255,255,255,0.1); border-color: transparent; mix-blend-mode: difference; }

/* TİPOGRAFİ */
.text-gradient {
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.title-glow { text-shadow: 0 0 40px rgba(129, 140, 248, 0.3); }
.fw-black { font-weight: 900; }

.badge-modern {
    display: inline-block; padding: 8px 16px; border-radius: 50px;
    background: rgba(129, 140, 248, 0.1); border: 1px solid rgba(129, 140, 248, 0.2);
    color: var(--secondary-color); font-size: 0.85rem; font-weight: 600; letter-spacing: 1px;
}

/* BUTONLAR VE KARTLAR */
.btn-magnetic {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 50px; text-decoration: none; overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
}
.bg-gradient-primary { background: linear-gradient(135deg, var(--primary-color), #7c3aed); box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.5); }
.bg-glass { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); }
.bg-glass-sm { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 10px 20px; border-radius: 30px; }
.btn-text { position: relative; z-index: 2; pointer-events: none; }

.glass-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 24px; backdrop-filter: blur(20px); position: relative; overflow: hidden;
}

/* YETENEK & TIMELINE */
.timeline-item { position: relative; padding-left: 30px; border-left: 1px solid rgba(255,255,255,0.1); }
.timeline-dot {
    position: absolute; left: -6px; top: 5px; width: 11px; height: 11px;
    border-radius: 50%; background: var(--secondary-color); box-shadow: 0 0 10px var(--secondary-color);
}
.skill-pill {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; color: #cbd5e1;
    transition: all 0.3s;
}

/* PROJE KARTLARI */
.project-card {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPjxyZWN0IHdpZHRoPSI0IiBoZWlnaHQ9IjQiIGZpbGw9IiMwMzAzMDUiPjwvcmVjdD48cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWUxZTFlIj48L3JlY3Q+PC9zdmc+');
    border: 1px solid var(--glass-border); border-radius: 24px; position: relative;
    overflow: hidden; transition: border-color 0.4s;
}

/* MARQUEE VE PARÇACIKLAR */
.marquee-wrapper {
    width: 100%; overflow: hidden; background: rgba(255,255,255,0.02);
    padding: 20px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
    transform: rotate(-2deg) scale(1.05);
}
.marquee-content {
    display: flex; width: max-content;
    animation: scroll 30s linear infinite; font-size: 1.5rem; font-weight: 800; color: rgba(255,255,255,0.1);
}
.marquee-content span { margin: 0 40px; transition: color 0.3s; }
@keyframes scroll { to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(80px); transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* PROFIL GÖRSELİ EFEKTLERİ */
.profile-image-container { position: relative; display: inline-block; }
.profile-img { width: 260px; height: 260px; object-fit: cover; border: 4px solid rgba(255,255,255,0.1); box-shadow: 0 0 40px rgba(79, 70, 229, 0.5); position: relative; z-index: 2; }
.profile-glow { position: absolute; top: 50%; left: 50%; width: 290px; height: 290px; transform: translate(-50%, -50%); background: conic-gradient(from 0deg, #4f46e5, #ec4899, #4f46e5); border-radius: 50%; filter: blur(25px); animation: spinGlow 4s linear infinite; z-index: 1; }
@keyframes spinGlow { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

.particles-container { position: absolute; top:0; left:0; width:100%; height:100%; overflow:hidden; z-index:-1; pointer-events:none; }
.particle { position:absolute; border-radius:50%; background:var(--primary-color); filter:blur(60px); opacity:0.3; animation: float 10s infinite alternate; }
.p1 { width:300px; height:300px; top:-10%; left:-10%; }
.p2 { width:400px; height:400px; bottom:-20%; right:-10%; background:#ec4899; animation-delay: -5s; }
@keyframes float { 100% { transform: translate(50px, 50px); } }

.border-top-glass { border-top: 1px solid var(--glass-border); }

/* ==========================================
   YENİ PREMIUM BUTONLAR (TİTREME YAPMAZ)
   ========================================== */
.btn-premium {
    position: relative; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 14px 32px; 
    border-radius: 50px; 
    text-decoration: none; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-premium:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

/* MEVLUTBOT */

#mevlutbot-container{
    position:fixed;
    bottom:30px;
    right:30px;
    z-index:99999;
}

#mevlutbot-toggle{
    width:65px;
    height:65px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    color:white;
    font-size:24px;
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
    box-shadow:0 0 25px rgba(79,70,229,.5);
    transition:.3s;
}

#mevlutbot-toggle:hover{
    transform:scale(1.1);
}

#mevlutbot-chat{
    position:absolute;
    bottom:80px;
    right:0;
    width:340px;
    display:none;
    overflow:hidden;
    border-radius:20px;
    backdrop-filter:blur(20px);
    background:rgba(15,23,42,.95);
    border:1px solid rgba(255,255,255,.1);
    box-shadow:0 20px 50px rgba(0,0,0,.4);
}

#mevlutbot-chat.active{
    display:block;
    animation:chatOpen .3s ease;
}

@keyframes chatOpen{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.bot-header{
    padding:15px;
    font-weight:700;
    color:white;
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
}

.bot-messages{
    padding:15px;
    max-height:250px;
    overflow-y:auto;
}

.bot-message{
    background:rgba(255,255,255,.08);
    padding:12px;
    border-radius:12px;
    color:white;
    margin-bottom:10px;
}

.user-message{
    background:#4f46e5;
    text-align:right;
}

.bot-questions{
    padding:15px;
    border-top:1px solid rgba(255,255,255,.1);
    display:flex;
    flex-direction:column;
    gap:8px;
}

.question-btn{
    border:none;
    cursor:pointer;
    padding:10px;
    border-radius:10px;
    background:rgba(255,255,255,.08);
    color:white;
    transition:.3s;
}

.question-btn:hover{
    background:#4f46e5;
}