/*GENEL STIL VE DIL AYARI */
body {
    font-family: Arial,sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
/* Genel arka plan rengi (eğer özel class uygulanmazsa) */
    background-color: #2c3e50;
    color: #ecf0f1;

}
/* 1. GÜN: GÖRSEL GEREKLİLİKLER */

/* Ana Sayfa Arkaplan Görseli (index.html) */
.home-bg {

    background-image: url('images/home_bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9); /* Metni belirginleştir */

}
/* Diğer Sayfalar Arkaplan GÖRSELİ (Uzay Görseli) */
.sky-bg {
 /* Uzay görselinizin adını ve yolunu buraya ekliyoruz */
    background-image: url('images/pp.png'); 
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;

    /* Koyu arka plan üzerinde okunurluk için metin rengini beyaza/açığa çevirin */
    color: #ecf0f1; 
}
/* Header ve Navigasyon */
header {
    background: rgba(0, 0, 0, 0.7); /* Yarı saydam siyah */
    color: #fff;
    padding: 1em 0;
    text-align: center;

}

nav ul {
    padding: 0;
    list-style: none;
    text-align: center;

}

nav ul li {
    display: inline;
    margin: 0 10px;

}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;

/* Navigasyon Animasyonu için Geçiş (Transition) */

    transition: background-color 0.4s ease, transform 0.4s ease;

}



/* 2. GÜN: NAVİGASYON ANİMASYONU (%15) */
nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1); /* Hover'da hafif büyüme */

}

nav ul li a.active {
    background-color: #007bff;
    font-weight: bold;

}

/* Ana İçerik Konteyneri */
main {
    padding: 20px;
    min-height: 70vh;
    max-width: 1100px;
    margin: 0 auto;

}

/* 2. GÜN: KEYFRAMES ANİMASYONU (%15) */
.animated-heading {
    font-size: 2.5em;
    opacity: 0;
    animation: fadeInDown 1.5s ease-out forwards;
    text-align: center;
    color: inherit; /* body'den rengi alsın */
    margin-bottom: 20px;

}

@keyframes fadeInDown {

    0% { opacity: 0; transform: translateY(-30px); }

    100% { opacity: 1; transform: translateY(0); }

}

/* Ekstra Animasyon: index.html'deki paragraf için */

.fade-in-text {
    opacity: 0;
    animation: fadeIn 2s ease-out 1s forwards; /* 1 saniye gecikmeli başla */
    text-align: center;
    font-size: 1.2em;

}

@keyframes fadeIn {

    0% { opacity: 0; }

    100% { opacity: 1; }

}

/* 2. GÜN: TABLOSAL BİLGİ VE GÖRSEL  */
.profile-card, .project-card, #map-container {
    max-width: 950px;
    margin: 20px auto;
    padding: 25px;
    background: rgba(52, 73, 94, 0.9); /* Yarı saydam beyaz bloklar */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-radius: 10px;

    color: #ecf0f1;

}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);

}



.hobbies-list table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: rgba(52, 73, 94, 0.7);
    border-radius: 8px;
    overflow: hidden;
    color: #ecf0f1;

}

.hobbies-list th, .hobbies-list td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;

}

.hobbies-list th {
    background-color: #007bff;
    color: white;
    font-weight: bold;

}

.hobi-img {
    width: 45px;
    height: auto;
    vertical-align: middle;

}

.hobbies-list tbody tr:hover {
    background-color: #34495e;
    transition: background-color 0.3s;

}



/* PROJE KARTLARI (Genel Kalite) */

.project-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 0;

}

.project-card {
    width: 48%;
    margin-bottom: 20px;
    transition: transform 0.3s ease;

}

.project-card:hover {
    transform: translateY(-8px);

}

.project-card h3 {
    color: #007bff;

}

.tech-stack {
    font-style: italic;
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;

}

.project-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;

}



/* OPENLAYERS HARİTA STİLLERİ */
#map-container h3 {
    color: #333;
    margin-top: 0;

}

#map {
    border-radius: 5px;

}



/* DUYARLI TASARIM (Mobil Görünüm) */

@media (max-width: 768px) {
    .project-cards-container {
        flex-direction: column;

    }

    .project-card {
        width: 100%;

    }

    .hobbies-list table {
        display: block;
        width: 100%;
        overflow-x: auto;

    }

    .hobbies-list table thead, .hobbies-list table tbody, .hobbies-list table th, .hobbies-list table td, .hobbies-list table tr {
        display: block;

    }

    .hobbies-list table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;

    }

    .hobbies-list table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;

    }

    .hobbies-list table td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label); /* Etiketler için HTML'e data-label eklemek gerekir */
        font-weight: bold;

    }

   /* Basit Mobil Navigasyon */

    nav ul li {
        display: block;
        margin: 5px 0;

    }

    nav ul li a {
        display: block;

    }

}

/* İkinci Proje Kartındaki Görsel Düzenlemesi */

.project-images {
    display: flex; /* Görselleri yan yana hizala */
    justify-content: space-around; /* Görseller arasına eşit boşluk bırak */
    gap: 10px; /* Görseller arası boşluk */
    margin-top: 15px;
    margin-bottom: 10px;

}



.project-images img {
    max-width: 48%; /* Her görselin kartın yarısını kaplamasını sağla (boşluklar dahil) */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;

}



.project-images img:hover {
    transform: scale(1.03); /* Görselin üzerine gelindiğinde hafif büyüme */

}



/* Mobil görünümde görselleri alt alta getir */

@media (max-width: 768px) {

    .project-images {
        flex-direction: column; /* Mobil cihazlarda görselleri alt alta sırala */
        align-items: center; /* Ortala */

    }

    .project-images img {
         max-width: 90%; /* Mobil cihazda genişliği ayarla */
         margin-bottom: 10px; /* Altına boşluk bırak */

    }

}

/* style.css dosyasında */
.home-bg {
    background-image: url('images/home_bg.jpg');
    background-size: cover; /* Ekrana sığacak şekilde büyütür/küçültür */
    background-attachment: fixed; /* Sabit tutar */
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);

}

