:root {
    /* Modern, temiz ve okunabilir renk paleti */
    --primary-color: #2563eb;
    --primary-light: #eff6ff;
    --secondary-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #6366f1;
        --primary-light: rgba(99, 102, 241, 0.15);
        --secondary-color: #10b981;
        --warning-color: #f59e0b;
        --error-color: #ef4444;
        --bg-color: #121212;
        --card-bg: #1e1e1e;
        --text-main: #e5e5e5;
        --text-muted: #a3a3a3;
        --border-color: #333333;
    }

    h1, h2, h3, h4, h5 { color: #f5f5f5 !important; }
    
    .hero {
        background: #121212 !important;
        border-bottom: 1px solid #333333;
    }
    
    .tech-tag.react { background: rgba(56, 189, 248, 0.15) !important; color: #38bdf8 !important; }
    .tech-tag.node { background: rgba(74, 222, 128, 0.15) !important; color: #4ade80 !important; }
    .tech-tag.mongo { background: rgba(148, 163, 184, 0.15) !important; color: #94a3b8 !important; }
    .tech-tag.java { background: rgba(249, 115, 22, 0.15) !important; color: #fb923c !important; }

    .how-i-did { background-color: rgba(59, 130, 246, 0.1) !important; border-color: rgba(59, 130, 246, 0.3) !important; }
    .how-i-did h4 { color: #60a5fa !important; }
    
    .where-i-struggled { background-color: rgba(239, 68, 68, 0.1) !important; border-color: rgba(239, 68, 68, 0.3) !important; }
    .where-i-struggled h4 { color: #f87171 !important; }
    
    .step.personal-struggle { background-color: rgba(245, 158, 11, 0.1) !important; border-color: rgba(245, 158, 11, 0.3) !important; }
    .step.personal-struggle h5 { color: #fbbf24 !important; }
    
    .step.resources { background-color: rgba(16, 185, 129, 0.1) !important; border-color: rgba(16, 185, 129, 0.3) !important; }
    .step.resources h5 { color: #34d399 !important; }
    
    .reading-summary p { background: #1e1e1e !important; }
    
    .btn-details { background-color: rgba(99, 102, 241, 0.15) !important; color: #818cf8 !important; }
    .btn-details:hover { background-color: rgba(99, 102, 241, 0.25) !important; }
    
    .contact-item.linkedin i { color: #60a5fa !important; }
    .contact-item.github i { color: #f5f5f5 !important; }
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    color: #0f172a;
    line-height: 1.3;
}

/* ====== NAVBAR ====== */
.navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}


.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

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

/* ====== HERO ====== */
.hero {
    background: linear-gradient(to bottom right, #ffffff, var(--primary-light));
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ====== GENEL LAYOUT ====== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    margin-bottom: 6rem;
}

.section-header {
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* ====== PROJELER (DETAYLI DENEYİM) ====== */
.project-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.8rem;
}

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

.tech-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
}
.tech-tag.react { background: #e0f2fe; color: #0284c7; }
.tech-tag.node { background: #dcfce7; color: #166534; }
.tech-tag.mongo { background: #f3f4f6; color: #4b5563; }
.tech-tag.java { background: #ffedd5; color: #ea580c; }

.project-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-details {
    margin-top: 1rem;
}

.btn-details {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    list-style: none;
    transition: background-color var(--transition);
    margin-bottom: 1.5rem;
}

.btn-details::-webkit-details-marker {
    display: none;
}

.btn-details:hover {
    background-color: #dbeafe;
}

.project-details[open] .btn-details::after {
    content: ' (Gizle)';
    font-weight: 400;
    font-size: 0.8rem;
}

.project-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .project-sections { grid-template-columns: 1fr; }
}

.experience-box {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.how-i-did {
    background-color: var(--primary-light);
    border-color: #bfdbfe;
}

.where-i-struggled {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.experience-box h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.how-i-did h4 { color: #1d4ed8; }
.where-i-struggled h4 { color: #b91c1c; }

.experience-box p {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* ====== YOL HARİTASI ====== */
.roadmap-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

details.roadmap-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    border-radius: 0;
}

details.roadmap-card:last-child {
    border-bottom: none;
}

summary.roadmap-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Varsayılan oku gizle */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    transition: color var(--transition);
}

summary.roadmap-title::-webkit-details-marker {
    display: none; /* Safari/Chrome için oku gizle */
}

summary.roadmap-title::before {
    content: '\f0da'; /* FontAwesome sağ ok */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

details[open] summary.roadmap-title::before {
    transform: rotate(90deg); /* Açılınca ok aşağı döner */
}

summary.roadmap-title:hover {
    color: var(--primary-color);
}

.roadmap-steps {
    padding: 1.5rem 0 1rem 2.5rem; /* Soldan hafif boşluk */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
}

.step::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.step h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step p, .step ol, .step ul {
    font-size: 1rem;
    color: var(--text-main);
}

.step ol, .step ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.step li {
    margin-bottom: 0.5rem;
}

.step.personal-struggle {
    background-color: #fffbeb;
    border-left-color: var(--warning-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #fde68a;
    margin-top: 1rem;
}

.step.personal-struggle::before { display: none; }
.step.personal-struggle h5 { color: #b45309; }

.step.resources {
    background-color: #f0fdf4;
    border-left-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #bbf7d0;
}

.step.resources::before { display: none; }
.step.resources h5 { color: #15803d; }

/* ====== OKUMALAR ====== */
details.reading-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0 0 1.5rem 0;
    border-radius: 0;
}

details.reading-card:last-child {
    border-bottom: none;
}

summary.reading-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    transition: color var(--transition);
}

summary.reading-title::-webkit-details-marker {
    display: none;
}

summary.reading-title::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

details.reading-card[open] summary.reading-title::before {
    transform: rotate(90deg);
}

summary.reading-title:hover {
    color: var(--primary-color);
}

.reading-content {
    padding: 1rem 0 0.5rem 30px;
}

.reading-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.reading-summary, .reading-notes {
    margin-bottom: 1.5rem;
}

.reading-summary h4, .reading-notes h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 1.1rem;
}

.reading-summary h4 i { color: var(--primary-color); }
.reading-notes h4 i { color: var(--warning-color); }

.reading-summary p {
    background: #f8fafc;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-style: italic;
    color: var(--text-muted);
}

.reading-notes ul {
    list-style-type: none;
}

.reading-notes li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.reading-notes li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ====== HAKKIMDA ====== */
.about-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* ====== İLETİŞİM ====== */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.contact-item i {
    font-size: 1.4rem;
    width: 25px;
    text-align: center;
}

.contact-item.linkedin i { color: #0a66c2; }
.contact-item.github i { color: #333; }
.contact-item i.fa-envelope { color: var(--primary-color); }

.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    word-break: break-all; /* Uzun linklerin mobilde taşmasını engeller */
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ====== FOOTER ====== */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ====== İNTERAKTİF YOL HARİTASI (ROADMAP) ====== */
.interactive-roadmap {
    margin-top: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
}

.roadmap-root {
    display: flex;
    flex-direction: column;
    position: relative;
}

.roadmap-node {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: inline-block;
    align-self: flex-start;
    position: relative;
    z-index: 2;
}

.root-node {
    border-color: var(--primary-color);
    margin-bottom: 2rem;
    background: var(--primary-light);
}

.root-node h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.root-node p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.roadmap-branches {
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Ana ağaç çizgisi (dikey) */
.roadmap-branches::before {
    content: '';
    position: absolute;
    top: -2rem; /* root-node altına uzanır */
    bottom: 2rem; /* son elemandan biraz yukarıda biter */
    left: 0;
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.roadmap-branch {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Dal çizgisi (yatay) */
.roadmap-branch::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: -2rem;
    width: 2rem;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.roadmap-category h5 {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.roadmap-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-left: 2rem; /* Kategori altından biraz sağda başlasın */
    border-left: 2px dashed var(--border-color); /* Alt konuların çizgisi */
    margin-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.roadmap-topic {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
    transition: all var(--transition);
    user-select: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    flex: 1 1 auto; /* Kutuların içeriklerine göre uzamasını veya sıkışmasını sağlar */
    min-width: 220px;
    max-width: fit-content;
}

.roadmap-topic:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.topic-title {
    font-size: 0.95rem;
    color: var(--text-main);
    flex-grow: 1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}



/* Harita Lejantı (Anahtar) */
.roadmap-legend {
    display: flex;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}



.legend-item .check-icon-demo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all var(--transition);
    flex-shrink: 0;
}

.check-icon i {
    font-size: 12px;
}

/* Tıklanmış/Tamamlanmış (Completed) Durumu */
.roadmap-topic.completed {
    background-color: rgba(16, 185, 129, 0.05);
    border-color: var(--secondary-color);
}

.roadmap-topic.completed .topic-title {
    color: var(--secondary-color);
}

.roadmap-topic.completed .check-icon {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}



/* Kritik Konu İkazı */
.critical-branch .roadmap-category h5 {
    border-color: var(--error-color);
}

/* ====== MOBİL UYARLILIK ====== */
@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active { display: flex; }
    
    .hero h1 { font-size: 2.2rem; }
    .container { padding: 2rem 1.5rem; }
    .roadmap-steps { padding-left: 1rem; }
    .reading-content { padding-left: 1rem; }
    .project-detail-card { padding: 1.5rem; }
    
    .roadmap-branches { padding-left: 1rem; }
    .roadmap-branch::before { left: -1rem; width: 1rem; }
    .roadmap-topics { padding-left: 1rem; margin-left: 0.5rem; flex-direction: column; }
    .roadmap-topic { width: 100%; max-width: 100%; }
}

/* ====== İLERLEME BARI ====== */
.roadmap-progress-container {
    margin: 1.5rem 0 1rem 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

