/* --- Global Variables --- */
:root {
    --background-color: #ffffff;
    --card-background: #ffffff;
    --text-color: #000000;
    --text-muted: #666666;
    --primary-color: #000000;
    --secondary-color: #333333;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --font-family: 'Inter', sans-serif;
}

/* --- Base & Scroll Fix --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body { 
    scroll-behavior: smooth; 
    font-size: 16px;
    /* Sağa sola kaymayı engelleyen kritik kurallar */
    overflow-x: hidden; 
    width: 100%;
    position: relative;
}

body { 
    background-color: var(--background-color); 
    color: var(--text-color); 
    font-family: var(--font-family);
    line-height: 1.6;
    padding-top: 80px; 
}

/* Tüm listelerdeki siyah noktaları kaldırır */
ul, li { 
    list-style: none !important; 
    list-style-type: none !important;
}

.container { 
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.main-container { 
    width: 100%;
    max-width: 900px; 
    margin: 0 auto; 
    padding: 20px; 
    overflow-x: hidden; /* İçerik taşmasını engeller */
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* --- Header & Nav --- */
header {
    background-color: var(--card-background);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-img { height: 45px; width: auto; object-fit: contain; }

.header-right { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

nav ul { 
    display: flex; 
    gap: 5px; 
    align-items: center; 
}

nav a {
    padding: 8px 12px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 20px;
}

nav a.active {
    background-color: var(--text-color);
    color: var(--background-color) !important;
}

.lang-switcher { 
    display: flex; 
    gap: 8px; 
    font-weight: 600; 
    color: var(--text-muted); 
}

.lang-switcher button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }
.lang-switcher button.active { color: var(--primary-color); text-decoration: underline; }

/* --- Content --- */
.hero { text-align: center; padding: 60px 0; border-bottom: 1px solid var(--border-color); width: 100%; }
.profile-img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid var(--border-color); }

.section { 
    padding: 40px; 
    margin-bottom: 20px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow); 
    width: 100%;
}

.section h2 { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

/* --- Projects --- */
.project-item { 
    display: flex; 
    gap: 25px; 
    margin-bottom: 40px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid var(--border-color); 
}

.image-wrapper { 
    width: 280px; 
    height: 180px; 
    flex-shrink: 0; 
    border-radius: 8px; 
    overflow: hidden; 
    position: relative; 
    cursor: pointer; 
}

.project-image { width: 100%; height: 100%; object-fit: cover; }

/* --- Skills (Mobil Fix) --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-category h3 { margin-bottom: 12px; font-size: 1.1rem; }

/* Yeteneklerin alt alta geçmesini ve sığmasını sağlayan kısım */
.tags {
    display: flex;
    flex-wrap: wrap; /* Yetenekler sığmazsa alt satıra geçer */
    gap: 8px; /* Yetenekler arası boşluk */
}

.tags span {
    background-color: #f3f4f6;
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    white-space: nowrap; /* Kelimelerin bölünmesini engeller */
}

/* --- Contact --- */
.contact-card { 
    background-color: rgba(0,0,0,0.02); 
    padding: 40px; 
    border-radius: 12px; 
    border: 1px dashed var(--border-color); 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.email-link {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 700;
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    body { padding-top: 140px; }
    
    header .container { flex-direction: column; gap: 10px; }
    .header-right { flex-direction: column; gap: 8px; }
    
    nav ul { flex-wrap: wrap; justify-content: center; gap: 4px; }
    nav a { padding: 5px 10px; font-size: 0.85rem; }

    .section { padding: 25px 15px; }
    .project-item { flex-direction: column; }
    .image-wrapper { width: 100%; height: auto; aspect-ratio: 16/9; }

    /* Skills mobilde tek sütun */
    .skills-grid { grid-template-columns: 1fr; }

    .email-link {
        width: 100%;
        max-width: 300px;
        font-size: 0.95rem;
        justify-content: center;
    }
}

/* Utils */
body.lang-en .de { display: none; }
body.lang-de .en { display: none; }
.lightbox { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
.lightbox-content { max-width: 90%; max-height: 80%; border-radius: 8px; }