/* ==========================================================================
   EMRULLAH AKKUŞ — PORTFOLYO
   İçindekiler:
   1. Temel Ayarlar & Değişkenler (Tema Tokenları)
   2. Reset & Genel Stiller
   3. Tipografi Yardımcıları
   4. Yerleşim / Konteyner
   5. Butonlar
   6. Yükleme Ekranı & Kaydırma Çubuğu
   7. Üst Gezinme (Header/Nav)
   8. Hero
   9. Bölüm Ortak Stilleri
   10. Hakkımda
   11. Yetkinlikler
   12. İş Deneyimi (Timeline)
   13. Projeler
   14. Eğitim & Sertifikalar
   15. İletişim
   16. Footer
   17. Geri Dön Butonu
   18. Animasyonlar / Reveal
   19. Duyarlı Tasarım (Responsive)
   20. Erişilebilirlik
   ========================================================================== */

/* ---------- 1. TEMEL AYARLAR & DEĞİŞKENLER ---------- */
:root {
  /* Renkler — Koyu Tema (varsayılan) */
  --bg: #09090b;
  --surface: #111827;
  --card: #18181b;
  --card-hover: #202024;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --primary: #3b82f6;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #22c55e;

  --text: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;

  --glass-bg: rgba(24, 24, 27, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(9, 9, 11, 0.7);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 20px 60px -10px rgba(59, 130, 246, 0.35);

  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  --gradient-text: linear-gradient(100deg, var(--primary) 0%, var(--secondary) 55%, var(--accent) 100%);

  /* Tipografi */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Ölçek */
  --container-w: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.2rem;
  --space-4: 1.6rem;
  --space-5: 2.4rem;
  --space-6: 3.2rem;
  --space-7: 4.8rem;
  --space-8: 7.2rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.45s;
  --dur-slow: 0.9s;

  --header-h: 76px;
}

/* Açık Tema */
[data-theme="light"] {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --card: #ffffff;
  --card-hover: #f2f2f5;
  --border: rgba(9, 9, 11, 0.08);
  --border-strong: rgba(9, 9, 11, 0.14);

  --text: #0b0b0f;
  --text-secondary: #52525b;
  --text-tertiary: #7a7a85;

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(9, 9, 11, 0.08);
  --nav-bg: rgba(247, 247, 249, 0.75);

  --shadow-sm: 0 2px 10px rgba(9, 9, 11, 0.06);
  --shadow-md: 0 12px 32px rgba(9, 9, 11, 0.09);
  --shadow-lg: 0 24px 64px rgba(9, 9, 11, 0.12);
  --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.12), 0 20px 60px -15px rgba(59, 130, 246, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 2. RESET & GENEL STİLLER ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- 3. TİPOGRAFİ ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- 4. YERLEŞİM ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section { padding-block: var(--space-8); position: relative; scroll-margin-top: var(--header-h); }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 12%, rgba(255, 255, 255, 0.015) 88%, transparent); }
[data-theme="light"] .section-alt { background: linear-gradient(180deg, transparent, rgba(9,9,11,0.02) 12%, rgba(9,9,11,0.02) 88%, transparent); }

.section-head { max-width: 640px; margin-bottom: var(--space-6); }
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: var(--space-2); }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; }

.legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(59,130,246,.7);
  vertical-align: middle;
}

/* ---------- 5. BUTONLAR ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  border: 1px solid transparent;
}
.btn svg { flex-shrink: 0; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.55);
}
.btn-primary:hover { box-shadow: 0 12px 32px -6px rgba(59, 130, 246, 0.7); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary); background: rgba(59, 130, 246, 0.08); transform: translateY(-2px); }

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); }

.btn-text {
  padding: 0.85rem 0.4rem;
  color: var(--text-secondary);
}
.btn-text:hover { color: var(--text); }

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* ---------- 6. YÜKLEME EKRANI & KAYDIRMA ÇUBUĞU ---------- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#loading-screen.loaded { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulseScale 1.4s ease-in-out infinite;
}
@keyframes pulseScale { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }

.loader-bar { width: 160px; height: 3px; border-radius: var(--radius-full); background: var(--border); overflow: hidden; }
.loader-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-primary);
  z-index: 1001;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}

.skip-link {
  position: fixed;
  top: -100px; left: var(--space-3);
  z-index: 1100;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--space-3); }

/* ---------- 7. ÜST GEZİNME ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  height: var(--header-h);
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }

.nav-links { display: flex; align-items: center; gap: var(--space-5); }
.nav-link {
  position: relative;
  font-size: 0.94rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.1rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--dur-fast) var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.theme-toggle:hover { border-color: var(--primary); transform: rotate(-12deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  width: 16px; height: 2px;
  background: var(--text);
  border-radius: var(--radius-full);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--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); }

.mobile-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-5);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility var(--dur-med);
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--space-4); }
.mobile-menu a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.mobile-menu .btn { align-self: flex-start; }

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}
.blob-1 { width: 480px; height: 480px; top: -140px; left: -120px; background: var(--primary); animation: floatBlob1 18s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; bottom: -160px; right: -80px; background: var(--secondary); animation: floatBlob2 22s ease-in-out infinite; }
.blob-3 { width: 320px; height: 320px; top: 40%; left: 55%; background: var(--accent); opacity: 0.3; animation: floatBlob3 26s ease-in-out infinite; }

@keyframes floatBlob1 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.1); } }
@keyframes floatBlob2 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px, -30px) scale(1.15); } }
@keyframes floatBlob3 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px, 50px) scale(0.9); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-6);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: statusPing 2s ease-in-out infinite;
}
@keyframes statusPing {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  margin-bottom: var(--space-3);
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--accent);
  margin-bottom: var(--space-4);
  min-height: 1.6em;
}
.typing-cursor { animation: blink 1s step-end infinite; color: var(--primary); }
@keyframes blink { 50% { opacity: 0; } }

.hero-summary {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 54ch;
  margin-bottom: var(--space-5);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }

.hero-meta { display: flex; align-items: center; gap: var(--space-3); color: var(--text-tertiary); font-size: 0.9rem; margin-bottom: var(--space-6); }
.hero-meta-link { color: var(--text-secondary); transition: color var(--dur-fast) var(--ease); }
.hero-meta-link:hover { color: var(--primary); }
.hero-meta-divider { width: 1px; height: 14px; background: var(--border-strong); }
.hero-meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }

.hero-stats { display: flex; gap: var(--space-6); }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.82rem; color: var(--text-tertiary); margin-top: 0.2rem; }

/* Hero Görsel: Katmanlı Mimari */
.hero-visual { position: relative; height: 460px; }
.arch-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.arch-layer {
  --i: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  margin-left: calc(var(--i) * 26px);
  width: calc(100% - (var(--i) * 26px));
  animation: archFloat 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.1s);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.arch-layer:hover { border-color: var(--primary); }
@keyframes archFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.arch-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gradient-accent); flex-shrink: 0; box-shadow: 0 0 10px rgba(6,182,212,.7); }
.arch-label { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.arch-sub { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-tertiary); margin-left: auto; }

.arch-badge {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  animation: badgeDrift 8s ease-in-out infinite;
}
.badge-1 { top: 6%; right: -4%; color: var(--primary); animation-delay: 0s; }
.badge-2 { top: 32%; right: 8%; color: var(--secondary); animation-delay: -2s; }
.badge-3 { bottom: 26%; left: -6%; color: var(--accent); animation-delay: -4s; }
.badge-4 { bottom: 4%; right: 2%; color: var(--success); animation-delay: -6s; }
@keyframes badgeDrift {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(4px); }
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-full);
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { top: 6px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

/* ---------- 10. HAKKIMDA ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.about-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--card-hover); }
.about-card-wide { grid-column: span 3; background: linear-gradient(160deg, var(--card), var(--surface)); }
.about-card-wide h3 { font-size: 1.4rem; margin-bottom: var(--space-3); }
.about-card-wide p { color: var(--text-secondary); max-width: 76ch; }
.about-card-wide p + p { margin-top: var(--space-3); }

.about-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  margin-bottom: var(--space-3);
}
.about-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.about-card p { color: var(--text-secondary); font-size: 0.94rem; }

/* ---------- 11. YETKİNLİKLER ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.skill-card-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: var(--space-4); }
.skill-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #fff;
  flex-shrink: 0;
}
.skill-card-head h3 { font-size: 1rem; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tags li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.skill-tags li:hover { transform: translateY(-2px) scale(1.03); border-color: var(--primary); color: var(--text); }
.skill-tags li.active {
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(139,92,246,.16));
  box-shadow: 0 0 0 1px rgba(59,130,246,.15) inset;
}

/* ---------- 12. İŞ DENEYİMİ (TIMELINE) ---------- */
.timeline { position: relative; max-width: 880px; }
.timeline::before {
  content: "";
  position: absolute;
  top: 6px; bottom: 6px; left: 15px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--secondary), transparent);
  opacity: 0.35;
}
.timeline-item { position: relative; padding-left: var(--space-6); margin-bottom: var(--space-5); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker { position: absolute; left: 0; top: 4px; width: 32px; height: 32px; display: grid; place-items: center; }
.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--primary);
}
.timeline-dot.pulse { background: var(--gradient-primary); box-shadow: 0 0 0 4px rgba(59,130,246,.18); }

.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.timeline-card:hover { border-color: var(--border-strong); transform: translateX(4px); }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 0.4rem;
}
.timeline-card-head h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.timeline-company { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: var(--space-3); }
.timeline-list { margin-bottom: var(--space-4); display: flex; flex-direction: column; gap: 0.5rem; }
.timeline-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}
.timeline-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-accent);
}
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
}

/* ---------- 13. PROJELER ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.project-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.project-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.project-body { padding: var(--space-5); }
.project-featured {
  grid-column: span 2;
  background: linear-gradient(160deg, var(--card), var(--surface));
  border-color: rgba(59, 130, 246, 0.28);
}
.project-featured:hover { box-shadow: var(--shadow-glow); }
.project-featured .project-body { padding: var(--space-6); max-width: 760px; }

.featured-badge {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
}

.project-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.project-featured h3 { font-size: 1.6rem; }
.project-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.project-desc { color: var(--text-secondary); font-size: 0.95rem; margin-block: var(--space-3); }
.project-points { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: var(--space-4); }
.project-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.project-points li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-4); }
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.project-actions { display: flex; gap: var(--space-3); }

/* ---------- 14. EĞİTİM & SERTİFİKALAR ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: start;
}
.edu-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: none;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}
.edu-subtitle-lang { margin-top: var(--space-5); }

.edu-card {
  display: flex;
  gap: var(--space-3);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.edu-card-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-accent);
  color: #fff;
}
.edu-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.edu-card h4 { font-size: 1.05rem; margin-block: 0.3rem; }
.edu-card p { color: var(--text-secondary); font-size: 0.92rem; }

.lang-list { display: flex; flex-direction: column; gap: 0.6rem; }
.lang-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  font-size: 0.94rem;
}
.lang-level { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-tertiary); }

.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.cert-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.cert-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }
.cert-card h4 { font-size: 0.95rem; margin-block: 0.4rem; line-height: 1.3; }
.cert-issuer { color: var(--text-tertiary); font-size: 0.85rem; }

/* ---------- 15. İLETİŞİM ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  background: linear-gradient(160deg, var(--card), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background: var(--gradient-primary);
  filter: blur(120px);
  opacity: 0.18;
  top: -80px; right: -80px;
  border-radius: 50%;
}
.contact-info h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.contact-info > p { color: var(--text-secondary); margin-bottom: var(--space-4); max-width: 42ch; }
.contact-list { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-list li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.98rem; }
.contact-list a { display: flex; align-items: center; gap: 0.8rem; transition: color var(--dur-fast) var(--ease); }
.contact-list a:hover { color: var(--primary); }
.contact-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-socials { display: flex; flex-direction: column; gap: var(--space-3); justify-content: center; position: relative; z-index: 1; }
.social-btn {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.social-btn:hover { transform: translateX(4px); border-color: var(--primary); background: rgba(59,130,246,.08); }

/* ---------- 16. FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-6) var(--space-4); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand p { font-size: 0.92rem; line-height: 1.4; }
.footer-brand p span { color: var(--text-tertiary); font-size: 0.82rem; }
.footer-nav { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer-nav a { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--dur-fast) var(--ease); }
.footer-nav a:hover { color: var(--primary); }
.footer-socials { display: flex; gap: 0.7rem; }
.footer-socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.footer-socials a:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--primary); }
.footer-bottom { text-align: center; color: var(--text-tertiary); font-size: 0.85rem; padding-top: var(--space-4); border-top: 1px solid var(--border); }

/* ---------- 17. GERİ DÖN BUTONU ---------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-4); right: var(--space-4);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility var(--dur-med);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- 18. ANİMASYONLAR / REVEAL ---------- */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.8s var(--ease) forwards;
}
.hero-kicker[data-animate] { animation-delay: 0.05s; }
.hero-title[data-animate] { animation-delay: 0.15s; }
.hero-role[data-animate] { animation-delay: 0.28s; }
.hero-summary[data-animate] { animation-delay: 0.4s; }
.hero-actions[data-animate] { animation-delay: 0.52s; }
.hero-meta[data-animate] { animation-delay: 0.62s; }
.hero-stats[data-animate] { animation-delay: 0.72s; }

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- 19. DUYARLI TASARIM ---------- */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card-wide { grid-column: span 2; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; order: -1; margin-bottom: var(--space-4); }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --space-6: 2.4rem; --space-7: 3.2rem; --space-8: 4.4rem; }
  .container { padding-inline: var(--space-4); }
  .about-grid, .skills-grid, .projects-grid, .cert-grid { grid-template-columns: 1fr; }
  .about-card-wide, .project-featured { grid-column: span 1; }
  .hero-actions .btn-text { padding-left: 0; }
  .hero-stats { gap: var(--space-5); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .nav-actions .btn-ghost { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .arch-layer { padding: 0.9rem 1rem; }
  .arch-sub { display: none; }
}

/* ---------- 20. ERİŞİLEBİLİRLİK ---------- */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
