html {
    scroll-padding-top: 100px;
}

:root {
    /* Zemin Renkleri */
    --zemin-ana: #000000;   
    --zemin-kart: #111111;     
    --zemin-header: #050505;   

    /* Yazı Renkleri */
    --yazi-baslik: #ffffff;     
    --yazi-genel: #b0b0b0;     

    /* Vurgu ve Parlama Renkleri */
    --neon-mavi: #00ffff;      
    --neon-golge: rgba(0, 255, 255, 0.5); 
    --neon-mor: #bc13fe; 
}

/* --- TEMEL AYARLAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--zemin-ana);
    color: var(--yazi-genel);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--yazi-baslik);
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- HEADER --- */
header {
    background: var(--zemin-header);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--yazi-baslik);
    text-shadow: 0 0 10px var(--neon-golge);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a:hover {
    color: var(--neon-mor);
    text-shadow: 0 0 8px var(--neon-mor);
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding-top: 100px;
    min-height: 100vh;
}

.hero h1 {
    font-size: 3rem;
    color: var(--yazi-baslik);
    margin-bottom: 1rem;
}

/* Profil Fotoğrafı */
.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.profile-img:hover {
    transform: scale(1.1);
    border: 2px solid var(--neon-mavi);
    box-shadow: 0 0 30px var(--neon-mavi); 
}

/* --- BUTONLAR --- */
.btn {
    display: inline-block;
    background: transparent;
    color: var(--neon-mavi);
    padding: 10px 25px;
    border-radius: 5px;
    margin-top: 1rem;
    
    border: 2px solid var(--neon-mavi);
    box-shadow: 0 0 10px var(--neon-golge);
    font-weight: bold;
    transition: 0.5s ease;
}

.btn:hover {
    background: var(--neon-mavi);
    color: #000;
    box-shadow: 0 0 20px var(--neon-mavi);
}

/* --- BÖLÜMLER GENEL --- */
.section-padding {
    padding: 60px 0;
}

h2 {
    color: var(--yazi-baslik);
    border-left: 5px solid var(--neon-mavi);
    padding-left: 15px;
    margin-bottom: 30px;
}

/* --- PROJE KARTLARI --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card {
    background: var(--zemin-kart);
    padding: 25px;
    border-radius: 10px;
    
    border: 3px solid #333; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    
    transition: 0.3s ease;
}

/* Kartın üzerine gelince NEON ETKİSİ */
.card:hover {
    border-color: var(--neon-mavi); 
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--neon-golge); 
}

.card h3 {
    color: var(--yazi-baslik);
    margin-bottom: 10px;
}

/* --- İLETİŞİM & FOOTER --- */
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--yazi-genel);
}

.social-links a:hover {
    color: var(--neon-mor);
    text-shadow: 0 0 10px var(--neon-mor);
}

footer {
    background: var(--zemin-header);
    color: var(--yazi-genel);
    text-align: left;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #222;
}

/* --- DURUM ROZETLERİ (STATUS BADGES) --- */

/* 1. Kalp Atışı Animasyonu (Pulse) */
@keyframes heartbeat {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 159, 67, 0.7); /* Turuncu gölge başlangıcı */
    }
    70% {
        transform: scale(1.05); /* Hafifçe büyür */
        box-shadow: 0 0 0 10px rgba(255, 159, 67, 0); /* Gölge genişleyerek kaybolur */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 159, 67, 0);
    }
}

/* 2. Rozetlerin Genel Yapısı */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px; /* Hap şeklinde yuvarlaklık */
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px; /* Başlık ile arasına boşluk */
}

/* 3. "Devam Ediyor" Stili (Animasyonlu) */
.badge-devam {
    background: rgba(255, 159, 67, 0.1); /* İçi şeffaf turuncu */
    color: #ff9f43; /* Neon Turuncu Yazı */
    border: 1px solid #ff9f43;
    animation: heartbeat 2s infinite; /* Sonsuz döngüde animasyon */
}

/* 4. "Bitti" Stili (Sabit) */
.badge-bitti {
    background: rgba(46, 213, 115, 0.1); /* İçi şeffaf yeşil */
    color: #2ed573; /* Neon Yeşil Yazı */
    border: 1px solid #2ed573;
}


/* --- AÇILIR KART (ACCORDION) STİLLERİ --- */

/* Açma Butonu */
.detay-btn {
    background: transparent;
    border: none;
    color: var(--yazi-genel);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
    border-bottom: 1px solid transparent; /* Alt çizgi efekti için */
}

.detay-btn:hover {
    color: var(--neon-mavi);
    border-bottom: 1px solid var(--neon-mavi);
}

.detay-btn i {
    transition: transform 0.3s ease; /* Ok işaretinin dönmesi için */
}

/* Buton "aktif" olduğunda ok işareti dönsün */
.detay-btn.aktif i {
    transform: rotate(180deg);
    color: var(--neon-mavi);
}

/* Gizli Alanın Dış Çerçevesi */
.kart-detay {
    max-height: 0; /* Başlangıçta yüksekliği 0 (yani kapalı) */
    overflow: hidden; /* Taşanı gizle */
    transition: max-height 0.4s ease-out; /* Kayarak açılma animasyonu */
}

/* Gizli Alanın İçeriği */
.detay-icerik {
    padding-top: 15px;
    border-top: 1px solid #333;
    margin-top: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

/* Proje Linkleri Alanı */
.proje-linkleri {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.proje-linkleri a {
    color: var(--neon-mavi);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.proje-linkleri a:hover {
    text-shadow: 0 0 10px var(--neon-mavi);
}


/* --- DETAY GÖRSELLERİ STİLİ --- */

/* Görselin içinde duracağı kutu */
.detay-gorsel-container {
    margin-bottom: 20px; /* Yazı ile arasında boşluk bırak */
    text-align: center;  /* Görseli ortala */
}

/* Görselin kendisi */
.detay-img {
    width: 100%;         /* Kartın genişliğine tam otursun (Mobil uyum için şart) */
    height: auto;        /* En-boy oranı bozulmasın */
    border-radius: 8px;  /* Köşeleri hafif yuvarlat */
    
    /* Karanlık tema için ince bir çerçeve */
    border: 1px solid #333; 
    
    /* Hafif bir parlama (Glow) efekti (İstersen kaldırabilirsin) */
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1); 
    
    transition: transform 0.3s ease; /* Hover için hazırlık */
}

/* İsteğe bağlı: Üzerine gelince hafif büyüsün */
.detay-img:hover {
    transform: scale(1.02);
    border-color: var(--neon-mavi);
}


/* --- GALERİ THUMBNAIL YAPISI --- */
.galeri-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto; /* Çok resim varsa yana kaydırma cubugu cıksın */
    padding-bottom: 5px;
}

.galeri-thumb {
    width: 100px; /* Küçük resim boyutu */
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #333;
    transition: 0.3s;
}

.galeri-thumb:hover {
    opacity: 0.7;
    border-color: var(--neon-mavi);
}

/* --- LIGHTBOX (MODAL) STİLLERİ --- */
.lightbox {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 20000; /* En üstte durması için */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Arka plan karartma */
}

/* Büyük Resim */
.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px; /* Çok devasa olmasın */
    max-height: 80vh; /* Ekrandan taşmasın */
    object-fit: contain;
    border: 2px solid var(--neon-mavi);
    box-shadow: 0 0 20px var(--neon-golge);
    animation: zoom 0.4s; /* Açılış efekti */
}

/* Açılış Animasyonu */
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Kapatma Butonu (X) */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--neon-mavi);
}

/* İleri/Geri Okları */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--neon-mavi);
}

/* Resim Alt Yazısı (Sayaç) */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* --- SABİT KART TASARIMI --- */
.card {
    background: var(--zemin-kart);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
    
    /* SABİT YÜKSEKLİK AYARLARI */
    height: 350px; /* Kartın boyu sabit */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* İçerik ve butonu uca yasla */
    overflow: hidden; /* Taşan içeriği gizle */
    transition: 0.3s ease;
}

.card:hover {
    border-color: var(--neon-mavi);
    transform: translateY(-5px);
}

/* Kart içindeki açıklama metni (Kısıtlı satır) */
.card-ozet {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* En fazla 3 satır göster */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Sığmazsa ... koy */
    color: var(--yazi-genel);
    margin-bottom: 10px;
}

/* Görünmez detay deposu (HTML'de veri saklamak için) */
.gizli-veri {
    display: none;
}

/* Görüntüle Butonu */
.incele-btn {
    background: transparent;
    border: 1px solid var(--neon-mavi);
    color: var(--neon-mavi);
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: auto; /* Butonu en alta it */
    transition: 0.3s;
}

.incele-btn:hover {
    background: var(--neon-mavi);
    color: #000;
}

/* --- MERKEZİ MODAL TASARIMI --- */
.modal-overlay {
    display: none; /* Varsayılan gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Arka plan karartma */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--zemin-kart);
    width: 100%;
    max-width: 800px; /* Pencere genişliği */
    max-height: 90vh; /* Ekrandan taşmasın */
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--neon-mavi);
    box-shadow: 0 0 30px var(--neon-golge);
    overflow-y: auto; /* İçerik uzunsa kaydırma çubuğu çıksın */
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.modal-close:hover { color: var(--neon-mavi); }
.modal-text { margin-top: 20px; line-height: 1.8; color: #ddd; }