:root {
    /* Renk Tanımları (Ana tema ile aynı) */
    --bg-main: #0b1120;
    --accent: #14b8a6; /* Teal */
    --text-white: #f1f5f9;
    --text-gray: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* --- ORTAK STİLLER (Navbar ve Genel Görünüm İçin) --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Arka Plan */
.bg-gradient-fixed {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background: radial-gradient(circle at 50% 50%, #112240 0%, #0a192f 100%);
}
.noise-overlay {
    position: fixed; inset: 0; z-index: -1; opacity: 0.05; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

/* Navbar Stilleri */
.navbar { position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid var(--glass-border); }
.matte-glass { background: rgba(11, 17, 32, 0.9); backdrop-filter: blur(20px); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: white; line-height: 1; }
.logo-text span { color: var(--accent); }
.logo-text small { display: block; font-size: 0.6rem; letter-spacing: 2px; color: var(--text-gray); }

.nav-menu { display: flex; gap: 2rem; list-style: none; }
.nav-menu a { color: var(--text-gray); font-size: 0.9rem; font-weight: 500; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }

/* Butonlar */
.btn-primary {
    background: var(--accent); color: var(--bg-main); padding: 0.6rem 1.2rem;
    border-radius: 6px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary {
    background: transparent; border: 1px solid var(--glass-border); color: var(--text-white);
    padding: 0.8rem; border-radius: 6px; font-weight: 600; width: 100%;
    display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: auto;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: rgba(20, 184, 166, 0.1); }

/* --- SAYFAYA ÖZEL STİLLER (PROJECTS.HTML) --- */
.projects-page { padding-top: 140px; min-height: 100vh; padding-bottom: 4rem; }

.page-header { text-align: center; margin-bottom: 5rem; }
.page-header h1 {
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 3rem; 
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    
    /* 1. Standart Özellik (Sarı çizgiyi bu satır çözer) */
    background-clip: text;
    
    /* 2. Webkit Tabanlı Tarayıcılar (Chrome, Safari, Edge) için zorunlu */
    -webkit-background-clip: text;
    
    /* 3. Yazının içini boşaltır */
    -webkit-text-fill-color: transparent;
    
    display: inline-block;
}
.page-header p { color: var(--text-gray); max-width: 600px; margin: 0 auto; }

/* 2'Lİ GRID SİSTEMİ (PC'de 2, Mobilde 1) */
.library-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobil: Tek kolon */
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .library-grid {
        grid-template-columns: 1fr 1fr; /* PC: İki kolon */
    }
}

/* Kart Yapısı */
.lib-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex; flex-direction: column;
    height: 100%; /* Kart boylarını eşitle */
    transition: 0.3s;
}
.lib-card:hover { transform: translateY(-5px); border-color: var(--accent); }

/* Resim Alanı (Sabit Boyut) */
.lib-img {
    height: 250px; width: 100%; position: relative;
    border-bottom: 1px solid var(--glass-border); overflow: hidden;
}
.lib-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.lib-card:hover .lib-img img { transform: scale(1.05); }

.lib-tag {
    position: absolute; top: 15px; left: 15px;
    background: rgba(11, 17, 32, 0.9); color: var(--accent);
    padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 700;
    border: 1px solid var(--accent);
}

/* Kart İçeriği */
.lib-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.lib-content h3 { font-family: 'Space Grotesk'; font-size: 1.4rem; margin-bottom: 1rem; line-height: 1.3; }
.lib-content p { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 2rem; flex-grow: 1; }

/* Footer */
.footer { padding: 2rem 0; border-top: 1px solid var(--glass-border); text-align: center; color: var(--text-gray); font-size: 0.9rem; }

/* Mobil Düzenleme */
@media (max-width: 768px) {
    .nav-menu { display: none; } /* Mobilde basitlik için menüyü gizledik veya hamburger eklenebilir */
    .page-header h1 { font-size: 2rem; }
}

/* --- MOBİL MENÜ (RESPONSIVE) STİLLERİ --- */

/* Başlangıçta hamburger butonu ve mobil menüyü gizle (Masaüstü için) */
.hamburger { display: none; cursor: pointer; color: var(--text-white); }
.mobile-menu { display: none; }

/* --- TELEFON VE TABLET EKRANLARI (768px altı) --- */
@media (max-width: 968px) {

    /* Masaüstü menüyü ve butonu gizle */
    .desktop-menu, .desktop-action {
        display: none !important; /* Kesinlikle gizle */
    }

    /* Hamburger ikonunu göster */
    .hamburger {
        display: block;
        z-index: 1002; /* Menünün üstünde kalsın */
    }
    .hamburger i {
        width: 32px; height: 32px;
        transition: transform 0.3s;
    }
    /* Hamburger'e tıklanınca ikon dönsün */
    .hamburger.active i {
        transform: rotate(90deg);
        color: var(--accent);
    }

    /* Mobil Menü Paneli (Gizli Durum) */
    .mobile-menu {
        display: flex; /* Flex ama görünmez */
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(11, 17, 32, 0.95); /* Çok koyu arka plan */
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        z-index: 1001; /* Navbar'ın hemen altında */
        flex-direction: column;
        justify-content: center; align-items: center;
        
        /* Animasyon Başlangıcı: Yukarıda ve Görünmez */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Mobil Menü Paneli (AÇIK DURUM) */
    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Linklerin Stili */
    .mobile-links {
        list-style: none;
        text-align: center;
        display: flex; flex-direction: column; gap: 2rem;
    }

    .mobile-links a {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.5rem; /* Telefonda büyük font */
        color: var(--text-white);
        font-weight: 700;
        display: block;
    }

    .mobile-links a:hover {
        color: var(--accent);
        transform: scale(1.1);
    }

    /* Mobildeki Butonun Ayarı */
    .mobile-btn {
        margin-top: 1rem;
        background: var(--accent);
        color: var(--bg-main);
        justify-content: center;
    }
}