/* ============================================================
   webpiri — minimal siyah/beyaz tasarım sistemi
   Logodan ilhamla: tek renk mürekkep, dev tipografi,
   elle yazılmış vurgular, bol nefes alanı.
   ============================================================ */

:root {
    --ink: #0a0a0a;
    --paper: #fafaf7;
    --gray: #6b6b66;
    --line: #e4e4dd;
    --accent: #BFF747;          /* ikincil renk — bağlantılar ve CTA */
    --accent-ink: #0a0a0a;      /* accent üzerinde okunaklı koyu metin */
    --font-head: 'Archivo', system-ui, sans-serif;
    --font-script: 'Caveat', cursive;
    --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img { max-width: 100%; display: block; }

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

main { min-height: 60vh; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 26px 24px;
}

.logo img { height: 52px; width: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gray);
    position: relative;
    transition: color .2s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 3px;
    background: var(--accent);
    transition: width .25s;
}

.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.main-nav .nav-cta {
    background: var(--ink);
    color: var(--paper);
    padding: 10px 22px;
    border-radius: 999px;
    transition: background .2s, color .2s;
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover,
.main-nav .nav-cta.active {
    background: var(--accent);
    color: var(--accent-ink);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--ink);
    display: block;
}

/* ---------- Hero ---------- */

.hero {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 90px 24px 110px;
    position: relative;
}

.hero-kicker {
    font-family: var(--font-script);
    font-size: 30px;
    color: var(--gray);
    display: block;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(34px, 6vw, 74px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero-title .script {
    font-family: var(--font-script);
    text-transform: none;
    font-weight: 600;
    font-size: 1.25em;
    letter-spacing: 0;
    position: relative;
    white-space: nowrap;
}

.hero-title .line { display: block; }
.hero-title .line:last-child { margin-top: .08em; }

.hero-sub {
    margin-top: 28px;
    max-width: 540px;
    color: var(--gray);
    font-size: 19px;
}

.hero-actions { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scribble {
    position: absolute;
    right: 24px;
    top: 60px;
    width: 220px;
    opacity: .9;
    pointer-events: none;
}

/* ---------- Butonlar ---------- */

.btn {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 16px 34px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Bölüm başlıkları ---------- */

.section { max-width: var(--maxw); margin: 0 auto; padding: 90px 24px; }

.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 56px; }

.section-label {
    font-family: var(--font-script);
    font-size: 26px;
    color: var(--gray);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-transform: uppercase;
}

/* ---------- Hizmet kartları ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.service-card {
    background: var(--paper);
    padding: 44px 36px;
    transition: background .25s, color .25s;
    position: relative;
}

.service-card:hover { background: var(--ink); color: var(--paper); }
.service-card:hover .service-desc { color: #c9c9c2; }
.service-card:hover .service-num { color: #555; }

.service-num {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--gray);
    display: block;
    margin-bottom: 28px;
    transition: color .25s;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.service-desc { color: var(--gray); font-size: 16px; transition: color .25s; }

/* ---------- Proje ızgarası ---------- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px 32px;
}

.project-card { display: block; }

.project-thumb {
    aspect-ratio: 4 / 3;
    background: var(--line);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-script);
    font-size: 34px;
    color: var(--gray);
}

.project-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter .3s, transform .4s;
}

.project-card:hover .project-thumb img {
    filter: grayscale(0);
    transform: scale(1.04);
}

.project-meta {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 6px;
}

.project-card h3 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* ---------- CTA bandı ---------- */

.cta-band {
    background: var(--accent);
    color: var(--accent-ink);
    text-align: center;
    padding: 110px 24px;
}

.cta-band .section-label { color: rgba(10, 10, 10, .55); }

.cta-band h2 {
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 36px;
    color: var(--accent-ink);
}

.cta-band .btn {
    background: var(--accent-ink);
    border-color: var(--accent-ink);
    color: var(--accent);
}
.cta-band .btn:hover { background: transparent; color: var(--accent-ink); }

/* ---------- Sayfa içi ---------- */

.page-hero {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 70px 24px 60px;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.02;
}

.page-hero p { margin-top: 18px; color: var(--gray); max-width: 560px; font-size: 18px; }

.prose { max-width: 720px; }
.prose p { margin-bottom: 22px; color: #2c2c28; }

/* ---------- İletişim ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-info h3 {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gray);
    margin: 28px 0 6px;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info a { font-size: 20px; font-weight: 700; border-bottom: 3px solid var(--accent); transition: background .2s; }
.contact-info a:hover { background: var(--accent); opacity: 1; }

.form-field { margin-bottom: 22px; }

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--ink);
    padding: 10px 2px;
    font-family: inherit;
    font-size: 17px;
    color: var(--ink);
    outline: none;
    transition: border-color .2s;
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--gray); }

.form-field textarea { min-height: 130px; resize: vertical; }

.alert {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 26px;
    font-weight: 600;
}
.alert-ok  { background: #e8f5e9; border: 1px solid #a5d6a7; }
.alert-err { background: #fdecea; border: 1px solid #f5b7b1; }

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 70px 24px 50px;
    text-align: center;
}

.footer-logo { height: 44px; width: auto; margin: 0 auto 14px; }

.footer-script {
    font-family: var(--font-script);
    font-size: 24px;
    color: var(--gray);
    margin-bottom: 34px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray);
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.footer-nav a:hover { color: var(--ink); border-color: var(--accent); }

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    font-weight: 600;
}

.footer-copy { font-size: 13px; color: var(--gray); }

/* ---------- Giriş animasyonu ---------- */

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- Mobil ---------- */

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 20px;
        z-index: 50;
    }
    .main-nav.open { display: flex; }
    .site-header { position: relative; }

    .hero { padding: 50px 24px 70px; }
    .hero-scribble { display: none; }

    .contact-grid { grid-template-columns: 1fr; gap: 44px; }

    .section { padding: 60px 24px; }
}

/* ---------- Sosyal medya & WhatsApp ---------- */

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background .2s, color .2s, transform .15s;
}

.social-links a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

.social-links a svg { width: 16px; height: 16px; fill: currentColor; }

/* Footer'da ortalanmış sosyal bağlantılar */
.footer-social { justify-content: center; margin: 0 0 26px; }


/* ============================================================
   2026 TASARIM GELİŞTİRMESİ
   Kinetik tipografi · koyu tema · doku · mikro-etkileşim
   ============================================================ */

/* ---------- Koyu tema ---------- */

[data-theme="dark"] {
    --ink: #f2f2ed;
    --paper: #0d0d0c;
    --gray: #9a9a92;
    --line: #2a2a26;
}

[data-theme="dark"] .logo img,
[data-theme="dark"] .footer-logo { filter: invert(1); }

[data-theme="dark"] .hero-scribble { stroke: #f2f2ed; }

[data-theme="dark"] .service-card:hover .service-num { color: #77776f; }

body { transition: background .35s ease, color .35s ease; }

/* Tema geçiş düğmesi */
.theme-toggle {
    background: none;
    border: 2px solid var(--ink);
    border-radius: 999px;
    width: 42px; height: 42px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.theme-toggle:hover { background: var(--ink); color: var(--paper); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Kağıt dokusu (noise) ---------- */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::before { opacity: .07; }

/* ---------- Özel imleç ---------- */

.cursor {
    position: fixed;
    top: -8px; left: -8px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--ink);
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: width .25s, height .25s, top .25s, left .25s, opacity .3s;
    opacity: .9;
}
.cursor--active {
    width: 44px; height: 44px;
    top: -22px; left: -22px;
    opacity: .5;
}

/* ---------- Kinetik hero (harf harf) ---------- */

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(.6em) rotate(4deg);
    transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.hero-title.chars-in .char { opacity: 1; transform: none; }
.hero-title.chars-in .char:nth-child(n)   { transition-delay: calc(var(--i, 0) * 30ms); }

/* JS harfleri bölemediyse (eski tarayıcı) başlık yine görünsün */
.hero-title:not(.chars-in) { opacity: 1; }

/* ---------- Kayan şerit (marquee) ---------- */

.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 22px 0;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    gap: 48px;
    padding-right: 48px;
    animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 48px;
}
.marquee-track .star { font-family: var(--font-script); font-weight: 600; font-size: .9em; color: var(--gray); }

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Müsaitlik rozeti ---------- */

.availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 34px;
    background: var(--paper);
}
.availability .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #2e9e4f;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 158, 79, .5); }
    50%      { box-shadow: 0 0 0 7px rgba(46, 158, 79, 0); }
}

/* ---------- Dönen rozet ---------- */

.hero-badge {
    position: absolute;
    right: 60px;
    bottom: 40px;
    width: 130px; height: 130px;
    pointer-events: none;
}
.hero-badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero-badge text {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
    fill: var(--ink);
}
.hero-badge .badge-star {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-script);
    font-size: 40px;
    color: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- İstatistik şeridi ---------- */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    text-align: center;
}

.stat {
    background: var(--paper);
    padding: 44px 20px;
}
.stat .stat-num {
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}
.stat .stat-lbl {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gray);
}

/* ---------- Süreç adımları ---------- */

.process-list { counter-reset: step; }

.process-step {
    display: grid;
    grid-template-columns: 90px 1fr 2fr;
    gap: 28px;
    align-items: baseline;
    padding: 36px 0;
    border-top: 1px solid var(--line);
}
.process-step:last-child { border-bottom: 1px solid var(--line); }

.process-step .step-num {
    font-family: var(--font-script);
    font-size: 38px;
    color: var(--gray);
}

.process-step h3 {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.process-step p { color: var(--gray); }

/* ---------- Büyük footer wordmark ---------- */

.footer-wordmark {
    font-size: clamp(64px, 14vw, 210px);
    font-weight: 900;
    line-height: .85;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
    user-select: none;
    margin: 20px 0 40px;
    transition: color .4s;
}
.footer-wordmark:hover { color: var(--ink); }

/* ---------- Odak görünürlüğü (erişilebilirlik) ---------- */

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Hareket azaltma tercihi ---------- */

@media (prefers-reduced-motion: reduce) {
    .marquee-track, .hero-badge svg, .availability .dot { animation: none; }
    .hero-title .char { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Mobil uyarlamalar ---------- */

@media (max-width: 860px) {
    .process-step { grid-template-columns: 60px 1fr; }
    .process-step p { grid-column: 2; }
    .hero-badge { display: none; }
    .theme-toggle { width: 38px; height: 38px; }
}


/* ---------- Referanslar ---------- */

.tslider {
    position: relative;
    overflow: hidden;
    padding: 6px 0; /* hover'daki yukarı kaymanın kesilmemesi için */
}

.tslider-track {
    display: flex;
    margin: 0 -14px;
    transition: transform .65s cubic-bezier(.22, .8, .28, 1);
    will-change: transform;
}

.tslide {
    flex: 0 0 33.3333%;
    padding: 0 14px;
    box-sizing: border-box;
    display: flex;
}

@media (max-width: 1024px) { .tslide { flex-basis: 50%; } }
@media (max-width: 640px)  { .tslide { flex-basis: 100%; } }

.tslider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 34px;
}

.tslider-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.tslider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #111;
    transform: scale(1.06);
}

.tslider-btn:disabled { opacity: .3; pointer-events: none; }

.tslider-dots { display: flex; gap: 10px; }

.tslider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: var(--line);
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.tslider-dot.active { background: var(--accent); transform: scale(1.35); }

.testimonial {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 36px 32px;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    transition: border-color .2s, transform .2s;
}
.testimonial:hover { border-color: var(--accent); transform: translateY(-4px); }

.testimonial-quote {
    font-family: inherit;
    font-style: italic;
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink);
}

.testimonial footer strong { display: block; font-size: 15px; }
.testimonial footer span { font-size: 13px; color: var(--gray); }

/* ---------- Zengin metin içeriği (blog/sayfa/proje) ---------- */

.prose h2 { font-size: 30px; font-weight: 800; margin: 36px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-size: 22px; font-weight: 800; margin: 28px 0 10px; }
.prose ul { margin: 0 0 22px 22px; color: #2c2c28; }
.prose ul li { margin-bottom: 8px; }
.prose a { border-bottom: 2px solid var(--accent); font-weight: 600; }
.prose a:hover { background: var(--accent); }
.prose img { border-radius: 8px; margin: 22px 0; }

[data-theme="dark"] .prose ul, [data-theme="dark"] .prose p { color: #c9c9c2; }
