/* ==========================================================================
   1. DEĞİŞKENLER VE TEMA AYARLARI
   ========================================================================== */
:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #121826;
  --bg-card: rgba(18, 24, 38, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f1f5f9;
  --text-muted: #b7c3d4;
  --accent-cyan: #00f2fe;
  --accent-ink: #8af4ff;
  --accent-blue: #4facfe;
  --accent-purple: #7f00ff;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7f00ff 100%);
  --btn-gradient: linear-gradient(135deg, #67e8f9 0%, #38bdf8 48%, #a5b4fc 100%);
  --title-gradient: linear-gradient(120deg, #b6fbff 0%, #7dd3fc 42%, #d8b4fe 100%);
  --on-accent: #06202a;
  --ok: #4ade80;
  --arch: #d4b4ff;
  --chip: rgba(255, 255, 255, 0.06);
  --header-bar: rgba(10, 13, 20, 0.92);
  --band: rgba(255, 255, 255, 0.03);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-color: rgba(0, 0, 0, 0.08);
  --text-main: #0f172a;
  --text-muted: #334155;
  --accent-ink: #0c6478;
  --title-gradient: linear-gradient(120deg, #0f6e84 0%, #1e40af 52%, #6d28d9 100%);
  --ok: #157a3a;
  --arch: #6d28d9;
  --chip: rgba(15, 23, 42, 0.06);
  --header-bar: rgba(255, 255, 255, 0.94);
  --band: rgba(15, 23, 42, 0.04);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Reset & Temel Stiller */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none; /* Metin kopyalamayı zorlaştırır */
  -webkit-user-select: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  position: relative;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

/* Özel İmleç (Masaüstü & Yüksek Z-Index) */
@media (min-width: 1025px) {
  body { cursor: none; }
  a, button, input, textarea, .interactive { cursor: none; }
  
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
  }

  .custom-cursor.on { opacity: 1; }

  .custom-cursor-follower { display: none; }

  .cursor-caret {
    width: 2px;
    height: 15px;
    background: var(--accent-ink);
    flex-shrink: 0;
  }

  .cursor-tag {
    margin-top: 11px;
    font-family: Consolas, "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: var(--accent-ink);
    background: var(--bg-secondary);
    border: 1px solid var(--accent-ink);
    border-radius: 3px;
    padding: 4px 6px 5px;
  }

  .cursor-tag .tag-close { display: none; }

  body.hovered .cursor-tag .tag-open { display: none; }
  body.hovered .cursor-tag .tag-close { display: inline; }

  body.hovered .cursor-tag {
    background: var(--accent-ink);
    color: #04141c;
  }

  [data-theme="light"] body.hovered .cursor-tag {
    color: #fff;
  }
}

/* Scroll İlerleme Çubuğu */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 10001;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Yükleme Ekranı */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-text {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.loader-bar {
  width: 180px;
  height: 4px;
  background: var(--chip);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--accent-cyan);
  animation: loading 5s linear forwards;
}

@keyframes loading {
  0% { width: 0; }
  100% { width: 100%; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
  position: relative;
}

.section-title span {
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.band {
  background: var(--band);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
  max-width: 600px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.section-head .section-title {
  margin-bottom: 0.15rem;
}

.section-head .section-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: 3px;
  background: var(--accent-ink);
}

.section-head .section-subtitle {
  margin: 0.85rem 0 0;
  display: inline;
  padding: 0.05em 0;
  line-height: 1.75;
  background-color: var(--bg-primary);
  box-shadow: 0.4em 0 0 var(--bg-primary), -0.3em 0 0 var(--bg-primary);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ==========================================================================
   2. NAVİGASYON (HEADER)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
  background: var(--header-bar);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
}

header.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(12px);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-badge {
  background: var(--btn-gradient);
  color: var(--on-accent);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-btn, .theme-btn {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: var(--bg-card);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.lang-btn:hover, .theme-btn:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.menu-open { overflow: hidden; }

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}

/* Tam sayfa kod arka planı — VS Dark+ / Light renkleri, kart çerçevesi yok */
.code-field {
  --code-plain: #d5deea;
  --code-kw: #7eb6ea;
  --code-ct: #d2a6e0;
  --code-str: #e0a88e;
  --code-cmt: #9dcea0;
  --code-type: #6ed4c4;
  --code-fn: #ead892;
  --code-num: #b7d8a8;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 64px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 64px, #000 100%);
}

[data-theme="light"] .code-field {
  --code-plain: #2f3b4d;
  --code-kw: #1a46b8;
  --code-ct: #7a1f9a;
  --code-str: #9a3412;
  --code-cmt: #2f6b34;
  --code-type: #0f5f6b;
  --code-fn: #6b4a0c;
  --code-num: #0d6840;
}

.code-snippet {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  font-family: Consolas, "Cascadia Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre;
  color: var(--code-plain);
  text-shadow: none;
  opacity: var(--snip-a, 0.2);
  font-variant-ligatures: none;
}

[data-theme="light"] .code-snippet {
  opacity: calc(var(--snip-a, 0.34) * 1.25);
}

.code-snippet .kw { color: var(--code-kw); }
.code-snippet .ct { color: var(--code-ct); }
.code-snippet .st { color: var(--code-str); }
.code-snippet .cm { color: var(--code-cmt); }
.code-snippet .tp { color: var(--code-type); }
.code-snippet .fn { color: var(--code-fn); }
.code-snippet .nu { color: var(--code-num); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem 2.1rem 1.8rem;
  box-shadow: var(--glass-shadow);
}

.about-copy {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.2rem 1.35rem 0.2rem;
  margin-bottom: 1.3rem;
  box-shadow: var(--glass-shadow);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-title .typewriter {
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  min-height: 1.2em;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--btn-gradient);
  color: var(--on-accent);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  background: var(--chip);
}

/* ==========================================================================
   4. HAKKIMDA SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.about-image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  text-align: center;
}

.about-avatar-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,242,254,0.2), rgba(127,0,255,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink);
  font-size: 3.5rem;
  border: 2px solid var(--accent-cyan);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-ink);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. YETKİNLİKLER SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.8rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.skill-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.skill-category-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  padding: 0.4rem 0.8rem;
  background: var(--chip);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-ink);
  transform: scale(1.05);
}

/* ==========================================================================
   6. İŞ DENEYİMİ SECTION
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--border-color);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-content {
  position: relative;
  margin-left: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: calc(50% + 30px);
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 30px);
  }
}

.timeline-date {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.timeline-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--ok);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.timeline-role {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.timeline-company {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   7. PROJELER SECTION
   ========================================================================== */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--btn-gradient);
  color: var(--on-accent);
  border-color: transparent;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card.is-hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.15);
}

.project-header {
  margin-bottom: 1rem;
}

.project-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.project-tech {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: var(--chip);
  border: 1px solid var(--border-color);
  color: var(--accent-ink);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.project-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.project-btn-primary {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-ink);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.project-btn-primary:hover {
  background: var(--accent-cyan);
  color: #000;
}

.project-btn-arch {
  background: rgba(127, 0, 255, 0.15);
  color: var(--arch);
  border: 1px solid rgba(127, 0, 255, 0.3);
}

.project-btn-arch:hover {
  background: var(--accent-purple);
  color: #fff;
}

/* ==========================================================================
   8. EĞİTİM & KURSLAR SECTION
   ========================================================================== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
}

.edu-icon {
  font-size: 2rem;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}

.edu-degree {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.edu-school {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   9. İLETİŞİM SECTION (FORM KALDIRILDI - GRID KARTLAR)
   ========================================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-detail label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-detail p, .contact-detail a {
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-word;
}

/* BAŞA DÖN BUTONU */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  transform: translateY(-4px);
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-card {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.75rem 1.15rem;
  box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   10. MODALLAR (PERFORMANS OPTİMİZE EDİLMİŞ)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 20, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  will-change: opacity, visibility;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  max-width: 750px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--glass-shadow);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--chip);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-ink);
}

.ms-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.ms-node {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.ms-node.highlight {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
}

#tetris-canvas {
  background: #000;
  border: 2px solid var(--accent-cyan);
  display: block;
  margin: 1rem auto;
}

@media (max-width: 1024px) {
  header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.65rem 0;
  }

  .container { padding: 0 1rem; }

  .nav-wrapper { gap: 0.6rem; }
  .logo, .header-actions { position: relative; z-index: 1002; }

  .logo { font-size: 1.05rem; min-width: 0; }
  .logo-badge { font-size: 0.72rem; padding: 0.12rem 0.4rem; }

  .header-actions { gap: 0.35rem; flex-shrink: 0; }
  .lang-btn, .theme-btn { padding: 0.4rem 0.5rem; font-size: 0.75rem; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 64px);
    padding: 0.5rem 1.25rem 2rem;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.15rem;
    color: var(--text-main);
    padding: 1rem 0.2rem;
    border-bottom: 1px solid var(--border-color);
  }

  .hamburger { display: flex; }

  .code-field { display: none; }

  .hero {
    min-height: auto;
    padding: 6.5rem 0 3.5rem;
  }

  .hero-content { padding: 1.35rem 1.15rem 1.2rem; }

  .hero-title { font-size: 2.15rem; }
  .hero-description { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }

  section { padding: 3.5rem 0; }
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }

  .about-grid,
  .about-stats,
  .skills-grid,
  .projects-grid,
  .edu-grid,
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-grid { gap: 1.5rem; }
  .stat-card { padding: 1rem; }
  .stat-number { font-size: 1.8rem; }

  .timeline-content { margin-left: 2.4rem; padding: 1.15rem; }
  .project-card, .edu-card, .skill-category, .contact-card { padding: 1.2rem; }
  .project-links { align-items: stretch; }
  .project-btn { justify-content: center; }

  .custom-cursor, .custom-cursor-follower { display: none !important; }
  body { cursor: auto !important; }
}
