/* ===================================================================
   Mühdesk — Modern koyu tema
   =================================================================== */

:root {
    --bg: #070b16;
    --bg-2: #0b1120;
    --surface: #111a2e;
    --surface-2: #16223c;
    --border: #223049;
    --text: #e7edf7;
    --muted: #93a2bd;
    --primary: #6366f1;
    --primary-2: #8b5cf6;
    --cyan: #22d3ee;
    --grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 45%, #22d3ee 100%);
    --grad-soft: linear-gradient(120deg, rgba(99,102,241,.18), rgba(34,211,238,.14));
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
    --maxw: 1200px;
    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-display: 'Sora', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text { font-family: var(--font-display); line-height: 1.15; }

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

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

/* Arka plan ızgara / ışıltı */
.bg-grid {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        radial-gradient(600px circle at 15% 10%, rgba(99,102,241,.16), transparent 45%),
        radial-gradient(700px circle at 85% 20%, rgba(34,211,238,.12), transparent 45%),
        radial-gradient(600px circle at 60% 90%, rgba(139,92,246,.12), transparent 45%);
}
.bg-grid::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .3s, backdrop-filter .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(7, 11, 22, .8);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; }
.brand-mark {
    width: 38px; height: 38px; display: grid; place-items: center;
    background: var(--grad); border-radius: 11px; color: #fff;
    font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
    box-shadow: 0 8px 22px -6px rgba(99,102,241,.6);
}
.brand-logo { height: 30px; width: auto; display: block; }
.brand-text { font-size: 1.35rem; letter-spacing: -.5px; }

.nav-links { display: flex; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    padding: .55rem .9rem; border-radius: 10px; color: var(--muted);
    font-weight: 500; font-size: .95rem; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta {
    background: var(--grad); color: #fff !important; font-weight: 600;
    box-shadow: 0 10px 24px -10px rgba(99,102,241,.7);
}
.nav-cta:hover { filter: brightness(1.08); background: var(--grad) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
    padding: .85rem 1.6rem; border-radius: 12px; font-weight: 600; font-size: .98rem;
    border: 1px solid transparent; transition: transform .2s, box-shadow .2s, filter .2s, background .2s;
    font-family: var(--font);
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(99,102,241,.8); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ---------- Bölüm başlıkları ---------- */
section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
    padding: .35rem .9rem; border: 1px solid var(--border); border-radius: 999px;
    background: rgba(34,211,238,.06);
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin: 0 0 14px; letter-spacing: -1px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { padding: 170px 0 120px; text-align: center; position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 28px;
    padding: .5rem 1.1rem; border: 1px solid var(--border); border-radius: 999px;
    background: rgba(255,255,255,.03); color: var(--muted); font-size: .9rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px #34d399; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -2px; margin: 0 0 24px; }
.hero p { max-width: 640px; margin: 0 auto 38px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 72px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; }
.hero-stats .stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Kartlar / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px; transition: transform .3s, border-color .3s, box-shadow .3s;
    overflow: hidden;
}
.card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

/* Hizmet kartı */
.service-icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 22px; color: var(--cyan);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.25rem; margin: 0 0 10px; }
.service-card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Proje kartı */
.project-card { padding: 0; display: flex; flex-direction: column; }
.project-thumb {
    height: 190px; background: var(--grad-soft); position: relative; overflow: hidden;
    display: grid; place-items: center;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb .ph-icon { font-size: 3rem; opacity: .5; }
.project-badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    padding: .3rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: rgba(7,11,22,.7); backdrop-filter: blur(6px); border: 1px solid var(--border); color: var(--cyan);
}
.project-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.2rem; margin: 0 0 8px; }
.project-body p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag { font-size: .78rem; padding: .28rem .7rem; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted); }
.project-link { color: var(--cyan); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.project-link:hover { gap: 10px; }

/* Ekip kartı */
.member { text-align: center; }
.member-avatar {
    width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden;
    background: var(--grad); display: grid; place-items: center; font-family: var(--font-display);
    font-size: 2.2rem; font-weight: 800; color: #fff; border: 3px solid var(--border);
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.15rem; margin: 0 0 4px; }
.member .role { color: var(--cyan); font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
.member .bio { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.member-social { display: flex; gap: 10px; justify-content: center; }
.member-social a {
    width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
    background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted); transition: .2s;
}
.member-social a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.member-social svg { width: 18px; height: 18px; }

/* ---------- Hakkımızda ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 20px; letter-spacing: -1px; }
.about p { color: var(--muted); margin: 0 0 18px; }
.about-features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.about-features li { display: flex; gap: 12px; align-items: flex-start; }
.about-features .check {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
    background: var(--grad-soft); color: var(--cyan); border: 1px solid var(--border); font-size: .8rem;
}
.about-visual {
    aspect-ratio: 1; border-radius: 24px; background: var(--grad-soft); border: 1px solid var(--border);
    position: relative; overflow: hidden; display: grid; place-items: center;
}
.about-visual .code-window {
    width: 82%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.code-dots { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.code-dots span { width: 11px; height: 11px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-body { padding: 18px; font-family: 'Cascadia Code', 'Consolas', monospace; font-size: .82rem; line-height: 1.9; }
.code-body .kw { color: #c084fc; } .code-body .fn { color: #22d3ee; } .code-body .str { color: #86efac; } .code-body .cm { color: #64748b; }

/* ---------- İletişim ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 16px; letter-spacing: -1px; }
.contact-info p { color: var(--muted); margin: 0 0 28px; }
.contact-item { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.contact-item .ci-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--cyan); flex-shrink: 0; }
.contact-item b { display: block; font-size: .95rem; }
.contact-item span { color: var(--muted); font-size: .9rem; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea, .field select {
    width: 100%; padding: .85rem 1rem; border-radius: 11px; background: var(--bg-2);
    border: 1px solid var(--border); color: var(--text); font-family: var(--font); font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.field .val { color: #f87171; font-size: .82rem; margin-top: 6px; display: block; }

.alert { padding: 14px 18px; border-radius: 11px; margin-bottom: 20px; font-size: .92rem; }
.alert-success { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); color: #6ee7b7; }
.alert-error { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4); color: #fca5a5; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-tag { color: var(--muted); margin: 16px 0 0; max-width: 320px; }
.footer-grid h4 { font-size: 1rem; margin: 0 0 16px; }
.footer-grid a { display: block; color: var(--muted); padding: 5px 0; font-size: .93rem; transition: color .2s; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; flex-wrap: wrap; gap: 12px; }
.footer-admin { color: var(--muted); } .footer-admin:hover { color: var(--cyan); }

/* ---------- Projeler sayfası filtre ---------- */
.page-hero { padding: 150px 0 60px; text-align: center; }
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.filter-bar a { padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .92rem; font-weight: 500; transition: .2s; }
.filter-bar a:hover { color: var(--text); border-color: var(--primary); }
.filter-bar a.active { background: var(--grad); color: #fff; border-color: transparent; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }

/* ---------- Proje detay sayfası ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.detail-h { font-size: 1.4rem; margin: 0 0 16px; letter-spacing: -.5px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.feature-list .check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); border: 1px solid var(--border); font-size: .8rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/10; background: var(--surface); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }
.meta-list { margin: 0; display: grid; gap: 12px; }
.meta-list > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.meta-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-list dt { color: var(--muted); font-size: .9rem; margin: 0; }
.meta-list dd { margin: 0; font-weight: 600; font-size: .92rem; text-align: right; }
.detail-cta { text-align: center; margin: 80px 0 20px; padding: 50px 30px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid var(--border); }
.detail-cta h3 { font-size: 1.6rem; margin: 0 0 10px; }
.detail-cta p { color: var(--muted); margin: 0 0 24px; }

/* ---------- Scroll reveal animasyonu ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: .08s; } [data-reveal].d2 { transition-delay: .16s; }
[data-reveal].d3 { transition-delay: .24s; } [data-reveal].d4 { transition-delay: .32s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.floating { animation: float 6s ease-in-out infinite; }

/* ---------- Açık tema ---------- */
:root[data-theme="light"] {
    --bg: #f7f8fc;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f3f9;
    --border: #e2e6f0;
    --text: #12182a;
    --muted: #5a6782;
    --shadow: 0 24px 60px -24px rgba(30, 41, 90, .25);
}
:root[data-theme="light"] .site-header.scrolled { background: rgba(255, 255, 255, .82); }
:root[data-theme="light"] .nav-links a:hover { background: rgba(0, 0, 0, .04); }
:root[data-theme="light"] .code-body .cm { color: #94a3b8; }
:root[data-theme="light"] .bg-grid::after { opacity: .5; }

/* ---------- Nav araçları: tema + dil ---------- */
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--primary); }
.icon-btn .icon-moon { display: none; }
:root[data-theme="light"] .icon-btn .icon-sun { display: none; }
:root[data-theme="light"] .icon-btn .icon-moon { display: block; }
.lang-switch { font-size: .82rem; font-weight: 700; letter-spacing: .5px; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); transition: .2s; }
.lang-switch:hover { color: var(--text); border-color: var(--primary); }

/* ---------- Referanslar ---------- */
.testimonial { display: flex; flex-direction: column; }
.testimonial .stars { color: #fbbf24; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial .quote { color: var(--text); font-size: 1.02rem; line-height: 1.7; margin: 0 0 22px; flex: 1; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-author b { display: block; font-size: .95rem; }
.t-author span { color: var(--muted); font-size: .85rem; }

/* ---------- SSS akordeon ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--grad-soft); color: var(--cyan); display: grid; place-items: center; font-size: 1.2rem; transition: transform .3s; border: 1px solid var(--border); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; color: var(--muted); line-height: 1.75; }

/* ---------- Blog ---------- */
.blog-date { color: var(--cyan); font-size: .82rem; font-weight: 600; display: block; margin-bottom: 8px; }
.blog-content { color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.blog-content { white-space: normal; }

/* ---------- WhatsApp butonu ---------- */
.whatsapp-fab { position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .25s; animation: float 5s ease-in-out infinite; }
.whatsapp-fab:hover { transform: scale(1.08); }

/* ---------- Honeypot (gizli) ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about, .contact, .detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { max-width: 420px; }
    .detail-aside .card { position: static !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: rgba(7,11,22,.97); backdrop-filter: blur(14px); padding: 16px; gap: 6px;
        border-bottom: 1px solid var(--border); transform: translateY(-140%); transition: transform .35s; z-index: 99;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: .8rem 1rem; }
    .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 30px; }
    section { padding: 70px 0; }
    .footer-grid { grid-template-columns: 1fr; }
}
