:root {
    --bg: #0b1220;
    --panel: rgba(255,255,255,0.06);
    --panel2: rgba(255,255,255,0.10);
    --border: rgba(255,255,255,0.12);
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.65);
    --accent: #7c3aed; /* mor */
    --accent2: #22c55e; /* yeşil */
    
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1; /* içerik alanı büyür */
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  /* daha yumuşak, daha az banding */
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(124,58,237,0.14), transparent 70%),
    radial-gradient(900px 500px at 90% 20%, rgba(34,197,94,0.10), transparent 70%),
    radial-gradient(900px 700px at 60% 90%, rgba(59,130,246,0.09), transparent 70%);
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
}

.card {
    background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.03));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 20px;
    backdrop-filter: blur(12px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
    color: var(--muted);
    font-size: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.08);
    color: var(--text);
    cursor: pointer;
}

    .btn:hover {
        background: rgba(255,255,255,0.12);
    }

.btn-primary {
    border-color: rgba(124,58,237,0.6);
    background: linear-gradient(180deg, rgba(124,58,237,0.95), rgba(124,58,237,0.55));
}

    .btn-primary:hover {
        background: linear-gradient(180deg, rgba(124,58,237,1), rgba(124,58,237,0.65));
    }

.btn-ghost {
    background: transparent;
}

    .btn-ghost:hover {
        background: rgba(255,255,255,0.06);
    }

input, textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.25);
    color: var(--text);
    outline: none;
}

    input:focus, textarea:focus {
        border-color: rgba(124,58,237,0.65);
        box-shadow: 0 0 0 4px rgba(124,58,237,0.18);
    }

label {
    color: var(--muted);
    font-size: 13px;
}

hr.sep {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* Navbar */
.navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(11,18,32,0.55);
    border-bottom: 1px solid var(--border);
}

.navbar {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

    .brand .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--accent), #60a5fa);
        box-shadow: 0 0 0 4px rgba(124,58,237,0.18);
    }

.navlinks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

    .navlinks a {
        padding: 8px 10px;
        border-radius: 12px;
        color: var(--muted);
    }

        .navlinks a:hover {
            color: var(--text);
            background: rgba(255,255,255,0.06);
        }

footer {
    border-top: none !important;
    box-shadow: none !important;
}

    footer hr {
        display: none !important;
    }


/* Layout helpers */
.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

@media (max-width: 920px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* small text */
.muted {
    color: var(--muted);
}

.h1 {
    font-size: 44px;
    line-height: 1.1;
    margin: 0;
}

.h2 {
    font-size: 23px;
    margin: 0;
}

.p {
    color: var(--muted);
    line-height: 1.6;
    text-align: justify;
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.65;
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
}

    .topnav a {
        text-decoration: none;
        color: #111;
        margin-right: 12px;
    }

        .topnav a:hover {
            text-decoration: underline;
        }

.brand a {
    font-weight: 700;
    font-size: 18px;
}

.links {
    flex: 1;
    display: flex;
    justify-content: center;
}

.adminlink {
    display: flex;
    justify-content: flex-end;
}

.footer {
    margin-top: 40px;
    border-top: 1px solid #e5e5e5;
    padding: 16px 0;
    color: #666;
}

/* responsive grid */
@media (max-width: 1020px) {
    div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 650px) {
    div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

small {
    display: block;
    margin-top: 6px;
}

/* Admin table */
.table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.20);
}

    .table th, .table td {
        padding: 12px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.10);
        vertical-align: top;
    }

    .table th {
        text-align: left;
        color: rgba(255,255,255,0.85);
        font-weight: 700;
        background: rgba(255,255,255,0.06);
    }

    .table tr:hover td {
        background: rgba(255,255,255,0.04);
    }

    .table .mutedcell {
        color: var(--muted);
        font-size: 13px;
    }

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 920px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi {
    padding: 18px;
}

    .kpi .num {
        font-size: 28px;
        font-weight: 800;
        margin-top: 8px;
    }

    .kpi .label {
        color: var(--muted);
        margin-top: 6px;
    }


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 920px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.field {
    display: grid;
    gap: 6px;
}

    .field .hint {
        color: var(--muted);
        font-size: 12px;
        line-height: 1.4;
    }

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
}

.alert-success {
    border-color: rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.08);
}

.alert-danger {
    border-color: rgba(231,76,60,0.35);
    background: rgba(231,76,60,0.08);
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* Home featured grid responsive */
@media (max-width: 1020px) {
    div [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 650px) {
    div [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}

.project-image-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

@media (max-width: 1020px) {
    .project-image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .project-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   PROJECT DETAIL (LEFT/RIGHT)
   ========================= */

.detail-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
    align-items: start;
}

/* Grid children shrink fix */
.detail-left,
.detail-right {
    min-width: 0;
}

/* Right panel */
.detail-right {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    border-radius: 18px;
    padding: 16px;
    overflow: hidden; /* taşma engeli */
    width: 100%;
    max-width: 560px;
    margin-left: -40px; /* yazıya doğru kaydır */
}

@media (max-width: 980px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-right {
        max-width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
}

/* =========================
   INLINE GALLERY (THUMBS)
   ========================= */

/* wrapper: oklar overlay */
.thumb-row {
    position: relative;
    width: 100%;
    margin-top: 12px;
}

/* viewport scrollable, scrollbar hidden */
.thumb-viewport {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 56px; /* oklar için boşluk */
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    max-width: 100%;
    scrollbar-width: none; /* firefox */
}

    .thumb-viewport::-webkit-scrollbar {
        display: none;
    }

/* thumbnail button */
.thumb {
    flex: 0 0 auto;
    width: 150px;
    height: 104px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    padding: 6px;
    cursor: pointer;
}

    .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        display: block;
    }

/* overlay arrows */
.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
}

    .thumb-nav.left {
        left: 10px;
    }

    .thumb-nav.right {
        right: 10px;
    }

@media (max-width: 650px) {
    .thumb {
        width: 140px;
        height: 92px;
    }

    .thumb-viewport {
        padding: 8px 52px;
    }
}

/* Lightbox açıkken arka plan scroll olmasın */
body.lb-lock {
    overflow: hidden;
}

/* Lightbox overlay zaten backdrop + blur içeriyor.
   Arka plan tıklanmaz çünkü overlay tüm ekranı kaplıyor. */

/* =========================
   LIGHTBOX (FULL SCREEN)
   ========================= */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  isolation: isolate;
  display: none;
  padding: 18px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
}
.lightbox.open{ display:flex; align-items:center; justify-content:center; }

/* content wrapper: center */
.lb-content {
    height: calc(100vh - 36px);
    width: min(980px, calc(100% - 60px));
    margin: 0 auto;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 12px;
    position: relative;
}

/* stage */
.lb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

    .lb-stage img {
        max-width: 100%;
        max-height: 70vh; /* büyüğü biraz küçülttük */
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,0.12);
        background: rgba(255,255,255,0.06);
        object-fit: contain;
    }

/* close */
.lb-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    color: white;
    cursor: pointer;
    font-size: 18px;
}

/* nav arrows center */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    color: white;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    display: grid;
    place-items: center;
}

.lb-prev {
    left: -12px;
}

.lb-next {
    right: -12px;
}

/* bottom thumbs strip */
.lb-strip {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    padding: 8px;
    overflow: hidden; /* dış scroll görünmesin */
}

.lb-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

    .lb-thumbs::-webkit-scrollbar {
        display: none;
    }

.lb-thumb {
    flex: 0 0 auto;
    border-radius: 11px;
    border: 2px solid rgba(255,255,255,0.12);
    background: transparent;
    padding: 6px;
    cursor: pointer;
    opacity: 0.75;
}

    .lb-thumb.active {
        opacity: 1;
        border-color: rgba(124,58,237,0.65);
        box-shadow: 0 0 0 4px rgba(124,58,237,0.18);
    }

    .lb-thumb img {
        width: 74px;
        height: 60px;
        object-fit: cover;
        border-radius: 10px;
        display: block;
    }






    /* error sayfası*/

/* ===== Error FX ===== */
.fx-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 18px;
}

.fx-triangle {
    width: 120px;
    height: 120px;
    position: relative;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
    animation: fxPulse 2.2s ease-in-out infinite;
}

    .fx-triangle::before {
        content: "";
        position: absolute;
        inset: 0;
        clip-path: polygon(50% 6%, 96% 92%, 4% 92%);
        background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 18px;
        backdrop-filter: blur(10px);
    }

.fx-mark {
    position: relative;
    font-weight: 800;
    font-size: 46px;
    color: rgba(255,255,255,.92);
    transform: translateY(6px);
    text-shadow: 0 8px 18px rgba(0,0,0,.35);
    animation: fxWobble 1.8s ease-in-out infinite;
}

.fx-scan {
    position: absolute;
    width: 90px;
    height: 10px;
    clip-path: polygon(50% 0%, 96% 100%, 4% 100%);
    top: 18px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    opacity: .8;
    animation: fxScan 1.6s ease-in-out infinite;
}

.fx-glow {
    position: absolute;
    inset: -8px;
    clip-path: polygon(50% 6%, 96% 92%, 4% 92%);
    background: radial-gradient(circle at 50% 65%, rgba(160,120,255,.28), transparent 60%);
    opacity: .85;
    animation: fxGlow 2.2s ease-in-out infinite;
}

@keyframes fxPulse {
    0%,100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.02);
    }
}

@keyframes fxWobble {
    0%,100% {
        transform: translateY(6px) rotate(0deg);
    }

    50% {
        transform: translateY(6px) rotate(-3deg);
    }
}

@keyframes fxScan {
    0% {
        transform: translateY(0);
        opacity: .0;
    }

    40% {
        opacity: .8;
    }

    100% {
        transform: translateY(74px);
        opacity: .0;
    }
}

@keyframes fxGlow {
    0%,100% {
        opacity: .55;
    }

    50% {
        opacity: .95;
    }
}

/* kullanıcı “reduced motion” istiyorsa animasyonu kapat */
@media (prefers-reduced-motion: reduce) {
    .fx-triangle, .fx-mark, .fx-scan, .fx-glow {
        animation: none !important;
    }
}

/* error*/


/* ===== 404 FX ===== */
/* kart içindeki hizaları toparla */
.status-card {
    text-align: center;
    padding-top: 26px;
    padding-bottom: 26px;
}

.status-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 404: Route Not Found (düzenli layout) ===== */
.nf2 {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    width: min(760px, 100%);
}

/* SOL: Console */
.nf2-console {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    align-self: stretch;
}

    .nf2-console .row {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 10px 12px;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,.10);
        background: rgba(0,0,0,.18);
        color: rgba(255,255,255,.78);
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 12px;
        opacity: 0;
        transform: translateY(6px);
        animation: rowIn .45s ease forwards;
    }

        .nf2-console .row .t {
            font-weight: 800;
            opacity: .9;
        }

        .nf2-console .row .p {
            opacity: .9;
            white-space: nowrap;
            max-width: 140px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .nf2-console .r1 {
        animation-delay: .15s;
    }

    .nf2-console .r2 {
        animation-delay: .55s;
    }

    .nf2-console .r3 {
        animation-delay: .95s;
    }

    .nf2-console .err {
        border-color: rgba(255,255,255,.18);
        background: rgba(0,0,0,.28);
        color: rgba(255,255,255,.92);
        box-shadow: 0 10px 22px rgba(0,0,0,.25);
        animation: rowIn .45s ease forwards, errPulse 2s ease-in-out infinite;
    }

/* SAĞ: Panel */
.nf2-panel {
    height: 170px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

    /* ambient glow */
    .nf2-panel::before {
        content: "";
        position: absolute;
        inset: -80px;
        background: radial-gradient(circle at 30% 30%, rgba(160,120,255,.22), transparent 55%), radial-gradient(circle at 70% 70%, rgba(90,220,255,.12), transparent 55%);
        opacity: .9;
    }

    /* subtle scanlines */
    .nf2-panel::after {
        content: "";
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( to bottom, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 1px, transparent 2px, transparent 6px );
        opacity: .08;
        pointer-events: none;
    }

/* broken link */
.nf2-link {
    position: absolute;
    left: 24px;
    top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chain {
    width: 96px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.18);
    position: relative;
}

    .chain::before {
        content: "";
        position: absolute;
        inset: 5px 8px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,.14);
        opacity: .85;
    }

    .chain.left {
        transform-origin: right center;
        animation: chainJitter 2.2s ease-in-out infinite;
    }

    .chain.right {
        transform-origin: left center;
        animation: chainJitter2 2.2s ease-in-out infinite;
    }

.break {
    width: 18px;
    height: 18px;
    border-radius: 8px;
    border: 1px dashed rgba(255,255,255,.22);
    background: rgba(0,0,0,.25);
    position: relative;
    animation: breakPulse 1.4s ease-in-out infinite;
}

    .break::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 28px;
        height: 2px;
        background: rgba(255,255,255,.28);
        transform: translate(-50%,-50%) rotate(-18deg);
        opacity: .55;
    }

/* scan radar */
.nf2-scan {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.18);
    overflow: hidden;
}

.ring {
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    opacity: .55;
}

.rr2 {
    inset: 26px;
    opacity: .40;
}

.rr3 {
    inset: 42px;
    opacity: .28;
}

.dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    transform: translate(-50%,-50%);
    box-shadow: 0 0 18px rgba(255,255,255,.35);
}

.beam {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 58px;
    transform-origin: bottom center;
    background: linear-gradient(to top, rgba(255,255,255,.0), rgba(255,255,255,.38));
    transform: translateX(-50%) translateY(-58px) rotate(0deg);
    animation: sweep 1.6s linear infinite;
}

/* glitch 404 */
.nf2-glitch {
    position: absolute;
    left: 24px;
    bottom: 22px;
    font-weight: 900;
    font-size: 56px;
    letter-spacing: 2px;
    color: rgba(255,255,255,.92);
    text-shadow: 0 18px 30px rgba(0,0,0,.45);
    line-height: 1;
}

    .nf2-glitch span {
        position: absolute;
        left: 0;
        top: 0;
    }

        .nf2-glitch span:nth-child(1) {
            position: relative;
        }

        .nf2-glitch span:nth-child(2) {
            color: rgba(160,120,255,.65);
            transform: translate(2px, -1px);
            clip-path: inset(0 0 55% 0);
            opacity: .0;
            animation: glitchA 2.6s infinite;
        }

        .nf2-glitch span:nth-child(3) {
            color: rgba(90,220,255,.55);
            transform: translate(-2px, 1px);
            clip-path: inset(55% 0 0 0);
            opacity: .0;
            animation: glitchB 2.2s infinite;
        }

.nf2-sub {
    position: absolute;
    left: 24px;
    bottom: 16px;
    transform: translateY(58px);
    font-size: 12px;
    letter-spacing: 2.6px;
    color: rgba(255,255,255,.70);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.18);
}

/* animations */
@keyframes sweep {
    from {
        transform: translateX(-50%) translateY(-58px) rotate(0deg);
    }

    to {
        transform: translateX(-50%) translateY(-58px) rotate(360deg);
    }
}

@keyframes breakPulse {
    0%,100% {
        opacity: .60;
    }

    50% {
        opacity: 1;
    }
}

@keyframes chainJitter {
    0%,100% {
        transform: rotate(0deg) translateX(0);
    }

    50% {
        transform: rotate(-2.2deg) translateX(-2px);
    }
}

@keyframes chainJitter2 {
    0%,100% {
        transform: rotate(0deg) translateX(0);
    }

    50% {
        transform: rotate(2.2deg) translateX(2px);
    }
}

@keyframes glitchA {
    0%, 92%, 100% {
        opacity: 0;
    }

    93% {
        opacity: .85;
    }

    94% {
        opacity: 0;
    }

    96% {
        opacity: .75;
    }

    97% {
        opacity: 0;
    }
}

@keyframes glitchB {
    0%, 88%, 100% {
        opacity: 0;
    }

    89% {
        opacity: .75;
    }

    90% {
        opacity: 0;
    }

    91% {
        opacity: .65;
    }

    92% {
        opacity: 0;
    }
}

@keyframes rowIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes errPulse {
    0%,100% {
        box-shadow: 0 0 0 rgba(255,255,255,.0);
    }

    50% {
        box-shadow: 0 0 18px rgba(160,120,255,.45);
    }
}

/* responsive: mobilde alt alta */
@media (max-width: 780px) {
    .nf2 {
        grid-template-columns: 1fr;
    }

    .nf2-console {
        order: 2;
        margin-top: 12px;
    }

        .nf2-console .row .p {
            max-width: 220px;
        }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .chain.left, .chain.right, .break, .beam, .nf2-glitch span,
    .nf2-console .row, .nf2-console .err {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


.nf2-spinner {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.18);
    border-top-color: rgba(255,255,255,.70);
    display: inline-block;
    vertical-align: -2px;
    margin-right: 8px;
    animation: spin .9s linear infinite;
}

.nf2-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
}

    .nf2-dots i {
        width: 4px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255,255,255,.70);
        opacity: .25;
        transform: translateY(0);
        animation: dotBounce 1.05s ease-in-out infinite;
    }

        .nf2-dots i:nth-child(2) {
            animation-delay: .15s;
        }

        .nf2-dots i:nth-child(3) {
            animation-delay: .30s;
        }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dotBounce {
    0%, 100% {
        opacity: .25;
        transform: translateY(0);
    }

    50% {
        opacity: .95;
        transform: translateY(-3px);
    }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nf2-spinner, .nf2-dots i {
        animation: none !important;
    }
}
/* 404 error page*/


/* ===== Modern Footer ===== */

.site-footer {
    margin-top: auto;
    padding: 26px 0 34px;
    position: relative;
    z-index: 0; /* footer hep düşük katmanda */
    isolation: isolate; /* pseudo-elementler dışarı taşmasın (kritik) */
}

    /* üstten ayıran çizgi */
    .site-footer::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 1px;
      
        opacity: .9;
        z-index: 0; /* çizgi arkada */
    }

    /* footer band arka gradient */
    .site-footer::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(255,255,255,0.03), rgba(255,255,255,0.01), rgba(0,0,0,0.00) );
        pointer-events: none;
        z-index: 0; /* gradient arkada */
    }

/* içerik container */
.footer-inner {
    max-width: 1100px;
    margin:  auto;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 1.1fr .8fr 1.1fr;
    gap: 22px;
    position: relative;
    z-index: 0; /* içerik, pseudo-elementlerin üstünde */
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* brand */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: .3px;
}

    

    .footer-logo .name {
        color: rgba(255,255,255,0.92);
        font-size: 16px;
    }

.footer-desc {
    margin: 0;
    color: rgba(255,255,255,0.70);
    line-height: 1.55;
    max-width: 4220px;
}

.footer-mini {
    margin: 0;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}

/* titles */
.footer-title {
    font-weight: 800;
    color: rgba(255,255,255,0.84);
    margin-bottom: 2px;
}

/* links: more footer-like, less button */
.footer-links a {
    color: rgba(255,255,255,0.70);
    text-decoration: none;
    width: fit-content;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

    .footer-links a:hover {
        color: rgba(255,255,255,0.92);
        border-bottom-color: rgba(255,255,255,0.18);
    }

/* mail chip: light glass but not a big box */
.footer-mail {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(8px);
}

    .footer-mail:hover {
        color: rgba(255,255,255,0.92);
        border-color: rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.05);
    }

/* social: compact pills */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.80);
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

    .social-btn svg {
        width: 18px;
        height: 18px;
        opacity: .9;
    }

    .social-btn span {
        font-weight: 700;
        font-size: 13px;
    }

    .social-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.06);
        color: rgba(255,255,255,0.92);
    }

/* responsive */
@media (max-width: 820px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* HERO layout fix */
.hero-head {
    display: grid;
    grid-template-columns: 1fr 210px; /* sağ kolonda resim */
    gap: 16px;
    align-items: start;
    margin-top: 10px;
}

/* Kritik: metin alanı grid/flex taşmalarını engeller */
.hero-left {
    min-width: 0;
}

.hero-summary {
    margin-top: 14px;
    overflow-wrap: anywhere; /* uzun kelime/link varsa taşmasın */
}

/* Fotoğraf kutusu */
.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    justify-self: end; /* sağa yasla */
}

/* Görsel */
.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Buton grupları */
.hero-actions,
.hero-links {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mobil uyum */
@media (max-width: 900px) {
    .hero-head {
        grid-template-columns: 1fr; /* alt alta */
    }

    .hero-photo {
        width: 100%;
        height: 320px; /* mobilde daha iyi görünür */
        justify-self: start;
    }
}

