/* ==============================================
   EK UYGULAMALAR - IMMERSIVE SCROLL EXPERIENCE
   Architectural Digital Showcase
   ============================================== */

/* Base Reset for Immersive Experience */
.ek-immersive {
    background: #0a0a0c;
    color: #fff;
    overflow-x: hidden;
}

/* Hero Badge Section */
.ek-badge {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg,
            rgba(10, 10, 12, 0) 0%,
            rgba(10, 10, 12, 0.4) 50%,
            #0a0a0c 100%), url('../../assets/images/ek-uygulamalar-bg.jpg') center/cover no-repeat fixed;
}

.ek-badge-content {
    text-align: center;
    z-index: 2;
}

.ek-badge h1 {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 200;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(60px);
    animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.ek-badge h1 strong {
    font-weight: 700;
    display: block;
}

.ek-badge-sub {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: heroReveal 1s ease 0.8s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.7);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Cinematic Scene Base */
.scene {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.scene-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.scene:nth-of-type(even) .scene-inner {
    direction: rtl;
}

.scene:nth-of-type(even) .scene-inner>* {
    direction: ltr;
}

/* Scene Background - Parallax Layer */
.scene-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.scene-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(10, 10, 12, 0.95) 0%,
            rgba(10, 10, 12, 0.7) 40%,
            rgba(10, 10, 12, 0.4) 100%);
    z-index: 1;
}

.scene:nth-of-type(even) .scene-bg::before {
    background: linear-gradient(90deg,
            rgba(10, 10, 12, 0.3) 0%,
            rgba(10, 10, 12, 0.85) 45%,
            rgba(10, 10, 12, 0.98) 100%);
}

/* Even scenes - content on right needs more protection */
.scene:nth-of-type(even) .scene-content {
    background: rgba(10, 10, 12, 0.7);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.scene-bg-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
    transform: translateY(0);
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Scene Content */
.scene-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.in-view .scene-content {
    opacity: 1;
    transform: translateY(0);
}

.scene-number {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scene-number::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-accent);
}

.scene-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.scene-desc {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin-bottom: var(--space-xl);
}

/* Minimal Feature Tags */
.scene-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.scene-tag {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.scene-tag:hover {
    color: var(--color-accent);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
}

/* Image Panel */
.scene-visual {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(100px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.scene.in-view .scene-visual {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scene-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #111;
}

.scene-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
    pointer-events: none;
}

.scene-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.in-view .scene-image {
    transform: scale(1);
}

.scene-image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    z-index: 3;
}

/* Divider Between Scenes */
.scene-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    margin: 0 auto;
    width: 60%;
}

/* Final CTA Section */
.ek-cta-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.ek-cta-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.ek-cta-section.in-view .ek-cta-content {
    opacity: 1;
    transform: translateY(0);
}

.ek-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.ek-cta-title strong {
    font-weight: 700;
    color: var(--color-accent);
}

.ek-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-black);
    background: var(--color-accent);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
}

.ek-cta-btn:hover {
    background: #E5C65B;
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {

    /* Mobile Height & Padding Fixes - AGGRESSIVE */
    .ek-badge {
        height: auto !important;
        min-height: 50vh !important;
        /* Shorter header */
        padding: 100px 0 40px !important;
    }

    .scene {
        min-height: auto !important;
        /* Strictly auto */
        padding: var(--space-lg) 0 !important;
        /* Much tighter spacing */
    }

    .scene-inner {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
        padding: 0 var(--space-md) !important;
    }

    .scene-image-wrap {
        aspect-ratio: 16/9;
        height: auto !important;
        min-height: 200px !important;
        /* Smaller image */
        max-height: 300px !important;
    }

    .scene-content {
        padding: 0 !important;
        background: transparent !important;
        text-align: left;
    }

    .scene-title {
        font-size: 1.75rem !important;
        /* Smaller title */
        margin-bottom: var(--space-sm) !important;
    }

    .scene-desc {
        font-size: 0.95rem !important;
        margin-bottom: var(--space-md) !important;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .scene-bg::before {
        background: linear-gradient(180deg,
                rgba(10, 10, 12, 0.4) 0%,
                rgba(10, 10, 12, 0.95) 70%) !important;
    }
}

@media (max-width: 600px) {
    .ek-badge {
        padding-bottom: 150px !important;
        /* Reserve space for scroll indicator */
    }

    .ek-badge h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-bottom: 1rem;
    }

    .ek-badge-sub {
        font-size: 0.75rem !important;
        letter-spacing: 0.15em !important;
        line-height: 1.6;
        display: block;
        max-width: 80%;
        margin: 0 auto;
        word-wrap: break-word;
        /* Prevent overflow */
    }

    .scene-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .scene-desc {
        font-size: 1rem;
    }

    .scene-features {
        gap: 0.5rem;
    }

    .scene-tag {
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
    }
}