/* =========================================
   1. TEMA DEĞİŞKENLERİ VE TEMEL AYARLAR
   ========================================= */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #111111;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    --accent: #e74c3c;
    --link-hover: #000000;
}

[data-theme="dark"] {
    --bg-primary: #0a0a0c;
    --bg-secondary: #121216;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
    --accent: #ff4757;
    --link-hover: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    line-height: 1.6;
}

/* =========================================
   2. HEADER VE LİNK LOGO (PULSE ANİMASYONU)
   ========================================= */
.official-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text-primary);
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-anim {
    display: inline-block;
    color: var(--accent);
    animation: heartbeat 2s infinite ease-in-out;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 0.85rem;
        font-weight: 600;
        transition: 0.3s;
    }

        .nav-links a:hover {
            color: var(--text-primary);
        }

/* =========================================
   3. HEADER KONTROLLERİ (DİL VE TEMA)
   ========================================= */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Tıklanabilir Şık Dropdown */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .dropdown-btn:hover {
        border-color: var(--text-primary);
    }

.caret {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background-color: var(--bg-secondary);
    min-width: 140px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    z-index: 100;
    overflow: hidden;
}

/* JS ile "active" sınıfı eklendiğinde görünür yap */
.custom-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown.active .caret {
    transform: rotate(180deg);
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: 0.2s;
}

    .dropdown-content a:hover {
        background-color: var(--bg-primary);
    }

/* Profesyonel Tema Switch Anahtarı */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 30px;
    position: relative;
    width: 64px;
}

    .theme-switch input {
        display: none;
    }

.slider {
    background-color: #2a2a2a;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

    .slider.round {
        border-radius: 30px;
    }

    .slider:before {
        background-color: #ffffff;
        bottom: 4px;
        content: "";
        height: 22px;
        left: 4px;
        position: absolute;
        transition: .4s;
        width: 22px;
        border-radius: 50%;
        z-index: 2;
    }

input:checked + .slider {
    background-color: #e5e5e5;
}

    input:checked + .slider:before {
        transform: translateX(34px);
        background-color: #111111;
    }

.icon-sun, .icon-moon {
    font-size: 14px;
    z-index: 1;
}

/* =========================================
   4. ANA İÇERİK VE PROJE KARTLARI
   ========================================= */
.official-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--text-primary);
    margin-bottom: 60px;
}

.featured-project-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

@media (min-width: 768px) {
    .featured-project-card {
        flex-direction: row;
    }
}

.featured-project-card:hover {
    transform: translateY(-8px);
    border-color: var(--text-secondary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-image-container {
    flex: 1;
    background-color: #1a1a1a;
    min-height: 250px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .card-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .card-content p {
        color: var(--text-secondary);
        margin-bottom: 30px;
        font-size: 1.1rem;
    }

.primary-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 12px 24px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.3s;
}

    .primary-btn:hover {
        background-color: var(--text-secondary);
    }

/* =========================================
   5. FOOTER VE KAYDIRMA ANİMASYONLARI
   ========================================= */
.official-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 40px;
    text-align: center;
    background-color: var(--bg-secondary);
}

.footer-logo {
    margin-bottom: 20px;
}

.contact-email {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }


/* --- HERO VIDEO SECTION --- */
.hero-header {
    position: relative;
    width: 100%;
    height: 60vh; /* Ekranın %60'ını kaplar. Tam ekran istersen 100vh yapabilirsin. */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 3rem; /* Altındaki PROJELER yazısıyla arayı açar */
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Videonun esnemesini engeller, ekranı orantılı kaplar */
    z-index: -2; /* En arkaya iter */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Sayfanın siyah temasına doğru yumuşak bir geçiş (gradient) yapar */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, var(--bg-color, #121212) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 4rem); /* Mobilde otomatik küçülen mükemmel font ayarı */
        margin-bottom: 1rem;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: clamp(1rem, 2vw, 1.25rem);
        opacity: 0.8;
    }