/* =========================================================
   Anıl Sami Tezküser — IT Uzmanı
   ========================================================= */

:root {
    --bg: #07090c;
    --bg-2: #0b0e13;
    --surface: #0f1319;
    --surface-2: #141a22;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #e6edf3;
    --muted: #8b96a5;
    --accent: #2ee6a8;
    --accent-2: #38bdf8;
    --danger: #ff6b6b;
    --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);

    --sans: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

    --pad: clamp(20px, 4vw, 48px);
    --max: 1240px;
    --radius: 14px;
    --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, pre { font-family: var(--mono); }
::selection { background: var(--accent); color: #04110c; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 900px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* background network canvas */
.bg-net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; pointer-events: none; }
body::before {
    content: "";
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(56, 189, 248, .12), transparent 60%),
        radial-gradient(700px 500px at -10% 30%, rgba(46, 230, 168, .08), transparent 60%),
        var(--bg);
}

/* ---------- Bits ---------- */
.kicker {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
    letter-spacing: .02em;
}
.kicker span { color: var(--accent); margin-right: 6px; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 12px;
    padding: 6px 12px;
    border: 1px solid rgba(46, 230, 168, .3);
    background: rgba(46, 230, 168, .06);
    color: var(--accent);
    border-radius: 100px;
    margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 0 rgba(46, 230, 168, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(46, 230, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0); } }

.h2 { font-size: clamp(32px, 4.4vw, 56px); margin-bottom: 18px; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px;
    font-weight: 600; font-size: 15px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { background: var(--grad); color: #03110c; }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(46, 230, 168, .6); }
.btn--ghost { border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }

.link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; color: var(--accent); }
.link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--mono); font-size: 11.5px; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); }
.tags--lg li { font-size: 13px; padding: 7px 12px; color: var(--text); transition: border-color .3s, color .3s; }
.tags--lg li:hover { border-color: var(--accent); color: var(--accent); }

.card {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
    transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .3s, border-color .3s, transform .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(7, 9, 12, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 74px; display: flex; align-items: center; gap: 30px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 34px; height: 34px; color: var(--accent); }
.brand__text { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.brand__prompt { color: var(--muted); }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--accent); margin-left: 3px; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
.logo__caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; }
.nav a { font-family: var(--mono); font-size: 14px; padding: 8px 12px; border-radius: 8px; color: var(--muted); transition: color .3s, background .3s; }
.nav a span { color: var(--accent); opacity: 0; margin-right: 2px; transition: opacity .3s; }
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(255,255,255,.04); }
.nav a:hover span, .nav a.is-active span { opacity: 1; }

.burger { display: none; width: 42px; height: 42px; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 25px; }
body.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 74px 0 0; z-index: 99;
    background: rgba(7, 9, 12, .97);
    padding: 30px var(--pad);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all .4s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { display: block; font-family: var(--mono); font-size: 28px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a span { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: clamp(130px, 16vw, 180px) 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 5vw, 70px); align-items: center; }
.hero__title { font-size: clamp(48px, 7vw, 92px); line-height: .98; letter-spacing: -.04em; margin-bottom: 26px; font-weight: 700; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__mini { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.hero__mini li { display: flex; align-items: center; gap: 7px; }
.hero__mini svg { width: 16px; height: 16px; color: var(--accent); }

/* Terminal */
.terminal {
    background: rgba(13, 17, 23, .9);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(46,230,168,.05), 0 0 80px -20px rgba(56,189,248,.25);
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl--r { background: #ff5f57; } .tl--y { background: #febc2e; } .tl--g { background: #28c840; }
.terminal__title { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.terminal__body { font-family: var(--mono); font-size: 13.5px; line-height: 1.75; padding: 20px 22px 26px; min-height: 380px; }
.terminal__body p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.t-p { color: var(--accent); }
.t-c { color: var(--text); }
.t-o { color: var(--muted); }
.t-ok { color: var(--accent); }
.t-warn { color: #febc2e; }
.t-k { color: var(--accent-2); }
.cursor-blk { display: inline-block; width: 8px; height: 16px; background: var(--text); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 8vw, 100px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.015); }
.stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.stat__label { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--mono); font-size: 14px; color: var(--muted); padding: 6px 14px; border: 1px solid var(--line); border-radius: 100px; white-space: nowrap; }
.marquee__track span::before { content: "▹ "; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--tight { padding-top: 0; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.03)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head__lead { color: var(--muted); font-size: 17px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row .h2 { margin-bottom: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { padding: 28px; overflow: hidden; }
.service::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: var(--grad); opacity: 0; transition: opacity .4s;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.service::after { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(46,230,168,.18), transparent 70%); opacity: 0; transition: opacity .5s; }
.service:hover { transform: translateY(-4px); }
.service:hover::before, .service:hover::after { opacity: 1; }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.service__icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: rgba(46,230,168,.08); border: 1px solid rgba(46,230,168,.2); color: var(--accent); }
.service__icon svg { width: 24px; height: 24px; }
.service__cmd { font-size: 12px; color: var(--muted); }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent); opacity: .4; }
.process__step { position: relative; padding-top: 70px; }
.process__no { position: absolute; top: 0; left: 0; width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); color: var(--accent); }
.process__step h3 { font-size: 20px; margin-bottom: 10px; }
.process__step p { color: var(--muted); font-size: 15px; margin: 0; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { overflow: hidden; display: flex; flex-direction: column; }
.project:hover { transform: translateY(-4px); border-color: var(--line-2); }
.project__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project__media img, .project:hover .ph__icon { transform: scale(1.06); }
.ph {
    position: absolute; inset: 0; display: grid; place-items: center;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 24px 24px,
        radial-gradient(circle at 50% 50%, rgba(46,230,168,.12), transparent 60%),
        var(--surface);
}
.ph__icon { width: 64px; height: 64px; color: var(--accent); transition: transform .8s var(--ease); filter: drop-shadow(0 0 18px rgba(46,230,168,.4)); }
.ph__id { position: absolute; top: 14px; left: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.project__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project__meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.project__meta span:first-child { color: var(--accent); }
.project h3 { font-size: 20px; margin-bottom: 10px; }
.project__body > p { color: var(--muted); font-size: 15px; }
.project__result { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--text) !important; margin: auto 0 14px; padding-top: 6px; }
.project__result svg { width: 16px; height: 16px; color: var(--accent); }
.projects--home .project__result { margin-bottom: 0; }
.project.is-hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { font-family: var(--mono); font-size: 13px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); transition: all .3s; }
.filter sup { color: var(--accent); }
.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter.is-active { background: rgba(46,230,168,.1); border-color: rgba(46,230,168,.4); color: var(--accent); }

/* Quote */
.quote { margin: 0; text-align: center; }
.quote blockquote { margin: 0 0 24px; font-size: clamp(22px, 2.8vw, 34px); line-height: 1.35; letter-spacing: -.01em; font-weight: 500; }
.quote figcaption { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.quote figcaption strong { color: var(--accent); font-weight: 500; }
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote--card { text-align: left; padding: 34px; }
.quote--card blockquote { font-size: 20px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(140px, 17vw, 200px) 0 clamp(60px, 7vw, 90px); }
.page-hero__title { font-size: clamp(42px, 6.4vw, 84px); line-height: 1; letter-spacing: -.04em; font-weight: 700; margin-bottom: 24px; }
.page-hero__lead { color: var(--muted); font-size: 18px; max-width: 580px; margin: 0; }

.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about__card { position: sticky; top: 100px; }
.profile { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.profile__photo { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(46,230,168,.16), transparent 60%), var(--surface-2); border-bottom: 1px solid var(--line); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__logo { width: 38%; color: var(--accent); filter: drop-shadow(0 0 30px rgba(46,230,168,.4)); }
.profile__json { margin: 0; padding: 22px 24px; font-size: 13.5px; line-height: 1.8; overflow-x: auto; color: var(--muted); }
.profile__json .k { color: var(--accent-2); } .profile__json .s { color: var(--accent); } .profile__json .n { color: #febc2e; }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.certs li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: rgba(255,255,255,.02); }
.certs svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.gitlog { position: relative; padding-left: 34px; }
.gitlog::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2) 60%, transparent); opacity: .5; }
.gitlog__item { position: relative; padding: 0 0 44px; }
.gitlog__node { position: absolute; left: -34px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-2); }
.gitlog__node.is-head { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(46,230,168,.15); }
.gitlog__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; margin-bottom: 8px; }
.gitlog__hash { color: #febc2e; }
.gitlog__head { color: var(--accent); border: 1px solid rgba(46,230,168,.4); padding: 1px 8px; border-radius: 100px; }
.gitlog__year { color: var(--muted); }
.gitlog__item h3 { font-size: 22px; margin-bottom: 6px; }
.gitlog__item h3 span { color: var(--muted); font-weight: 400; }
.gitlog__item p { color: var(--muted); margin: 0; }

.stack { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stack__row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stack__row h3 { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--accent); }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact__info { display: grid; gap: 12px; }
.info { display: flex; align-items: center; gap: 16px; padding: 18px 20px; font-size: 16px; }
a.info:hover { border-color: rgba(46,230,168,.4); transform: translateX(4px); }
.info small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.info__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: rgba(46,230,168,.08); color: var(--accent); flex: none; }
.info__icon svg { width: 20px; height: 20px; }
.ping { padding: 18px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.8; }
.ping p { margin: 0; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.socials a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); transition: all .3s; }
.socials a:hover { color: var(--accent); border-color: rgba(46,230,168,.4); }
.socials svg { width: 14px; height: 14px; }

.form-card { overflow: hidden; background: rgba(13,17,23,.92); border-color: var(--line-2); }
.form-card__body { padding: clamp(22px, 3.5vw, 36px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.field em { color: var(--accent); font-style: normal; }
.field input, .field textarea {
    width: 100%;
    font: inherit; font-size: 15px;
    color: var(--text);
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    padding: 13px 14px;
    outline: none;
    transition: border-color .3s, box-shadow .3s;
    resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #4d5866; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,230,168,.12); }
.field small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--danger); }
.has-error input, .has-error textarea { border-color: var(--danger); }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; color: var(--muted); transition: all .25s; }
.chip:hover span { color: var(--text); }
.chip input:checked + span { border-color: var(--accent); color: var(--accent); background: rgba(46,230,168,.08); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 10px; margin-bottom: 22px; font-size: 15px; }
.alert svg { width: 20px; height: 20px; flex: none; }
.alert--ok { background: rgba(46,230,168,.1); border: 1px solid rgba(46,230,168,.35); color: var(--accent); }
.alert--ok div { color: var(--text); }
.alert--err { background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.35); color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(70px, 9vw, 110px); background: linear-gradient(180deg, transparent, rgba(46,230,168,.03)); }
.footer__cta { text-align: center; padding-bottom: clamp(60px, 8vw, 90px); }
.footer__cta .kicker { margin-bottom: 20px; }
.footer__title { font-size: clamp(36px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 34px; font-weight: 700; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 30px; padding: 46px 0; border-top: 1px solid var(--line); }
.footer__brand p { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.footer__grid h4 { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 14px; letter-spacing: 0; }
.footer__grid li { margin-bottom: 8px; font-size: 15px; }
.footer__grid a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.status-line { display: inline-flex; align-items: center; gap: 8px; }
.status-line .dot { width: 7px; height: 7px; }
.to-top:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .services, .projects { grid-template-columns: 1fr 1fr; }
    .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .process::before { display: none; }
}
@media (max-width: 900px) {
    .nav, .header__cta { display: none; }
    .burger { display: block; }
    .hero__grid, .about, .contact { grid-template-columns: 1fr; }
    .terminal__body { min-height: 330px; font-size: 12.5px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .about__card { position: relative; top: 0; max-width: 460px; }
    .testimonials { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .stack__row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 620px) {
    .services, .projects, .process, .certs, .form__row { grid-template-columns: 1fr; }
    .form__row { gap: 0; }
    .hero__actions .btn { flex: 1; }
    .footer__bottom { flex-direction: column; }
}

/* ===== v2: kişisel site bileşenleri ===== */
.brand__logo { width: auto; height: 34px; }
.profile__logo { width: 52%; }
.sub { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); margin: 34px 0 0; letter-spacing: 0; }
.page-hero--short { padding-bottom: clamp(40px, 5vw, 60px); }

.services--4 { grid-template-columns: repeat(4, 1fr); }
.services--4 .service { padding: 24px; }
.services--4 .service__top { margin-bottom: 20px; }
.services--4 .service h3 { font-size: 18px; margin-bottom: 12px; }
.services--4 .service p { font-size: 14px; margin-bottom: 16px; }

/* Şu an */
.now { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.now__current { padding: 32px; }
.now__current::before { content: ""; position: absolute; inset: -1px; 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: .7; pointer-events: none; }
.now__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; font-family: var(--mono); font-size: 12px; }
.now__period { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.now__current h3 { font-size: clamp(28px, 3vw, 38px); }
.now__org { font-size: 20px; color: var(--accent); margin: 4px 0 16px; }
.now__past { display: flex; flex-direction: column; gap: 14px; }
.now__item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; }
.now__item code { font-size: 12.5px; padding-top: 4px; }
.now__item h3 { font-size: 18px; margin-bottom: 4px; }
.now__item h3 span { color: var(--muted); font-weight: 400; }
.now__item p { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.now__past .link { margin-top: 6px; }
.gitlog__item .tags { margin-top: 12px; }
.gitlog__item--init { padding-bottom: 0; opacity: .7; }

/* Mola kartı & CTA kartı */
.break, .cta-card { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; padding: clamp(28px, 4vw, 52px); overflow: hidden; }
.break:hover, .cta-card:hover { border-color: rgba(46,230,168,.4); }
.break .h2, .cta-card .h2 { margin-bottom: 14px; }
.break .btn { margin-top: 10px; }
.break__svg { width: 100%; color: var(--accent); }
.break__bot { animation: hop 1.6s var(--ease) infinite; }
.break__bug { animation: crawl 1.6s linear infinite; }
@keyframes hop { 0%, 40%, 100% { transform: translateY(0); } 20% { transform: translateY(-34px); } }
@keyframes crawl { from { transform: translateX(80px); } to { transform: translateX(-200px); } }
.cta-card { grid-template-columns: 1fr auto; }

/* Becerilerim: ürünler */
.legend { display: flex; gap: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend li { display: flex; align-items: center; gap: 8px; }
.lvl { display: inline-flex; gap: 3px; }
.lvl i { width: 6px; height: 14px; border-radius: 2px; background: rgba(255,255,255,.1); }
.lvl--1 i:nth-child(-n+1), .lvl--2 i:nth-child(-n+2), .lvl--3 i { background: var(--accent); }
.lvl--2 i:nth-child(-n+2) { background: var(--accent-2); }
.lvl--1 i:first-child { background: var(--muted); }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.pgroup { padding: 8px 0 10px; }
.pgroup.is-hidden { display: none; }
.pgroup__head { display: flex; align-items: center; gap: 14px; padding: 16px 22px 14px; border-bottom: 1px solid var(--line); }
.pgroup__head h3 { font-size: 18px; flex: 1; }
.pgroup__head .service__icon { width: 40px; height: 40px; border-radius: 10px; }
.pgroup__head .service__icon svg { width: 20px; height: 20px; }
.pgroup__count { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 2px 10px; }
.plist { padding: 6px 10px; }
.pitem { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; transition: background .25s; }
.pitem:hover { background: rgba(255,255,255,.03); }
.pitem__mono { --c: var(--accent); width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 9px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.pitem__logo { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #fff; padding: 6px; }
.pitem__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pitem__name { flex: 1; font-weight: 500; font-size: 15.5px; line-height: 1.25; }
.pitem__name small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* Mola Vakti oyunu */
.game { overflow: hidden; background: rgba(11, 14, 19, .92); border-color: var(--line-2); box-shadow: 0 0 80px -30px rgba(46,230,168,.35); }
.game__hud { margin-left: auto; display: flex; gap: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.game__hud b { color: var(--text); font-weight: 500; }
.game__hud span:first-child b { color: var(--accent); }
.game__stage { position: relative; }
.game__stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 960 / 300; max-height: 70vh; cursor: pointer; touch-action: manipulation; outline: none; }
.game__controls { display: none; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.game__btn { flex: 1; font-family: var(--mono); font-size: 15px; padding: 16px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.game__btn:active { background: rgba(46,230,168,.15); border-color: var(--accent); color: var(--accent); }
.game__help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.help { padding: 22px 24px; }
.help h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 12px; letter-spacing: 0; }
.help li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; font-size: 14.5px; color: var(--muted); }
.help b { color: var(--text); font-weight: 500; }
kbd { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text); background: rgba(255,255,255,.04); }
.dot-red, .dot-amber, .dot-blue { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot-red { background: var(--danger); } .dot-amber { background: #febc2e; } .dot-blue { background: var(--accent-2); }

@media (max-width: 1080px) {
    .services--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .now, .break, .products, .game__help { grid-template-columns: 1fr; }
    .cta-card { grid-template-columns: 1fr; }
    .break__art { order: -1; }
    .game__controls { display: flex; }
    .game__hud { gap: 10px; }
    .terminal__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 620px) {
    .services--4 { grid-template-columns: 1fr; }
    .game .terminal__title { display: none; }
}
