/* Genel Ayarlar ve Resetleme */
:root {
    --primary-color: #A147D6; /* Star Stable Moru */
    --secondary-color: #4C2F8C; /* Koyu Mor */
    --dark-bg: #12101d; /* Koyu Arkaplan */
    --text-color: #f0f0f0;
    --light-text: #a0a0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Ana Karşılama Alanı Stilleri */
.hero-section {
    /* Opaklık ayarı ve yumuşak geçiş için güncellendi */
    background-image:
            linear-gradient(to bottom, rgba(18, 16, 29, 0.6), rgba(18, 16, 29, 0.9) 70%, var(--dark-bg) 100%), /* Daha yumuşak geçiş ve genel opaklık */
            url('assets/img/hero.webp');
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative; /* Gradient'in ve dil menüsünün doğru çalışması için */
    z-index: 1; /* Diğer içeriklerin üzerinde kalması için */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text);
}

.hero-content p strong {
    color: var(--primary-color);
}

/* Call-to-Action Buton Stili */
.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(161, 71, 214, 0.5);
    display: inline-block; /* Margin ve padding için */
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #b15be0;
    box-shadow: 0 0 30px rgba(161, 71, 214, 0.8);
}

/* İçerik Bölümleri */
main {
    padding: 60px 0;
    position: relative;
    z-index: 2; /* Hero'dan sonra gelmeli */
}

.feature-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.feature-section.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 0 0 400px; /* GÜNCELLENDİ: Genişlik 400px olarak ayarlandı */
    max-width: 400px; /* GÜNCELLENDİ: Maksimum genişlik 400px */
    width: 100%; /* Küçük ekranlarda esnekliği korumak için */
}

.feature-image img {
    width: 100%;
    height: auto; /* Resimlerin orantısını korur */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--light-text);
}

/* Son Çağrı Alanı */
.final-cta {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--secondary-color);
    margin-top: 60px;
}

.final-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

/* Footer Alanı */
footer {
    text-align: center;
    padding: 20px;
    background-color: #0c0a14;
    font-size: 0.9rem;
    color: #666;
}

/* ---- DİL SEÇİM MENÜSÜ STİLLERİ ---- */
/* ---- DİL SEÇİM MENÜSÜ STİLLERİ ---- */

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.language-button {
    background-color: rgba(18, 16, 29, 0.7);
    color: var(--text-color);
    padding: 10px 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.language-button:hover, .language-switcher.active .language-button {
    background-color: var(--secondary-color);
}

.language-button .arrow-down {
    border: solid var(--text-color);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Menü açıkken oku yukarı çevir */
.language-switcher.active .language-button .arrow-down {
    transform: rotate(-135deg);
}

.language-dropdown {
    display: none; /* Başlangıçta gizli */
    position: absolute;
    right: 0;
    top: calc(100% + 5px); /* Butonun hemen altında başlasın */
    background-color: #1a1729;
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 5px 0;
    max-height: 250px;
    overflow-y: auto;
    opacity: 0; /* Animasyon için başlangıç */
    transform: translateY(-10px); /* Animasyon için başlangıç */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* JavaScript ile .active sınıfı eklendiğinde menüyü göster */
.language-switcher.active .language-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.language-dropdown a {
    color: var(--light-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-dropdown a:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}


/* Mobil Cihazlar için Ayarlar */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .feature-section,
    .feature-section.reverse {
        flex-direction: column;
        text-align: center;
    }
    .feature-image {
        flex: 1; /* Mobil cihazlarda tam genişlik almasını sağlar */
        max-width: 100%; /* Mobil cihazlarda tam genişlik */
    }
    /* Dil menüsünü mobil için ayarla */
    .language-switcher {
        top: 15px;
        right: 15px;
    }
    .language-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    .feature-text h2 {
        font-size: 2rem;
    }
    .feature-text p {
        font-size: 1rem;
    }
}

/* ---- Dikkat Çekici Alt Başlık Stilleri ---- */

/* Ana metin stilini değiştiriyoruz */
.hero-subtitle {
    font-size: 2rem !important; /* Yazıyı büyüttük */
    font-weight: 600; /* Yazıyı biraz kalınlaştırdık */
    color: var(--primary-color); /* Rengini ana mor rengimiz yaptık */
    margin: 1rem 0 2rem 0; /* Etrafındaki boşluğu artırdık */
}


/* Mobil cihazlar için boyutu biraz ayarlayalım */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.3rem;
    }
}