/* --- Variables & Reset --- */
:root {
    --bg-header: #000000;
    --bg-panel: #ffffff;
    --bg-body: #0a0a0a;
    --text-white: #ffffff;
    --text-dark: #111111;
    --text-muted: #555555;
    --accent: #ef4444;
    --purple: #ef4444;
    --purple-light: rgba(204, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1000px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

/* --- Header / Navigation --- */
.header {
    color: var(--text-white);
    padding: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* İsim alanı: siyah, beyaz yazı */
.header-title {
    background: #0a0a0a;
    padding: 22px 36px 14px;
    padding-right: 180px;
    position: relative;
    text-align: left;
}

.header-title::after {
    display: none;
}

.header h1::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: #cc0000;
    border-radius: 2px;
    margin: 8px 0 0;
    opacity: 0.8;
}

/* Header sağ taraf: dil toggle + CV butonu */
.header-actions {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Dil Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}

.lang-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #555;
    transition: color 0.3s;
    white-space: nowrap;
    width: 44px;
}

.lang-label:first-child {
    text-align: right;
}

.lang-label:last-child {
    text-align: left;
}

/* Aktif taraftaki etiket parlasın */
.lang-toggle:not(.lang-en) .lang-label:first-child,
.lang-toggle.lang-en .lang-label:last-child {
    color: #ffffff;
}

.lang-track {
    width: 34px;
    height: 18px;
    background: #1a0000;
    border: 1px solid rgba(200, 0, 0, 0.6);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 10px rgba(180, 0, 0, 0.5), inset 0 0 6px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.lang-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #cc0000;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(220, 0, 0, 0.8), 0 0 16px rgba(200, 0, 0, 0.4);
}

.lang-toggle.lang-en .lang-knob {
    transform: translateX(16px);
}

/* CV Butonu (Header) */
.cv-btn-header {
    display: inline-block;
    padding: 7px 16px;
    background: linear-gradient(135deg, #1a0000 0%, #0d0d0d 100%);
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    border: 1px solid rgba(204, 0, 0, 0.4);
    box-shadow: 0 0 14px rgba(204, 0, 0, 0.2), inset 0 0 16px rgba(204, 0, 0, 0.04);
    transition: var(--transition);
    white-space: nowrap;
}

.cv-btn-header:hover {
    background: linear-gradient(135deg, #3d0a0a 0%, #1a0000 100%);
    border-color: #cc0000;
    box-shadow: 0 0 24px rgba(204, 0, 0, 0.4), inset 0 0 24px rgba(204, 0, 0, 0.08);
    transform: translateY(-2px);
}

.header h1 {
    font-size: clamp(1rem, 3.5vw, 2.1rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.5vw, 3px);
    color: #f0eef8;
}

/* Nav çubuğu: koyu gri, kırmızı efekt */
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 10px 20px;
    margin-top: 0;
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(204, 0, 0, 0.2), inset 0 0 40px rgba(204, 0, 0, 0.04);
    position: relative;
}

/* CV Butonu - nav barın en sağında absolute konumlandırıldı, böylece linkler ortada kalır */
.nav-cv-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 16px;
    border: 1px solid rgba(204, 0, 0, 0.5);
    border-radius: 3px;
    color: #cc0000;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-cv-btn:hover {
    background: rgba(204, 0, 0, 0.12);
    border-color: #cc0000;
    color: #ffffff;
}


.nav-menu::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #cc0000, transparent);
    opacity: 0.6;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 3px 0;
    position: relative;
    cursor: pointer;
    color: #aaaaaa;
    opacity: 0.8;
}

.nav-link.nav-about-link {
    font-size: 0.88rem;
    color: #e0e0e0;
    /* Kırmızı değil, parlak gümüş/beyaz bir ton, diğerlerinden ayrışıyor */
    font-weight: 800;
    opacity: 1;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-link.nav-about-link:hover,
.nav-link.nav-about-link.active {
    color: #ffffff;
    /* Üzerine gelince veya aktifken tam parlak beyaz */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: #cc0000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #cc0000;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- Content Container --- */
.main-container {
    max-width: var(--container-width);
    margin: 40px auto;
    background: #0a0a0a;
    min-height: 60vh;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid #1c1c1c;
    padding: 24px;
    position: relative;
}

/* --- Panel Logic --- */
.panel {
    display: none;
}

.panel.active {
    display: block;
    background: #0a0a0a;
    border-radius: 8px;
    padding: 48px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.04);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Profile / Hakkımda --- */
.hero {
    text-align: center;
}

.profile-img-area {
    display: none;
}

.intro-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #999999;
}

.about-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    margin-bottom: 40px;
}

.about-btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.about-btn.primary-btn {
    background: #cc0000;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.about-btn.primary-btn:hover {
    background: #e60000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.5);
}

.about-btn.secondary-btn {
    background: transparent;
    color: #cc0000;
    border: 2px solid #cc0000;
}

.about-btn.secondary-btn:hover {
    background: rgba(204, 0, 0, 0.1);
    transform: translateY(-3px);
}

.cv-btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #1a0000 0%, #0d0d0d 100%);
    color: var(--text-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: var(--transition);
    border: 1px solid rgba(204, 0, 0, 0.4);
    box-shadow: 0 0 18px rgba(204, 0, 0, 0.2), inset 0 0 20px rgba(204, 0, 0, 0.04);
}

.cv-btn:hover {
    background: linear-gradient(135deg, #3d0a0a 0%, #1a0000 100%);
    border-color: #cc0000;
    box-shadow: 0 0 28px rgba(204, 0, 0, 0.45), inset 0 0 30px rgba(204, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* --- Section Titles --- */
.panel-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
    border-bottom: 4px solid #cc0000;
    display: inline-block;
    padding-bottom: 10px;
    color: #f0eef8;
}

/* --- Education --- */
.edu-list {
    border-left: 2px solid #cc0000;
    padding-left: 30px;
}

.edu-item {
    margin-bottom: 40px;
    position: relative;
}

.edu-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #cc0000;
    border-radius: 50%;
}

.edu-item h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #e8e0f8;
}

.edu-item .school {
    font-weight: 700;
    color: #a0a0a0;
}

.edu-item .date {
    font-style: italic;
    color: #666666;
}

/* --- Skills --- */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background-color: rgba(204, 0, 0, 0.08);
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #d0c8f0;
    border: 1px solid rgba(204, 0, 0, 0.3);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: rgba(204, 0, 0, 0.18);
    border-color: #cc0000;
    color: #ffffff;
}

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    border: 1px solid rgba(204, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.04);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}

.project-card:hover {
    border-color: #cc0000;
    background: rgba(204, 0, 0, 0.09);
    box-shadow: 0 5px 24px rgba(204, 0, 0, 0.18);
    transform: translateY(-3px);
}

.project-card:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(204, 0, 0, 0.12);
}

.project-card h3 {
    margin-bottom: 4px;
    color: #e8e0f8;
    font-size: 1.05rem;
}

.project-card .tech {
    font-weight: 700;
    font-size: 0.78rem;
    color: #cc0000;
    letter-spacing: 0.5px;
}

.project-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.project-arrow {
    margin-top: 8px;
    font-size: 1.1rem;
    color: rgba(204, 0, 0, 0.5);
    transition: var(--transition);
    align-self: flex-end;
}

.project-card:hover .project-arrow {
    color: #cc0000;
    transform: translateX(5px);
}

/* --- Contact --- */
.contact-area {
    text-align: center;
    color: #e8e0f8;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #1a0000 0%, #0d0d0d 100%);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 5px;
    border: 1px solid rgba(204, 0, 0, 0.4);
    box-shadow: 0 0 18px rgba(204, 0, 0, 0.2), inset 0 0 20px rgba(204, 0, 0, 0.04);
    transition: var(--transition);
}

.social-btn:hover {
    background: linear-gradient(135deg, #3d0a0a 0%, #1a0000 100%);
    border-color: #cc0000;
    box-shadow: 0 0 28px rgba(204, 0, 0, 0.45), inset 0 0 30px rgba(204, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .main-container {
        margin: 20px;
        padding: 30px;
    }
}

/* --- Project Detail Panel --- */
.project-detail-back {
    margin-bottom: 32px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(204, 0, 0, 0.35);
    color: #aaaaaa;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 9px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    color: #cc0000;
    border-color: #cc0000;
    background: rgba(204, 0, 0, 0.08);
    transform: translateX(-4px);
}

/* --- Detail Tabs --- */
.detail-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.detail-tab {
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #aaaaaa;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-tab:hover {
    color: #ffffff;
}

.detail-tab.active {
    color: #cc0000;
}

.detail-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #cc0000;
    box-shadow: 0 -2px 10px rgba(204, 0, 0, 0.5);
}

/* --- Tab Panes --- */
.detail-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.detail-pane.active {
    display: block;
}

/* Body Layout (Sol Metin, Sağ Görsel) */
.project-detail-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.project-detail-header {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-detail-tech {
    font-size: 0.78rem;
    font-weight: 700;
    color: #cc0000;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 14px;
    padding: 8px 16px;
    background: rgba(204, 0, 0, 0.08);
    border: 1px solid rgba(204, 0, 0, 0.25);
    border-radius: 4px;
    display: inline-block;
}

.project-detail-date {
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.65;
    letter-spacing: 0.5px;
    display: inline-block;
}

.project-detail-desc {
    font-size: 1.05rem;
    color: #a090c0;
    line-height: 1.9;
    border-left: 3px solid rgba(204, 0, 0, 0.4);
    padding-left: 24px;
    margin-bottom: 30px;
}

/* Proje Linkleri (GitHub & itch.io) */
.project-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.proj-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.github-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #333;
}

.github-btn:hover {
    background: #ffffff;
    color: #000000;
}

.itchio-btn {
    background: #fa5c5c;
    color: #ffffff;
    border: 1px solid #fa5c5c;
    box-shadow: 0 4px 15px rgba(250, 92, 92, 0.2);
}

.itchio-btn:hover {
    background: #ff7575;
    box-shadow: 0 4px 20px rgba(250, 92, 92, 0.4);
    transform: translateY(-2px);
}

/* Sağ Taraf Görsel Placeholder */
.project-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
    border: 1px dashed rgba(204, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

/* Galeri (Boş Durum) */
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.gallery-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.gallery-empty p {
    color: #aaaaaa;
    font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .header-title {
        padding: 16px 20px 12px;
        padding-right: 20px;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }

    .header-actions {
        position: static;
        transform: none;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav-menu {
        gap: 12px;
        padding: 8px 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-container {
        margin: 16px 12px;
        padding: 16px;
    }

    .project-detail-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-link {
        font-size: 0.72rem;
    }
}

/* --- Tema Toggle (Siyah/Beyaz) --- */
/* Dark temada knob: beyaz — kontrast için */
.theme-knob {
    background: #d0d0d0 !important;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5) !important;
}

/* Light temada knob: siyah */
body.theme-light .theme-knob {
    background: #111111 !important;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5) !important;
}

/* Tema toggle "Beyaz" aktifken knob sağa kayar */
.theme-toggle.is-light .lang-knob {
    transform: translateX(16px);
}

/* Tema toggle aktif label */
.theme-toggle:not(.is-light) .lang-label:first-child,
.theme-toggle.is-light .lang-label:last-child {
    color: #ffffff;
}

/* --- Light Theme Overrides --- */
body.theme-light {
    background-color: #f0f0f0;
}

body.theme-light .header-title {
    background: #ffffff;
}

body.theme-light .header h1 {
    color: #111111;
}

body.theme-light .nav-menu {
    background: #e2e2e2;
    box-shadow: 0 4px 14px rgba(204, 0, 0, 0.12);
}

body.theme-light .nav-link {
    color: #444444;
}

body.theme-light .nav-link:hover,
body.theme-light .nav-link.active {
    color: #cc0000;
}

body.theme-light .main-container {
    background: #f0f0f0;
    border-color: #d8d8d8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.theme-light .panel.active {
    background: #ffffff;
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.15);
}

body.theme-light .panel-title {
    color: #111111;
}

body.theme-light .intro-text {
    color: #444444;
}

body.theme-light .edu-item h3 {
    color: #111111;
}

body.theme-light .edu-item .school {
    color: #555555;
}

body.theme-light .edu-item .date {
    color: #777777;
}

body.theme-light .skill-tag {
    background-color: rgba(204, 0, 0, 0.06);
    border-color: rgba(204, 0, 0, 0.25);
    color: #333333;
}

body.theme-light .project-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(204, 0, 0, 0.2);
}

body.theme-light .project-card:hover {
    background: rgba(204, 0, 0, 0.06);
    box-shadow: 0 5px 20px rgba(204, 0, 0, 0.12);
}

body.theme-light .project-card h3 {
    color: #111111;
}

body.theme-light .project-date {
    color: #444444;
    opacity: 1;
}

body.theme-light .back-btn {
    color: #555555;
}

body.theme-light .project-detail-date {
    color: #444444;
    opacity: 1;
}

body.theme-light .project-detail-desc {
    color: #444444;
}

body.theme-light .contact-area {
    color: #111111;
}

body.theme-light .contact-area p {
    color: #444444;
}

body.theme-light .lang-label {
    color: #999999;
}

body.theme-light .lang-track {
    background: #eeeeee;
    box-shadow: 0 0 8px rgba(180, 0, 0, 0.2), inset 0 0 3px rgba(0, 0, 0, 0.08);
}

body.theme-light .lang-toggle:not(.lang-en) .lang-label:first-child,
body.theme-light .lang-toggle.lang-en .lang-label:last-child {
    color: #111111;
}

body.theme-light .theme-toggle:not(.is-light) .lang-label:first-child,
body.theme-light .theme-toggle.is-light .lang-label:last-child {
    color: #111111;
}

/* --- Background Codes --- */
.bg-codes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -10;
    overflow: hidden;
}

.bg-code {
    position: absolute;
    color: rgba(204, 0, 0, 0.15);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 2px;
    user-select: none;
    white-space: nowrap;
}

/* Tek Satır ve Altı Çizgili (Sol Üst & Sağ Alt) */
.bg-code.code-1,
.bg-code.code-4 {
    border-bottom: 2px solid rgba(204, 0, 0, 0.1);
    padding-bottom: 4px;
}

/* Tek Sütun ve Yanı Çizgili (Sağ Üst & Sol Alt) */
.bg-code.code-2,
.bg-code.code-3 {
    border-left: 2px solid rgba(204, 0, 0, 0.1);
    padding-left: 6px;
    text-align: center;
}

/* Konumlandırmalar */
.bg-code.code-1 {
    top: 5vh;
    left: 3vw;
    text-align: left;
}

.bg-code.code-2 {
    top: 15vh;
    right: 3vw;
}

.bg-code.code-3 {
    bottom: 15vh;
    left: 3vw;
}

.bg-code.code-4 {
    bottom: 5vh;
    right: 3vw;
    text-align: right;
}

body.theme-light .bg-code {
    color: rgba(204, 0, 0, 0.08);
}

body.theme-light .bg-code.code-1,
body.theme-light .bg-code.code-4 {
    border-bottom-color: rgba(204, 0, 0, 0.05);
}

body.theme-light .bg-code.code-2,
body.theme-light .bg-code.code-3 {
    border-left-color: rgba(204, 0, 0, 0.05);
}

/* --- Rich Content (Experiment W vb.) --- */
.rich-detail-desc {
    border-left: 3px solid rgba(204, 0, 0, 0.4);
    padding-left: 24px;
    margin-bottom: 30px;
}

.rich-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 24px;
    margin-bottom: 10px;
}

.rich-section-title:first-child {
    margin-top: 0;
}

.rich-paragraph {
    font-size: 1rem;
    color: #a090c0;
    line-height: 1.85;
    margin-bottom: 16px;
}

.rich-entry {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(204, 0, 0, 0.05);
    border-left: 2px solid rgba(204, 0, 0, 0.35);
    border-radius: 0 4px 4px 0;
}

.rich-entry-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #cc0000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rich-entry-text {
    font-size: 0.97rem;
    color: #a090c0;
    line-height: 1.75;
}

/* Light theme overrides for rich content */
body.theme-light .rich-section-title {
    color: #111111;
}

body.theme-light .rich-paragraph {
    color: #444444;
}

body.theme-light .rich-entry {
    background: rgba(204, 0, 0, 0.04);
}

body.theme-light .rich-entry-text {
    color: #444444;
}

/* --- Events Timeline --- */
.events-timeline {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    border-left: 2px solid rgba(204, 0, 0, 0.35);
    margin-top: 10px;
}

.event-item {
    position: relative;
    padding: 0 0 36px 32px;
}

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

.event-dot {
    position: absolute;
    left: -9px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: #cc0000;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.6);
}

.event-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

/* Proje kartı h3 ile aynı renk */
.event-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8e0f8;
}

/* Proje kartı .tech ile aynı renk */
.event-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: #cc0000;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Proje açıklama rengiyle uyumlu */
.event-role {
    font-size: 0.82rem;
    font-weight: 600;
    color: #a090c0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-game-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Proje kartı butonlarıyla aynı stil */
.event-game-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: rgba(204, 0, 0, 0.08);
    border: 1px solid rgba(204, 0, 0, 0.25);
    border-radius: 5px;
    color: #e8e0f8;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.event-game-btn:hover {
    background: rgba(204, 0, 0, 0.18);
    border-color: #cc0000;
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(204, 0, 0, 0.2);
}

/* Light theme */
body.theme-light .event-name {
    color: #111111;
}

body.theme-light .event-role {
    color: #555555;
}

body.theme-light .event-game-btn {
    color: #222222;
    background: rgba(204, 0, 0, 0.05);
    border-color: rgba(204, 0, 0, 0.2);
}

body.theme-light .event-game-btn:hover {
    color: #cc0000;
    background: rgba(204, 0, 0, 0.1);
}

/* --- Secret Red Dot --- */
.secret-red-dot {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 6px;
    height: 6px;
    background-color: #cc0000;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(204, 0, 0, 0.8);
    animation: pulseRed 2s infinite;
    z-index: 10;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(204, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0);
    }
}