/* ============================================
   Turktema - Apple-style scroll animations
   ============================================ */

:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-text: #f5f5f7;
    --color-text-muted: #86868b;
    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 18px;
    --header-h: 52px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.35); border: 2px solid transparent; background-clip: padding-box; }
html::-webkit-scrollbar-thumb:active { background: rgba(255, 255, 255, 0.45); border: 2px solid transparent; background-clip: padding-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Arka plan döngüsü: background.png → background2.png → background3.png */
.bg-cycle {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}
.bg-layer {
    position: absolute;
    inset: 0;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s var(--ease-out-quart);
}
.bg-layer.active { opacity: 1; }
.bg-layer-1 { background-image: url('../../background.png'); }
.bg-layer-2 { background-image: url('../../background2.png'); }
.bg-layer-3 { background-image: url('../../background3.png'); }
.bg-layer-4 { background-image: url('../../background4.png'); }
.bg-layer-5 { background-image: url('../../background5.png'); }
.bg-layer-6 { background-image: url('../../background6.png'); }
.bg-layer-7 { background-image: url('../../background7.png'); }

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transition: background 0.3s var(--ease-out-expo);
}
.site-header.scrolled { background: rgba(10, 10, 10, 0.9); }
.nav-inner {
    width: 100%;
    max-width: 980px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a.nav-cta {
    color: #fff;
    background: var(--color-accent);
    padding: 0.4rem 0.9rem;
    border-radius: 980px;
    font-weight: 500;
}
.nav-links a.nav-cta:hover { color: #fff; background: var(--color-accent-hover); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
}

/* ---- Reveal elements (initial state) ---- */
.reveal-el {
    opacity: 0;
    transform: translateY(56px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-el[data-reveal="fade-up"] { transform: translateY(56px); }
.reveal-el[data-reveal="fade-down"] { transform: translateY(-56px); }
.reveal-el[data-reveal="slide-left"] { transform: translateX(80px); }
.reveal-el[data-reveal="slide-right"] { transform: translateX(-80px); }
.reveal-el[data-reveal="scale"] { transform: scale(0.92); }
.reveal-el.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}
.reveal-el[data-delay="0"] { transition-delay: 0s; }
.reveal-el[data-delay="80"] { transition-delay: 0.08s; }
.reveal-el[data-delay="160"] { transition-delay: 0.16s; }
.reveal-el[data-delay="100"] { transition-delay: 0.1s; }
.reveal-el[data-delay="150"] { transition-delay: 0.15s; }
.reveal-el[data-delay="200"] { transition-delay: 0.2s; }
.reveal-el[data-delay="300"] { transition-delay: 0.3s; }

/* ---- Main ---- */
.main-content { padding-top: 0; }

/* ---- Header altı: Yatay özellik slaytı (sola kayarak) ---- */
.feature-slider-wrap {
    margin-top: var(--header-h);
    position: relative;
    width: 100%;
    overflow: hidden;
}
.feature-slider {
    width: 100%;
    overflow: hidden;
}
.feature-slider-track {
    display: flex;
    width: calc(var(--slide-count, 3) * 100%);
    transition: transform 0.7s var(--ease-out-expo);
    will-change: transform;
}
.feature-slide {
    flex: 0 0 calc(100% / var(--slide-count, 3));
    width: calc(100% / var(--slide-count, 3));
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}
.feature-slide-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}
.feature-slide-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 21/9;
    background: var(--color-surface);
}
.feature-slide-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.feature-slide-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.feature-slide-media .feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.feature-slide-content { padding: 0 0.25rem; text-align: center; }
.feature-slide-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    line-height: 1.15;
}
.feature-slide-desc {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}
.feature-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}
.feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.feature-dot:hover { background: rgba(255,255,255,0.6); }
.feature-dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* ---- Hero (artık kullanılmıyor, slider kullanılıyor) ---- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 40px) 24px 80px;
    position: relative;
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0 0 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    margin: 0 0 2rem;
    font-weight: 400;
}
.hero-cta {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 980px;
    font-size: 1rem;
    transition: background 0.25s, transform 0.2s;
}
.hero-cta:hover {
    background: var(--color-accent-hover);
    transform: scale(1.02);
}
.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(0, 113, 227, 0.15) 0%, transparent 55%);
}
.hero-shape {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: min(90vw, 500px);
    height: 200px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    border-radius: 50% 50% 40% 40%;
    filter: blur(40px);
}
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}
.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* ---- Section base ---- */
.section {
    padding: 100px 24px;
    max-width: 980px;
    margin: 0 auto;
}
.section-feature { padding: 80px 24px; }
.reveal-blocks-inner { max-width: 980px; margin: 0 auto; }
.reveal-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
}
.reveal-blocks-inner .reveal-section-title:first-child { margin-top: 0; }
.reveal-blocks-inner .reveal-section-title:not(:first-child) { margin-top: 3rem; }
/* İçerik blokları: birbirine daha yakın */
#reveal-blocks .feature-block {
    margin-bottom: 48px;
    min-height: auto;
    gap: 3rem;
}
#reveal-blocks .feature-block:last-child { margin-bottom: 0; }

/* ---- Feature blocks ---- */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 120px;
    min-height: 60vh;
}
.feature-block:last-child { margin-bottom: 0; }
.feature-block--2 .feature-content { order: 2; }
.feature-block--2 .feature-media { order: 1; }
.feature-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    line-height: 1.15;
}
.feature-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}
.feature-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--color-surface);
}
.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* YouTube embed (tek başına) */
.media-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.media-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
/* YouTube + görsel dönüşümü (her 3 sn) */
.media-rotate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.media-rotate-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out-quart);
    pointer-events: none;
}
.media-rotate-item.active {
    opacity: 1;
    pointer-events: auto;
}
.media-rotate-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.media-rotate-img {
    background: var(--color-surface);
}
.media-rotate-img .feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-surface) 0%, #1a1a1a 100%);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.media-placeholder--1 { background: linear-gradient(135deg, #1a2744 0%, #0d1424 100%); }
.media-placeholder--2 { background: linear-gradient(135deg, #1e3a2f 0%, #0f1f18 100%); }
.media-placeholder--3 { background: linear-gradient(135deg, #2d1f3d 0%, #1a1025 100%); }

/* ---- Sıralı 3 kart (sticky yerine) ---- */
.section-cards { padding: 60px 24px 80px; }
.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}
.simple-card {
    aspect-ratio: 16/10;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.simple-card-1 { background: linear-gradient(145deg, #1a2744, #0d1424); }
.simple-card-2 { background: linear-gradient(145deg, #1e3a2f, #0f1f18); }
.simple-card-3 { background: linear-gradient(145deg, #2d1f3d, #1a1025); }
.cards-texts { max-width: 700px; margin: 0 auto; text-align: center; }
.simple-panel { padding: 1.5rem 0; }
.simple-panel h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; }
.simple-panel p { font-size: 1rem; color: var(--color-text-muted); margin: 0; }

/* ---- Kullanılan Scriptler - 5x5 kart (slaytın hemen altında) ---- */
.section-scripts {
    padding: 60px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.scripts-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 2.5rem;
    letter-spacing: -0.02em;
}
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}
.script-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.script-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.script-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #1a1a1a;
}
.script-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.script-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    color: var(--color-text);
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}
/* ---- Sticky section (Apple-style) - artık kullanılmıyor, .section-cards kullanılıyor ---- */
.sticky-section {
    padding: 0;
    max-width: 100%;
    margin: 0;
}
.sticky-inner {
    position: relative;
    min-height: 300vh;
}
.sticky-visual {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--header-h) 24px 80px;
}
.sticky-card {
    position: absolute;
    width: min(320px, 85vw);
    height: 200px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.sticky-card.revealed {
    opacity: 1;
    transform: scale(1);
}
.sticky-card-1 { background: linear-gradient(145deg, #1a2744, #0d1424); }
.sticky-card-2 { background: linear-gradient(145deg, #1e3a2f, #0f1f18); }
.sticky-card-3 { background: linear-gradient(145deg, #2d1f3d, #1a1025); }
.sticky-texts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}
.sticky-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
    text-align: center;
}
.sticky-panel h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}
.sticky-panel p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 480px;
}

/* ---- Stats ---- */
.section-stats {
    padding: 100px 24px;
    text-align: center;
}
.stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}
.stat-item { padding: 1rem; }
.stat-value {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* ---- Parallax ---- */
.section-parallax {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
    overflow: hidden;
}
.parallax-bg {
    position: absolute;
    inset: -20%;
    background: linear-gradient(180deg, rgba(0,113,227,0.12) 0%, rgba(0,113,227,0.04) 50%, transparent 100%);
    will-change: transform;
}
.parallax-content {
    position: relative;
    z-index: 1;
}
.parallax-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.parallax-content p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ---- CTA ---- */
.section-cta {
    padding: 120px 24px;
    text-align: center;
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}
.cta-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0 0 2rem;
}
.cta-button {
    display: inline-block;
    padding: 16px 36px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 980px;
    font-size: 1.0625rem;
    transition: background 0.25s, transform 0.2s;
}
.cta-button:hover {
    background: var(--color-accent-hover);
    transform: scale(1.02);
}

/* ---- Footer ---- */
.site-footer {
    padding: 48px 24px 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.footer-inner { max-width: 980px; margin: 0 auto; }
.footer-brand {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}
.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}
.footer-links a:hover { color: var(--color-text); }
.footer-copy {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .scripts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .feature-slide-inner { gap: 1rem; }
    .feature-slide { min-height: auto; padding: 1.5rem 1rem; }
    .feature-slide-media { aspect-ratio: 16/9; }
    .scripts-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .feature-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 80px;
        min-height: auto;
    }
    .feature-block--2 .feature-content,
    .feature-block--2 .feature-media { order: unset; }
    #reveal-blocks .feature-block { margin-bottom: 40px; gap: 1.5rem; }
    .feature-media { aspect-ratio: 16/9; }
    .stats-inner { grid-template-columns: 1fr; gap: 2rem; }
    .sticky-inner { min-height: 200vh; }
    .sticky-card { width: 90%; max-width: 280px; }
    .cards-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .scripts-grid { grid-template-columns: 1fr; }
}

/* Mobile menu (basit açılır) */
.nav-open .nav-links {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--color-bg);
    z-index: 999;
}
