/* ==========================================================================
   Gökay Açıkgöz — portfolyo teması (koyu varsayılan, açık tema destekli)
   ========================================================================== */

:root,
[data-theme="dark"] {
    --bg: #0a0e1a;
    --bg-alt: #0d1222;
    --surface: #121a2e;
    --surface-2: #18223b;
    --border: rgba(148, 163, 184, .14);
    --border-strong: rgba(148, 163, 184, .28);
    --text: #e7eaf3;
    --muted: #98a2b9;
    --accent: #7c8cff;
    --accent-2: #2dd4bf;
    --accent-ink: #0a0e1a;
    --chip-bg: rgba(124, 140, 255, .12);
    --chip-text: #c3cbff;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
    --grid-line: rgba(148, 163, 184, .06);
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f6f7fb;
    --bg-alt: #eef0f7;
    --surface: #ffffff;
    --surface-2: #f3f5fb;
    --border: rgba(15, 23, 42, .09);
    --border-strong: rgba(15, 23, 42, .18);
    --text: #0f172a;
    --muted: #556079;
    --accent: #4f5dff;
    --accent-2: #0d9488;
    --accent-ink: #ffffff;
    --chip-bg: rgba(79, 93, 255, .09);
    --chip-text: #3440c9;
    --shadow: 0 20px 45px -25px rgba(15, 23, 42, .25);
    --grid-line: rgba(15, 23, 42, .05);
    color-scheme: light;
}

:root {
    --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
    --radius: 18px;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", var(--font-sans);
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --nav-h: 72px;
}

/* ---------- Temel ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); letter-spacing: -.02em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-muted-2 { color: var(--muted); }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Butonlar ---------- */
.btn { border-radius: 12px; padding: .7rem 1.3rem; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn-accent { background: var(--grad); color: #fff; border: 0; box-shadow: 0 10px 30px -10px var(--accent); }
.btn-accent:hover, .btn-accent:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 35px -12px var(--accent); }
.btn-accent:disabled { opacity: .7; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { color: var(--text); background: var(--surface); border-color: var(--accent); }

.icon-btn {
    width: 40px; height: 40px; display: inline-grid; place-items: center;
    border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-size: 1.1rem; transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); }

.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-light { display: inline; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* ---------- Navigasyon ---------- */
.site-nav {
    min-height: var(--nav-h);
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled, .site-nav:has(.navbar-collapse.show) {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}
.navbar-brand { display: flex; align-items: center; gap: .7rem; color: var(--text); font-family: var(--font-display); font-weight: 600; }
.navbar-brand:hover { color: var(--text); }
.brand-mark {
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
    background: var(--grad); color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: .02em;
}
.site-nav .nav-link { color: var(--muted); font-weight: 500; padding: .5rem .9rem !important; border-radius: 10px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--text); }
.site-nav .nav-link.active { background: var(--surface); }
@media (max-width: 991.98px) {
    .navbar-collapse { padding: .75rem 0 1rem; }
    .brand-name { display: none; }
}

/* ---------- Bölümler ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; margin: .35rem 0 .6rem; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { min-height: min(100vh, 920px); display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 60px; position: relative; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px circle at 15% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
        radial-gradient(500px circle at 85% 70%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 60%),
        linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px;
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.status-pill {
    display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .9rem; margin-bottom: 1.4rem;
    border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
    font-size: .85rem; color: var(--muted); font-weight: 500;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.hero-hello { font-family: var(--font-mono); color: var(--accent-2); margin: 0 0 .25rem; }
.hero-title { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 700; line-height: 1.05; margin: 0 0 .9rem; }
.hero-role { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; color: var(--text); margin-bottom: 1rem; }
.hero-intro { color: var(--muted); font-size: 1.08rem; max-width: 580px; }
.hero-intro p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.75rem; }
.hero-photo {
    position: relative; display: inline-block; padding: 6px; border-radius: 32px; background: var(--grad);
    box-shadow: var(--shadow); transform: rotate(2deg);
}
.hero-photo img { display: block; width: min(360px, 75vw); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 27px; transform: rotate(-2deg); background: var(--surface); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 4.5rem 0 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; flex-direction: column-reverse; }
.stat dd { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin: 0; line-height: 1.1; }
.stat dt { color: var(--muted); font-weight: 500; font-size: .9rem; }

/* ---------- Sosyal ---------- */
.social-links { display: flex; gap: .6rem; }
.social-links a {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 1.1rem;
    transition: color .2s, border-color .2s, transform .2s;
}
.social-links a:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Metin ---------- */
.lead-text { font-size: 1.2rem; color: var(--text); font-weight: 500; margin-bottom: 1.25rem; }
.prose { color: var(--muted); }
.prose p { margin-bottom: .9rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: .9rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--accent); }
.prose strong, .prose b { color: var(--text); }
.prose h1, .prose h2, .prose h3, .prose h4 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose-lg { font-size: 1.05rem; }

/* ---------- Bilgi kartı ---------- */
.info-card { list-style: none; padding: .5rem 1.5rem; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.info-card li { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.info-card li:last-child { border-bottom: 0; }
.info-card i { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--chip-bg); color: var(--accent); font-size: 1.1rem; }
.info-card div { display: flex; flex-direction: column; min-width: 0; }
.info-card span { font-size: .8rem; color: var(--muted); }
.info-card strong, .info-card a { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.info-card a:hover { color: var(--accent); }

/* ---------- Zaman çizelgesi ---------- */
.column-title { font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.75rem; }
.column-title i { color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.75rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--border) 80%); }
.timeline-item { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.25rem; }
.timeline-item::before { content: ""; position: absolute; left: calc(-1.75rem + 1px); top: 1.75rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--accent); }
.timeline-item.is-current::before { background: var(--accent); box-shadow: 0 0 0 5px var(--chip-bg); }
.timeline-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.timeline-date { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-2); }
.badge-current { font-size: .7rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; background: rgba(34, 197, 94, .15); color: #22c55e; }
.timeline-item h4 { font-size: 1.1rem; margin: 0 0 .2rem; }
.timeline-place { color: var(--text); opacity: .8; font-weight: 500; font-size: .95rem; margin-bottom: .6rem; }
.timeline-item .prose { font-size: .95rem; }
.timeline-item .prose:last-child > :last-child { margin-bottom: 0; }

/* ---------- Etiketler ---------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { font-size: .8rem; font-weight: 500; padding: .3rem .7rem; border-radius: 8px; background: var(--chip-bg); color: var(--chip-text); line-height: 1.4; }
.chips .chip-more { background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); }

/* ---------- Proje kartları ---------- */
.project-card {
    position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--shadow); }
.project-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-cover img { transform: scale(1.05); }
.project-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.project-body h3 a { color: var(--text); }
.project-body h3 a:hover { color: var(--accent); }
.project-body p { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 1rem; }

/* ---------- Yetenekler ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.skill-card {
    position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.5rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.skill-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.skill-card.is-featured {
    grid-column: span 2;
    background:
        radial-gradient(420px circle at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
        radial-gradient(380px circle at 100% 100%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 70%),
        var(--surface);
}
.skill-head { display: flex; align-items: center; gap: .85rem; }
.skill-head h3 { font-size: 1.05rem; margin: 0; flex: 1; }
.skill-icon {
    width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px;
    background: var(--chip-bg); color: var(--accent); font-size: 1.15rem;
}
.is-featured .skill-icon { background: var(--grad); color: #fff; }
.skill-count { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: .1rem .55rem; }
.skill-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tags li {
    font-size: .85rem; font-weight: 500; line-height: 1.3; padding: .45rem .8rem; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    transition: border-color .2s, color .2s, background .2s;
}
.skill-tags li:hover { border-color: var(--accent); color: var(--accent); }
.is-featured .skill-tags li { background: color-mix(in srgb, var(--bg) 70%, transparent); }
@media (max-width: 991.98px) {
    .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .skills-grid { grid-template-columns: 1fr; }
    .skill-card.is-featured { grid-column: auto; }
}

/* ---------- İletişim ---------- */
.contact-cta {
    max-width: 760px; margin: 0 auto; text-align: center; padding: 3.5rem 2rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px);
    background-image: radial-gradient(500px circle at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.contact-cta h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; margin: .5rem 0 .75rem; }
.contact-cta > p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 2rem 0 1.5rem; }
.contact-actions .btn { max-width: 100%; overflow-wrap: anywhere; }
.contact-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; color: var(--muted); }
.contact-meta li { display: inline-flex; align-items: center; gap: .5rem; }
.contact-meta i { color: var(--accent); }
.contact-meta a { color: var(--muted); }
.contact-meta a:hover { color: var(--text); }
.map { width: 100%; height: 240px; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 2rem; filter: grayscale(.3); }

/* ---------- Proje detayı ---------- */
.detail-head { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 50px; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-weight: 500; margin-bottom: 1.5rem; }
.detail-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; margin-bottom: .5rem; }
.detail-subtitle { color: var(--muted); font-size: 1.15rem; max-width: 720px; }
.viewer {
    position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius);
    background: var(--surface-2); border: 1px solid var(--border); isolation: isolate;
}
.viewer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.2); opacity: .35; transform: scale(1.15); z-index: -1; }
.viewer-stage { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.viewer-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.viewer-zoom, .viewer-count {
    position: absolute; pointer-events: none; font-size: .8rem; color: #fff;
    background: rgba(10, 14, 26, .6); backdrop-filter: blur(6px); border-radius: 999px;
}
.viewer-zoom { top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.viewer:hover .viewer-zoom { opacity: 1; }
.viewer-count { bottom: 12px; right: 12px; padding: .2rem .65rem; font-family: var(--font-mono); }
.viewer-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; background: rgba(10, 14, 26, .55); color: #fff;
    backdrop-filter: blur(6px); font-size: 1.1rem; opacity: 0; transition: opacity .2s, background .2s;
}
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }
.viewer:hover .viewer-nav, .viewer-nav:focus-visible { opacity: 1; }
.viewer-nav:hover { background: var(--accent); }
@media (hover: none) { .viewer-nav { opacity: 1; } }

.thumbs { display: flex; gap: .6rem; margin-top: .9rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.thumb {
    flex: 0 0 auto; width: 104px; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border-radius: 10px;
    border: 2px solid transparent; background: var(--surface-2); opacity: .55; transition: opacity .2s, border-color .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: .9; }
.thumb.is-active { opacity: 1; border-color: var(--accent); }

.detail-body { margin-top: 2.5rem; }
.detail-section-title { font-size: 1.3rem; margin-bottom: 1rem; }
.detail-summary { color: var(--text); margin: 0; }
.detail-aside { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.detail-aside h2 { font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .9rem; }
.detail-aside .chips + h2, .detail-summary + h2 { margin-top: 1.75rem; }
.detail-link { overflow-wrap: anywhere; font-weight: 500; }
.project-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; }
.project-pager a { display: flex; flex-direction: column; gap: .2rem; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-weight: 600; font-family: var(--font-display); }
.project-pager a:hover { border-color: var(--accent); }
.project-pager span { font-family: var(--font-sans); font-size: .8rem; font-weight: 500; color: var(--muted); }
.pager-next { grid-column: 2; text-align: right; align-items: flex-end; }
@media (max-width: 575.98px) {
    .project-pager { grid-template-columns: 1fr; }
    .pager-next { grid-column: 1; }
}

/* ---------- Hata sayfası ---------- */
.error-page { min-height: 80vh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 40px); }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 9rem); font-weight: 700; line-height: 1; margin: 0; }

/* ---------- Altbilgi ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.site-footer .social-links a { width: 36px; height: 36px; font-size: .95rem; }

.to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1000; width: 44px; height: 44px;
    display: grid; place-items: center; border-radius: 14px; background: var(--grad); color: #fff;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; }

@media (max-width: 767.98px) {
    .section { padding: 80px 0; }
    .contact-cta { padding: 2.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Giriş: kod penceresi ---------- */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.code-card {
    width: min(380px, 100%); margin: 0; text-align: left; overflow: hidden;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow);
}
@media (min-width: 992px) {
    .hero .stats { margin-top: 7rem; }
    .code-card { width: 380px; position: absolute; left: -6rem; bottom: -7.5rem; transform: rotate(-2deg); transition: transform .3s; }
    .code-card:hover { transform: rotate(0) translateY(-4px); }
}
.code-bar { display: flex; align-items: center; gap: .75rem; padding: .55rem .9rem; border-bottom: 1px solid var(--border); font: 12px var(--font-mono); color: var(--muted); }
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.code-dots i:nth-child(2) { background: #febc2e; }
.code-dots i:nth-child(3) { background: #28c840; }
.code-body { margin: 0; padding: .9rem 1rem 1rem; font: 12.5px/1.75 var(--font-mono); color: var(--text); white-space: normal; overflow-x: auto; }
.code-body .cl {
    display: block; width: fit-content; white-space: pre;
    clip-path: inset(0 100% 0 0); animation: code-type .5s steps(28, end) forwards;
    animation-delay: calc(var(--i) * .32s + .7s);
}
@keyframes code-type { to { clip-path: inset(0 0 0 0); } }
.tk { color: #c084fc; }
.tv { color: var(--accent-2); }
.tp { color: var(--accent); }
.ts { color: #f59e0b; }
.tn { color: #f472b6; }
.tc { color: var(--muted); font-style: italic; }
[data-theme="light"] .ts { color: #b45309; }
.code-caret { display: inline-block; width: .55em; height: 1.1em; margin-left: .2em; vertical-align: -.2em; background: var(--accent); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Kayan teknoloji şeridi ---------- */
.tech-marquee {
    overflow: hidden; padding: 1.1rem 0; border-block: 1px solid var(--border); background: var(--bg-alt);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.tech-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { display: flex; gap: 2.5rem; margin: 0; padding: 0 1.25rem; list-style: none; }
.marquee-track li { white-space: nowrap; font: 500 .95rem var(--font-display); color: var(--muted); display: flex; align-items: center; gap: 2.5rem; }
.marquee-track li::after { content: "✦"; font-size: .6rem; color: var(--accent); }
.marquee-track li:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Kartlarda fareyi takip eden ışık ---------- */
.project-card, .skill-card:not(.is-featured) {
    background-image: radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--accent) 14%, transparent), transparent 45%);
}

@media (prefers-reduced-motion: reduce) {
    .code-body .cl { clip-path: none; }
    .marquee-track { animation: none; }
}
