/* --- TANGLE PROJECT: COMPACT & CREATIVE --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

:root {
    /* Renkler */
    --primary-navy: #0b1c36;
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --text-main: #0b1c36;
    --text-body: #536b88;
    
    --accent-color: #ff6600;
    --accent-glow: rgba(255, 102, 0, 0.4);
    
    /* Yapısal */
    --border-light: #e2e8f0;
    --radius-std: 12px;
}

* {
    -webkit-user-drag: none;  /* Görsellerin hayalet gibi sürüklenmesini engeller */
    user-select: none;        /* Hiçbir şeyin seçilememesini sağlar */
    -webkit-user-select: none; /* Safari/Chrome için */
}

/* 2. Sadece metin içeren etiketlerin seçilmesine izin veriyoruz */
p, h1, h2, h3, h4, h5, h6, span, li {
    user-select: text;         /* Sadece bu alanlar seçilebilir olsun */
    -webkit-user-select: text; 
    cursor: text;              /* Üzerine gelince imleç yazı moduna geçsin */
}

/* 3. Resimlerin kesinlikle seçilmemesini garantiye alıyoruz */
img {
    pointer-events: none; /* Resme tıklanmasını bile engeller (Opsiyonel: Linkli resimlerde kullanma) */
    cursor: pointer; /* İmleç el şeklinde olsun */
}

.h2.section-title, .hero-text, .hero-description, .coffee-text , .brand-text , .coffee-btn , .nav-links a , .grid-item h3 , .content-card h3 , .content-card p, button.btn , input, textarea , .social-icons a , .play-btn , .grid-item i , .hero-accent, .section-title{
  width: fit-content;
  display: inline-block;
}

::selection {
    background: var(--accent-color);
    color: white;
}

.subscribe-button {
    background-color: #FF5722 !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    scroll-behavior: smooth;
    color: var(--text-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

html {
    scroll-padding-top: 140px; /* Navbar yüksekliği + margin */
}

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

/* --- HEADER --- */
.site-header {
    background-color: var(--primary-navy);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Header içi boşluğu azalttık */
}

.brand-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.tangle-logo {
    height: 55px; /* Logo biraz daha zarif */
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.brand-area:hover .tangle-logo { transform: scale(1.1); }

.brand-text {
    font-size: 1rem;
    color: white;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0px;
}

/* Navbar */
.nav-links {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.11) !important;
    padding: 5px 15px;
    border-radius: 30px;
}

.nav-highlight {
    position: relative;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    gap: 0;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 10px;
    background: var(--accent-color);
}

.charge-text {
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 0 0 0px white;
}

.nav-highlight:hover {
    transform: scaleX(1);
    transform-origin: left;
    box-shadow: 0 0 20px rgba(204, 68, 0, 0.8);
    animation: charging-bg 0s ease forwards;
}

.nav-highlight:hover .charge-text {
    animation: text-glow 1.2s ease forwards;
}

/* Yıldırım ikonu - solda, beyaz, başta gizli */
.bolt-icon {
    display: inline-block;
    font-size: 0.9rem;
    color: white;
    opacity: 0;
    width: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    user-select: none;
    margin-right: 0;
    text-shadow: 0 0 0px white;
}

/* Hover olduğunda yıldırım yazının solunda belirir */
.nav-highlight:hover .bolt-icon {
    opacity: 1;
    width: auto;
    margin-right: 6px;
    animation: text-glow 1.2s ease forwards;
}

/* Şarj çubuğu - kaldırıldı */
.charge-bar {
    display: none;
}

/* Arkaplan soldan sağa koyulaşma - bar doluyor gibi, akıcı geçiş */
@keyframes charging-bg {
    0% {
        background: linear-gradient(90deg, #ff6600 0%, #ff8533 100%);
    }
    100% {
        background: linear-gradient(90deg, #cc4400 0%, #ff6600 100%);
    }
}

/* Yazı ve yıldırım parlama animasyonu */
@keyframes text-glow {
    0% {
        text-shadow: 0 0 0px white;
        color: white;
    }
    25% {
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
        color: #ffffff;
    }
    50% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
        color: #ffffff;
    }
    75% {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
        color: #ffffff;
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 1);
        color: white;
    }
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 15px;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.nav-highlight {
    color: white;
    background-color: var(--accent-color);
}

.hamburger { display: none; color: white; font-size: 1.5rem; position: absolute; right: 20px; top: 25px; cursor: pointer; }

/* --- SECTIONS (SIKILAŞTIRILMIŞ) --- */
section {
    padding: 40px 0; /* 80px'den 40px'e düştü. Nesneler birbirine yaklaştı. */
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 25px; /* Başlık altı boşluk azaldı */
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 30px;
    background-color: var(--accent-color);
    border-radius: 4px;
}

/* --- PREMIUM TECH BACKGROUND (Hakkımda Alanı İçin) --- */

.premium-tech-bg {
    /* 1. Ana Zemin Rengi */
    background-color: var(--primary-navy);
    
    /* 2. Desen ve Işık Efekti (Burada sihir gerçekleşiyor) */
    background-image: 
        /* Katman A: Silik Noktalar (Izgara görünümü) */
        radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px),
        /* Katman B: Sağ üstten vuran hafif turuncu ışık (Glow) */
        radial-gradient(circle at top left, rgba(255, 102, 0, 0.15), transparent 60%);
        
    /* Noktaların sıklığı (30px aralıklarla) */
    background-size: 30px 30px, 100% 100%;
    
    /* İç boşluk */
    padding: 60px 0;
    
    /* Yazı Rengi Değişimi */
    color: #e2e8f0; /* Tam beyaz değil, göz yormayan açık gri */
}

/* Başlıkların rengini beyaz yapıp parlatıyoruz */
.premium-tech-bg h2, 
.premium-tech-bg h3 {
    color: #ffffff !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Paragraf metin rengi */
.premium-tech-bg p {
    color: #cbd5e1 !important; /* Mavimsi açık gri */
}

/* --- KRİTİK DÜZELTME: Fade Out Efekti --- */
/* Arka plan koyu olduğu için, silikleşme efektini de koyu yapmalıyız */
.premium-tech-bg .bio-content.collapsed::after {
    background: linear-gradient(to bottom, rgba(11, 28, 54, 0), var(--primary-navy)) !important;
}

/* Butonu da koyu zemine uygun hale getirelim */
.premium-tech-bg .read-more-btn {
    border-color: var(--accent-color);
    color: white; /* Yazısı beyaz olsun */
    background: rgba(255, 102, 0, 0.1); /* Hafif turuncu zemin */
}

.premium-tech-bg .read-more-btn:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow); /* Parlama efekti */
}

/* --- HERO (Görsel & Metin) --- */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 30px 0; /* Hero iç boşluğu azaldı */
}

.hero-text { flex: 1; }

.hero-text h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 15px;
}

/* "Yazılımı Hisset" - HIZLI EFEKT */
.hero-accent {
    color: var(--accent-color);
    font-weight: 900; /* Çok kalın */
    display: inline-block;
    transform: skewX(-12deg); /* Sağa doğru yatık (Hız hissi) */
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 6px;
}

.hero-visual {
    flex: 1;
    position: relative;
}

.video-frame {
    background: #000;
    border-radius: 12px;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.2);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    /* EKLENEN: İçindeki iframe köşelerden taşmasın diye: */
    overflow: hidden; 
}

/* EKLENEN: Iframe'in kapsayıcıyı tam doldurması için: */
.video-frame iframe {
    width: 100%;
    height: 100%;
    display: block; /* Alt kısımdaki boşlukları engeller */
}

/* .play-btn stilleri iframe direkt yüklendiği için şu an pasif kalacak, 
   ancak özel bir kapak görseli yaparsan kullanabilirsin. */
.play-btn { font-size: 3rem; color: white; opacity: 0.8; transition: 0.3s; cursor: pointer; }
.video-frame:hover .play-btn { color: var(--accent-color); transform: scale(1.1); }

/* --- PROJELER (YATAY KAYDIRMA - Horizontal Scroll) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding-bottom: 15px;
}

/* --- BİYOGRAFİ AÇILIR/KAPANIR ALANI --- */

/* Metin Kapsayıcısı */
.bio-content {
    overflow: hidden; /* Taşanı gizle */
    position: relative;
    transition: max-height 0.8s ease; /* Açılma animasyonu süresi */
}

/* Kapalı Durum (Varsayılan) */
.bio-content.collapsed {
    max-height: 250px; /* Kapalıyken görünecek yükseklik (bunu değiştirebilirsin) */
}

/* Kapalıyken alt tarafa silikleşme efekti (Fade Out) */
.bio-content.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Silik alanın boyutu */
    background: linear-gradient(to bottom, rgba(244, 246, 249, 0), var(--bg-body)); /* Sayfa rengine göre flu yapar */
    pointer-events: none;
}

/* Açık Durum */
.bio-content.expanded {
    max-height: 2000px; /* İçeriğin sığacağı kadar büyük bir değer veriyoruz */
}

/* Silik efekti açıkken gizle */
.bio-content.expanded::after {
    display: none;
}

/* Buton Tasarımı */
.read-more-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.read-more-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive: 3-4 items per row */
@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Scrollbar Özelleştirme (not used anymore but keep for compat) */
.grid-container::-webkit-scrollbar { height: 8px; }
.grid-container::-webkit-scrollbar-track { background: #eef2f6; border-radius: 4px; }
.grid-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.grid-container::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.grid-item {
    background: white;
    margin-top: 5px;
    border-radius: var(--radius-std);
    border: 1px solid var(--border-light);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.grid-item i { font-size: 2rem; color: var(--accent-color); margin-bottom: 15px; }
.grid-item h3 { margin: 10px 0; color: var(--text-main); font-weight: 700; }

/* --- DİĞER --- */
.content-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-std);
    border: 1px solid var(--border-light);
}

/* Form */
input, textarea {
    width: 100%; padding: 12px; margin-bottom: 15px;
    background: #f8fafc; border: 2px solid #eef2f6; border-radius: 8px;
    box-sizing: border-box;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent-color); background: white; }

button.btn {
    background: var(--accent-color); color: white; padding: 12px;
    border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
    width: 100%; transition: 0.3s;
}
button.btn:hover { background: var(--primary-navy); }

/* Footer */
.footer {
    width: 100%;
    display: inline-block;
    background: var(--primary-navy); color: #94a3b8;
    text-align: center; padding: 40px 0; margin-top: 40px;
    font-size: 0.9rem;
}

.footer-text {
    margin: 0;
    width: fit-content;
    display: inline-block;
}

.social-icons a { color: var(--text-body); margin: 0 10px; font-size: 1.5rem; transition: 0.3s; }
.social-icons a:hover { color: var(--accent-color); }

/* Mobil */
@media (max-width: 768px) {
    /* Hamburger Temel Ayarlar */
.hamburger {
    display: block;
    cursor: pointer;
    z-index: 1002;
    padding: 10px; /* Tıklama alanı genişliği */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto; /* Çizgiler arası boşluk: 5px */
    background-color: white; /* Çizgi rengi */
    border-radius: 3px;
    transition: all 0.3s ease-in-out; /* Animasyonun akıcılığı */
}

/* --- X DÖNÜŞÜMÜ (ACTIVE SINIFI GELDİĞİNDE) --- */

/* 1. Çizgi: 8px aşağı in ve 45 derece dön */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

/* 2. Çizgi: Kaybol */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

/* 3. Çizgi: 8px yukarı çık ve -45 derece dön */
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


    /* HEADER AYARLARI */
    .header-container { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; /* Logoyu ve hamburgeri dikeyde ortalar */
        padding: 0 20px;
        position: relative; 
        height: 70px; /* Navbar'a sabit bir yükseklik vermek hesaplamayı kolaylaştırır */
        z-index: 1100 !important;
    }

    .brand-area { align-items: flex-start; }
    
    .hamburger { 
        display: block; 
        position: static; 
        cursor: pointer; 
        z-index: 1001; 
        /* Hamburger ikonun rengini de garantiye alalım */
        color: #fff; 
    }
    
    /* --- MENÜNÜN KAPALI HALİ (GİZLİ & SABİT) --- */
    .nav-links { 
        display: flex; /* Animasyon için display none yerine flex kullanıyoruz */
        flex-direction: column;
        
        position: fixed; 
        top: 100px; /* Header yüksekliğin */
        left: 0; 
        width: 100%;
        
        /* Tam Ekran Yükseklik Hesabı */
        height: calc(100vh - 100px); 
        height: calc(100dvh - 100px); 
        
        padding: 0 !important;
        overflow: hidden;
        background-color: #262f40 !important;
        z-index: 1000;
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px);

        /* --- GİZLENME AYARLARI (Kapanış Efekti) --- */
        visibility: hidden;       /* Tıklanamaz */
        opacity: 0;               /* Görünmez */
        transform: translateY(0); /* ÖNEMLİ: Kapanırken yukarı/aşağı oynamasın, sabit dursun */
        
        /* KAPANMA HIZI: Sadece opaklık değişsin, çok hızlı (0.2s) sönümlensin */
        transition: opacity 0.2s ease-out, visibility 0.2s;
    }

    /* --- MENÜNÜN AÇIK (ACTIVE) HALİ --- */
    .nav-links.active { 
        /* Görünür yap */
        visibility: visible;
        opacity: 1;
        transform: translateY(0); /* Yerinde kalsın */
        
        justify-content: center; 
        align-items: center;
        gap: 1.5rem;
        
        border-radius: 0 !important;
        padding-bottom: 0 !important; 
        
        /* AÇILMA HIZI: Biraz daha yavaş (0.4s) ve yumuşak gelsin */
        transition: opacity 0.4s ease;
    }

    /* --- LİNKLERİN ANİMASYONU (Şelale Efekti) --- */
    .nav-links a {
        font-size: 1.4rem;
        font-weight: 500;
        color: #ffffff;
        text-decoration: none;
        
        /* Linkler kapalıyken hafif aşağıda beklesin */
        opacity: 0;
        transform: translateY(15px);
        transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s;
    }

    /* Menü açıldığında linkler yukarı çıkarak görünür olsun */
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Linklerin sırayla gelmesi için gecikmeler */
    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }

    /* Hover Efekti */
    .nav-links a:hover {
        transform: scale(1.1);
        color: #ffffff; 
        text-shadow: 0 0 10px rgba(255,255,255,0.2);
        transition-delay: 0s !important; /* Hover'da gecikme olmasın */
    }
    
    .hero-wrapper { flex-direction: column; padding: 20px 0; }
    .hero-visual { width: 100%; }
}


/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2c3e50;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.scroll-to-top i {
    line-height: 0.6;
    margin: 0px 0;
}

.scroll-to-top:hover {
    background: #1a252f;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .tangle-logo {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0px 13px auto !important;
    }

    .hero-text h2 {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 1.6rem !important;
    }

    .my-photo {
        margin-top: -75px !important;
    }

    .about-text-content h2 {
        text-align: center !important;
    }

    .read-more-btn {
        margin: auto !important;
        display: block !important;
        margin-top: 15px !important;
    }

    .input-group {
        margin-top: 15px !important;
    }

    .subscribe-button {
        justify-content: left !important;
        align-items: left !important;
        text-align: center !important;
        margin-right: auto !important;
        margin-left: 0 !important;
        margin-top: 25px !important;
        margin-bottom: 15px;
    }

    .premium-tech-bg {

        height: auto -75px !important;
    /* 1. Ana Zemin Rengi */
    background-color: var(--primary-navy);
    
    /* 2. Desen ve Işık Efekti (Burada sihir gerçekleşiyor) */
    background-image: 
        /* Katman A: Silik Noktalar (Izgara görünümü) */
        radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px),
        /* Katman B: Sağ üstten vuran hafif turuncu ışık (Glow) */
        radial-gradient(circle at top center, rgba(255, 102, 0, 0.15), transparent 60%);
        }

    .bio-content.expanded {
    max-height: 2800px !important; /* İçeriğin sığacağı kadar büyük bir değer veriyoruz */
}

}