/* =================================================================== */
/* ===         1. Genel Stiller ve Değişkenler (Variables)         === */
/* =================================================================== */
:root {
    --primary-blue: #2ec5ff;
    --dark-blue: #0a2ea3;
    --text-color: #ffffff;
    --text-secondary: #c0d0ff;
    --dark-bg: #03081a;
    --menu-bg: rgba(5, 15, 45, 0.85);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
    line-height: 1.6;
}

/* =================================================================== */
/* ===        2. Header / Navigasyon Menüsü (Masaüstü)           === */
/* =================================================================== */
header {
    background: var(--menu-bg);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .logo img {
    height: 40px;
    vertical-align: middle;
}

nav#nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav#nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav#nav-links a:hover, nav#nav-links a.active {
    color: var(--text-color);
}

/* =================================================================== */
/* ===             3. Ana İçerik ve Sayfa Yapısı                   === */
/* =================================================================== */
main {
    padding-top: 71px;
}

.page-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.page-container h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.page-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 40px;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.page-container p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: left;
}

/* =================================================================== */
/* ===              4. Özel Bölüm Stilleri (Hero, Ürünler vb.)     === */
/* =================================================================== */

/* --- Hero Section (Anasayfa) --- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    box-sizing: border-box;
    background: linear-gradient(rgba(3, 8, 26, 0.7), rgba(3, 8, 26, 0.9)), url('/images/background.jpg') no-repeat center center/cover;
    padding-top: 0;
}

.hero h1 {
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--dark-bg);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #fff;
    transform: scale(1.05);
}

/* --- Products Page --- */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.product-card {
    background: var(--menu-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--primary-blue);
}

.product-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.product-card .feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-card .feature-list li::before {
    content: '✓';
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-right: 15px;
}

.product-card .note {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Download Page --- */
.download-section {
    margin-top: 50px;
}

.download-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.download-badges img {
    height: 60px;
    transition: transform 0.2s ease;
}

.download-badges img:hover {
    transform: scale(1.05);
}

/* =================================================================== */
/* ===                         5. Footer                           === */
/* =================================================================== */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--dark-bg);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: var(--text-color);
}

/* =================================================================== */
/* ===        6. Hamburger Menü (Sadece Mobilde Görünür)           === */
/* =================================================================== */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* =================================================================== */
/* ===       7. Mobil Uyumlu Tasarım (Responsive Design)           === */
/* =================================================================== */
@media (max-width: 768px) {
    /* --- Header ve Menü İkonu --- */
    header {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Mobilde navigasyon panelini tam ekran yap */
    nav#nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(3, 8, 26, 0.98);
        backdrop-filter: blur(10px);

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;

        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    /* JavaScript .active sınıfını eklediğinde menüyü görünür yap */
    nav#nav-links.active {
        transform: translateX(0);
    }

    /* Panel içindeki menü linkleri */
    nav#nav-links a {
        margin: 20px 0;
        font-size: 1.8rem;
        font-weight: 600;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Aktif olduğunda linkleri göster */
    nav#nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Her link için farklı animasyon gecikmeleri */
    nav#nav-links.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav#nav-links.active a:nth-child(2) {
        transition-delay: 0.2s;
    }

    nav#nav-links.active a:nth-child(3) {
        transition-delay: 0.3s;
    }

    /* Hamburger menüyü mobilde göster */
    .hamburger-menu {
        display: block;
    }

    /* --- Hamburger İkonunun X'e Dönüşme Animasyonu --- */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- Diğer Sayfa Elemanlarının Mobil Uyumu --- */
    main {
        padding-top: 71px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}