/* Temel sıfırlamalar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Genel stil */
body {
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    padding-top: 50px;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
html, body {
    width: 100%;
    height: 100%;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00bfff;
}

/* Bölüm stili */
section {
    padding: 80px 20px;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

/* Fotoğraf ekleme */
section img {
    width: 80%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
}

section img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Hobiler ve Diller Bölümü */
.hobiler-diller {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.hobiler-diller h2 {
    font-size: 24px;
    color: #333;
    text-align: center;
}

.hobiler-diller ul {
    list-style: none;
    margin-top: 10px;
}

.hobiler-diller ul li {
    font-size: 18px;
    margin: 5px 0;
}

/* Eğitim ve Deneyim */
.eğitim-deneyim {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
    padding: 0 20px;
}

.eğitim-item, .deneyim-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.eğitim-item:hover, .deneyim-item:hover {
    transform: scale(1.05);
}

/* Eğitim ve Deneyim başlıkları */
.eğitim-item h3, .deneyim-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.eğitim-item p, .deneyim-item p {
    font-size: 16px;
    color: #555;
}

.eğitim-item span, .deneyim-item span {
    font-size: 14px;
    color: #777;
}

.eğitim-item .ok, .deneyim-item .ok {
    font-size: 30px;
    color: #00bfff;
    transition: transform 0.3s ease;
}

.eğitim-item .ok:hover, .deneyim-item .ok:hover {
    transform: translateY(-5px);
}

/* Eğitim Bölümü Zaman Çizelgesi */
.timeline {
    display: flex;
    gap: 50px;
    padding: 30px 0;
    justify-content: space-around;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.timeline-icon {
    width: 20px;
    height: 20px;
    background-color: #00bfff;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px #fff;
    margin-bottom: 10px;
}

.timeline-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
}

.timeline-content h3 {
    font-size: 20px;
    color: #333;
}

.timeline-content p {
    font-size: 16px;
    color: #777;
}

.timeline-content span {
    display: block;
    font-size: 14px;
    color: #00bfff;
    margin-top: 10px;
}

/* Zaman Çizgisi - Yatay Çizgi */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 100%;
    border-top: 2px solid #00bfff;
    z-index: -1;
}

/* Projeler */
.projeler-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.proje-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.proje-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.proje-item p {
    font-size: 18px;
    color: #333;
}

.proje-item a {
    text-decoration: none;
    color: #00bfff;
    font-weight: bold;
}

/* İletişim */
#iletisim {
    background-color: #f9f9f9;
    padding: 40px;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#iletisim h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    font-size: 16px;
    margin-bottom: 8px;
    color: #555;
}

#contact-form input,
#contact-form textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#contact-form input[type="text"],
#contact-form input[type="email"] {
    width: 100%;
}

#contact-form textarea {
    width: 100%;
    resize: vertical;
}

#contact-form button {
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

#contact-form button:hover {
    background-color: #45a049;
}

#contact-form button:active {
    background-color: #397d3a;
}

/* İletişim Fotoğrafları */
.iletisim-fotosu ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
}

.iletisim-fotosu ul li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iletisim-fotosu img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.iletisim-fotosu img:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    margin-top: 40px;
}


@media (max-width: 768px) {
    /* Navbar düzenlemeleri */
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    html, body {
        overflow-x: hidden;  /* Sağ ve sola kaymayı engeller */
    }

    nav ul li {
        margin: 10px 0;
    }
    

    /* Fotoğrafın navbar'ın içine kaymaması için */
    section {
        margin-top: 95px; /* Mobilde navbar yüksekliği kadar boşluk ekledik */
    }

    /* Fotoğrafın daha aşağıda görünmesi için */
    section img {
        margin-top: 140px; /* Fotoğrafı biraz aşağıya çektik */
    }

    .hobiler-diller {
        flex-direction: column;
        align-items: center;
    }

    .projeler-container {
        gap: 20px;
        flex-wrap: wrap;
    }

    .proje-item {
        width: 100%; /* Mobilde projeler tam genişlikte olacak */
    }

    .eğitim-deneyim {
        grid-template-columns: 1fr; /* Tek sütunlu grid düzeni */
        padding: 0 10px;
    }

    .timeline {
        flex-direction: column; /* Zaman çizelgesi öğelerini dikey hizala */
        gap: 20px;
    }

    .timeline-item::before {
        left: 50%; /* Yatay çizgiyi ortala */
        transform: translateX(-50%);
        width: 2px; /* Daha ince yatay çizgi */
    }

    .timeline-content {
        width: auto; /* Genişliği otomatikleştir */
        max-width: 100%;
    }

    .eğitim-item, .deneyim-item {
        margin-bottom: 20px;
        width: 100%;
    }

 
}




