:root {
    --bg: #0b0d12;
    --card: #12151d;
    --border: #232837;
    --text: #e8eaf0;
    --muted: #8b92a6;
    --a1: #6366f1;
    --a2: #22d3ee;
    --radius: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
    font-family: "Inter", system-ui, sans-serif;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(99, 102, 241, .18), transparent 60%),
        radial-gradient(40rem 25rem at -10% 20%, rgba(34, 211, 238, .10), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Navbar */
.nav {
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(11, 13, 18, .7);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { font-weight: 600; font-size: 1rem; }
.brand span { color: var(--a2); }
.nav nav { display: flex; gap: 1.5rem; font-size: .92rem; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero {
    display: flex; align-items: center; justify-content: space-between; gap: 3rem;
    padding-block: 7rem 2rem;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .8rem; border: 1px solid var(--border); border-radius: 999px;
    font-size: .8rem; color: var(--muted); background: var(--card);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; margin: 1rem 0; font-weight: 700; }
.grad { background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1rem; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.btn {
    display: inline-block; padding: .7rem 1.3rem; border-radius: 12px;
    border: 1px solid var(--border); background: var(--card);
    font-weight: 600; font-size: .95rem; transition: transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--a1); }
.btn.primary { background: linear-gradient(90deg, var(--a1), var(--a2)); border-color: transparent; color: #06080d; }

/* GitHub Achievements */
.achievements { margin-top: 2.5rem; }
.label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.badges { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; }
.badges li { position: relative; }
.badges img { width: 64px; height: 64px; display: block; transition: transform .2s; }
.badges a:hover img { transform: scale(1.12) rotate(-4deg); }
.badges .tier {
    position: absolute; right: -6px; bottom: -2px; padding: 0 .4rem; border-radius: 999px;
    font-size: .7rem; font-weight: 700; background: #1a1f2c; border: 1px solid var(--border); color: var(--text);
}
.more-links { display: flex; flex-wrap: wrap; gap: 0 2rem; }

.avatar {
    width: 200px; height: 200px; border-radius: 24px; object-fit: cover; flex-shrink: 0;
    border: 1px solid var(--border);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, .08), 0 30px 80px rgba(99, 102, 241, .25);
    transform: rotate(3deg);
}

/* Sections */
.section { padding-block: 4rem; }
.section h2 + .grid { margin-top: 1.5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: -.01em; }
.sub { color: var(--muted); margin: .4rem 0 2rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.card {
    display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
a.card:hover { transform: translateY(-4px); border-color: var(--a1); box-shadow: 0 16px 40px rgba(99, 102, 241, .15); }
.card h3 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card p { color: var(--muted); font-size: .93rem; flex: 1; }
.icon {
    width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.4rem;
    border-radius: 12px; background: linear-gradient(135deg, rgba(99, 102, 241, .25), rgba(34, 211, 238, .15));
}
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; background: #1a1f2c; color: var(--muted); }
.chip.soon { background: rgba(250, 204, 21, .12); color: #facc15; }
.chip.private { background: transparent; border: 1px dashed var(--border); }

.more { display: inline-block; margin-top: 1.5rem; color: var(--a2); font-weight: 600; }
.more:hover { text-decoration: underline; }

/* CTA */
.cta {
    text-align: center; padding: 3.5rem 1.5rem; border: 1px solid var(--border); border-radius: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(34, 211, 238, .06));
}
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

.footer { padding-block: 2.5rem; text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }

/* Mouse'u takip eden arka plan */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
    .hero { flex-direction: column-reverse; align-items: flex-start; gap: 2rem; padding-top: 5rem; }
    .avatar { width: 120px; height: 120px; border-radius: 22px; }
    .nav nav { gap: 1rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
