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

:root {
    --primary-color: #6566f1;
    --secondary-color: #8b5cf6;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --sidebar-width: 420px;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, #04020a 0%, #0b0820 30%, #1a0f33 65%, #23133f 100%);
    overflow: hidden;
    position: relative;
}

/* ─── Layout ─── */
.layout {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ─── Sidebar (Sol Sabit Panel) ─── */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 4rem 3rem;
    overflow: hidden;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 2.5rem;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.name {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.description {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.description p + p {
    margin-top: 1rem;
}

/* ─── Dil değiştirici ─── */
.lang-switch {
    position: fixed;
    top: 1.5rem;
    right: 1.75rem;
    z-index: 10000;
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lang-thumb {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 14px rgba(101, 102, 241, 0.45);
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

.lang-switch[data-lang="en"] .lang-thumb {
    transform: translateX(100%);
}

.lang-btn {
    position: relative;
    z-index: 1;
    min-width: 44px;
    padding: 0.4rem 0.85rem;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-btn:hover,
.lang-btn[aria-pressed="true"] {
    color: var(--text-primary);
}

.lang-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ─── Sidebar Nav ─── */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.nav-line {
    display: block;
    height: 1px;
    width: 32px;
    background: var(--text-secondary);
    transition: width 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.nav-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-link:hover .nav-line,
.nav-link.active .nav-line {
    width: 56px;
    background: var(--text-primary);
}

.nav-link:hover .nav-label,
.nav-link.active .nav-label {
    color: var(--text-primary);
}

/* ─── Social Links ─── */
.social-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 0.5rem 0.5rem 0 0;
}

/* 3D (izometrik) karo: ::before üst yüz, ::after sağ yüz */
.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--brand);
    text-decoration: none;
    box-shadow: 10px 0 10px #000;
    transition: 0.3s;
}

.social-link::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 3px;
    width: 100%;
    height: 10%;
    background: rgba(255, 255, 255, 0.14);
    transform: skewX(-45deg);
    transition: 0.3s;
}

.social-link::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 64px;
    width: 10%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    transform: skewY(-45deg);
    transition: 0.3s;
}

.social-link:hover,
.social-link:focus-visible {
    background: var(--brand);
    color: #fff;
    transform: translate(-10%, 10%);
    box-shadow: 10px 0 35px #000;
    outline: none;
}

.social-link:hover::before,
.social-link:focus-visible::before {
    background: var(--brand-top);
}

.social-link:hover::after,
.social-link:focus-visible::after {
    background: var(--brand-side);
}

.social-link svg {
    width: 32px;
    height: 32px;
    transition: 0.3s;
}

/* Etiket sadece ekran okuyucular için */
.social-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.social-link.github {
    --brand: #6e5494;
    --brand-top: #8a70b3;
    --brand-side: #4f3b6d;
}

.social-link.linkedin {
    --brand: #007fb1;
    --brand-top: #76bcf1;
    --brand-side: #4489be;
}

.social-link.twitter {
    --brand: #00aced;
    --brand-top: #0db3f0;
    --brand-side: #128ab6;
}

/* ─── Main Content (Sağ Slider Alan) ─── */
.content {
    flex: 1;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.sections-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
    transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ─── Section ─── */
.section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem 3rem 3rem;
    overflow: hidden;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.section-title.has-headline {
    margin-bottom: 0.75rem;
}

.section-headline {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
}

.section-headline .accent {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-summary {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

/* ─── Experience ─── */
.experience-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.experience-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.experience-item.company-dominos {
    background: linear-gradient(135deg, #e31837 0%, #0067b8 100%);
    border: none;
}
.experience-item.company-dominos .company,
.experience-item.company-dominos .role,
.experience-item.company-dominos .period { color: rgba(255,255,255,0.95); }

.experience-item.company-getir {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}
.experience-item.company-getir .company,
.experience-item.company-getir .role,
.experience-item.company-getir .period { color: rgba(255,255,255,0.95); }

.experience-item.company-360saglik {
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    border: none;
}
.experience-item.company-360saglik .company,
.experience-item.company-360saglik .role,
.experience-item.company-360saglik .period { color: rgba(255,255,255,0.95); }

.experience-item.company-metglobal {
    background: linear-gradient(135deg, #ff7a00 0%, #ffb86b 100%);
    border: none;
}
.experience-item.company-metglobal .company,
.experience-item.company-metglobal .role,
.experience-item.company-metglobal .period { color: rgba(27,27,27,0.9); }

.company {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.role {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.period {
    font-size: 0.82rem;
    color: var(--text-secondary);
    opacity: 0.75;
}

/* ─── Projects ─── */
.project-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.project-link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-link-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.project-link-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.project-link-url {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.2px;
    font-family: ui-monospace, 'Courier New', monospace;
}

.project-link-url.is-muted {
    opacity: 0.6;
}

.project-link-box.is-disabled {
    opacity: 0.5;
    cursor: default;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.project-link-box.is-disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.project-link-box:not(.is-disabled):hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.project-link-box svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-link-box:not(.is-disabled):hover svg {
    opacity: 1;
    transform: translateX(3px);
}

/* ─── Skills: proje cycle göstergesi ─── */
.skills-project-cycle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    min-height: 2rem;
}

.cycle-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.cycle-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cycle-name.visible {
    opacity: 1;
}

/* ─── Skills / Tag Cloud ─── */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-start;
}

.tag {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    cursor: default;
}

.tag-lg { font-size: 1rem; padding: 0.55rem 1.1rem; color: var(--text-primary); }
.tag-md { font-size: 0.9rem; padding: 0.5rem 1rem; color: var(--text-primary); opacity: 0.9; }
.tag-sm { font-size: 0.8rem; padding: 0.4rem 0.8rem; }

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tag.is-active {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

/* ─── Hobbies ─── */
.hobbies-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hobby-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hobby-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.hobby-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.hobby-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Geçici olarak gizlenen bölümler / linkler */
.is-hidden {
    display: none !important;
}

/* ─── Mobile ─── */
@media (max-width: 900px) {
    body {
        overflow: auto;
    }

    .lang-switch {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }

    .layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 4.5rem 1.5rem 1.5rem;
    }

    .sidebar-inner {
        gap: 1.5rem;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        flex: none;
    }

    .nav-link {
        padding: 0.4rem 0.9rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        gap: 0;
    }

    .nav-line {
        display: none;
    }

    .nav-label {
        font-size: 0.75rem;
    }

    .nav-link.active {
        background: rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.4);
    }

    .nav-link.active .nav-label {
        color: var(--text-primary);
    }

    .content {
        height: auto;
        overflow: visible;
        position: static;
    }

    .sections-track {
        position: static;
        transform: none !important;
        transition: none;
    }

    .section {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 2rem 1.5rem;
    }

    .experience-list,
    .project-links {
        grid-template-columns: 1fr;
    }

    .name {
        font-size: 2.2rem;
    }
}
