/* Variables for Theme */
:root {
    --primary-color: #0f766e; /* Modern Teal/Emerald */
    --secondary-color: #1e293b; /* Slate Dark */
    --bg-color: #f3f4f6; /* Light Gray Background */
    --card-bg: #ffffff;
    --text-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #2dd4bf; /* Daha parlak Teal */
    --secondary-color: #f1f5f9; /* Açık Slate */
    --bg-color: #0f172a; /* Koyu Arkaplan */
    --card-bg: #1e293b; /* Koyu Kart Rengi */
    --text-color: #cbd5e1; /* Açık Metin Rengi */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

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

body, html {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

.resume {
    max-width: 900px;
    margin: 2em auto;
    padding: 0 1em;
}

.top-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 3em;
    text-align: center;
    position: relative;
}

.headshot-container {
    flex: 0 0 auto; 
    margin-right: 2em;
}

.contact-info {
    flex: 1; 
    text-align: left;
    background-color: var(--card-bg);
    padding: 2em;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile adjustment */
@media (max-width: 600px) {
    .resume {
        margin: 1em auto;
        padding: 0 0.5em;
    }
    .top-section {
        flex-direction: column;
        text-align: center;
        margin-top: 3em; /* Kontroller için alan */
    }
    .headshot-container {
        margin-right: 0;
        margin-bottom: 1em;
    }
    .contact-info {
        text-align: center;
        padding: 1.5em;
    }
    .resume-section {
        padding: 1.5em 1em;
    }
    .timeline {
        margin-left: 10px;
        padding-left: 15px;
    }
    .timeline-dot {
        left: -22px;
    }
}

.contact-info h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 0.2em;
}

.job-title {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Info Links & Text Styling */
.contact-info p, .contact-info a {
    color: var(--text-color);
    font-size: 1.05em;
    text-decoration: none;
    margin-bottom: 0.2em;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* Hover efekti */
    text-decoration: none;
}

.resume-headshot {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.resume-section {
    background-color: var(--card-bg);
    margin-bottom: 2em;
    padding: 2em; 
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.about-content p {
    color: var(--text-color);
    font-size: 1.05em;
}

ul {
    padding-left: 20px;
    list-style-type: none; 
}

li {
    margin-bottom: .5em;
    line-height: 1.4;
}

#education p {
    color: #64748b;
    font-size: 0.9em;
}

.degree {
    font-weight: 600;
    display: block; 
    margin-top: 0.8em;
    color: var(--secondary-color);
}

.school {
    display: block;
    margin-bottom: 0.3em;
}

.timeline-content p {
    margin-top: 0.5em;
    color: var(--text-color); 
}

/* Timeline Styles */
.timeline {
    border-left: 2px solid #e2e8f0;
    padding-left: 20px;
    margin-left: 20px;
    position: relative;
}

.timeline-entry {
    margin-top: 1em;
	cursor: pointer;
    transition: all 0.3s ease-in-out; 
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -27px;
    top: 6px;
}

.timeline-content h3 {
    margin: 0;
    color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
}

.timeline-content p {
    margin: 5px 0;
}

/* Transition for smooth toggling of description */
.timeline-content p {
    transition: all 0.3s ease-in-out;
}

/* Style for hiding/showing description */
.hidden {
    display: none;
}

.shown {
    display: block;
}

/* Section Styles */
.resume-section h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 1em;
    display: inline-block;
    font-size: 1.5em;
    border-bottom: 3px solid var(--primary-color);
    width: 100%;
}

.print-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s;
}

.print-btn:hover {
    background-color: #0d9488;
}

/* Social Icons Hover Effect */
.social-icons a {
    transition: transform 0.2s ease;
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

@media print {
    @page {
        margin: 1cm;
        size: auto;
    }

    /* Butonu ve sosyal medya ikonlarını gizle */
    .no-print, .print-btn {
        display: none !important;
    }

    body, html {
        margin: 0 !important;
        padding: 0 !important;
        background-color: white;
    }
    
    /* Yazdırma modunda gölgeleri kaldır ve temiz bir görünüm sağla */
    .resume-section {
        box-shadow: none !important;
        border: none !important;
        margin-bottom: 0.5em !important;
        padding: 0 !important;
        page-break-inside: auto !important;
    }

    /* Bölüm başlıklarını koyu yap */
    .resume-section h2 {
        color: #000 !important;
        border-bottom: 1px solid #000;
        padding-left: 0 !important;
        page-break-after: avoid;
    }

    /* Ekranda kapalı olsa bile tüm içerikleri yazıcıda görünür yap */
    .timeline-content p, 
    .resume-section h2 + * {
        display: block !important;
    }

    .timeline-entry, li {
        page-break-inside: avoid;
    }
}

/* Language Toggle Switch */
.language-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px;
    box-shadow: var(--shadow);
    z-index: 100;
}

.lang-btn {
    background: none;
    border: none;
    padding: 5px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85em;
    color: #64748b;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(15, 118, 110, 0.2);
}

/* Language Visibility Control */
body.lang-en .lang-tr { display: none !important; }
body.lang-tr .lang-en { display: none !important; }

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 0;
    right: 130px; /* Dil butonunun solunda */
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 100;
    font-size: 1.2em;
}

body.dark-mode .theme-toggle {
    border-color: #334155;
    background-color: var(--card-bg);
}

@media (max-width: 600px) {
    .theme-toggle {
        right: 110px; /* Mobilde biraz daha sıkışık olabilir */
    }
}

/* Link Styles - Tasarım Bütünlüğü İçin */
a {
    color: var(--primary-color); /* Varsayılan mavi yerine tema rengi */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color); /* Üzerine gelince koyulaşsın */
    text-decoration: underline;
}