/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-dark: #0F172A; /* Derin gece mavisi */
    --secondary-dark: #1E293B; /* Biraz daha açık ton */
    --accent-gold: #F59E0B; /* Altın vurgu rengi */
    --accent-glow: rgba(245, 158, 11, 0.3);
    --text-light: #F8FAFC;
    --text-gray: #94A3B8;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --section-spacing: 100px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #D97706);
    color: white;
    box-shadow: 0 10px 20px -10px var(--accent-glow);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -15px var(--accent-glow);
}

/* --- HEADER / NAVBAR --- */
header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
}

.logo span { color: var(--text-light); margin-left: 5px;}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Yıldızların görünmesi için arka planı transparan veya karartmalı yapabilirsin */
    /* background-image: url('hero-bg.png'); */
    /* Eğer arka plan resmin varsa ve yıldızları kapatıyorsa opacity verebiliriz */
    /* Yıldızlar global arka planda olduğu için burada özel bir ayara gerek yok */
    padding-top: 80px; 
}

/* Yıldızların görünürlüğünü arttırmak için gradient */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--primary-dark) 90%);
    z-index: 1;
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.store-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.store-badge-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-badge-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.store-badge-link img {
    height: 100px;
    width: auto;
    display: block;
    border-radius: 8px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    width: 380px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- NASIL ÇALIŞIR (STEPS) --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.step-card {
    padding: 20px;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: white;
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px var(--accent-glow);
}

.step-card h3 { margin-bottom: 10px; font-size: 1.4rem; }
.step-card p { color: var(--text-gray); }

/* --- FEATURES SECTION --- */
.features {
    padding: var(--section-spacing) 0;
    background-color: var(--primary-dark);
    position: relative;
    z-index: 2; /* Yıldızların üzerinde kalsın */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.section-header p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--secondary-dark);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 25px;
    color: var(--accent-gold);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-gray);
}

/* --- FAQ --- */
.faq-item {
    background: var(--secondary-dark);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--accent-gold);
    list-style: none; /* Üçgeni kaldır */
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    color: var(--text-light);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 20px 20px;
    color: var(--text-gray);
    margin-top: 0;
}

/* --- FOOTER --- */
footer {
    background: var(--secondary-dark);
    padding: 50px 0;
    text-align: center;
    color: var(--text-gray);
    margin-top: var(--section-spacing);
    position: relative;
    z-index: 2;
}

footer p {
    font-size: 0.9rem;
}

.language-selector select {
    background-color: var(--secondary-dark);
    color: var(--text-light);
    border: 1px solid var(--accent-gold);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
}

/* --- CAROUSEL STYLES --- */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.carousel-item {
    flex: 0 0 auto;
    width: 250px;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 4px solid var(--secondary-dark);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6));
    color: var(--text-light);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
}

.image-wrapper:hover {
    transform: scale(1.02);
    border-color: var(--accent-gold);
}

.image-wrapper:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.carousel-btn {
    background-color: var(--secondary-dark);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: var(--accent-gold);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* --- STARS ANIMATION (YENİ EKLENEN KISIM) --- */
#star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* En arkada durmalı */
    pointer-events: none; /* Tıklamaları engellememeli */
    overflow: hidden;
}

/* Normal Yıldızlar */
.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle infinite ease-in-out;
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

/* Kayan Yıldızlar (Shooting Stars) */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    animation: shoot 2s linear forwards;
    opacity: 0;
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(-300px) translateY(300px) rotate(-45deg);
        opacity: 0;
    }
}

/* --- RESPONSIVE / MOBİL --- */
@media (max-width: 968px) {
    .hero-content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        padding-bottom: 50px;
    }
    .store-buttons { justify-content: center; }
    .store-badge-link img { height: 40px; }
    .hero h1 { font-size: 3rem; }
    .hero-image img { width: 300px; margin-bottom: 40px; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .btn { padding: 12px 24px; font-size: 12px; }
    .store-buttons { flex-direction: column; gap: 15px;}
    
    .carousel-btn { display: none; }
    .carousel-viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-left: 20px;
        padding-right: 20px;
    }
    .carousel-track { width: max-content; }
    .carousel-item { scroll-snap-align: center; }

    .overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.2));
        padding: 10px;
    }
}