:root {
    /* One Dark Pro Palette */
    --bg-color: #21252b;
    --card-bg: #282c34;
    --card-border: #353b45;
    --text-primary: #abb2bf;
    --text-muted: #5c6370;
    --accent-blue: #61afef;
    --accent-orange: #d19a66;
    --accent-green: #98c379;
    --code-bg: #1e2227;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Dil Değişim Yumuşak Geçiş Animasyonu */
.i18n-animating {
    opacity: 0.3;
    transform: translateY(3px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #1e2227; z-index: 9999; display: flex;
    justify-content: center; align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-code {
    font-family: var(--font-mono); font-size: 28px; font-weight: 600;
    color: #ffffff; opacity: 0; transform: scale(0.9);
    animation: pulseCode 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader-code span { color: var(--accent-blue); }

@keyframes pulseCode {
    0% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1.05); }
}

/* Navigation */
.ide-nav {
    position: fixed; top: 0; width: 100%; height: 48px;
    background: rgba(33, 37, 43, 0.85); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.nav-content {
    max-width: 1200px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center;
    height: 100%; padding: 0 24px;
}

.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #ffffff; font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.ide-dot { width: 10px; height: 10px; border-radius: 50%; }
.ide-dot.red { background: #e06c75; }
.ide-dot.yellow { background: #e5c07b; }
.ide-dot.green { background: #98c379; }

.nav-links a { color: var(--text-muted); text-decoration: none; font-family: var(--font-mono); font-size: 12px; margin-left: 20px; transition: color 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--accent-blue); }
.code-symbol { color: var(--accent-orange); margin-right: 2px; }

/* Hero Section */
.hero-section { padding-top: 120px; padding-bottom: 20px; text-align: center; }
.ide-line-prefix { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.hero-subtitle { font-size: 16px; color: var(--accent-blue); font-weight: 600; font-family: var(--font-mono); }
.hero-title { font-size: 42px; font-weight: 800; margin: 10px 0; letter-spacing: -0.02em; color: #ffffff; }
.hero-description { font-size: 17px; color: var(--text-primary); max-width: 600px; margin: 0 auto; line-height: 1.5; }
.cursor { animation: blink 1s infinite; color: var(--accent-orange); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Tab Control */
.section-tabs { display: flex; justify-content: center; gap: 8px; margin: 36px 0 20px 0; }
.tab-btn {
    border: 1px solid var(--card-border); background: var(--card-bg); font-size: 13px; font-family: var(--font-mono);
    color: var(--text-muted); padding: 8px 16px; cursor: pointer; border-radius: 8px; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 6px;
}
.tab-btn.active { color: #ffffff; border-color: var(--accent-blue); background: #2c313a; font-weight: 600; }

.tab-content { display: none !important; }
.tab-content.active { display: block !important; }

/* Horizontal Cards Scroll */
.section-container { max-width: 100%; padding: 0 5vw 60px 5vw; }

.horizontal-scroll-wrapper {
    display: flex; gap: 20px; overflow-x: auto; padding: 25px 10px;
    scroll-behavior: smooth; perspective: 1000px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.horizontal-scroll-wrapper::-webkit-scrollbar-track { background: rgba(0,0,0,0.15); border-radius: 10px; }
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

/* Cards Layout & Tilt Hover */
.dev-card {
    flex: 0 0 320px; 
    min-height: 420px; 
    background: var(--card-bg);
    border: 1px solid var(--card-border); 
    border-radius: 16px; 
    padding: 20px;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    cursor: pointer; 
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    user-select: none;
}

.dev-card:hover {
    transform: translateY(-12px) rotate(-2deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-blue);
}

.card-header-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.card-header-meta strong { color: var(--accent-blue); font-weight: 600; }

.card-main-title { 
    font-size: 20px; 
    font-weight: 800; 
    line-height: 1.3; 
    color: #ffffff; 
    margin: 8px 0 10px 0; 
    letter-spacing: -0.01em; 
}

/* Kart Görsel Alanı (Başlığın Altında) */
.card-image-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: var(--code-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dev-card:hover .card-img {
    transform: scale(1.05);
}

/* Taglerin Üstünde Yer Alan Özet Metni */
.card-summary-text {
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-read-more {
    display: inline;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.83rem;
    margin-left: 2px;
    white-space: nowrap;
}

.dev-card:hover .card-read-more {
    text-decoration: underline;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.card-tag-item { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--accent-orange); background: rgba(209, 154, 102, 0.1); padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(209, 154, 102, 0.2); }

/* Modal & Temaya Uygun Dikey Scrollbar */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: none; justify-content: center; align-items: center; z-index: 2000;
}

.modal-card {
    background: var(--card-bg); border: 1px solid var(--card-border); width: 90%; max-width: 620px; max-height: 80vh;
    border-radius: 16px; padding: 32px; overflow-y: auto; position: relative;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}

.modal-image-wrapper {
    width: 100%;
    max-height: 280px;
    overflow: hidden;
    border-radius: 8px;
    margin: 14px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Chrome, Edge, Safari Özel Modal Scrollbar */
.modal-card::-webkit-scrollbar {
    width: 8px;
}
.modal-card::-webkit-scrollbar-track {
    background: var(--code-bg);
    border-radius: 0 16px 16px 0;
}
.modal-card::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 4px;
}
.modal-card::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Firefox Modal Scrollbar */
.modal-card {
    scrollbar-width: thin;
    scrollbar-color: var(--card-border) var(--code-bg);
}

.modal-close {
    position: absolute; top: 16px; right: 16px; border: none; background: var(--code-bg);
    color: var(--text-primary); width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.modal-close:hover { background: #e06c75; color: #ffffff; }

pre { background: var(--code-bg); padding: 14px; border-radius: 8px; border: 1px solid var(--card-border); font-family: var(--font-mono); font-size: 13px; margin: 12px 0; overflow-x: auto; color: #ffffff; }

/* Sağ Altta Sabit Dil Değiştirici Butonu */
.lang-switch-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
}

.lang-btn {
    background: var(--card-bg);
    border: 1px solid var(--accent-blue);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lang-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: #2c313a;
    box-shadow: 0 12px 28px rgba(97, 175, 239, 0.3);
}

.lang-btn:active {
    transform: translateY(0) scale(0.98);
}

/* RESPONSIVE (Mobil & Tablet) DÜZENLEMELER */
@media (max-width: 768px) {
    .nav-content { padding: 0 16px; }
    .hero-section { padding-top: 90px; padding-bottom: 10px; }
    .hero-title { font-size: 28px; }
    .hero-description { font-size: 15px; padding: 0 16px; }
    .section-tabs { margin: 24px 0 12px 0; }
    .tab-btn { padding: 6px 12px; font-size: 12px; }
    .section-container { padding: 0 16px 40px 16px; }
    .horizontal-scroll-wrapper { gap: 14px; padding: 15px 5px; }
    .dev-card { flex: 0 0 280px; min-height: 390px; padding: 18px; }
    .card-main-title { font-size: 18px; }
    .card-image-wrapper { height: 130px; }
    .modal-card { width: 95%; padding: 20px; max-height: 85vh; }
    .modal-card h2 { font-size: 20px !important; }
    .lang-switch-container { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
    .dev-card { flex: 0 0 85vw; min-height: 380px; }
    .hero-title { font-size: 24px; }
    .logo-text { font-size: 12px; }
}