/* Dark mode ve geçiş */

.theme-btn {
    background: transparent;
    border: 2px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.theme-btn:hover {
    transform: rotate(20deg) scale(1.1);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4); 
}

#curtain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    display: flex;
}

.curtain-panel {
    width: 50%;
    height: 100%;
    background-color: #0f172a; 
    position: relative;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
    will-change: transform;
}

.left-panel {
    transform: translateX(-100%);
    border-right: 2px solid #667eea; 
    box-shadow: 5px 0 15px rgba(0,0,0,0.5); 
}

.right-panel {
    transform: translateX(100%);
    border-left: 2px solid #667eea;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

#curtain-overlay.active .left-panel {
    transform: translateX(0);   
}

#curtain-overlay.active .right-panel {
    transform: translateX(0); 
    box-shadow: -10px 0 30px rgba(102, 126, 234, 0.4);
}

.lang-btn {
    background: transparent;
    border: 2px solid #667eea;
    border-radius: 8px; 
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #667eea;
    color: white;
}


.txt-type > .txt-cursor {
    border-right: 2px solid #333; 
    animation: blink 0.7s infinite;
    margin-left: 5px;
}



/* Dark mode - dark kısmı */

body.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1; 
}

body.dark-mode header,
body.dark-mode footer {
    background: rgba(15, 23, 42, 0.95); 
    border-color: #334155;              
}

body.dark-mode .nav-links a {
    color: #e2e8f0;
}

body.dark-mode .nav-links a:hover {
    color: #f4a261; 
}

body.dark-mode .logo {
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
    color: #f1f5f9; 
}

body.dark-mode #app-container {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); 
}

body.dark-mode .project-card,
body.dark-mode .skill-card {
    background: #1e293b; 
    border-color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .project-card:hover,
body.dark-mode .skill-card:hover {
    border-color: #f4a261; 
    transform: translateY(-5px);
}

body.dark-mode input,
body.dark-mode textarea {
    background-color: #0f172a;
    border-color: #475569;
    color: #fff;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus {
    border-color: #f4a261;
}

body.dark-mode .theme-btn {
    border-color: #f4a261; 
    color: #f4a261;       
    box-shadow: 0 0 15px rgba(244, 162, 97, 0.2);
}

/* DIL BUTONLARI dark-mode kısmı*/
body.dark-mode .lang-btn {
    border-color: #f4a261;
    color: #f4a261;
}

body.dark-mode .lang-btn:hover {
    background: #f4a261;
    color: #1e293b;
}

/*FILTER dark mode*/ 
body.dark-mode .filter-btn {
    border-color: #f4a261;
    color: #f4a261;
}

body.dark-mode .filter-btn.active {
    background: #f4a261;
    color: #1e293b; 
}

body.dark-mode .filter-btn:hover {
    background: rgba(244, 162, 97, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    body.dark-mode .nav-links {
        background: #0f172a;
        border-top: 1px solid #334155;
    }
}

/* Typewriter efekti dark-mode kısmı */
body.dark-mode .txt-type > .txt-cursor {
    border-right-color: #f4a261;
}

@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}


body.dark-mode .nav-links a.active-link {
    color: #f4a261; 
}



/* Timeline Dark Mode */ 
body.dark-mode .timeline::before { background: rgba(255,255,255,0.1); }
body.dark-mode .timeline-dot { border-color: #0f172a; }
body.dark-mode .timeline-content {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255,255,255,0.05);
}
body.dark-mode .timeline-item:hover .timeline-content {
    background: rgba(30, 41, 59, 0.8);
}


/* CUSTOM CORSER DARK MODE */
body.dark-mode .cursor { background-color: #f4a261; }
body.dark-mode .cursor-follower { 
    background-color: rgba(244, 162, 97, 0.1);
    border-color: #f4a261;
}