/* Temel Ayarlar ve Değişkenler */
:root {
    --text-main: #ffffff;
    --text-muted: #b3c5df;
    --highlight: #00e5ff; /* Siber mavi */
    --accent-purple: #8a2be2;
    --accent-purple-soft: rgba(138, 43, 226, 0.16);
    /* Liquid Glass Değişkenleri */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

body[data-theme='light'] {
    --text-main: #0c1424;
    --text-muted: #3c4f6c;
    --highlight: #7a2cff;
    --glass-bg: rgba(255, 255, 255, 0.58);
    --glass-border: rgba(122, 44, 255, 0.14);
    --glass-shadow: 0 10px 30px rgba(27, 30, 48, 0.12);
    background-color: #f4f7fb;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: #050a14; /* Çok koyu lacivert arka plan */
    overflow-x: hidden;
    width: 100%;
    transition: background-color 0.28s ease, color 0.28s ease;
}

body[data-theme='light'] {
    background-color: #f4f7fb;
}

body[data-theme='light'] .hero-visual {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(235, 241, 252, 0.96));
    border: 1px solid rgba(122, 44, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 40px rgba(53, 68, 103, 0.12);
}

body[data-theme='light'] #runner-canvas {
    background: linear-gradient(180deg, rgba(246, 249, 255, 1), rgba(229, 236, 249, 1));
    border: 1px solid rgba(122, 44, 255, 0.08);
}

body[data-theme='light'] .runner-hud {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(122, 44, 255, 0.12);
    box-shadow: 0 10px 24px rgba(71, 83, 117, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body[data-theme='light'] .runner-score,
body[data-theme='light'] .runner-meta {
    color: #34435d;
}

body[data-theme='light'] .runner-btn {
    background: linear-gradient(145deg, rgba(122, 44, 255, 0.18), rgba(255, 255, 255, 0.94));
    color: #2b3550;
    border-color: rgba(122, 44, 255, 0.22);
    box-shadow: 0 5px 16px rgba(122, 44, 255, 0.12);
}

body[data-theme='light'] .runner-btn-ghost {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(122, 44, 255, 0.12);
}

/* Three.js Arka Planı Sabitleme */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: -5;
}

/* Cam Kırılmasını Sağlayan Renk Küreleri (Glow Orbs) */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite alternate ease-in-out;
}
.orb-1 { top: 10%; left: 15%; width: 300px; height: 300px; background: #00e5ff; } /* Mavi */
.orb-2 { bottom: 15%; right: 10%; width: 400px; height: 400px; background: #8a2be2; } /* Mor */
.orb-3 { top: 50%; left: 50%; width: 250px; height: 250px; background: #ff00ff; transform: translate(-50%, -50%); opacity: 0.3; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

/* İÇERİK YERLEŞİMİ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* NAVİGASYON */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    z-index: 200;
    padding: 20px 0;
}

.navbar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
}

.logo-container {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-image {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(6, 182, 212, 0.2)) drop-shadow(0 0 14px rgba(138, 43, 226, 0.22));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-link:hover .logo-image {
    height: 110px;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.8))
            drop-shadow(0 0 40px rgba(6, 182, 212, 0.5))
            drop-shadow(0 0 24px rgba(138, 43, 226, 0.45))
            drop-shadow(0 8px 16px rgba(6, 182, 212, 0.3));
    animation: logoGlow 0.6s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.8))
                drop-shadow(0 0 40px rgba(6, 182, 212, 0.5))
                drop-shadow(0 0 24px rgba(138, 43, 226, 0.45))
                drop-shadow(0 8px 16px rgba(6, 182, 212, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(6, 182, 212, 1))
                drop-shadow(0 0 60px rgba(6, 182, 212, 0.6))
                drop-shadow(0 0 36px rgba(138, 43, 226, 0.7))
                drop-shadow(0 8px 20px rgba(6, 182, 212, 0.4));
    }
}

@media (max-width: 768px) {
    .logo-container {
        top: 20px;
        left: 20px;
    }
    
    .logo-image {
        height: 80px;
    }
    
    .logo-link:hover .logo-image {
        height: 90px;
    }
}

/* BALON MENÜSÜ - YENİ TASARIM */
.navbar-menu {
    position: fixed;
    right: 24px;
    bottom: 110px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
    transform: scale(0.85);
    transform-origin: bottom right; /* Çapraz Tarayıcı Düzeltmesi */
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-menu.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Koyu tema balonları */
.navbar-menu .navbar-link {
    background: linear-gradient(135deg, rgba(25, 35, 60, 0.95), rgba(40, 55, 85, 0.92));
    color: #e8eef5;
    padding: 12px 20px;
    border-radius: 28px;
    border: 1px solid rgba(138, 43, 226, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Çapraz Tarayıcı Düzeltmesi (Safari) */
    -webkit-tap-highlight-color: transparent; /* Çapraz Tarayıcı Düzeltmesi */
    -webkit-appearance: none; /* Çapraz Tarayıcı Düzeltmesi */
}

.navbar-menu .navbar-link:hover,
.navbar-menu .navbar-link.active {
    background: linear-gradient(135deg, #00e5ff, #8a2be2);
    color: #ffffff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 229, 255, 0.4), 0 0 20px rgba(138, 43, 226, 0.3);
    border-color: rgba(0, 229, 255, 0.6);
}

/* Açık tema balonları */
body[data-theme='light'] .navbar-menu .navbar-link {
    background: linear-gradient(135deg, rgba(240, 245, 255, 0.96), rgba(230, 240, 255, 0.93));
    color: #0c1424;
    border: 1px solid rgba(122, 44, 255, 0.2);
    box-shadow: 0 8px 24px rgba(71, 83, 117, 0.18);
}

body[data-theme='light'] .navbar-menu .navbar-link:hover,
body[data-theme='light'] .navbar-menu .navbar-link.active {
    background: linear-gradient(135deg, #00e5ff, #8a2be2);
    color: #ffffff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 229, 255, 0.35), 0 0 20px rgba(138, 43, 226, 0.25);
    border-color: rgba(0, 229, 255, 0.5);
}

.navbar-link {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 22px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    margin-bottom: 10px;
}

.navbar-link:last-child {
    margin-bottom: 0;
}

.navbar-link:hover,
.navbar-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(138, 43, 226, 0.18));
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(138, 43, 226, 0.16), 0 8px 18px rgba(138, 43, 226, 0.1);
}

.navbar-link::after {
    display: none;
}

.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(138, 43, 226, 0.32);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(7, 14, 28, 0.94), rgba(18, 34, 64, 0.92));
    color: #ecfeff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    cursor: pointer;
    z-index: 240;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26), 0 0 24px rgba(138, 43, 226, 0.18);
}

.theme-toggle-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.theme-toggle-sun {
    display: none;
}

body[data-theme='light'] .theme-toggle {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 240, 255, 0.94));
    color: #1b2742;
    border-color: rgba(122, 44, 255, 0.28);
    box-shadow: 0 18px 36px rgba(71, 83, 117, 0.14), inset 0 0 0 1px rgba(122, 44, 255, 0.08);
}

body[data-theme='light'] .theme-toggle-sun {
    display: inline-block;
}

body[data-theme='light'] .theme-toggle-moon {
    display: none;
}

body[data-theme='light'] .navbar-toggle {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(71, 83, 117, 0.14), inset 0 0 0 1px rgba(122, 44, 255, 0.1);
}

body[data-theme='light'] .navbar-toggle::after {
    background: rgba(244, 247, 251, 0.96);
}

body[data-theme='light'] .navbar-toggle span {
    background: linear-gradient(90deg, rgba(122, 44, 255, 1), rgba(0, 171, 201, 0.95));
    box-shadow: 0 0 10px rgba(122, 44, 255, 0.2);
}

body[data-theme='light'] .navbar-toggle:hover {
    box-shadow: 0 24px 40px rgba(71, 83, 117, 0.18), inset 0 0 0 1px rgba(122, 44, 255, 0.14);
}

.navbar-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(10, 16, 30, 0.94);
    border: none;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(0, 229, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 130;
    -webkit-tap-highlight-color: transparent; /* Çapraz Tarayıcı Düzeltmesi */
    box-sizing: border-box; /* Çapraz Tarayıcı Düzeltmesi */
    line-height: 0; /* Çapraz Tarayıcı Düzeltmesi */
}

.navbar-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 180deg, #00e5ff, #8a2be2, #4b6cf7, #00e5ff);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), black calc(100% - 5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 6px), black calc(100% - 5px));
    pointer-events: none;
}

.navbar-toggle::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: rgba(10, 16, 30, 0.96);
    pointer-events: none;
}

.navbar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 229, 255, 0.16);
}

.navbar-toggle span {
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 1), rgba(138, 43, 226, 0.95));
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    display: block;
    margin: 4px 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

/* İlk section'a navbar padding ekle */
section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
}

#iletisim .container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding-left: 0;
    width: min(720px, 100%);
    max-width: 720px;
}

#iletisim .container > div {
    width: 100%;
}

#iletisim h2 { text-align: center; }
#iletisim p { text-align: left; }
#iletisim .section-title { text-align: center !important; }

.hero {
    padding-top: 100px;
}

.highlight { color: var(--highlight); text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
.section-title { 
    font-size: 3rem; 
    margin-bottom: 50px; 
    text-align: center !important;
    font-weight: 800;
    background: linear-gradient(135deg, #00e5ff, #8a2be2, #00e5ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    position: relative;
    padding-bottom: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00e5ff, #8a2be2, transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 40px rgba(138, 43, 226, 0.3);
}

/* === LIQUID GLASS (SIVI CAM) ANA SINIFI === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    /* Üstten vuran ışık simülasyonu */
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    /* Görsellerdeki gibi yumuşak köşeler */
    box-shadow: var(--glass-shadow), inset 0 0 20px rgba(255, 255, 255, 0.02);
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* İçe Çökük Cam Efekti (Kart içindeki kartlar için) */
.inner-panel {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
}

/* GİRİŞ (HERO) KISMI */
.hero {
    padding: 70px 0 30px;
    margin-top: 6vh;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 36px;
    align-items: center;
}

.hero-copy {
    padding: 20px 0;
}

.hero-kicker {
    margin: 0 0 18px;
    color: var(--highlight);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 4rem;
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.05;
    min-height: 1.2em;
}

.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; max-width: 34rem; }

.typing-cursor {
    display: inline-block;
    width: 10px;
    height: 1.05em;
    margin-left: 4px;
    background: var(--highlight);
    vertical-align: -0.12em;
    animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-scroll-note {
    margin-top: 34px;
    opacity: 0.5;
    font-size: 0.9rem;
}

.hero-scroll-note p {
    margin: 0;
}

.hero-visual {
    position: relative;
    min-height: 460px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(8, 21, 41, 1), rgba(5, 10, 22, 1));
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
    z-index: 2;
}

#hero-scene {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.runner-game {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 72px 16px 48px;
    gap: 10px;
}

.runner-hud {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(7, 14, 28, 0.72);
    border: 1px solid rgba(0, 229, 255, 0.14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 5;
    flex-wrap: wrap;
}

.runner-score {
    margin: 0;
    color: #dffcff;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.runner-meta {
    margin: 0;
    color: rgba(213, 247, 255, 0.84);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.runner-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 229, 255, 0.34);
    background: linear-gradient(145deg, rgba(0, 229, 255, 0.22), rgba(18, 34, 64, 0.92));
    color: #ecfeff;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 5px 16px rgba(0, 149, 201, 0.24);
}

.runner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 149, 201, 0.35);
}

.runner-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

#runner-canvas {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(8,21,41,1), rgba(5,10,22,1));
    border: 1px solid rgba(126, 243, 255, 0.06);
    display: block;
    touch-action: manipulation;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 14% 12% auto 12%;
    height: 60%;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.18), rgba(0, 229, 255, 0));
    filter: blur(18px);
    pointer-events: none;
}

/* CAM BUTONLAR (Görsellerdeki gibi) */
.hero-buttons { display: flex; gap: 20px; justify-content: center; }
.glass-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 600;
    color: white;
    cursor: pointer;
    border-radius: 50px;
    /* Hap şeklinde butonlar */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.glass-btn:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.05); }
.primary-btn {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(138, 43, 226, 0.2));
    border-color: rgba(0, 229, 255, 0.5);
}

/* HAKKIMDA VE YETENEKLER GRID YAPISI */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    max-width: 820px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-inline-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 18px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.about-inline-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 20px;
}

.skill-group {
    padding: 22px 18px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), var(--accent-purple-soft));
    backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.skill-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.38), rgba(138, 43, 226, 0.36), transparent);
}

.skill-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.26), rgba(138, 43, 226, 0.22), transparent);
}

.skill-group:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(138, 43, 226, 0.08));
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.1), 0 0 15px rgba(138, 43, 226, 0.06);
    transform: translateY(-3px);
}

.skill-title {
    color: #ffffff;
    margin-bottom: 13px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00e5ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 8px;
    padding-left: 0;
    transition: all 0.3s ease;
}

.skill-title::before {
    content: '';
    position: absolute;
    left: 0;
}

.skill-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.6), rgba(138, 43, 226, 0.5));
    border-radius: 1px;
}

/* CAM ETİKETLER (Glass Tags) */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.glass-tag {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(138, 43, 226, 0.16));
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.12), inset 0 0 18px rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    white-space: nowrap;
}

.glass-tag:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(0, 229, 255, 0.6);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(138, 43, 226, 0.22));
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.25), 0 0 20px rgba(138, 43, 226, 0.15);
}

.contact-copy {
    text-align: center;
    padding: 10px 0;
}

/* PROJELER BÖLÜMÜ */
.projects-section {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.project-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    flex: 1;
}

.project-badge {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(138, 43, 226, 0.15));
    color: var(--highlight);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.project-description {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-link {
    align-self: flex-start;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.projects-note {
    margin: 22px 0 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    opacity: 0.9;
}

/* SOSYAL MEDYA BAĞLANTILARI */
.contact-layout {
    display: grid;
    gap: 32px;
    max-width: 760px;
    margin: 0 auto;
}

.contact-description {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.9;
    margin: 0 auto;
    max-width: 680px;
}

.contact-cards {
    display: grid;
    gap: 18px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.34);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.14);
    color: var(--highlight);
    font-size: 1.3rem;
}

.contact-details {
    display: grid;
    gap: 4px;
}

.contact-handle {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.contact-note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-line {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        rgba(0, 229, 255, 0.35),
        rgba(0, 229, 255, 0.35) 4px,
        transparent 4px,
        transparent 8px
    );
}

.links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    justify-items: start;
    width: 100%;
}

.links li {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 0;
    transition: transform 0.3s ease;
    width: 100%;
}

.links li:hover {
    transform: translateX(2px);
}

.link-icon {
    width: 26px;
    height: 26px;
    fill: #00e5ff;
    opacity: 0.95;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35)) drop-shadow(0 0 10px rgba(138, 43, 226, 0.35));
}

.links li:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
    fill: #8a2be2;
}

.links a {
    color: transparent;
    text-decoration: none;
    border-bottom: 2px dashed color-mix(in oklab, var(--accent) 40%, var(--border));
    background-image: linear-gradient(90deg, #00e5ff, #8a2be2);
    -webkit-background-clip: text;
    background-clip: text;
    padding-bottom: 4px;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    transform: translateX(4px);
}

.links li:hover .link-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .hero-layout { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; }
    .hero-visual { min-height: 340px; }
    #runner-canvas { min-height: 250px; }
    .theme-toggle {
        top: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }
    
    /* Responsive Navbar */
    .navbar-menu {
        position: fixed;
        right: 18px;
        bottom: 90px;
        width: min(260px, calc(100vw - 40px));
        padding: 16px;
        border-radius: 32px;
        background: rgba(8, 14, 28, 0.96);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
        transform: scale(0.9);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    
    .navbar-menu.active {
        transform: scale(1);
    }
    
    .navbar-link {
        display: block;
        padding: 14px 18px;
        font-size: 1rem;
    }
    
    .navbar-link::after {
        display: none;
    }
    
    .navbar-link.active {
        background: rgba(0, 229, 255, 0.14);
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .social-link {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .tags {
        justify-content: center;
    }

    .skill-group {
        padding: 20px 16px;
    }

    .about-inline-meta span {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1100px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* FOOTER: Renkli, tema duyarlı */
.site-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: linear-gradient(90deg, rgba(138,43,226,0.06), rgba(0,229,255,0.04));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    /* Full-bleed: span viewport width */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
}

body[data-theme='light'] .site-footer {
    background: linear-gradient(90deg, rgba(138,43,226,0.08), rgba(0,229,255,0.05));
    color: #34435d;
    border-top-color: rgba(122,44,255,0.06);
}

/* Açık tema için navbar linklerinin aşırı beyazlığını azalt */
body[data-theme='light'] .navbar-link {
    color: var(--text-main);
    background: rgba(255,255,255,0.9);
}

body[data-theme='light'] .navbar-link:hover,
body[data-theme='light'] .navbar-link.active {
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(122,44,255,0.12), rgba(0,171,201,0.08));
    box-shadow: 0 8px 18px rgba(71,83,117,0.06);
}

/* Hero içindeki İletişim butonu (secondary) aydınlık temada daha yumuşak olsun */
.glass-btn.secondary-btn {
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
    border-color: rgba(122,44,255,0.06);
}

body[data-theme='light'] .glass-btn.secondary-btn {
    background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(244,247,251,0.96));
    color: #1b2742;
    border-color: rgba(122,44,255,0.08);
    box-shadow: 0 8px 18px rgba(71,83,117,0.06);
}
/* ========================================================
   AÇIK TEMA (LIGHT MODE) - TÜM EKRANLAR İÇİN KESİN ÇÖZÜM
======================================================== */

/* 1. Tüm Ekranlarda "Projeleri Gör" Butonu (Yazı netleşir) */
body[data-theme='light'] .primary-btn {
    color: #0c1424 !important; /* Yazı rengi koyu lacivert/siyah */
    font-weight: 800 !important;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(138, 43, 226, 0.25)) !important;
    border-color: rgba(138, 43, 226, 0.4) !important;
}

body[data-theme='light'] .primary-btn:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.4), rgba(138, 43, 226, 0.35)) !important;
}

/* 2. Tüm Ekranlarda Normal Menü Butonları (Sağdaki Balonlar) */
body[data-theme='light'] .navbar-link {
    color: #3c4f6c !important; /* Koyu gri/lacivert okunur yazı */
    background: rgba(255, 255, 255, 0.95) !important; /* Beyazımsı arka plan */
    border: 1px solid rgba(122, 44, 255, 0.2) !important;
}

/* 3. Tüm Ekranlarda Aktif (Bulunulan Sayfa) ve Hover Menü Butonları */
body[data-theme='light'] .navbar-link.active,
body[data-theme='light'] .navbar-link:hover {
    color: #0c1424 !important; /* Tam okunur koyu siyah/lacivert yazı */
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(138, 43, 226, 0.2)) !important;
    border-color: rgba(138, 43, 226, 0.5) !important;
    box-shadow: 0 4px 15px rgba(122, 44, 255, 0.15) !important;
}

/* 4. Sadece Mobildeki O Büyük Siyah Menü Kutusunu Beyazlatma */
@media (max-width: 768px) {
    body[data-theme='light'] .navbar-menu {
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(122, 44, 255, 0.2) !important;
        box-shadow: 0 24px 60px rgba(71, 83, 117, 0.25) !important;
    }
}
/* ========================================================
   MENÜ KUTUSUNU YOK ET & GERÇEK BALON GÖRÜNÜMÜ YAP
======================================================== */

/* 1. Ana Kutunun Arka Planını ve Çerçevesini Tamamen Sil */
.navbar-menu, 
body[data-theme='light'] .navbar-menu {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 12px !important; /* Balonlar arasındaki boşluk */
}

/* 2. KARANLIK TEMA: Her Bir Balonu (Linki) Şekillendir */
.navbar-menu .navbar-link {
    background: rgba(15, 23, 42, 0.85) !important; /* Yarı saydam cam */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 229, 255, 0.2) !important;
    border-radius: 50px !important; /* TAM YUVARLAK HAP/BALON GÖRÜNÜMÜ */
    padding: 12px 24px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    text-align: center !important;
    color: #b3c5df !important;
}

/* KARANLIK TEMA: Aktif veya Üzerine Gelinen Balon */
.navbar-menu .navbar-link:hover,
.navbar-menu .navbar-link.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(138, 43, 226, 0.25)) !important;
    border-color: rgba(0, 229, 255, 0.6) !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05) !important; /* Tıklayınca hafifçe büyür */
}

/* 3. AYDINLIK TEMA: Her Bir Balonu Şekillendir */
body[data-theme='light'] .navbar-menu .navbar-link {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(122, 44, 255, 0.2) !important;
    color: #3c4f6c !important;
    box-shadow: 0 8px 24px rgba(71, 83, 117, 0.15) !important;
}

/* AYDINLIK TEMA: Aktif veya Üzerine Gelinen Balon */
body[data-theme='light'] .navbar-menu .navbar-link:hover,
body[data-theme='light'] .navbar-menu .navbar-link.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(138, 43, 226, 0.15)) !important;
    border-color: rgba(138, 43, 226, 0.5) !important;
    color: #0c1424 !important;
}