/* ==========================================================================
   Portfolio — tasarim sistemi
   Karanlik varsayilan, acik tema [data-bs-theme="light"] ile devreye girer.
   Bootstrap 5.3 uzerine biner; sadece degiskenleri ve kendi bilesenlerimizi
   tanimlar, Bootstrap'in kendi CSS'ini ezmeye calismaz.
   ========================================================================== */

/* --- Palet ---------------------------------------------------------------- */

:root {
    --brand: #6366f1;
    --brand-2: #22d3ee;
    --brand-3: #a855f7;

    --glow-1: rgba(99, 102, 241, .35);
    --glow-2: rgba(34, 211, 238, .28);

    --surface: rgba(255, 255, 255, .04);
    --surface-strong: rgba(255, 255, 255, .07);
    --hairline: rgba(255, 255, 255, .10);
    --hairline-strong: rgba(255, 255, 255, .18);

    --nav-bg: rgba(10, 12, 22, .72);
    --ring: 0 0 0 1px rgba(255, 255, 255, .06);
}

/* Bootstrap'in karanlik temasini kendi zeminimize cekiyoruz */
[data-bs-theme="dark"] {
    --bs-body-bg: #080a12;
    --bs-body-color: #cbd2e0;
    --bs-emphasis-color: #f4f6fb;
    --bs-secondary-color: rgba(203, 210, 224, .62);
    --bs-border-color: rgba(255, 255, 255, .10);
    --bs-primary: var(--brand);
    --bs-link-color-rgb: 129, 140, 248;
}

[data-bs-theme="light"] {
    --surface: rgba(15, 20, 40, .03);
    --surface-strong: rgba(15, 20, 40, .05);
    --hairline: rgba(15, 20, 40, .10);
    --hairline-strong: rgba(15, 20, 40, .16);

    --glow-1: rgba(99, 102, 241, .18);
    --glow-2: rgba(34, 211, 238, .14);

    --nav-bg: rgba(255, 255, 255, .78);
    --ring: 0 0 0 1px rgba(15, 20, 40, .05);

    --bs-body-bg: #f7f8fc;
    --bs-body-color: #3b4253;
    --bs-emphasis-color: #0d1220;
}

/* --- Temel ---------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;

    /* Isima lekeleri kutu disina tasiyor; bunu html seviyesinde kesmezsek
       yatay kaydirma olusur ve yenilemede sayfa kaymis gorunur.
       clip, hidden'in aksine kaydirma baglami olusturmaz. */
    overflow-x: hidden;
    overflow-x: clip;

    /* Kaydirma cubugu gelip gittikce icerik saga sola oynamasin */
    scrollbar-gutter: stable;
}

/* Zemin rengi html'de: body seffaf kalmali ki arkasindaki
   isima katmani (.bg-glows, z-index:-1) gorunebilsin. */
html {
    background-color: var(--bs-body-bg);
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: transparent;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    letter-spacing: -.02em;
}

section {
    padding: clamp(64px, 9vw, 120px) 0;
    position: relative;
}

::selection {
    background: var(--brand);
    color: #fff;
}

/* Klavye ile gezenler icin gorunur odak halkasi */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 3px;
}

/* --- Tipografi yardimcilari ----------------------------------------------- */

.gradient-text {
    background: linear-gradient(100deg, var(--brand) 0%, var(--brand-3) 45%, var(--brand-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--brand-2);
}

.section-heading {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.15;
}

.lead-muted {
    color: var(--bs-secondary-color);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* --- Isima (arka plan blob'lari) ------------------------------------------ */

/*
 * Isimalar tek bir sayfa-boyu katmanda duruyor.
 * Daha once her bolumun icinde ayri ayri duruyorlardi; tasmayi kesmek
 * icin bolum kutusunu kirpinca lekeler kenarlarda sert bir cizgiyle
 * bitiyor ve bolum gecisleri bozuk gorunuyordu.
 * Tek katman = kirpilacak bolum siniri yok = yumusak gecis.
 */
.bg-glows {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.glow-a {
    width: 46vw;
    height: 46vw;
    min-width: 380px;
    min-height: 380px;
    background: var(--glow-1);
    filter: blur(110px);
    top: -14vw;
    right: -10vw;
    animation: float-a 22s ease-in-out infinite;
}

.glow-b {
    width: 40vw;
    height: 40vw;
    min-width: 320px;
    min-height: 320px;
    background: var(--glow-2);
    filter: blur(120px);
    bottom: -12vw;
    left: -12vw;
    animation: float-b 27s ease-in-out infinite;
}

.glow-c {
    width: 34vw;
    height: 34vw;
    min-width: 280px;
    min-height: 280px;
    background: rgba(168, 85, 247, .16);
    filter: blur(130px);
    top: 38%;
    left: 46%;
    transform: translate(-50%, -50%);
    animation: float-c 32s ease-in-out infinite;
}

[data-bs-theme="light"] .glow-c {
    background: rgba(168, 85, 247, .10);
}

@keyframes float-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-4vw, 5vw) scale(1.08); }
}

@keyframes float-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, -4vw) scale(1.12); }
}

@keyframes float-c {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-42%, -58%) scale(1.15); }
}

/* Bolumler artik kendi isimasini tasimiyor; sadece yiginlama baglami */
.glow-wrap {
    position: relative;
}

/* --- Cam yuzeyler --------------------------------------------------------- */

.glass {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--ring);
}

.navbar-glass {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    margin: 14px auto 0;
    width: min(1180px, calc(100% - 24px));
    transition: box-shadow .3s ease, background .3s ease;
}

.navbar-glass.is-scrolled {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}

.navbar .nav-link {
    font-size: .93rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    padding: .45rem .85rem !important;
    border-radius: 10px;
    transition: color .2s ease, background .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--bs-emphasis-color);
    background: var(--surface-strong);
}

/* --- Butonlar ------------------------------------------------------------- */

.btn-glow {
    background: linear-gradient(100deg, var(--brand), var(--brand-3));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: .7rem 1.5rem;
    box-shadow: 0 8px 26px rgba(99, 102, 241, .38);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-glow:hover,
.btn-glow:focus {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 14px 36px rgba(99, 102, 241, .5);
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--hairline-strong);
    color: var(--bs-emphasis-color);
    font-weight: 600;
    border-radius: 12px;
    padding: .7rem 1.5rem;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--surface-strong);
    border-color: var(--brand);
    color: var(--bs-emphasis-color);
    transform: translateY(-2px);
}

/* --- Etiketler ------------------------------------------------------------ */

.tag {
    display: inline-flex;
    align-items: center;
    font-size: .78rem;
    font-weight: 500;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--hairline);
    color: var(--bs-body-color);
    white-space: nowrap;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.tag:hover {
    border-color: var(--brand);
    color: var(--bs-emphasis-color);
    transform: translateY(-2px);
}

.tag-accent {
    background: rgba(99, 102, 241, .12);
    border-color: rgba(99, 102, 241, .3);
    color: #a5b4fc;
}

[data-bs-theme="light"] .tag-accent {
    color: #4f46e5;
}

/* --- Hero ----------------------------------------------------------------- */

/* Dikey ortalama yerine acik ust bosluk: icerik (kod penceresi) yuksek
   oldugunda flex ortalama tasmayi yukari itiyor ve sticky navbar
   basligin uzerine biniyordu. */
.hero {
    padding-top: clamp(130px, 16vh, 190px);
    padding-bottom: clamp(60px, 9vh, 110px);
}

.hero-title {
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
}

/* Yazi animasyonu uzun rollerde iki satira tasiyor. Yer onceden ayrilmazsa
   her harfte hero'nun yuksekligi degisir ve sayfa zipplar. */
.typewriter-line {
    display: block;
    min-height: 2.2em;
}

.typewriter {
    color: var(--brand-2);
    font-weight: 600;
}

.typewriter::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: .95em;
    margin-left: 4px;
    background: var(--brand-2);
    vertical-align: text-bottom;
    animation: caret 1s steps(2) infinite;
}

@keyframes caret {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* --- Hero gorseli: kod penceresi ------------------------------------------ */

.code-stage {
    position: relative;
    max-width: 520px;
    margin-inline: auto;
    padding: 26px 18px;
}

.code-window {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(9, 11, 20, .82);
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(99, 102, 241, .12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-bs-theme="light"] .code-window {
    background: rgba(13, 18, 32, .95);
    box-shadow: 0 26px 60px rgba(15, 20, 40, .22);
}

.code-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.code-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex: none;
}

.code-dot-r { background: #ff5f57; }
.code-dot-y { background: #febc2e; }
.code-dot-g { background: #28c840; }

.code-file {
    margin-left: 6px;
    font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: .76rem;
    color: rgba(226, 232, 240, .55);
}

.code-body {
    margin: 0;
    padding: 18px 16px 22px;
    font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: clamp(.72rem, 1.15vw, .84rem);
    line-height: 1.85;
    color: #e2e8f0;
    overflow-x: auto;
}

.code-line {
    display: block;
    white-space: pre;
    opacity: 0;
    transform: translateX(-8px);
    animation: code-in .45s ease forwards;
}

/* Satirlar sirayla belirsin */
.code-line:nth-child(1)  { animation-delay: .15s; }
.code-line:nth-child(2)  { animation-delay: .30s; }
.code-line:nth-child(3)  { animation-delay: .45s; }
.code-line:nth-child(4)  { animation-delay: .60s; }
.code-line:nth-child(5)  { animation-delay: .75s; }
.code-line:nth-child(6)  { animation-delay: .90s; }
.code-line:nth-child(7)  { animation-delay: 1.05s; }
.code-line:nth-child(8)  { animation-delay: 1.20s; }
.code-line:nth-child(9)  { animation-delay: 1.35s; }
.code-line:nth-child(10) { animation-delay: 1.50s; }

@keyframes code-in {
    to { opacity: 1; transform: none; }
}

/* Son satirda yanip sonen imlec */
.code-caret {
    display: inline-block;
    width: 7px;
    height: 1.05em;
    background: var(--brand-2);
    vertical-align: text-bottom;
    opacity: 0;
    animation: code-in .45s ease 1.65s forwards, caret 1.05s steps(2) 1.65s infinite;
}

/* Sozdizimi renkleri */
.t-key { color: #c084fc; }
.t-fn  { color: #60a5fa; }
.t-cls { color: #fbbf24; }
.t-str { color: #34d399; }
.t-num { color: #f472b6; }
.t-com { color: rgba(226, 232, 240, .38); font-style: italic; }
.t-pun { color: rgba(226, 232, 240, .62); }

/* Pencere cevresinde suzulen teknoloji rozetleri */
.code-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .34rem .7rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    color: var(--bs-emphasis-color);
    background: var(--nav-bg);
    border: 1px solid var(--hairline-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    white-space: nowrap;
}

.code-chip-1 { top: 4px; right: 2px; animation: float-chip 7s ease-in-out infinite; }
.code-chip-2 { bottom: 46px; left: -4px; animation: float-chip 9s ease-in-out .8s infinite; }
.code-chip-3 { bottom: 0; right: 34px; animation: float-chip 8s ease-in-out 1.6s infinite; }

@keyframes float-chip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@media (max-width: 575.98px) {
    .code-chip-1, .code-chip-2, .code-chip-3 { display: none; }
    .code-stage { padding: 8px 0; }
}

/* Avatar: donen gradient cerceve */
.avatar-ring {
    position: relative;
    width: clamp(200px, 26vw, 290px);
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 0deg, var(--brand), var(--brand-2), var(--brand-3), var(--brand));
    animation: spin 9s linear infinite;
    box-shadow: 0 20px 60px rgba(99, 102, 241, .3);
}

.avatar-ring > * {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--bs-body-bg);
    animation: spin 9s linear infinite reverse;
}

.avatar-monogram {
    display: grid;
    place-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--bs-emphasis-color);
}

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

/* --- Kartlar -------------------------------------------------------------- */

.card-modern {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.card-modern:hover {
    transform: translateY(-6px);
    border-color: var(--hairline-strong);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}

[data-bs-theme="light"] .card-modern:hover {
    box-shadow: 0 18px 44px rgba(15, 20, 40, .1);
}

.card-media {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    display: block;
    background: var(--surface-strong);
}

.card-media-fallback {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, .18), rgba(34, 211, 238, .12));
    color: var(--bs-secondary-color);
    font-size: 2rem;
}

/* --- Yetenek cubuklari ---------------------------------------------------- */

.skill-track {
    height: 7px;
    border-radius: 999px;
    background: var(--surface-strong);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    width: 0;
    transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
}

/* --- Zaman cizelgesi ------------------------------------------------------ */

.timeline {
    position: relative;
    padding-left: 34px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 34px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .18);
}

.timeline-item.is-current::before {
    background: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .2);
}

/* --- Form ----------------------------------------------------------------- */

.form-control {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: .75rem 1rem;
    color: var(--bs-body-color);
}

.form-control:focus {
    background: var(--surface-strong);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .16);
    color: var(--bs-emphasis-color);
}

.form-control::placeholder {
    color: var(--bs-secondary-color);
    opacity: .7;
}

.form-label {
    font-size: .86rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    margin-bottom: .4rem;
}

/* Bot tuzagi: ekranda yok ama ekran okuyucudan da gizli */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* --- Scroll ile beliren ogeler -------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Yukari cik ----------------------------------------------------------- */

#toTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    color: var(--bs-emphasis-color);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
}

#toTop.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

/* --- Blog govdesi --------------------------------------------------------- */

.prose {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--bs-body-color);
}

.prose h2,
.prose h3 {
    margin-top: 2.2rem;
    margin-bottom: .9rem;
    color: var(--bs-emphasis-color);
}

.prose p {
    margin-bottom: 1.3rem;
}

.prose a {
    color: var(--brand-2);
}

.prose code {
    background: var(--surface-strong);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: .12em .42em;
    font-size: .9em;
    color: var(--bs-emphasis-color);
}

.prose pre {
    background: var(--surface-strong);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
}

.prose blockquote {
    border-left: 3px solid var(--brand);
    padding-left: 1.1rem;
    color: var(--bs-secondary-color);
    font-style: italic;
}

/* --- Yasal sayfalar (gizlilik politikalari) -------------------------------- */

/*
 * Blog yazisi havadar olsun diye tasarlandi; politika metni ise uzun,
 * madde madde ve referans icin taraniyor. Bu yuzden kendi olcegi var:
 * daha kucuk baslik, daha sik satir araligi, bolumler arasinda net ama
 * abartisiz bosluk.
 */

.legal {
    padding-top: clamp(112px, 14vh, 136px);
    padding-bottom: clamp(56px, 8vw, 88px);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--bs-secondary-color);
    text-decoration: none;
    margin-bottom: 1.75rem;
}

.legal-back:hover {
    color: var(--bs-emphasis-color);
}

.legal-head {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 2rem;
}

.legal-title {
    font-size: clamp(1.6rem, 3.2vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .75rem;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    font-size: .8rem;
    color: var(--bs-secondary-color);
}

.legal-summary {
    color: var(--bs-secondary-color);
    font-size: 1rem;
    line-height: 1.7;
    margin: 1rem 0 0;
}

/* Politika govdesi: .prose'un daraltilmis hali */
.prose-legal {
    font-size: 1rem;
    line-height: 1.7;
}

.prose-legal > :first-child {
    margin-top: 0;
}

.prose-legal h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2.25rem;
    margin-bottom: .65rem;
}

.prose-legal h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.6rem;
    margin-bottom: .5rem;
}

.prose-legal p {
    margin-bottom: .95rem;
}

.prose-legal ul,
.prose-legal ol {
    margin-bottom: .95rem;
    padding-left: 1.25rem;
}

.prose-legal li {
    margin-bottom: .3rem;
}

.prose-legal li::marker {
    color: var(--brand-2);
}

/* Markdown tablolari (izin listesi, ayar listesi gibi) */
.prose-legal table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1.1rem;
    font-size: .9rem;
    border-collapse: collapse;
}

.prose-legal th,
.prose-legal td {
    padding: .55rem .8rem;
    border: 1px solid var(--hairline);
    text-align: left;
    vertical-align: top;
}

.prose-legal thead th {
    background: var(--surface-strong);
    font-weight: 600;
    color: var(--bs-emphasis-color);
    white-space: nowrap;
}

.prose-legal td code {
    white-space: nowrap;
}

.legal-foot {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hairline);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    font-size: .8rem;
    color: var(--bs-secondary-color);
}

/* Iletisim kutusu: metnin sonunda duran kucuk kart */
.legal-contact {
    margin-top: 2.5rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    background: var(--surface);
}

.legal-contact h2 {
    font-size: .95rem;
    font-weight: 600;
    margin: 0 0 .35rem;
}

.legal-contact p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.65;
    color: var(--bs-secondary-color);
}

.legal-contact a {
    color: var(--brand-2);
}

/* --- Hareket azaltma tercihi ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .glow-a, .glow-b, .avatar-ring, .avatar-ring > *,
    .code-chip {
        animation: none;
    }

    /* Kod satirlari animasyonsuz da gorunur kalmali */
    .code-line, .code-caret {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .card-modern:hover,
    .btn-glow:hover,
    .btn-ghost:hover,
    .tag:hover {
        transform: none;
    }
}

/* --- Mobil ---------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: .75rem;
        padding-top: .75rem;
        border-top: 1px solid var(--hairline);
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero .d-flex {
        justify-content: center;
    }

    .timeline { padding-left: 28px; }
}
