/* ═══════════════════════════════════════════════════════════════
   Süleyman Emre Arlı — Portföy · Tasarım Sistemi
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg:            #06080f;
    --bg-soft:       #0a0e1a;
    --surface:       rgba(16, 21, 38, 0.62);
    --surface-solid: #0d1222;
    --border:        rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);

    --text:          #e8ebf5;
    --text-soft:     #9aa3bb;
    --text-dim:      #616a80;

    --accent:        #6366f1;
    --accent-light:  #a5b4fc;
    --accent-2:      #a855f7;
    --accent-3:      #22d3ee;
    --success:       #34d399;
    --warn:          #fbbf24;
    --danger:        #f87171;

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 26px;

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, .28);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, .42);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, .55);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --nav-h: 68px;
    --maxw: 1180px;
}

/* ── Reset / temel ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* eski Edge/IE */
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; letter-spacing: -.022em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* Dikey scrollbar gizli — sayfa yine normal kaydırılır */
::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Yatay kaydırılan iç kutular (katkı haritası) için ince bir çubuk kalsın */
.contrib-scroll { scrollbar-width: thin; scrollbar-color: rgba(99, 102, 241, .3) transparent; }
.contrib-scroll::-webkit-scrollbar { display: block; height: 6px; }
.contrib-scroll::-webkit-scrollbar-track { background: transparent; }
.contrib-scroll::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, .3); border-radius: 99px; }

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

/* ── Arka plan katmanları ──────────────────────────────────── */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(99, 102, 241, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, .028) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
}

#bg-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 42% at 50% -8%,  rgba(99, 102, 241, .13) 0%, transparent 62%),
        radial-gradient(ellipse 45% 32% at 3% 42%,   rgba(168, 85, 247, .07) 0%, transparent 55%),
        radial-gradient(ellipse 42% 30% at 97% 82%,  rgba(34, 211, 238, .055) 0%, transparent 52%);
}

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(6, 8, 15, .55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

#navbar.scrolled {
    background: rgba(6, 8, 15, .88);
    border-bottom-color: var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

.nav-inner {
    max-width: var(--maxw);
    height: var(--nav-h);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }

.brand-text { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand-text em { font-style: normal; color: var(--text-soft); font-weight: 500; transition: color .2s; }
.brand:hover .brand-text em { color: var(--accent-light); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    padding: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .028);
    border: 1px solid var(--border);
}

.nav-links > a {
    position: relative;
    z-index: 2;
    padding: 7px 15px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-soft);
    white-space: nowrap;
    transition: color .22s var(--ease);
}

.nav-links > a:hover { color: var(--text); }
.nav-links > a.active { color: #fff; font-weight: 600; }

#nav-indicator {
    position: absolute;
    z-index: 1;
    top: 4px;
    left: 0;
    width: 0;
    height: calc(100% - 8px);
    border-radius: 99px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .95), rgba(168, 85, 247, .9));
    box-shadow: 0 4px 18px -4px rgba(99, 102, 241, .8);
    transition: left .38s var(--ease), width .38s var(--ease), opacity .25s;
    opacity: 0;
    pointer-events: none;
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text-soft);
    font-size: 16px;
    transition: all .22s var(--ease);
}

.icon-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, .07);
    transform: translateY(-1px);
}

.lang-btn {
    height: 36px;
    min-width: 44px;
    padding: 0 11px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .06em;
    font-family: 'JetBrains Mono', monospace;
    transition: all .22s var(--ease);
}

.lang-btn:hover {
    color: var(--accent-light);
    border-color: rgba(99, 102, 241, .4);
    background: rgba(99, 102, 241, .12);
    transform: translateY(-1px);
}

.menu-only { display: none; }

#mobile-menu {
    display: none;
    flex-direction: column;
    padding: 8px 24px 20px;
    background: rgba(6, 8, 15, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

#mobile-menu.open { display: flex; animation: slideDown .3s var(--ease); }

#mobile-menu a {
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-soft);
    transition: all .2s;
}

#mobile-menu a:hover,
#mobile-menu a.active { background: rgba(99, 102, 241, .12); color: var(--accent-light); }
#mobile-menu .mobile-cv { margin-top: 8px; border: 1px solid var(--border); color: var(--text); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Layout ───────────────────────────────────────────────── */
#app-container {
    position: relative;
    z-index: 10;
    padding-top: var(--nav-h);
    min-height: 70vh;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}

#app-container.leaving { opacity: 0; transform: translateY(10px); }

/* .wrap yalnızca YATAY boşluktan sorumlu, .section* yalnızca DİKEY'den.
   İkisinde de `padding` kısayolu kullanma: kısayol diğerinin eksenini
   sıfırlayıp hizayı bozuyor (mobilde dikey boşluk kaybolmuştu). */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section-sm { padding-block: 52px; }

/* ── Bölüm başlıkları ─────────────────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: '';
    width: 22px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
}

.section-title {
    font-size: clamp(28px, 4.4vw, 42px);
    font-weight: 900;
    letter-spacing: -.035em;
    margin-bottom: 12px;
}

.section-sub { color: var(--text-soft); font-size: 15px; max-width: 640px; line-height: 1.7; }

.gradient-text {
    background: linear-gradient(115deg, #eef1ff 0%, var(--accent-light) 42%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Kart / yüzey ─────────────────────────────────────────── */
.card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, .3);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(99, 102, 241, .12);
}

/* ── Butonlar ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -.005em;
    white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease),
                background .22s var(--ease), border-color .22s var(--ease), color .22s;
}

.btn:active { transform: scale(.97); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    box-shadow: 0 8px 26px -10px rgba(99, 102, 241, .9);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -10px rgba(99, 102, 241, 1); }

.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: var(--border-strong); transform: translateY(-2px); }

.btn-outline { border-color: rgba(99, 102, 241, .4); color: var(--accent-light); background: rgba(99, 102, 241, .06); }
.btn-outline:hover { background: rgba(99, 102, 241, .14); border-color: rgba(99, 102, 241, .65); transform: translateY(-2px); }

.btn[disabled] { opacity: .55; pointer-events: none; }

/* ── Rozet / chip ─────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, .28);
    background: rgba(99, 102, 241, .09);
    color: var(--accent-light);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--border);
    transition: all .2s var(--ease);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -.01em;
}

.chip:hover { color: var(--accent-light); border-color: rgba(99, 102, 241, .35); background: rgba(99, 102, 241, .1); }

.live-dot {
    width: 7px; height: 7px;
    border-radius: 99px;
    background: var(--success);
    animation: pulseDot 2.2s infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 64px;
    align-items: center;
    padding-block: 64px 40px;
}

/* Kısa ekranlarda (720p dizüstü) "aşağı kaydır" göstergesi katlamanın
   altında kalmasın diye hero'yu sıkıştır */
@media (max-height: 780px) {
    .hero { padding-block: 40px 24px; gap: 48px; }
    .hero h1 { font-size: clamp(34px, 5vw, 52px); }
}

.hero h1 {
    font-size: clamp(38px, 6.4vw, 66px);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.03;
    margin: 18px 0 18px;
}

.hero-lead {
    color: var(--text-soft);
    font-size: 16.5px;
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 14px;
}

.hero-lead strong { color: var(--text); font-weight: 650; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-dim); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* Portre — sağ üste yaslı, kaynak oranını koruyan küçük kart */
.portrait-wrap {
    position: relative;
    justify-self: end;
    align-self: start;
    width: 200px;          /* fotoğraf ve alt yazı aynı genişlikte kalsın */
}

.portrait {
    width: 100%;
    aspect-ratio: 788 / 798;   /* kırpılmış fotoğrafın kendi oranı — gerilme yok */
    height: auto;
    object-fit: cover;
    border-radius: var(--r-lg);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(99, 102, 241, .08);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.portrait-wrap:hover .portrait {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, .18);
}

.portrait-glow {
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, .2) 0%, transparent 70%);
    filter: blur(34px);
    animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: .6; }
    50%      { transform: scale(1.1); opacity: .85; }
}

/* Fotoğrafın altındaki roller — alt alta, ince aksan çizgisiyle */
.role-list {
    position: relative;
    list-style: none;
    margin: 15px 0 0;
    padding: 2px 0 2px 13px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.role-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(99, 102, 241, .12) 100%);
}

.role-list li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: -.02em;
    line-height: 1.5;
    color: var(--accent-light);
    white-space: nowrap;
}

/* Giriş animasyonu .reveal üzerinden — CSS keyframe'i arka plan sekmesinde
   donup yazıları görünmez bırakıyordu; .reveal'in JS güvenlik ağı var */
.role-list li.reveal { transform: translateY(7px); }
.role-list li.reveal.visible { transform: none; }


@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ── Kayan teknoloji şeridi ───────────────────────────────── */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: marquee 42s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip { font-size: 12.5px; padding: 7px 14px; }

/* Liste iki kez basıldığı için -%50 tam bir tur eder */
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ── Odak alanı / deneyim kartları ────────────────────────── */
.focus-card { padding: 26px 24px; }
.focus-card .sg-icon { width: 40px; height: 40px; font-size: 17px; margin-bottom: 16px; }
.focus-title { font-size: 16px; font-weight: 750; letter-spacing: -.02em; margin-bottom: 9px; }
.focus-desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.7; margin-bottom: 16px; }

.exp-card { padding: 24px; }
.exp-title { font-size: 16px; font-weight: 720; margin-bottom: 3px; }

/* ── İstatistik şeridi ────────────────────────────────────── */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.stat-cell {
    background: rgba(10, 14, 26, .74);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 26px 20px;
    text-align: center;
    transition: background .25s var(--ease);
}

.stat-cell:hover { background: rgba(99, 102, 241, .07); }

.stat-num {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 6px;
}

/* ── GitHub katkı ısı haritası ────────────────────────────── */
.contrib-card { padding: 26px 26px 22px; }

.contrib-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.contrib-scroll { overflow-x: auto; padding-bottom: 8px; }

.contrib-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 1fr);
    gap: 3px;
    min-width: max-content;
}

.contrib-cell {
    width: 11px;
    height: 11px;
    border-radius: 2.5px;
    background: rgba(255, 255, 255, .045);
    outline: 1px solid transparent;
    transition: transform .16s var(--ease), outline-color .16s;
}

.contrib-cell:hover { transform: scale(1.45); outline-color: rgba(255, 255, 255, .5); }
.contrib-cell[data-level="1"] { background: rgba(99, 102, 241, .32); }
.contrib-cell[data-level="2"] { background: rgba(99, 102, 241, .58); }
.contrib-cell[data-level="3"] { background: rgba(129, 140, 248, .85); }
.contrib-cell[data-level="4"] { background: #a5b4fc; box-shadow: 0 0 8px rgba(165, 180, 252, .5); }

.contrib-months {
    display: flex;
    min-width: max-content;
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 6px;
    height: 14px;
}

.contrib-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 12px;
    justify-content: flex-end;
}

.contrib-legend .contrib-cell { pointer-events: none; }

#contrib-tip {
    position: fixed;
    z-index: 300;
    padding: 6px 10px;
    border-radius: 8px;
    background: #161c2e;
    border: 1px solid var(--border-strong);
    font-size: 11.5px;
    color: var(--text);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -130%);
    transition: opacity .14s;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

#contrib-tip.show { opacity: 1; }

/* ── Proje kartları ───────────────────────────────────────── */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, .1), transparent 62%);
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
}

.project-card:hover::after { opacity: 1; }

.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.pc-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 19px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(168, 85, 247, .16));
    border: 1px solid rgba(99, 102, 241, .25);
    color: var(--accent-light);
    flex-shrink: 0;
}

.pc-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-dim); }
.pc-stats span { display: inline-flex; align-items: center; gap: 4px; }

.pc-title { font-size: 16.5px; font-weight: 750; letter-spacing: -.02em; margin-bottom: 8px; transition: color .2s; }
.project-card:hover .pc-title { color: var(--accent-light); }

.pc-desc {
    font-size: 13.5px;
    color: var(--text-soft);
    line-height: 1.68;
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.pc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.pc-lang { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-soft); }
.pc-dot { width: 9px; height: 9px; border-radius: 99px; flex-shrink: 0; }

.pc-links { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }

.pc-link,
.pc-demo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 650;
    border: 1px solid var(--border);
    color: var(--text-soft);
    transition: all .22s var(--ease);
    white-space: nowrap;
}

.pc-link:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, .06);
}

/* Canlı demo daha baskın — çalışan ürünü görmek kodu okumaktan önce gelir */
.pc-demo {
    color: var(--accent-light);
    border-color: rgba(99, 102, 241, .35);
    background: rgba(99, 102, 241, .1);
}

.pc-demo:hover {
    color: #fff;
    border-color: rgba(99, 102, 241, .6);
    background: rgba(99, 102, 241, .22);
    transform: translateY(-1px);
}

.pin-flag {
    position: absolute;
    top: 0; right: 0;
    padding: 5px 11px 5px 13px;
    border-bottom-left-radius: 12px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(99, 102, 241, .9), rgba(168, 85, 247, .85));
    color: #fff;
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.filter-btn {
    padding: 7px 15px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--border);
    transition: all .22s var(--ease);
}

.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }

.filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    box-shadow: 0 6px 20px -8px rgba(99, 102, 241, .9);
}

/* ── Proje detay sayfası ──────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 26px;
    transition: color .2s var(--ease), gap .2s var(--ease);
}

.back-link:hover { color: var(--accent-light); gap: 12px; }

.pd-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 18px; }

.pd-icon {
    width: 56px; height: 56px;
    border-radius: 15px;
    display: grid; place-items: center;
    font-size: 24px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(168, 85, 247, .16));
    border: 1px solid rgba(99, 102, 241, .25);
    color: var(--accent-light);
}

.pd-title { font-size: clamp(24px, 3.6vw, 36px); font-weight: 900; letter-spacing: -.035em; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.pd-lead { font-size: 15.5px; color: var(--text-soft); line-height: 1.8; max-width: 760px; margin-bottom: 20px; }

/* ── README içeriği ───────────────────────────────────────── */
.readme {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-soft);
    overflow-wrap: break-word;
}

.readme > *:first-child { margin-top: 0; }

.readme h1, .readme h2, .readme h3, .readme h4 {
    color: var(--text);
    margin: 38px 0 14px;
    letter-spacing: -.025em;
    line-height: 1.3;
}

.readme h1 { font-size: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.readme h2 { font-size: 21px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.readme h3 { font-size: 17px; }
.readme h4 { font-size: 15px; }

.readme p { margin: 14px 0; }
.readme strong { color: var(--text); font-weight: 650; }
.readme em { color: var(--text-soft); }

.readme a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.readme a:hover { color: #fff; }

.readme ul, .readme ol { margin: 14px 0; padding-left: 22px; }
.readme li { margin-bottom: 7px; }
.readme li::marker { color: var(--accent); }

.readme code {
    font-family: 'JetBrains Mono', monospace;
    font-size: .87em;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(99, 102, 241, .12);
    color: var(--accent-light);
    border: 1px solid rgba(99, 102, 241, .16);
}

.readme pre {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: var(--r-md);
    background: rgba(6, 9, 18, .85);
    border: 1px solid var(--border);
    overflow-x: auto;
    line-height: 1.6;
}

.readme pre code {
    padding: 0;
    background: none;
    border: 0;
    color: var(--text-soft);
    font-size: 12.5px;
}

.readme blockquote {
    margin: 18px 0;
    padding: 4px 0 4px 16px;
    border-left: 3px solid rgba(99, 102, 241, .5);
    color: var(--text-dim);
}

.readme img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    margin: 18px 0;
}

.readme hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }

/* Tablolar dar ekranda kendi içinde kaysın, sayfayı taşırmasın */
.readme table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 13.5px;
    display: block;
    overflow-x: auto;
}

.readme th, .readme td { padding: 9px 13px; border: 1px solid var(--border); text-align: left; }
.readme th { background: rgba(99, 102, 241, .09); color: var(--text); font-weight: 650; }

/* Mermaid — çizildiğinde SVG olur, çizilemezse okunabilir kaynak kalır */
.readme pre.mermaid {
    text-align: center;
    background: rgba(6, 9, 18, .6);
    padding: 22px 16px;
}

.readme pre.mermaid svg { max-width: 100%; height: auto; }

.readme pre.mermaid.mermaid-raw {
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    white-space: pre;
}

/* ── Zaman çizelgesi ──────────────────────────────────────── */
.timeline { position: relative; padding-left: 30px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--accent), rgba(99, 102, 241, .25), transparent);
}

.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
    content: '';
    position: absolute;
    left: -30px; top: 6px;
    width: 15px; height: 15px;
    border-radius: 99px;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}

.tl-date {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 5px;
}

.tl-title { font-size: 16px; font-weight: 720; margin-bottom: 3px; }
.tl-org { font-size: 13px; color: var(--text-soft); margin-bottom: 9px; }
.tl-desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.7; }

/* ── Yetenek grupları ─────────────────────────────────────── */
.skill-group { padding: 22px 24px; }
.sg-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }

.sg-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 15px;
    background: rgba(99, 102, 241, .12);
    border: 1px solid rgba(99, 102, 241, .22);
    color: var(--accent-light);
    flex-shrink: 0;
}

.sg-title { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* ── CV sayfası ───────────────────────────────────────────── */
.cv-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: start; }

.cv-viewer { position: sticky; top: calc(var(--nav-h) + 24px); padding: 14px; overflow: hidden; }

.cv-frame {
    width: 100%;
    height: 640px;
    border: 0;
    border-radius: var(--r-md);
    background: #1a1f2e;
    display: block;
}

/* Yalnızca PDF gömme desteklenmediğinde JS ile açılır */
.cv-fallback { display: none; padding: 44px 24px; text-align: center; }

.cv-toolbar { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cv-toolbar .btn { flex: 1; min-width: 130px; }

.cv-block { margin-bottom: 26px; }
.cv-block:last-child { margin-bottom: 0; }

.cv-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.cv-entry { margin-bottom: 18px; }
.cv-entry:last-child { margin-bottom: 0; }

.cv-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cv-entry-title { font-size: 14.5px; font-weight: 700; }
.cv-entry-date { font-size: 11.5px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.cv-entry-org { font-size: 13px; color: var(--accent-light); margin-bottom: 7px; }

.cv-list { margin: 0; padding-left: 17px; }
.cv-list li { font-size: 13.5px; color: var(--text-soft); line-height: 1.7; margin-bottom: 5px; }
.cv-list li::marker { color: var(--accent); }

.cv-skill-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border);
    align-items: start;
}

.cv-skill-row:last-child { border-bottom: 0; }
.cv-skill-key { font-size: 12.5px; font-weight: 650; color: var(--text); }

/* ── İletişim ─────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 28px; align-items: start; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .022);
    transition: all .24s var(--ease);
}

.contact-item:hover {
    border-color: rgba(99, 102, 241, .35);
    background: rgba(99, 102, 241, .07);
    transform: translateX(4px);
}

.ci-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: grid; place-items: center;
    font-size: 17px;
    background: rgba(99, 102, 241, .13);
    border: 1px solid rgba(99, 102, 241, .22);
    color: var(--accent-light);
    flex-shrink: 0;
}

.ci-label { font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--text-dim); }
.ci-value { font-size: 13.5px; font-weight: 600; word-break: break-word; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim); }

.form-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .22s, box-shadow .22s, background .22s;
    resize: vertical;
}

.form-input::placeholder { color: var(--text-dim); }

.form-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, .6);
    background: rgba(99, 102, 241, .05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
}

.form-msg { font-size: 13.5px; font-weight: 600; text-align: center; min-height: 20px; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--danger); }

/* ── İstatistik sayfası ───────────────────────────────────── */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.metric-card { padding: 22px; }
.metric-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.metric-value { font-size: 32px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--accent-light); }
.metric-hint { font-size: 11.5px; color: var(--text-dim); margin-top: 7px; }

.bar-row { margin-bottom: 16px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 7px; gap: 12px; }
.bar-name { color: var(--text); font-weight: 550; }
.bar-val { color: var(--accent-light); font-weight: 700; font-size: 12.5px; }
.bar-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .05); overflow: hidden; }

.bar-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 1.1s var(--ease);
}

.spinner {
    width: 34px; height: 34px;
    border-radius: 99px;
    border: 3px solid rgba(99, 102, 241, .2);
    border-top-color: var(--accent);
    animation: spin .8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.state-box { text-align: center; padding: 70px 20px; color: var(--text-dim); font-size: 14px; }

/* ── CTA şeridi ───────────────────────────────────────────── */
.cta-band {
    position: relative;
    text-align: center;
    padding: 54px 32px;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, .22);
    background:
        radial-gradient(ellipse 70% 130% at 50% 0%, rgba(99, 102, 241, .18), transparent 68%),
        rgba(12, 16, 30, .72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    position: relative;
    z-index: 10;
    margin-top: 56px;
    border-top: 1px solid var(--border);
    background: rgba(6, 8, 15, .7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 24px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 13px; }
.fb-name { font-size: 14.5px; font-weight: 750; }
.fb-role { font-size: 12px; color: var(--text-dim); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.footer-nav a { font-size: 13.5px; color: var(--text-soft); transition: color .2s; }
.footer-nav a:hover { color: var(--accent-light); }

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 16px;
    transition: all .24s var(--ease);
}

.footer-social a:hover {
    color: #fff;
    border-color: rgba(99, 102, 241, .5);
    background: rgba(99, 102, 241, .14);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 18px 24px 26px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-dim);
}

.footer-bottom .dot { opacity: .5; }

/* ── Yukarı çık ───────────────────────────────────────────── */
#to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 90;
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    border: 1px solid var(--border-strong);
    background: rgba(13, 18, 34, .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-soft);
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all .28s var(--ease);
}

#to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

#to-top:hover {
    color: #fff;
    border-color: rgba(99, 102, 241, .5);
    background: rgba(99, 102, 241, .2);
    transform: translateY(-3px);
}

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .62s var(--ease), transform .62s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

.d1 { transition-delay: 70ms; }
.d2 { transition-delay: 140ms; }
.d3 { transition-delay: 210ms; }
.d4 { transition-delay: 280ms; }
.d5 { transition-delay: 350ms; }
.d6 { transition-delay: 420ms; }

/* ── Yardımcılar ──────────────────────────────────────────── */
.mono { font-family: 'JetBrains Mono', monospace; }
.muted { color: var(--text-soft); }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stack-lg > * + * { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-32 { margin-bottom: 32px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1080px) {
    .nav-links { display: none; }
    .menu-only { display: grid; }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 44px;
        padding-block: 52px 44px;
        text-align: center;
    }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-meta, .eyebrow { justify-content: center; }
    .portrait-wrap { order: -1; justify-self: center; align-self: center; width: 190px; }
    .cv-layout, .contact-layout, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .cv-viewer { position: static; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .wrap { padding-inline: 18px; }
    .section { padding-block: 56px; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
    .hide-sm { display: none; }
    .cv-frame { height: 460px; }
    .cv-skill-row { grid-template-columns: 1fr; gap: 6px; }
    .footer-inner { flex-direction: column; text-align: center; }
    /* Logo kaldırıldı; isim gizlenirse marka alanı bomboş kalır — küçült, gizleme */
    .brand-text { font-size: 13.5px; }
    .contrib-card { padding: 20px 18px 18px; }
    .cta-band { padding: 40px 20px; }
}

/* ── Hareket azaltma tercihi ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ── Yazdırma ─────────────────────────────────────────────── */
@media print {
    #navbar, footer, #to-top, #bg-canvas, #bg-overlay { display: none !important; }
    body { background: #fff; color: #000; }
}
