/* ==========================================================
   Portfolyo · Ana Stil Dosyası
   Koyu "mühendislik tezgâhı" teması · sinyal yeşili vurgu
   ========================================================== */

:root {
    --bg: #0a0e13;
    --bg-alt: #0d1218;
    --surface: #111820;
    --surface-2: #162029;
    --line: #1e2a36;
    --line-2: #2a3a4a;

    --text: #e6edf3;
    --text-muted: #9aa8b6;
    --text-soft: #66778a;

    --accent: #2ee6a6;
    --accent-dim: rgba(46, 230, 166, .12);
    --accent-line: rgba(46, 230, 166, .35);
    --cyan: #38bdf8;
    --copper: #f0a04b;
    --danger: #f87171;

    --radius: 14px;
    --radius-sm: 9px;
    --max-width: 1180px;
    --nav-height: 68px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-head: 'Space Grotesk', var(--font);
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-family: var(--font-head); font-weight: 600; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

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

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font: 600 15px/1.2 var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-primary { background: var(--accent); color: #04130d; box-shadow: 0 8px 24px rgba(46, 230, 166, .18); }
.btn-primary:hover { background: #5cf0bd; box-shadow: 0 10px 30px rgba(46, 230, 166, .3); }
.btn-outline { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--nav-height);
    border-bottom: 1px solid transparent;
    transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.navbar.scrolled, body.menu-acik .navbar {
    background: rgba(10, 14, 19, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 18px; min-width: 0; }
.logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-chip {
    position: relative;
    width: 36px; height: 36px; flex-shrink: 0;
    display: grid; place-items: center;
    border: 1.5px solid var(--accent);
    border-radius: 7px;
    font: 600 13px/1 var(--font-mono);
    color: var(--accent);
    background: var(--accent-dim);
}
/* Entegre bacakları */
.logo-chip::before, .logo-chip::after {
    content: ''; position: absolute; top: 7px; bottom: 7px; width: 4px;
    background: repeating-linear-gradient(to bottom, var(--accent) 0 2px, transparent 2px 6px);
}
.logo-chip::before { left: -6px; }
.logo-chip::after { right: -6px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14.5px; font-weight: 500;
    color: var(--text-muted);
    transition: color .2s, background .2s;
}
.nav-no { font: 500 11px var(--font-mono); color: var(--text-soft); transition: color .2s; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); }
.nav-link.active .nav-no, .nav-link:hover .nav-no { color: var(--accent); }
.nav-cta { margin-left: 12px; }

.menu-toggle {
    display: none;
    width: 42px; height: 42px;
    padding: 0; border: 1px solid var(--line-2); border-radius: 9px;
    background: var(--surface);
    cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-height) + 80px) 0 0; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(600px 400px at 78% 30%, rgba(46, 230, 166, .10), transparent 70%),
        radial-gradient(500px 360px at 10% 10%, rgba(56, 189, 248, .07), transparent 70%),
        radial-gradient(circle at 1px 1px, rgba(154, 168, 182, .14) 1px, transparent 0) 0 0 / 28px 28px;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
    mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-bottom: 88px; }

.status-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 12px; margin-bottom: 28px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(17, 24, 32, .7);
    color: var(--text-muted);
    font-size: 13.5px; font-weight: 500;
}
.status-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }

.hero-hello { font-size: 15px; color: var(--accent); margin-bottom: 10px; }
.hero-title { font-size: clamp(42px, 6.4vw, 76px); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
.hero-role { margin-top: 16px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; color: var(--text); }
.hero-typed { margin-top: 8px; font-size: 15px; color: var(--text-muted); min-height: 1.6em; }
.typed-prefix { color: var(--text-soft); margin-right: 6px; }
.typed { color: var(--cyan); }
.caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
.hero-desc { margin-top: 22px; font-size: 17.5px; color: var(--text-muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.social-links { display: flex; gap: 10px; margin-top: 30px; }
.social-links a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    color: var(--text-muted);
    transition: all .2s;
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social-links:empty { display: none; }

/* Entegre devre (IC) şeklindeki profil görseli */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.ic { position: relative; width: min(100%, 340px); aspect-ratio: 1; padding: 18px; }
.ic-pins { position: absolute; }
.ic-pins-t, .ic-pins-b { left: 52px; right: 52px; height: 18px; background: repeating-linear-gradient(to right, #7d8b99 0 8px, transparent 8px 22px); }
.ic-pins-l, .ic-pins-r { top: 52px; bottom: 52px; width: 18px; background: repeating-linear-gradient(to bottom, #7d8b99 0 8px, transparent 8px 22px); }
.ic-pins-t { top: 0; } .ic-pins-b { bottom: 0; }
.ic-pins-l { left: 0; } .ic-pins-r { right: 0; }
.ic-body {
    position: relative; height: 100%;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(145deg, #1a232d, #0f151c);
    border: 1px solid var(--line-2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(46, 230, 166, .06), 0 0 80px rgba(46, 230, 166, .08);
}
.ic-notch { position: absolute; top: 10px; left: 10px; width: 9px; height: 9px; border-radius: 50%; background: #06090c; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8); }
.ic-core { height: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 30% 20%, rgba(46, 230, 166, .15), transparent 60%), var(--bg); }
.ic-core img { width: 100%; height: 100%; object-fit: cover; }
.ic-initials { height: 100%; display: grid; place-items: center; font: 700 clamp(64px, 10vw, 104px)/1 var(--font-head); letter-spacing: -.04em; color: var(--accent); text-shadow: 0 0 40px rgba(46, 230, 166, .35); }
.ic-label { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); font-size: 10px; letter-spacing: .12em; color: var(--text-soft); white-space: nowrap; }

.readout {
    width: 100%; max-width: 400px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 24, 32, .75);
    backdrop-filter: blur(6px);
    overflow: hidden;
}
.readout-head, .form-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-soft); }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.readout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 1px; background: var(--line); }
.readout-item { padding: 16px 12px; text-align: center; background: var(--surface); }
.readout-num { display: block; font: 600 26px/1.1 var(--font-head); color: var(--text); }
.readout-label { font-size: 11px; color: var(--text-soft); text-transform: lowercase; }
.readout-note { padding: 11px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-muted); }

/* Uzmanlık bandı */
.ticker { border-block: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 14px; padding: 16px 28px; font: 500 14px var(--font-mono); color: var(--text-muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
.ticker-item i { font-size: 7px; color: var(--accent); }

/* ---------- Bölümler ---------- */
.section { position: relative; padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-tag { margin-bottom: 14px; font-size: 13px; color: var(--text-soft); }
.section-tag span { color: var(--accent); }
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.02em; }
.section-sub { margin-top: 14px; color: var(--text-muted); font-size: 16.5px; }

.card-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: grid; place-items: center;
    border: 1px solid var(--accent-line);
    border-radius: 10px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 17px;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
    padding: 4px 10px;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    font: 500 12px var(--font-mono);
    color: var(--text-muted);
}

/* ---------- Hakkımda ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: start; }
.about-text { margin-top: 26px; display: grid; gap: 16px; color: var(--text-muted); font-size: 16.5px; }

.datasheet { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.datasheet-head { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 12px; letter-spacing: .1em; color: var(--text-soft); }
.datasheet-part { color: var(--accent); }
.datasheet dl { margin: 0; }
.datasheet dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 20px; }
.datasheet dl > div + div { border-top: 1px dashed var(--line); }
.datasheet dt { font: 500 12px/1.9 var(--font-mono); color: var(--text-soft); text-transform: lowercase; }
.datasheet dd { margin: 0; font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.datasheet dd a:hover { color: var(--accent); }
.dd-ok { display: flex; align-items: center; gap: 10px; color: var(--accent); }

/* ---------- Kartlar (ortak) ---------- */
.skill-card, .service-card, .timeline-card, .project-card, .contact-form, .contact-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .25s, transform .25s, background .25s;
}
.skill-card:hover, .service-card:hover, .project-card:hover, a.contact-item:hover { border-color: var(--accent-line); }

/* ---------- Yetenekler ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.skill-card { padding: 24px; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.card-head h3 { font-size: 18px; flex: 1; }
.card-count { font-size: 12px; color: var(--text-soft); padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px; }
.skill-list { display: grid; gap: 14px; }
.skill-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 500; margin-bottom: 6px; }
.skill-row .mono { font-size: 12px; color: var(--text-soft); }
.meter { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--accent)); transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .15s; }
.js .reveal:not(.visible) .meter span { transform: scaleX(0); }

/* ---------- Deneyim / Timeline ---------- */
.timeline { position: relative; max-width: 880px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(to bottom, var(--accent), var(--line-2)); }
.timeline-item { position: relative; padding-left: 44px; }
.timeline-item + .timeline-item { margin-top: 20px; }
.timeline-dot { position: absolute; left: 2px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.timeline-dot.active { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-dim); }
.timeline-card { padding: 22px 26px; }
.timeline-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.timeline-top h3 { font-size: 19px; }
.timeline-date { font-size: 12.5px; color: var(--accent); }
.timeline-company { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--text-muted); font-weight: 500; font-size: 15px; }
.timeline-company i { font-size: 13px; color: var(--text-soft); }
.timeline-desc { margin-top: 12px; color: var(--text-muted); font-size: 15px; }

/* ---------- Projeler ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.project-card { display: flex; flex-direction: column; overflow: hidden; }
.project-card:hover { transform: translateY(-4px); }
.project-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 1px 1px, rgba(154, 168, 182, .12) 1px, transparent 0) 0 0 / 18px 18px, var(--surface-2); color: var(--line-2); font-size: 44px; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-media img { transform: scale(1.04); }
.project-no { position: absolute; top: 12px; left: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(10, 14, 19, .8); font-size: 11px; color: var(--accent); }
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { font-size: 19px; }
.project-body p { color: var(--text-muted); font-size: 15px; }
.project-links { display: flex; gap: 18px; margin-top: auto; padding-top: 8px; }
.project-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--accent); }
.project-links a:hover { text-decoration: underline; }

/* ---------- Hizmetler ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.service-card:hover { transform: translateY(-4px); background: var(--surface-2); }
.service-card h3 { font-size: 19px; margin-top: 4px; }
.service-card p { color: var(--text-muted); font-size: 15px; }
.service-card .tag-list { margin-top: auto; padding-top: 4px; }

.process { margin-top: 80px; }
.process-title { font-size: 24px; margin-bottom: 28px; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process-step { position: relative; padding: 26px 24px; background: var(--surface); }
.process-num { display: inline-block; margin-bottom: 16px; padding: 3px 9px; border: 1px solid var(--accent-line); border-radius: 6px; font-size: 12px; color: var(--accent); }
.process-step h4 { font-size: 17px; margin-bottom: 6px; }
.process-step p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta-banner {
    position: relative; overflow: hidden;
    margin-bottom: 88px;
    padding: 48px;
    border: 1px solid var(--accent-line);
    border-radius: 20px;
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(46, 230, 166, .16), transparent 70%),
        radial-gradient(circle at 1px 1px, rgba(154, 168, 182, .12) 1px, transparent 0) 0 0 / 22px 22px,
        var(--surface);
}
.cta-kicker { font-size: 13px; color: var(--accent); margin-bottom: 12px; }
.cta-banner h3 { font-size: clamp(24px, 3.2vw, 34px); max-width: 720px; letter-spacing: -.02em; }
.cta-banner p:last-child { margin-top: 10px; color: var(--text-muted); max-width: 620px; }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { display: grid; gap: 12px; margin-top: 32px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; font-weight: 500; overflow-wrap: anywhere; }
.contact-item small { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-soft); }

.contact-form { overflow: hidden; }
.contact-form .form-grid, .contact-form > .form-row, .contact-form > .btn, .contact-form > .form-feedback { margin-left: 26px; margin-right: 26px; }
.contact-form .form-grid { margin-top: 24px; }
.contact-form > .btn { width: calc(100% - 52px); }
.contact-form > .form-feedback { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-row label { font-size: 13.5px; font-weight: 500; color: var(--text-muted); }
.form-row input, .form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font: 400 15px/1.5 var(--font);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-soft); }
.form-row textarea { resize: vertical; min-height: 140px; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-feedback { margin-top: 14px; font-size: 14.5px; font-weight: 500; min-height: 1.5em; color: var(--text-muted); }
.form-feedback.ok { color: var(--accent); }
.form-feedback.err { color: var(--danger); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer-tagline { margin-top: 8px; color: var(--text-soft); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; color: var(--text-muted); }
.footer-nav a:hover { color: var(--accent); }
.footer .social-links { margin-top: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-soft); }
.footer-bottom .mono { font-size: 12px; }

.back-to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 40;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 11px;
    background: var(--surface);
    color: var(--accent);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all .25s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { border-color: var(--accent); }

/* ---------- Animasyonlar ---------- */
.anim-up  { animation: slideUp .8s ease-out both; }
.anim-pop { animation: popIn .7s cubic-bezier(.34, 1.4, .64, 1) .15s both; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease-out, transform .7s ease-out; }
.js .reveal.visible { opacity: 1; transform: none; }

@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes popIn   { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes blink   { 50% { opacity: 0; } }
@keyframes ticker  { to { transform: translateX(-50%); } }
@keyframes pulse   { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 166, .55); } 70% { box-shadow: 0 0 0 8px rgba(46, 230, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js .reveal:not(.visible) .meter span { transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    .nav-links {
        /* Navbar'daki backdrop-filter, fixed konumu navbar'a göre yapar;
           bu yüzden bottom: 0 yerine açık yükseklik kullanılır. */
        position: fixed;
        top: var(--nav-height); left: 0; right: 0;
        height: calc(100vh - var(--nav-height));
        height: calc(100dvh - var(--nav-height));
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 20px 24px 32px;
        background: var(--bg);
        border-top: 1px solid var(--line);
        overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; }
    .nav-link { padding: 16px 8px; font-size: 20px; font-family: var(--font-head); color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-link:hover { background: none; color: var(--accent); }
    .nav-no { font-size: 12px; min-width: 26px; }
    .nav-cta { margin: 24px 0 0; padding: 14px; font-size: 16px; }

    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-visual { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; }
    .ic { width: min(100%, 280px); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    :root { --nav-height: 62px; }
    .container { padding: 0 16px; }
    .hero { padding-top: calc(var(--nav-height) + 44px); }
    .hero-grid { padding-bottom: 64px; }
    .hero-desc { font-size: 16px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero-visual { flex-direction: column; }
    .section { padding: 76px 0; }
    .section-head { margin-bottom: 36px; }
    .logo-text { font-size: 16px; }
    .skill-grid, .project-grid, .service-grid { grid-template-columns: 1fr; }
    .skill-card, .service-card { padding: 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .contact-form .form-grid, .contact-form > .form-row, .contact-form > .btn, .contact-form > .form-feedback { margin-left: 18px; margin-right: 18px; }
    .contact-form > .btn { width: calc(100% - 36px); }
    .cta-banner { padding: 30px 22px; margin-bottom: 64px; }
    .datasheet dl > div { grid-template-columns: 80px 1fr; padding: 12px 16px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
