/* Genel Ayarlar */
:root {
    --primary-color: #e74c3c;
    --text-color: #f5f5f5;
    --bg-color: #1a1a1a;
    --overlay-color: rgba(0, 0, 0, 0.6);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Yükleme Ekranı */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

.loader-content {
    text-align: center;
    animation: fadeIn 2s infinite alternate;
}

/* Sahne Yapısı (Scrollytelling) */
.scene {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    /* Ekranı sahneye oturt */
}

/* Arka Plan Resimleri */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; -- Parallax yerine Animasyon kullanıyoruz artık */
    z-index: -1;
    opacity: 0.8;
    /* Hafif karanlık yapalım, yazı okunsun */
}

/* Cinematic Animations (Ken Burns Effect) */
@keyframes cinematicZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.3);
    }
}

@keyframes cinematicPan {
    0% {
        transform: scale(1.2) translate(0, 0);
    }

    50% {
        transform: scale(1.2) translate(-20px, -10px);
    }

    100% {
        transform: scale(1.2) translate(0, 0);
    }
}



.animate-zoom {
    animation: cinematicZoom 30s infinite alternate ease-in-out;
}

.animate-pan {
    animation: cinematicPan 40s infinite alternate ease-in-out;
}

/* Image Filters for Variety */
.filter-sepia {
    filter: sepia(40%) contrast(110%) brightness(80%);
}

.filter-dark {
    filter: brightness(50%) contrast(130%) saturate(80%);
}

.filter-dramatic {
    filter: contrast(140%) brightness(70%) hue-rotate(-10deg);
}

/* İçerik Kutuları */
.content {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    max-width: 600px;
    border-left: 5px solid var(--primary-color);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    margin: 0 2rem;
}

.scene.active .content {
    opacity: 1;
    transform: translateY(0);
}

/* Başlıklar ve Metinler */
h1.title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Farklı Hizalamalar */
.right-aligned {
    margin-left: auto;
    border-left: none;
    border-right: 5px solid var(--primary-color);
    text-align: right;
}

.left-aligned {
    margin-right: auto;
}

.center-aligned {
    text-align: center;
    border: none;
    border-bottom: 5px solid var(--primary-color);
}

.alarm-style {
    border-color: #ff3333;
    background: rgba(50, 0, 0, 0.7);
}

/* İstatistikler ve Ceza Kutusu */
.stat-box,
.penalty-box {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-number,
.amount {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.currency {
    font-size: 2rem;
    vertical-align: top;
}

/* Scroll İndikatörü */
.scroll-indicator {
    margin-top: 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    h1.title {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .content {
        padding: 1.5rem;
        margin: 1rem;
        width: 100%;
    }

    .background {
        background-attachment: scroll;
    }

    /* Mobilde parallax performansı için */
}