/* ============================================
   Chokiy Digital — Modern Single Page Site
   Dark/Light • TR/EN • Animations • Responsive
   ============================================ */

/* -------- Reset & Base -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* -------- Theme Variables -------- */
:root {
    --bg: #0a0a0f;
    --bg-alt: #11111a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f7;
    --text-dim: #a1a1aa;
    --primary: #ff7a3d;
    --primary-glow: rgba(255, 122, 61, 0.5);
    --accent: #ffb084;
    --grad-1: #ff7a3d;
    --grad-2: #ff4d8d;
    --grad-3: #8b5cf6;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] {
    --bg: #fafafa;
    --bg-alt: #ffffff;
    --surface: rgba(0, 0, 0, 0.03);
    --surface-2: rgba(0, 0, 0, 0.05);
    --border: rgba(0, 0, 0, 0.08);
    --text: #0a0a0f;
    --text-dim: #52525b;
    --primary: #f25c20;
    --primary-glow: rgba(242, 92, 32, 0.35);
    --accent: #ff7a3d;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* -------- Background Effects -------- */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, var(--grad-1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 30%, var(--grad-2) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 100%, var(--grad-3) 0%, transparent 50%);
    opacity: 0.18;
    filter: blur(80px);
    animation: bgShift 18s ease-in-out infinite alternate;
}
[data-theme="light"] .bg-gradient { opacity: 0.08; }

@keyframes bgShift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3%, 2%) scale(1.05); }
    100% { transform: translate(2%, -2%) scale(1.02); }
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 70%);
    opacity: 0.4;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* -------- Container -------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* -------- Navigation -------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    /* Sadece rengi ve blur'u canlandır; boyut değişimleri zıplama yaratır */
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
    /* Border her zaman var ama şeffaf; scrolled olunca görünür — boyut zıplaması yok */
    border-bottom: 1px solid transparent;
    background-color: transparent;
}
.nav.scrolled {
    background-color: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--border);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    text-decoration: none;
}

/* İkon (mark) — 1:1 kare */
.logo__mark {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Yatay wordmark (metin logo) */
.logo__wordmark {
    height: 28px;           /* Wordmark yüksekliği */
    width: auto;
    display: block;
    flex-shrink: 0;
    /* Dark modda siyah SVG'yi beyaz yap */
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* Light modda siyah SVG normal (filtre yok) */
[data-theme="light"] .logo__wordmark {
    filter: none;
}

/* Eski logo__dot artık gereksizse kaldır, 
   yoksa sadece renk tanımı bırak */
.logo__dot { color: var(--primary); }

.nav__menu {
    display: flex;
    gap: 6px;
}
.nav__menu a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: all 0.2s ease;
}
.nav__menu a:hover {
    color: var(--text);
    background: var(--surface);
}
.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon-btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.icon-btn:hover {
    background: var(--surface-2);
    transform: translateY(-1px);
}
#themeToggle .icon-sun { display: none; }
#themeToggle .icon-moon { display: block; }
[data-theme="light"] #themeToggle .icon-sun { display: block; }
[data-theme="light"] #themeToggle .icon-moon { display: none; }
.lang-current { color: var(--primary); }
.lang-other { color: var(--text-dim); }
.lang-divider { color: var(--text-dim); opacity: 0.5; }

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------- Buttons -------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn--primary {
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    color: white;
    box-shadow: 0 8px 30px var(--primary-glow);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--primary-glow);
}
.btn--primary svg { transition: transform 0.3s ease; }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn--ghost:hover {
    background: var(--surface-2);
    transform: translateY(-2px);
}
.btn--lg { padding: 16px 32px; font-size: 15px; }

/* -------- Hero -------- */
.hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
}
.hero__inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.hero__title-grad {
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradFlow 6s ease-in-out infinite;
    display: inline-block;
}
@keyframes gradFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero__desc {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 36px;
}
.hero__cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    position: relative;
    opacity: 0.5;
}
.wheel {
    width: 3px;
    height: 8px;
    background: var(--text-dim);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelMove 1.6s ease-in-out infinite;
}
@keyframes wheelMove {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* -------- Section Base -------- */
.section {
    padding: 100px 0;
    position: relative;
}
.section--alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section__head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.section__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* -------- About -------- */
.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.about__text p {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 18px;
}
/* Orbit visual */
.about__visual {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
}
.orbit {
    position: relative;
    width: 320px;
    height: 320px;
    display: grid;
    place-items: center;
}
.orbit__core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
    filter: blur(2px);
    animation: corePulse 4s ease-in-out infinite;
    box-shadow: 0 0 60px var(--primary-glow);
}
@keyframes corePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.orbit__ring {
    position: absolute;
    inset: 0;
    border: 1px dashed var(--border);
    border-radius: 50%;
    animation: ringSpin 30s linear infinite;
}
.orbit__ring--2 {
    inset: 40px;
    animation-duration: 20s;
    animation-direction: reverse;
    border-color: var(--primary);
    opacity: 0.3;
}
@keyframes ringSpin {
    to { transform: rotate(360deg); }
}
.orbit__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(-160px) rotate(calc(-1 * var(--a)));
    animation: dotPulse 3s ease-in-out infinite;
}
.orbit__dot:nth-child(5) { animation-delay: 0.5s; background: var(--grad-2); }
.orbit__dot:nth-child(6) { animation-delay: 1s; background: var(--grad-3); }
.orbit__dot:nth-child(7) { animation-delay: 1.5s; }
@keyframes dotPulse {
    0%, 100% { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-160px) rotate(calc(-1 * var(--a))) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-160px) rotate(calc(-1 * var(--a))) scale(1.3); }
}

/* -------- Services -------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 0.95; }
.service-card:hover { color: white; }
.service-card:hover .service-card__icon { background: rgba(255, 255, 255, 0.2); color: white; }
.service-card:hover p { color: rgba(255, 255, 255, 0.85); }
.service-card__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    color: white;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
}
.service-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 0;
    font-family: 'Space Grotesk', sans-serif;
}
.service-card p {
    color: var(--text-dim);
    font-size: 14px;
    transition: color 0.3s ease;
}

/* -------- Process -------- */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.process__line {
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3));
    opacity: 0.3;
    z-index: 0;
}
.process__step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.process__num {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: grid;
    place-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
}
.process__step:hover .process__num {
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    color: white;
    border-color: transparent;
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 10px 30px var(--primary-glow);
}
.process__step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'Space Grotesk', sans-serif;
}
.process__step p {
    color: var(--text-dim);
    font-size: 14px;
    max-width: 220px;
    margin: 0 auto;
}

/* -------- Partners marquee -------- */
.partners__marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    padding: 8px 0;
}
.partners__track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    will-change: transform;
    animation: marquee 50s linear infinite;
}
.partners__marquee:hover .partners__track { animation-play-state: paused; }
@keyframes marquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.partner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dim);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    /* Siyah-beyaz default */
    filter: grayscale(1) brightness(1.1) contrast(0.95);
    opacity: 0.7;
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.5s ease,
                border-color 0.5s ease,
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.partner svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: color 0.5s ease;
}
.partner span em {
    font-style: normal;
    color: var(--text-dim);
    opacity: 0.6;
    font-weight: 500;
    font-size: 0.85em;
}
.partner:hover {
    filter: grayscale(0) brightness(1) contrast(1);
    opacity: 1;
    color: var(--partner-color, var(--primary));
    background: color-mix(in srgb, var(--partner-color, var(--primary)) 10%, var(--surface));
    border-color: color-mix(in srgb, var(--partner-color, var(--primary)) 35%, var(--border));
    transform: translateY(-3px);
}
[data-theme="light"] .partner {
    filter: grayscale(1) brightness(0.55) contrast(1.1);
    opacity: 0.65;
}
[data-theme="light"] .partner:hover {
    filter: grayscale(0) brightness(1) contrast(1);
    opacity: 1;
    background: color-mix(in srgb, var(--partner-color, var(--primary)) 12%, #fff);
}

/* -------- CTA -------- */
.cta { padding: 100px 0; }
.cta__box {
    position: relative;
    padding: 80px 40px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    overflow: hidden;
}
.cta__glow {
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 30% 30%, var(--grad-1), transparent 50%),
        radial-gradient(circle at 70% 70%, var(--grad-2), transparent 50%);
    opacity: 0.4;
    filter: blur(60px);
    animation: ctaGlow 10s ease-in-out infinite alternate;
    z-index: 0;
}
@keyframes ctaGlow {
    to { transform: translate(10%, -5%) scale(1.1); }
}
.cta__box > * { position: relative; z-index: 1; }
.cta__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.cta__desc {
    color: var(--text-dim);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* -------- Footer -------- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.footer__brand .logo__mark {
    width: 28px;
    height: 28px;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.footer__brand .logo__wordmark {
    height: 22px;   /* Footer'da biraz daha küçük */
    width: auto;
    filter: brightness(0) invert(1);
}

[data-theme="light"] .footer__brand .logo__wordmark {
    filter: none;
}
.footer__links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-dim);
}
.footer__links a:hover { color: var(--primary); }
.footer__copy {
    font-size: 13px;
    color: var(--text-dim);
}

/* -------- Reveal Animations -------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------- Responsive -------- */
@media (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        background: var(--bg-alt);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 16px;
        gap: 4px;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        box-shadow: var(--shadow);
    }
    .nav__menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav__menu a { padding: 12px 16px; }
    .menu-toggle { display: flex; }
    .about__grid { grid-template-columns: 1fr; gap: 40px; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .process__line { display: none; }
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .section { padding: 70px 0; }
    .hero { padding: 120px 0 60px; }
    .hero__cta { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .services__grid { grid-template-columns: 1fr; }
    .about__pillars { grid-template-columns: 1fr; }
    .orbit { width: 240px; height: 240px; }
    .orbit__core { width: 70px; height: 70px; }
    .orbit__dot { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-120px) rotate(calc(-1 * var(--a))); }
    .process { grid-template-columns: 1fr; }
    .cta__box { padding: 50px 24px; }
    .footer__inner { flex-direction: column; text-align: center; }
    .icon-btn { padding: 0 10px; font-size: 12px; }
}

/* -------- Selection -------- */
::selection {
    background: var(--primary);
    color: white;
}

/* -------- Scrollbar (light) -------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
