/* ==========================================================================
   KESOFTWARE KİŞİSEL PORTFOLYO - STİL DOSYASI (AÇIK & KOYU TEMA + TAM MOBİL UYUM)
   ========================================================================== */

:root {
    color-scheme: light dark;

    /* Arka Plan Renkleri (Açık Tema - Yumuşak Beyaz ve Açık Gri Tonları) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;

    /* Metin Renkleri (Açık Tema) */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    /* Vurgu Renkleri (Açık Tema - Soft Mavi Tonları) */
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-soft: #60a5fa;
    --accent-light: #eff6ff;
    --accent-border: #bfdbfe;
    --btn-primary-bg: #2563eb;
    --btn-primary-hover: #1d4ed8;
    --btn-primary-text: #ffffff;

    /* Kod Önizleme Renkleri (Açık Tema) */
    --code-kw: #2563eb;
    --code-cls: #0284c7;
    --code-str: #0d9488;
    --code-fn: #4f46e5;

    /* Kart Placeholder Arka Planları (Açık Tema) */
    --placeholder-flutter: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    --placeholder-hardware: linear-gradient(135deg, #f1f5f9 0%, #e0f2fe 100%);
    --placeholder-web: linear-gradient(135deg, #eff6ff 0%, #e2e8f0 100%);
    --badge-surface: rgba(255, 255, 255, 0.94);
    --floating-tag-bg: #ffffff;

    /* Kenarlık ve Gölgeler */
    --border-color: #e2e8f0;
    --grid-line-color: rgba(226, 232, 240, 0.6);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(37, 99, 235, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(37, 99, 235, 0.14), 0 10px 15px -5px rgba(15, 23, 42, 0.05);

    /* Tipografi */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-sans);
    --font-mono: 'JetBrains Mono', monospace;

    /* Geçişler */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* KOYU TEMA (Cihaz Koyu Temadaysa Otomatik VEYA Butonla Koyu Tema Seçildiğinde)
   Lacivert / koyu mavi yazılar yerine yüksek kontrastlı parlak beyaz ve açık gökyüzü mavisi kullanılır */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #0b1120;
        --bg-secondary: #111827;
        --bg-tertiary: #1e293b;
        --bg-card: #152033;

        /* Koyu temada tüm ana metinler parlak beyaz ve açık gümüş gri */
        --text-primary: #f8fafc;
        --text-secondary: #e2e8f0;
        --text-muted: #94a3b8;

        /* Koyu temada lacivert yerine parlak, okunaklı açık mavi/turkuaz vurgu tonları */
        --accent-primary: #60a5fa;
        --accent-secondary: #93c5fd;
        --accent-soft: #38bdf8;
        --accent-light: rgba(96, 165, 250, 0.16);
        --accent-border: rgba(147, 197, 253, 0.35);
        --btn-primary-bg: #3b82f6;
        --btn-primary-hover: #60a5fa;
        --btn-primary-text: #ffffff;

        /* Koyu temada kod renklendirmesi (Parlak pastel tonlar) */
        --code-kw: #93c5fd;
        --code-cls: #38bdf8;
        --code-str: #5eead4;
        --code-fn: #c4b5fd;

        /* Kart Placeholder Arka Planları (Koyu Tema) */
        --placeholder-flutter: linear-gradient(135deg, #172554 0%, #1e3a8a 100%);
        --placeholder-hardware: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
        --placeholder-web: linear-gradient(135deg, #1e293b 0%, #172554 100%);
        --badge-surface: rgba(15, 23, 42, 0.9);
        --floating-tag-bg: #1e293b;

        --border-color: #26354d;
        --grid-line-color: rgba(51, 65, 85, 0.45);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
    }
}

:root[data-theme="dark"] {
    --bg-primary: #0b1120;
    --bg-secondary: #111827;
    --bg-tertiary: #1e293b;
    --bg-card: #152033;

    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;

    --accent-primary: #60a5fa;
    --accent-secondary: #93c5fd;
    --accent-soft: #38bdf8;
    --accent-light: rgba(96, 165, 250, 0.16);
    --accent-border: rgba(147, 197, 253, 0.35);
    --btn-primary-bg: #3b82f6;
    --btn-primary-hover: #60a5fa;
    --btn-primary-text: #ffffff;

    --code-kw: #93c5fd;
    --code-cls: #38bdf8;
    --code-str: #5eead4;
    --code-fn: #c4b5fd;

    --placeholder-flutter: linear-gradient(135deg, #172554 0%, #1e3a8a 100%);
    --placeholder-hardware: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    --placeholder-web: linear-gradient(135deg, #1e293b 0%, #172554 100%);
    --badge-surface: rgba(15, 23, 42, 0.9);
    --floating-tag-bg: #1e293b;

    --border-color: #26354d;
    --grid-line-color: rgba(51, 65, 85, 0.45);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
}

/* Zorunlu Navigasyon Özelliği: Yumuşak Kaydırma (Smooth Scroll) ve Taşma Önleme */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    max-width: 100%;
    overflow-x: hidden;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* Tüm başlık ve metinlerin dar mobil ekranlarda taşmasını engelle */
h1, h2, h3, h4, h5, h6, p, span, a, li {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Yardımcı Sınıflar */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-padding {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem auto;
    padding: 0 0.5rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    background-color: var(--accent-light);
    border: 1px solid var(--accent-border);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
    max-width: 100%;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.section-divider {
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-soft));
    margin: 1rem auto 1.25rem auto;
    border-radius: 999px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==========================================================================
   1. BÖLÜM: HEADER & NAVİGASYON
   ========================================================================== */
/* Sayfayı aşağı kaydırdıkça sabit kalmaz, sayfa ile birlikte yukarı kayıp kaybolur */
.site-header {
    position: relative;
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 20;
}

.header-container {
    display: flex;
    justify-content: space-between; /* kesoftware logosu tam sola, menü linkleri tam sağa */
    align-items: center;
    height: 82px;
    gap: 1rem;
}

/* Sol Üst Köşe: "kesoftware" Logosu ("o" harfi dişli çark) */
.navbar-brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.navbar-brand .brand-text {
    display: inline-flex;
    align-items: center;
}

.navbar-brand .brand-gear {
    color: var(--accent-primary);
    font-size: 1.15em;
    margin: 0 0.06rem;
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), color var(--transition-fast);
    transform: translateY(1px);
}

.navbar-brand:hover .brand-gear {
    transform: translateY(1px) rotate(180deg);
    color: var(--accent-secondary);
}

/* Sağ Taraf Kapsayıcısı */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2.5px;
    background-color: var(--accent-primary);
    border-radius: 99px;
    transition: width var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Tema Değiştirme Butonu */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-border);
    transform: translateY(-1px);
}

/* Mobil Menü Butonu */
.mobile-menu-toggle {
    display: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.mobile-menu-toggle .bar {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ==========================================================================
   2. BÖLÜM: ANA SAYFA (HERO SECTION)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: calc(100vh - 82px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0 5rem 0;
    background: radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 55%),
                linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 20%, transparent 80%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
    align-items: center;
}

.hero-content,
.hero-visual {
    min-width: 0;
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--accent-light);
    border: 1px solid var(--accent-border);
    color: var(--accent-primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    margin-bottom: 1.35rem;
    max-width: 100%;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.text-accent {
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(0.96rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
}

/* Buton Stilleri */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    max-width: 100%;
    text-align: center;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.45);
}

.btn-primary i {
    transition: transform var(--transition-fast);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--accent-soft);
    color: var(--accent-primary);
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

/* Hero Alt Teknoloji Şeridi */
.hero-tech-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.tech-pill i {
    color: var(--accent-primary);
}

/* Hero Sağ Teknik Görsel Kartı */
.blueprint-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform var(--transition-smooth);
    max-width: 100%;
}

.blueprint-card:hover {
    transform: translateY(-5px);
}

.blueprint-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.window-dots span:nth-child(1) { background-color: #93c5fd; }
.window-dots span:nth-child(2) { background-color: #60a5fa; }
.window-dots span:nth-child(3) { background-color: #3b82f6; }

.blueprint-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.blueprint-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-primary);
    background-color: var(--accent-light);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid var(--accent-border);
}

.blueprint-body {
    padding: 1.25rem;
}

.code-preview {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.15rem;
    max-width: 100%;
    overflow-x: auto;
}

.code-preview pre {
    font-family: var(--font-mono);
    font-size: clamp(0.74rem, 2vw, 0.82rem);
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

.code-kw { color: var(--code-kw); font-weight: 600; }
.code-cls { color: var(--code-cls); font-weight: 600; }
.code-str { color: var(--code-str); }
.code-fn { color: var(--code-fn); font-weight: 600; }

.hardware-telemetry {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.95rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    min-width: 0;
}

.telemetry-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: var(--accent-light);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.telemetry-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.telemetry-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
}

.telemetry-val {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Aşağı Kaydır İndikatörü */
.scroll-down-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color var(--transition-fast);
}

.scroll-down-indicator:hover {
    color: var(--accent-primary);
}

.scroll-down-indicator i {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(5px); }
    60% { transform: translateY(3px); }
}

/* ==========================================================================
   3. BÖLÜM: HAKKIMDA (ABOUT ME)
   ========================================================================== */
.about-section {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
    align-items: start;
}

.about-text-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
}

.about-heading {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.38;
}

.about-paragraph {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.02rem);
    margin-bottom: 1.2rem;
}

.about-paragraph strong {
    color: var(--text-primary);
    font-weight: 700;
}

.about-paragraph.highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background-color: var(--accent-light);
    border: 1px solid var(--accent-border);
    border-left: 4px solid var(--accent-primary);
    padding: 1.15rem;
    border-radius: 12px;
    margin-bottom: 0;
    color: var(--text-primary);
}

.about-paragraph.highlight-box i {
    color: var(--accent-primary);
    font-size: 1.25rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-width: 0;
    max-width: 100%;
}

.milestone-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    min-width: 0;
}

.milestone-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md);
}

.milestone-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--accent-light);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.milestone-content {
    min-width: 0;
}

.milestone-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-primary);
    margin-bottom: 0.2rem;
}

.milestone-content h4 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.milestone-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.skills-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
}

.skills-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    background-color: var(--bg-card);
    border: 1px solid var(--accent-border);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.skill-badge:hover {
    background-color: var(--btn-primary-bg);
    color: #ffffff;
    border-color: var(--btn-primary-bg);
}

/* ==========================================================================
   4. BÖLÜM: PROJELERİM (PROJECTS - CARD VIEW)
   ========================================================================== */
.projects-section {
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    min-width: 0;
    max-width: 100%;
}

/* Hover Efektleri */
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-soft);
}

/* Kart Üst Görsel Alanı (Placeholder) */
.project-image-placeholder {
    position: relative;
    height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.placeholder-flutter {
    background: var(--placeholder-flutter);
}

.placeholder-hardware {
    background: var(--placeholder-hardware);
}

.placeholder-web {
    background: var(--placeholder-web);
}

.placeholder-overlay-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(96, 165, 250, 0.2) 1px, transparent 1px);
    background-size: 18px 18px;
}

.project-category-badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 2;
    background-color: var(--badge-surface);
    backdrop-filter: blur(6px);
    color: var(--accent-primary);
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--accent-border);
    max-width: calc(100% - 1.8rem);
}

.placeholder-illustration {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.illus-circle {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background-color: var(--bg-card);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    box-shadow: 0 12px 25px -5px rgba(37, 99, 235, 0.2);
    border: 1px solid var(--accent-border);
    transition: transform var(--transition-smooth), background-color var(--transition-smooth), color var(--transition-smooth);
}

.project-card:hover .illus-circle {
    transform: scale(1.08) rotate(-4deg);
    background-color: var(--btn-primary-bg);
    color: #ffffff;
}

.illus-floating-tag {
    position: absolute;
    background-color: var(--floating-tag-bg);
    color: var(--text-primary);
    font-size: 0.73rem;
    font-weight: 600;
    padding: 0.32rem 0.65rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    transition: transform var(--transition-smooth);
}

.illus-floating-tag i {
    color: var(--accent-primary);
}

.illus-floating-tag.tag-top {
    top: 3.1rem;
    right: 0.9rem;
}

.illus-floating-tag.tag-bottom {
    bottom: 0.95rem;
    left: 0.9rem;
}

.project-card:hover .illus-floating-tag.tag-top {
    transform: translateY(-4px);
}

.project-card:hover .illus-floating-tag.tag-bottom {
    transform: translateY(4px);
}

/* Kart İçerik Alanı */
.project-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.project-tech-list span {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-tertiary);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
    line-height: 1.35;
    transition: color var(--transition-fast);
}

.project-card:hover .project-title {
    color: var(--accent-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.94rem;
    margin-bottom: 1.35rem;
    flex-grow: 1;
}

.project-desc strong {
    color: var(--text-primary);
    font-weight: 700;
}

.project-card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* "İncele" Butonu */
.btn-inspect {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--accent-light);
    color: var(--accent-primary);
    border: 1px solid var(--accent-border);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-inspect i {
    transition: transform var(--transition-fast);
}

.btn-inspect:hover {
    background-color: var(--btn-primary-bg);
    color: #ffffff;
    border-color: var(--btn-primary-bg);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.btn-inspect:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   5. BÖLÜMLER ARASI "ANA SAYFAYA DÖN" BUTONLARI
   ========================================================================== */
#ana-sayfa {
    scroll-margin-top: 100px;
}

.section-return-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--bg-card);
    color: var(--accent-primary);
    border: 1.5px solid var(--accent-border);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.btn-back-home i {
    font-size: 0.88rem;
    transition: transform var(--transition-fast);
}

.btn-back-home:hover {
    background-color: var(--btn-primary-bg);
    color: #ffffff;
    border-color: var(--btn-primary-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px -4px rgba(37, 99, 235, 0.35);
}

.btn-back-home:hover i {
    transform: translateY(-3px);
}

/* Sağ Alt Köşe Yüzen Ana Sayfaya Dön Butonu */
.floating-home-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.15rem;
    background-color: var(--btn-primary-bg);
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all var(--transition-smooth);
}

.floating-home-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-home-btn:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-3px);
}

/* ==========================================================================
   6. BÖLÜM: FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2.75rem 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-copy {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PROJE DETAY MODALI
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px) scale(0.98);
    transition: transform var(--transition-fast);
}

.modal-backdrop.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--accent-light);
    color: var(--accent-primary);
    border-color: var(--accent-border);
}

.modal-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent-primary);
    background-color: var(--accent-light);
    border: 1px solid var(--accent-border);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
    padding-right: 1rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    padding-right: 1.5rem;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.modal-highlights {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.35rem;
}

.modal-highlights h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.modal-highlights ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-highlights li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.modal-highlights li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-primary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   7. DUYARLI (RESPONSIVE) TASARIM KURALLARI (TABLET & MOBİL)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container,
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.25rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .hero-section {
        padding: 3rem 0 4rem 0;
        min-height: auto;
    }

    .scroll-down-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.15rem;
    }

    .section-padding {
        padding: 3.75rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .header-container {
        height: 70px;
    }

    .header-right {
        gap: 0.6rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        padding: 1.15rem 1.25rem;
        display: none;
        z-index: 50;
    }

    .navbar-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        width: 100%;
    }

    .nav-item,
    .nav-link {
        width: 100%;
        display: block;
        padding: 0.45rem 0;
    }

    .hero-section {
        padding: 2.25rem 0 3.25rem 0;
    }

    .hero-title {
        font-size: clamp(1.65rem, 6.5vw, 2.25rem);
        line-height: 1.22;
    }

    .hero-description {
        font-size: 0.96rem;
        margin-bottom: 1.65rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .blueprint-body {
        padding: 1rem;
    }

    .code-preview {
        padding: 0.85rem;
    }

    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .about-text-card {
        padding: 1.35rem;
    }

    .about-paragraph.highlight-box {
        flex-direction: column;
        gap: 0.6rem;
        padding: 1rem;
    }

    .milestone-card {
        padding: 1.1rem;
    }

    .project-card-body {
        padding: 1.25rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .floating-home-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 0.9rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .illus-floating-tag {
        font-size: 0.68rem;
        padding: 0.25rem 0.5rem;
    }
}
