/* ============ Renkler (uzay mavisi) ============ */
:root {
  --bg: #f3f6ff;
  --bg-2: #e8eeff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(90, 120, 220, 0.16);
  --text: #121a3a;
  --muted: #56608a;
  --primary: #3d6bff;
  --primary-2: #7a5cff;
  --accent: #2fb6f0;
  --chip: rgba(61, 107, 255, 0.09);
  --chip-text: #2f53d6;
  --shadow: 0 10px 40px -12px rgba(40, 70, 180, 0.22);
  --star: #6d8cff;
  --glow-1: rgba(122, 92, 255, 0.18);
  --glow-2: rgba(47, 182, 240, 0.18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b1f; --bg-2: #0d1433;
    --surface: rgba(20, 28, 66, 0.6); --surface-solid: #111a40;
    --border: rgba(130, 160, 255, 0.16);
    --text: #e8edff; --muted: #9aa6d6;
    --primary: #6b8cff; --primary-2: #9d84ff; --accent: #4cc9ff;
    --chip: rgba(107, 140, 255, 0.14); --chip-text: #b4c4ff;
    --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
    --star: #cfdaff; --glow-1: rgba(122, 92, 255, 0.22); --glow-2: rgba(47, 182, 240, 0.16);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070b1f; --bg-2: #0d1433;
  --surface: rgba(20, 28, 66, 0.6); --surface-solid: #111a40;
  --border: rgba(130, 160, 255, 0.16);
  --text: #e8edff; --muted: #9aa6d6;
  --primary: #6b8cff; --primary-2: #9d84ff; --accent: #4cc9ff;
  --chip: rgba(107, 140, 255, 0.14); --chip-text: #b4c4ff;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --star: #cfdaff; --glow-1: rgba(122, 92, 255, 0.22); --glow-2: rgba(47, 182, 240, 0.16);
  color-scheme: dark;
}

/* ============ Temel ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 85% -10%, var(--glow-1), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, var(--glow-2), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
header, main, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.15; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ============ Navigasyon ============ */
.nav {
  position: sticky; top: 0;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-family: "Space Grotesk"; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary-2));
  box-shadow: 0 0 12px var(--primary);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--primary); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { color: var(--primary); }

/* ============ Hero ============ */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 96px 0 56px; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--chip); color: var(--chip-text); border: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px); margin: 18px 0 8px; letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text) 30%, var(--primary) 70%, var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title { font-size: 20px; font-weight: 600; color: var(--primary); }
.hero-summary { color: var(--muted); max-width: 540px; margin: 16px 0 28px; font-size: 16.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  padding: 12px 22px; border-radius: 14px; font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 30px -10px var(--primary);
}
.btn-ghost { border: 1px solid var(--border); background: var(--surface); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.socials.center { justify-content: center; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 14px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.social:hover { color: var(--primary); border-color: var(--primary); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; justify-self: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed var(--border); animation: spin 40s linear infinite; }
.orbit-1 { inset: 0; }
.orbit-2 { inset: 14%; animation-duration: 26s; animation-direction: reverse; }
.orbit::after {
  content: ""; position: absolute; top: 8%; left: 14%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px var(--accent);
}
.orbit-2::after { background: var(--primary-2); box-shadow: 0 0 16px var(--primary-2); top: auto; bottom: 10%; left: auto; right: 10%; }
.avatar {
  position: absolute; inset: 27%; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--primary) 50%, var(--primary-2));
  box-shadow: 0 0 60px -6px var(--primary), inset 0 0 30px rgba(255,255,255,.25);
  color: #fff; font-family: "Space Grotesk"; font-size: clamp(36px, 6vw, 56px); font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Kartlar & bölümler ============ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.section { padding: 56px 0; }
.section-title { font-size: clamp(28px, 4vw, 38px); margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.section-title::before {
  content: ""; width: 28px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-2));
}
.sub-title { font-size: 18px; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
#aboutText { font-size: 17px; color: var(--muted); display: grid; gap: 14px; }
.two-col.one-col { grid-template-columns: 1fr; }
.badge.right { left: auto; right: 12px; background: rgba(15, 25, 70, .75); color: #fff; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-left: auto; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat {
  text-align: center; padding: 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.stat strong {
  display: block; font-family: "Space Grotesk"; font-size: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: 14px; }

/* ============ Zaman çizelgesi ============ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.timeline { list-style: none; position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--primary), var(--primary-2), transparent);
}
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface-solid); border: 3px solid var(--primary); box-shadow: 0 0 12px var(--primary);
}
.tl-period { font-size: 13px; color: var(--primary); font-weight: 600; }
.tl-item h4 { font-size: 18px; margin: 4px 0 2px; }
.tl-org { color: var(--muted); font-weight: 500; font-size: 14.5px; margin-bottom: 6px; }
.tl-item p:last-child { color: var(--muted); font-size: 15px; }

/* ============ Yetenekler ============ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.skill-card h3 { font-size: 17px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  background: var(--chip); color: var(--chip-text); border: 1px solid var(--border);
}
.chip.small { font-size: 12px; padding: 4px 10px; }

/* ============ Projeler ============ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  font: inherit; font-size: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.filter:hover { color: var(--primary); }
.filter.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.project:hover { transform: translateY(-6px); box-shadow: 0 20px 50px -16px var(--primary); }
.project-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-gen {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.3) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.3) 0 1px, transparent 2px),
    linear-gradient(135deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 40) 75% 55%));
}
.cover-gen span { font-family: "Space Grotesk"; font-size: 56px; font-weight: 700; color: rgba(255,255,255,.9); }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.9); color: #2f53d6;
}
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { font-size: 19px; }
.project-body > p { color: var(--muted); font-size: 15px; }
.project-links { display: flex; gap: 16px; margin-top: auto; padding-top: 6px; }
.project-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary); }
.project-links a:hover { text-decoration: underline; }

/* ============ İletişim & Footer ============ */
.contact-card { text-align: center; padding: 48px 26px; }
.contact-card h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; }
.contact-card p { color: var(--muted); }
.footer { padding: 32px 0 40px; text-align: center; color: var(--muted); font-size: 14px; }

/* ============ Animasyon ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orbit { animation: none; }
}

/* ============ Mobil ============ */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; text-align: left; }
  .hero-visual { max-width: 260px; order: -1; }
  .two-col { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* ============ Yazdırma (PDF CV) ============ */
@media print {
  #stars, .nav, .hero-visual, .hero-actions, .filters, .contact-card, .orbit { display: none !important; }
  body { background: #fff; color: #111; }
  .reveal { opacity: 1; transform: none; }
  .card, .stat { box-shadow: none; background: #fff; border-color: #dde; backdrop-filter: none; }
  .hero { padding: 0 0 16px; }
  .hero h1 { color: #111; -webkit-text-fill-color: #111; background: none; }
  .section { padding: 16px 0; break-inside: avoid; }
  .project { break-inside: avoid; }
  .project-cover { display: none; }
}
