/* --- TASARIM SİSTEMİ (Premium & Modern) --- */
:root {
    /* Renkler: Derinlik ve Işık */
    --bg-dark: #0a0a0c;       /* Gerçek siyah (çok koyu) */
    --bg-panel: #141417;     /* Kartlar ve paneller */
    --text-primary: #fdfdfd;  /* Parlak beyaz */
    --text-secondary: #a1a1aa; /* Gri alt metin */
    --mustard: #00f2ff;      /* Canlı Hardal */
    --mustard-dim: rgba(0, 196, 204, 0.1);
    
    /* Tipografi */
    --font-head: 'Syne', sans-serif; /* Güçlü, teknik başlıklara */
    --font-body: 'Poppins', sans-serif; /* Temiz gövde metni */
    
    /* Diğer */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Yumuşak geçiş */
    --border-color: rgba(63, 63, 70, 0.6);
}

/* --- TEMEL AYARLAR --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    outline: none;
}

html {
    scroll-behavior: smooth; /* JS smooth scroll'a yedek */
    font-size: 16px; /* Baz */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- YARDIMCI SINIFLAR --- */
.mustard { color: var(--mustard); }

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--mustard) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 120px 10%;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-head);
    font-size: 38px;
    font-weight: 800;
    white-space: nowrap;
}

.title-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, rgba(63,63,70,0) 100%);
}

/* --- ÜST MENÜ (HEADER) --- */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 25px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(63,63,70,0.3);
    transition: var(--transition);
}

.logo {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

/* Mobil Menü Butonu */
.menu-btn {
    display: none; /* Desktop'ta gizli */
    cursor: pointer;
    z-index: 1001;
}

.menu-btn .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.navbar {
    display: flex;
    gap: 15px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background-color: rgba(255,255,255,0.05);
}

/* --- KARŞILAMA EKRANI (HERO) --- */
.hero {
    height: 100vh; /* Tam 1 ekran boyutu */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Dikeyde ortalar */
    align-items: center;     /* Yatayda ortalar */
    padding: 0 10%;
    position: relative;
    overflow: hidden;
    text-align: center;      /* Yazıları ortalar */
}

/* Hero içeriklerini tam merkeze kilitlemek için: */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-subtitle::before {
    content: '';
    width: 30px;
    height: 1px;
    background-color: var(--mustard);
}

.hero-title {
    font-family: var(--font-head);
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.hero-tagline {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 45px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* BUTON TASARIMLARI */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-filled {
    background-color: var(--mustard);
    color: var(--bg-dark);
    border: 1px solid var(--mustard);
}

.btn-filled:hover {
    background-color: #00c4cc; /* Amber */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--mustard-dim);
}

.btn-outline {
    background-color: transparent;
    color: var(--mustard);
    border: 1px solid var(--mustard);
}

.btn-outline:hover {
    background-color: var(--mustard-dim);
}

/* Arka Plan Glow Efekti */
.hero-glow {
    position: absolute;
    bottom: -10%; right: -5%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--mustard-dim) 0%, rgba(10,10,12,0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 1;
}

/* --- HAKKIMDA BÖLÜMÜ --- */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.skills h3 {
    font-family: var(--font-head);
    margin-bottom: 25px;
    font-size: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tags span {
    background-color: var(--bg-panel);
    color: var(--text-primary);
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tags span:hover {
    border-color: var(--mustard);
    color: var(--mustard);
    transform: translateY(-2px);
}

/* Cam Efektli Ana Kart */
.glass-card {
    background: rgba(20, 20, 23, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Esnek zıplama efekti */
}

/* Kartın üzerinden geçen parlama (Glare) efekti */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(250,204,21,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

/* Kartın Üzerine Gelince (Hover) */
.glass-card:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 196, 204, 0.5); /* Hardal neon kenarlık */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 196, 204, 0.1);
}

.glass-card:hover::before {
    left: 200%; /* Parlama efekti kartı boydan boya geçer */
}

/* Görsel Alanı */
.project-img-container {
    width: 100%; height: 220px;
    position: relative;
    overflow: hidden;
}

.project-img-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.glass-card:hover .project-img-container img {
    transform: scale(1.08);
}

/* Resmin Üzerindeki Karartma ve Demo Butonu */
.project-img-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 12, 0.7);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.4s ease;
}

.glass-card:hover .project-img-overlay { opacity: 1; }

.view-btn {
    padding: 10px 24px;
    background-color: var(--mustard);
    color: var(--bg-dark);
    font-weight: 600; font-size: 14px;
    border-radius: 30px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.glass-card:hover .view-btn { transform: translateY(0); }
.view-btn:hover { background-color: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.5); }

/* İçerik Alanı */
.project-info {
    padding: 25px;
    position: relative; z-index: 2;
}

.project-tags {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px;
}

.project-tags span {
    font-size: 12px; font-weight: 500;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 10px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1);
}

.project-tags .tag-accent {
    color: var(--mustard);
    background-color: var(--mustard-dim);
    border-color: rgba(0, 196, 204, 0.2);
}

.project-info h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 10px; }
.project-info p { color: var(--text-secondary); font-size: 14px; margin-bottom: 25px; line-height: 1.6; }

/* Alt Kısım (Kaynak Kod Linki) */
.project-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px;
}

.project-link {
    color: var(--text-secondary);
    font-size: 14px; font-weight: 500;
    transition: color 0.3s;
}

.project-link:hover { color: var(--mustard); }

/* İletişim Kartı (Yazıya daha fazla alan açmak için padding'i güncelledik) */
.contact-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 30px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Devasa Tıklanabilir Mail */
.mega-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-head);
    
    /* YAZIYI KESİNLİKLE BÖLME VE KESME */
    white-space: nowrap; 
    
    /* SİHİRLİ BOYUTLANDIRMA: Ekran genişliğinin %5'i kadar büyü, ama 42px'i asla geçme. 
       Bu sayede mobilde kendi kendine ufak, masaüstünde devasa kalır. */
    font-size: min(4.5vw, 30px); 
    
    font-weight: 800;
    color: var(--mustard);
    text-decoration: none;
    transition: var(--transition);
}

.mega-mail i {
    font-size: min(5vw, 46px);
    transition: transform 0.3s ease;
}

.mega-mail:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 196, 204, 0.4);
}

.mega-mail:hover i {
    transform: translate(5px, -5px);
    color: var(--mustard);
}

/* --- FOOTER (Boydan boya ve tam ortalı - KESİN ÇÖZÜM) --- */
.footer {
    width: 100%;    
    padding: 40px 0; 
    background-color: #050506;
    border-top: 1px solid rgba(63, 63, 70, 0.3);
    margin-top: auto; 
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;     
    justify-content: center; 
    text-align: center;
    gap: 10px;
}

.footer-brand {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    width: 100%;
}

/* =========================================
   RESPONSIVE TASARIM (MOBİL UYUMLULUK)
   ========================================= */

/* Küçük Masaüstü & Tablet (< 1200px) */
@media (max-width: 1200px) {
    .section { padding: 100px 5%; }
    .header { padding: 20px 5%; }
    .hero { padding: 0 5%; }
    .hero-title { font-size: 60px; }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* Ekrana sığması için 2'li yapar */
    }
}

/* Tablet & Büyük Telefon (< 992px) */
@media (max-width: 992px) {
    .section-title { font-size: 32px; }
    .hero-title { font-size: 50px; }
    .hero-tagline { font-size: 26px; }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* Ekrana sığması için 2'li yapar */
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- SİNEMATİK PRELOADER --- */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Altındaki sayfanın tıklanmasını engellemez */
}

/* Siyah perdeler (Üst ve Alt) */
.preloader-half {
    position: absolute;
    width: 100%;
    height: 50%;
    background-color: #050506; /* Sitenin arka planından bir tık daha koyu */
    z-index: 1;
    transition: transform 1s cubic-bezier(0.8, 0, 0.2, 1); /* Yağ gibi kayma efekti */
}

.preloader-top { top: 0; left: 0; }
.preloader-bottom { bottom: 0; left: 0; }

/* Ortadan geçen neon çizgi */
.preloader-line {
    position: absolute;
    top: 50%; left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--mustard);
    box-shadow: 0 0 15px var(--mustard); /* Neon parlama */
    z-index: 2;
    transform: translate(-50%, -50%);
    animation: drawLine 1s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

/* Çizginin üstünde beliren isim */
.preloader-text {
    position: absolute;
    z-index: 3;
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 10px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.1); /* Sadece ince bir dış hat */
    animation: textGlow 1.2s ease-in-out 0.5s forwards; /* Çizgiden yarım saniye sonra başlar */
}

/* SİTE YÜKLENDİĞİNDE ÇALIŞACAK TETİKLEYİCİ SINIF (.loaded) */
#preloader.loaded .preloader-top {
    transform: translateY(-100%);
}
#preloader.loaded .preloader-bottom {
    transform: translateY(100%);
}
#preloader.loaded .preloader-line,
#preloader.loaded .preloader-text {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

/* Animasyon Keyframeleri */
@keyframes drawLine {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes textGlow {
    0% { 
        color: transparent; 
        text-shadow: none; 
    }
    100% { 
        color: var(--text-primary); 
        text-shadow: 0 0 20px rgba(0, 196, 204, 0.4); 
    }
}

/* --- SİBER FENER EFEKTİ (TORCH GLOW CURSOR) --- */
/* Tıklanabilir alanlarda tarayıcının standart el imlecini göster */
a, button, input, textarea, .menu-btn, .project-card {
    cursor: pointer !important;
}

/* Fener ışığının ana gövdesi */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    /* Işığın varsayılan çapı */
    width: min(20vw, 250px); 
    height: min(20vw, 250px);
    pointer-events: none; /* Tıklamaları engellememesi için çok önemli */
    z-index: 99999;
    transform: translate(-50%, -50%); /* Tam farenin merkezine oturtur */
    
    /* Hardal sarısı yumuşak ışık hüzmesi */
    background: radial-gradient(circle, rgba(0, 196, 204, 0.08) 0%, rgba(0, 196, 204, 0) 70%);
    border: 1px solid rgba(0, 196, 204, 0.02); /* Çok ince, siber bir lens kenarı */
    border-radius: 50%;
    
    /* Altındaki cam efektini aydınlatması için şık bir karışım modu */
    mix-blend-mode: screen; 
    
    /* Işığa yumuşaklık katmak için bulanıklık */
    filter: blur(5px);
    
    /* Hover durumuna yumuşak geçiş */
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
}

/* Linklerin üzerine gelince (Işığın Odaklanması/Şiddetlenmesi) */
.custom-cursor.hover-active {
    width: min(15vw, 150px); /* Daha küçük, daha odaklı bir ışık */
    height: min(15vw, 150px);
    background: radial-gradient(circle, rgba(0, 196, 204, 0.2) 0%, rgba(0, 196, 204, 0) 70%);
    border-color: rgba(0, 196, 204, 0.1);
    filter: blur(2px); /* Daha net bir odaklanma */
}

/* ==========================================
   KARŞILAMA EKRANI (HERO) STİLLERİ
   ========================================== */
.hero {
    min-height: 90vh; /* Ekranın %90'ını kaplar, altından yetenekler şeridi görünür */
    display: flex;
    justify-content: center; /* Yatayda ortalar */
    align-items: center;     /* Dikeyde ortalar */
    position: relative;
    overflow: hidden;
    text-align: center;
    
    /* PADDING AYARI BURADA: 
       İlk değer (0) üst ve alt boşluktur.
       İkinci değer (10%) sağ ve sol boşluktur. Yazıların kenarlara yapışmasını engeller.
       Daha geniş/dar yapmak istersen 10% değerini değiştirebilirsin. */
    padding: 0 10%; 
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* "Merhaba ben" yazısı ve yanındaki çizgiler */
.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-subtitle h3 {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
}

.hero-subtitle .line {
    width: 40px;
    height: 1px;
    background-color: var(--mustard);
}

/* Ana Başlıklar */
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(40px, 6vw, 76px); /* Ekrana göre dinamik büyür/küçülür */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.hero-tagline {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--mustard-dim) 0%, rgba(10,10,12,0) 60%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

/* --- SONSUZ KAYAN YETENEKLER ŞERİDİ (SKILL MARQUEE) --- */
.skill-marquee-section {
    width: 100%; /* Ekranın tam genişliğini alır */
    margin-top: 60px;
    z-index: 20;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 25px 0;
    
    /* Boydan boya olduğu için köşeleri sıfırlıyoruz ve yan çizgileri kaldırıyoruz */
    border-radius: 0; 
    border-left: none;
    border-right: none;
    
    /* Cam efekti kalıyor, sadece alt ve üstüne ince bir çizgi ekliyoruz */
    background: rgba(20, 20, 23, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-content {
    display: flex;
    width: max-content;
    gap: 50px; /* Yetenekler arasındaki boşluk */
    animation: scrollMarquee 25s linear infinite; /* Animasyon hızı (25s) */
}

/* Üzerine gelince kaymayı durdurmak istersen bu kodu kullanabilirsin */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.skill-item i {
    font-size: 24px;
    color: var(--mustard);
}

.skill-item:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.scroll-indicator {
    position: absolute;
    bottom: 40px; /* Ekranın altına sabitler */
    left: 50%;
    transform: translateX(-50%); /* Tam merkeze kilitler */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 20;
    animation: bounce 2s infinite; /* Zıplama efekti */
}

.scroll-indicator i { font-size: 28px; color: var(--mustard); }
.scroll-indicator:hover { color: var(--text-primary); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Başlığı Ortalamak İçin */
.section-header.centered-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
}
.section-header.centered-header .title-line {
    width: 60px; /* Çizgiyi ortada estetik tutar */
    height: 3px;
    background: var(--mustard);
}

/* İçeriği Ortalamak İçin */
.about-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
    width: 100%;
}
.about-text {
    max-width: 800px;
    padding: 50px; 
    border-radius: 16px;
}

.contact-socials {
    display: flex; gap: 15px; margin-top: 15px; justify-content: center;
}
.contact-socials a {
    display: flex; justify-content: center; align-items: center;
    width: 45px; height: 45px;
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 22px;
    border: 1px solid rgba(63,63,70,0.4);
    transition: var(--transition);
}
.contact-socials a:hover {
    color: var(--bg-dark);
    background-color: var(--mustard);
    border-color: var(--mustard);
    transform: translateY(-5px);
}

/* --- SCROLL REVEAL (KAYDIRMA ANİMASYONLARI) --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* Sitenin geneliyle aynı yumuşak geçiş hızı */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Kartların sırayla gelmesi için ufak bir gecikme (opsiyonel ama şık durur) */
.portfolio-grid .project-card:nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid .project-card:nth-child(3) { transition-delay: 0.2s; }

/* --- MODAL (POP-UP) SİSTEMİ --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(5, 5, 6, 0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1; visibility: visible;
}

.modal-content {
    width: 90%; max-width: 700px; max-height: 90vh; overflow-y: auto;
    position: relative;
    transform: translateY(50px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0; /* Görselin kartın sınırlarına sıfır oturması için padding kapalı */
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 32px; color: var(--text-primary);
    cursor: pointer; z-index: 10;
    background: rgba(10, 10, 12, 0.5); border-radius: 50%; width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--mustard); transform: rotate(90deg);
}

.modal-body img {
    width: 100%; height: 300px; object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-info { padding: 35px; }

/* "Coming Soon" Etiketi Tasarımı */
.coming-soon-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; margin-top: 15px;
    background: var(--mustard-dim); color: var(--mustard);
    border: 1px dashed var(--mustard); border-radius: 8px;
    font-weight: 600; font-family: var(--font-head); letter-spacing: 1px;
}

.modal-action-btns { display: flex; gap: 15px; margin-top: 20px; }

@media (max-width: 768px) {
    /* 1. Yatay Kaymayı (Taşmayı) Kesin Engelle */
    html, body {
        overflow-x: hidden;
        width: 100%;
        font-size: 15px;
    }

    /* YENİ EKLENEN: Preloader Yazısını Telefona Sığdır */
    .preloader-text {
        font-size: 18px; /* 28px'den 18px'e düşürdük */
        letter-spacing: 4px; /* Harf aralığını daralttık ki ekrandan taşmasın */
        width: 100%;
        text-align: center;
    }

    /* 2. Genel Boşlukları (Padding) Daralt */
    .section { padding: 80px 5%; }
    .header { padding: 15px 5%; }

    /* 3. Hero (Karşılama) Kısmını Telefona Sığdır */
    .hero { padding: 0 5%; }
    .hero-title { font-size: clamp(32px, 8vw, 42px) !important; letter-spacing: -1px; }
    .hero-tagline { font-size: 20px !important; }
    .hero-btns { flex-direction: column; width: 100%; gap: 10px; }
    .hero-btns .btn { width: 100%; text-align: center; }

    /* 4. Mobil Navigasyon (Hamburger Menu) */
    .menu-btn { display: block; }
    .navbar {
        position: absolute;
        top: 100%; right: -100%;
        width: 70%; height: 100vh;
        background-color: var(--bg-panel);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .navbar.active { right: 0; }
    .nav-link { font-size: 18px; padding: 15px; }

    /* 5. Hakkımda ve İletişim Kutularını Toparla */
    .about-wrapper { gap: 30px; }
    .about-text { padding: 30px 20px; }
    .contact-wrapper { padding: 40px 15px; width: 100%; overflow: hidden; }

    /* 6. GÜNCELLENEN: Devasa Mail Yazısını Küçült ve Taşırmasını Engelle */
    .mega-mail {
        font-size: clamp(16px, 5vw, 22px) !important; /* Ekran küçüldükçe esnek şekilde küçülür */
        white-space: normal;
        word-wrap: break-word; /* Uzun kelimeleri daha akıllıca böler */
        width: 100%;
        text-align: center;
    }
    .mega-mail i { display: none; }

    /* 7. Projeler Izgarası (Kesin Olarak Alt Alta) */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 8. GÜNCELLENEN: Pop-up (Modal) Mobilde Tam Ekrana Otursun */
    .modal-content { 
        width: 95%; 
        max-height: 85vh; 
        overflow-y: auto; /* Yazılar çok uzun olursa kartın içinde kaydırma çubuğu çıkarır */
    }
    .modal-info { padding: 20px; }
    .modal-info h3 { font-size: 22px; }

    /* 9. Mobilde özel fener imlecini kapat */
    .custom-cursor { display: none; }
}