/* --- TEMEL AYARLAR --- */
:root {
    /* RENK PALETİ: CANLI & PROFESYONEL (High Contrast) */
    --bg-color: #F8FAFC;      /* Arka Plan: Çok açık buz mavisi/gri */
    --card-bg: #FFFFFF;       /* Kartlar: Tam Beyaz */
    
    --text-main: #0F172A;     /* Ana Metin: Çok koyu lacivert */
    --text-dim: #475569;      /* İkincil Metin: Gri-Mavi */
    
    /* VURGU RENKLERİ */
    --brand-blue: #2563EB;    /* Canlı Kraliyet Mavisi (Royal Blue) */
    --brand-red: #DC2626;     /* Canlı Kızıl (Crimson Red) */

    --font-code: 'Fira Code', monospace;
    --font-main: 'Inter', sans-serif;
}

html {
    scroll-padding-top: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NEON / VURGU TEXTLERİ --- */
.neon-text-blue { 
    color: var(--brand-blue);
    font-weight: 700;
}

.neon-text-fuchsia { 
    color: var(--brand-red);
    font-weight: 600;
}

/* --- ÇERÇEVELER VE BUTONLAR --- */

/* Mavi Vurgulu Butonlar */
.neon-border-blue {
    background-color: white;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.neon-border-blue:hover {
    background-color: var(--brand-blue);
    color: white;
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

/* Kırmızı Vurgulu Butonlar */
.neon-border-fuchsia {
    background-color: white;
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.1);
}

.neon-border-fuchsia:hover {
    background-color: var(--brand-red);
    color: white;
    box-shadow: 0 10px 15px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

/* --- ÖZEL DOLU BUTONLAR (CTA) --- */
.btn-primary {
    background-color: var(--brand-blue);
    color: white !important;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: #1D4ED8;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
}

/* --- HEADER --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-code);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.5px;
    color: var(--brand-blue);
}

.btn-cv {
    text-decoration: none;
    background-color: var(--brand-red);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
    transition: 0.3s;
}
.btn-cv:hover {
    background-color: #B91C1C;
    transform: translateY(-2px);
}

/* --- HERO BÖLÜMÜ --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 40px;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    width: 100%;
}

/* PROFİL RESMİ */
.profile-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--brand-blue);
    padding: 3px;
    background: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.greeting {
    font-family: var(--font-code);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.name-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--text-main);
}

.job-subtitle {
    font-family: var(--font-code);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--brand-red);
    font-weight: 700;
}

.slogan {
    color: var(--text-dim);
    font-size: 1.15rem;
    margin-bottom: 40px;
    padding: 0 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- ORTAK BÖLÜM STİLLERİ --- */
.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-code);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    letter-spacing: 1px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- GRID YAPILARI --- */
.skills-container, 
.projects-grid, 
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* KART TASARIMLARI */
.skill-card, .project-card, .edu-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.project-card, .edu-card {
    display: flex;
    flex-direction: column;
}

/* Kart Hover Efektleri */
.project-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.edu-card:hover {
    border-color: var(--brand-red);
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.skill-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-5px);
}

/* Yetenek İçi */
.skill-title, .edu-card h3 {
    margin-bottom: 20px;
    font-family: var(--font-code);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.skill-list { list-style: none; }
.skill-list li {
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
    color: var(--text-dim);
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li::before {
    content: "•";
    color: var(--brand-blue);
    margin-right: 10px;
    font-size: 1.5rem;
    line-height: 1;
    vertical-align: sub;
}

/* Soft Skills */
.soft-skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 50px;
}
.tag {
    padding: 8px 18px;
    background: white;
    border: 1px solid #CBD5E1;
    border-radius: 50px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Proje İçi */
.project-icon { font-size: 2.2rem; margin-bottom: 20px; color: var(--brand-blue); }
.project-title { font-size: 1.3rem; margin-bottom: 10px; font-family: var(--font-code); color: var(--text-main); font-weight: 700; }
.project-desc { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 25px; flex-grow: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.project-tags span {
    background: #EFF6FF;
    color: var(--brand-blue);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-code);
    font-weight: 600;
}

.btn-small {
    text-decoration: none;
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: inline-block;
    border: 1px solid #CBD5E1;
    transition: all 0.3s;
    background: white;
}
.btn-small:hover { 
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: #EFF6FF;
}

/* Eğitim Yıl */
.edu-year { 
    display: inline-block; 
    margin-top: 15px; 
    color: white; 
    background: var(--text-dim);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-code); 
    font-size: 0.8rem;
}

/* --- İŞ DENEYİMİ (TIMELINE - Masaüstü) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    background: #E2E8F0;
    content: '';
    position: absolute;
    width: 4px;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-content {
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    border-left: 5px solid var(--brand-blue); 
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: 1px solid #E2E8F0;
    border-right: 5px solid var(--brand-red);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-color); 
    border: 4px solid var(--brand-blue);
    border-radius: 50%;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
}
.timeline-item:nth-child(even)::after { border-color: var(--brand-red); }

/* Masaüstünde noktaların konumu */
.timeline-item:nth-child(odd)::after { right: -12px; left: auto; }
.timeline-item:nth-child(even)::after { left: -12px; right: auto; }

.timeline-content h3 { color: var(--text-main); font-size: 1.2rem; font-weight: 700; }
.timeline-content h4 { color: var(--text-dim); font-size: 1rem; font-weight: 500; margin-top: 5px; }
.date { 
    display: inline-block; 
    color: var(--brand-blue); 
    font-family: var(--font-code); 
    font-size: 0.85rem; 
    font-weight: 700;
    margin-bottom: 10px; 
    background: #EFF6FF;
    padding: 2px 8px;
    border-radius: 4px;
}

/* --- İLETİŞİM --- */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}
.contact-item { display: flex; align-items: center; gap: 15px; font-size: 1.2rem; color: var(--text-main); }
.contact-item i { 
    color: white;
    background: var(--brand-red);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.social-links { display: flex; gap: 20px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.social-btn {
    text-decoration: none;
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 50px;
    background: white;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.social-btn:hover { 
    background: var(--brand-blue); 
    color: white;
    border-color: var(--brand-blue);
    transform: translateY(-3px);
}
.footer { text-align: center; margin-top: 80px; color: var(--text-dim); font-size: 0.9rem; padding-bottom: 30px; }


/* =========================================
   📱 MOBİL UYUMLULUK (MEDIA QUERIES)
   ========================================= */
@media screen and (max-width: 768px) {
    .section { padding: 60px 5%; }
    
    .name-title { font-size: 2.8rem; }
    .job-subtitle { font-size: 1.2rem; }
    
    /* 🛠️ TIMELINE MOBİL DÜZELTMESİ (NOKTA KAYMASI FIX) */
    .timeline {
        padding-left: 0;
        margin: 0;
    }
    
    /* Çizgi sol tarafa sabitlenir (31px solda) */
    .timeline::after { left: 31px; }
    
    /* Kartlar çizginin sağına yaslanır */
    .timeline-item {
        width: 100%;
        padding-left: 70px; /* Çizgi payı */
        padding-right: 0;
        text-align: left;
    }
    
    /* Sağ-sol ayrımını mobilde iptal et */
    .timeline-item:nth-child(odd), 
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    
    /* NOKTALARIN KONUMU (SABİTLENDİ) */
    /* Hem tek hem çift öğeler için noktayı aynı yere sabitle */
    .timeline-item::after,
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 23px !important;  /* Çizginin (31px) tam ortasına denk gelir */
        right: auto !important; /* Sağ ayarını sıfırla */
    }
    
    .cta-buttons { gap: 15px; }
    .btn-primary { width: 100%; text-align: center; }
    
    .contact-item { font-size: 1rem; }
}