/* Genel Ayarlar ve Fontlar */
:root {
    --primary-color: #6C63FF; /* Canlı Mor */
    --secondary-color: #FF6B6B; /* Canlı Kırmızımsı Turuncu */
    --accent-color: #00BFFF;   /* Daha Açık Mavi */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #ffffff;
    --bg-dark: #2c3e50; /* Koyu Gri Mavi */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--text-light);
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; text-align: center; margin-bottom: 2em; position: relative; }
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.section-container {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* Navigasyon Menüsü */
nav {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px var(--shadow-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.brand-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section (Anasayfa) */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    padding: 80px 20px; /* Padding ayarlandı */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Ekran yüksekliğinin %80'i */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
    display: flex; /* İçerik dikey ortalama için */
    flex-direction: column;
    align-items: center;
}

.profile-pic-container {
    width: 180px; /* Profil resmi boyutu */
    height: 180px;
    border-radius: 50%;
    background-color: var(--text-light);
    padding: 5px; /* Beyaz çerçeve */
    box-shadow: 0 0 0 5px rgba(255,255,255,0.3); /* Dış halka efekti */
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya sığdır */
    border-radius: 50%;
    display: block;
}

.hero-section h1 {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.hero-section p {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.highlight {
    color: var(--secondary-color); /* Başlıkta vurgulu kısım */
}

.hero-buttons {
    display: flex;
    gap: 20px; /* Butonlar arası boşluk */
    flex-wrap: wrap; /* Küçük ekranlarda alt alta geçiş */
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-medium);
    white-space: nowrap; /* Metnin tek satırda kalmasını sağlar */
}

.cta-button:hover {
    background-color: #ff8c8c; /* Daha açık ton */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.cta-button .arrow,
.cta-button .fas { /* İkonlar için */
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow,
.cta-button:hover .fas {
    transform: translateX(5px);
}

.secondary-cta {
    background-color: var(--accent-color);
}

.secondary-cta:hover {
    background-color: #3BB9FF; /* Accent renginin hafif tonu */
}


/* Hakkımda Bölümü */
.about-section {
    background-color: var(--bg-light);
    padding-bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.about-grid p {
    font-size: 1.1em;
    color: #555;
}

/* Eğitim ve Deneyim Bölümleri (Timeline) */
.education-section, .experience-section {
    background-color: #f8f8f8;
    padding-bottom: 0;
}
.experience-section {
    background-color: var(--bg-light); /* Daha farklı bir arka plan */
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 50px; /* Noktadan sağa boşluk */
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 50px; /* Noktadan sola boşluk */
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    top: 25px;
    transform: translateY(-50%);
    border: 3px solid var(--text-light); /* Beyaz halka */
    box-shadow: 0 0 0 3px var(--primary-color); /* Mor dış halka */
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px; /* Orta çizgiye hizala */
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px; /* Orta çizgiye hizala */
}

.timeline-content {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    position: relative;
    top: 0; /* İtemlerin üste taşmasını önlemek için */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.4em;
}

.timeline-institution, .timeline-date {
    font-size: 0.95em;
    color: #777;
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 1em;
    color: #555;
}


/* Beceriler Bölümü */
.skills-section {
    background-color: #f8f8f8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.skill-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.6em;
}

.skill-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-card ul li {
    padding: 8px 0;
    font-size: 1.1em;
    color: #666;
    display: flex;
    align-items: center;
}

.skill-card ul li::before {
    content: '✓';
    color: var(--secondary-color);
    margin-right: 10px;
    font-weight: 700;
}

/* Sertifika Vitrini */
.certificates-section {
    background-color: var(--bg-light);
}

.slider-container {
    position: relative;
    max-width: 800px; /* Daha geniş vitrin */
    margin: 50px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    border: 1px solid #eee;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Yumuşak animasyon */
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    display: flex; /* İçeriği ortalamak için */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.slide img {
    width: 100%;
    height: auto; /* Oranı koru */
    max-height: 500px; /* Çok uzun sertifikaları kontrol et */
    object-fit: contain; /* Görselin tamamını göster */
    border-bottom: 1px solid #eee;
}

.slide-caption {
    width: 100%;
    background-color: var(--bg-dark); /* Koyu arka plan */
    color: var(--text-light);
    padding: 20px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.control-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 2em;
    line-height: 1;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.control-button:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
}

.prev-button { left: 20px; }
.next-button { right: 20px; }


/* İletişim Bölümü */
.contact-section {
    background: linear-gradient(45deg, var(--bg-dark) 0%, #34495e 100%);
    color: var(--text-light);
    padding: 100px 20px;
}

.contact-section h2 {
    color: var(--secondary-color);
}

.contact-section h2::after {
    background-color: var(--primary-color);
}

.contact-intro {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.85);
}

.contact-links {
    display: flex;
    flex-wrap: wrap; /* Küçük ekranlarda alta geçsin */
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
}

.contact-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
    transition: background 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-color);
}

.contact-link i {
    margin-right: 10px;
    font-size: 1.3em;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p {
    margin-bottom: 15px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}


/* Responsive Tasarım */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3em;
    }

    .hero-section p {
        font-size: 1.2em;
    }

    nav .nav-container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 15px 10px;
    }

    h2 {
        font-size: 2em;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .prev-button, .next-button {
        padding: 8px 12px;
        font-size: 1.5em;
    }

    /* Timeline Responsive */
    .timeline::before {
        left: 20px; /* Küçük ekranlarda sola kaydır */
        transform: none;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px; /* Sol taraftan daha fazla boşluk */
        padding-right: 10px;
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 10px; /* Ortalanmış çizgi için */
    }

    .timeline-item:nth-child(even) {
        padding-left: 60px;
    }

    .timeline-dot {
        left: 10px; /* Orta çizgiye hizala */
        right: auto; /* Sağdan ayarı sıfırla */
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    h2 {
        font-size: 1.8em;
    }

    .skill-card {
        padding: 20px;
    }

    .slide-caption {
        font-size: 1em;
        padding: 15px;
    }

    .contact-link {
        font-size: 1em;
        padding: 12px 25px;
    }
}