/* Yazı tipleri yerel: sayfalar /fonts/fonts.css dosyasını yükler (Inter dahil). */

/* ---------- Base ---------- */
:root {
  --bg: #0b0d12;
  --bg-elevated: #12151d;
  --bg-elevated-2: #171b26;
  --text: #f2f4f8;
  --text-muted: #9aa1b1;
  --accent: #5b8cff;
  --accent-2: #8f5bff;
  --border: #232838;
  --max-width: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(91, 140, 255, 0.15), transparent),
    radial-gradient(900px 400px at 90% 10%, rgba(143, 91, 255, 0.10), transparent),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

a:hover {
  color: #82a5ff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--text);
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.lang-switch {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-switch a {
  color: var(--text-muted);
}

.lang-switch a.lang-current {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 96px 24px 64px;
}

.avatar-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 28px;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 40px rgba(91, 140, 255, 0.25);
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.hero .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.35);
  color: white;
}

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

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--text);
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 24px;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section p {
  color: var(--text-muted);
}

/* ---------- Game ---------- */
.game-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

#game {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  touch-action: manipulation;
  cursor: pointer;
  outline: none;
}

#game:focus-visible {
  border-color: var(--accent);
}

/* ---------- Project buttons, cover image, gallery (panelden gelen projeler) ---------- */
.proje-butonlar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.proje-btn {
  --b: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--b) 45%, transparent);
  background: color-mix(in srgb, var(--b) 12%, transparent);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.proje-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--b);
}

.proje-btn:hover {
  color: var(--text);
  border-color: var(--b);
  transform: translateY(-1px);
}

.proje-btn--googleplay { --b: #34a853; }
.proje-btn--appstore { --b: #0a84ff; }
.proje-btn--steam { --b: #66c0f4; }
.proje-btn--github { --b: #a0a8b8; }
.proje-btn--youtube { --b: #ff4d4d; }
.proje-btn--itch { --b: #fa5c5c; }
.proje-btn--detay { --b: var(--accent-2); }

.proje-btn--logo::before {
  display: none;
}

.proje-btn-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

button.proje-btn {
  font-family: inherit;
  cursor: pointer;
}

.iletisim-liste {
  margin-top: 18px;
}

.proje-baslik {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.proje-baslik h3 {
  margin: 0;
}

.proje-logo {
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.proje-kapak {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: zoom-in;
}

.proje-kapak img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proje-kapak:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.proje-adet {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.78);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(5, 6, 9, 0.9);
}

.lb-img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lb-sayac {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lb-btn:hover { border-color: var(--accent); }
.lb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lb-kapat { top: 16px; right: 16px; }
.lb-geri { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-ileri { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Portfolio promo ---------- */
.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 32px;
  border: 1px solid rgba(91, 140, 255, 0.4);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.10), rgba(143, 91, 255, 0.08));
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.promo:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--text);
}

.promo-text {
  max-width: 560px;
}

.promo-eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.promo h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  text-wrap: balance;
}

.promo-text p:last-child {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .promo {
    padding: 24px 20px;
  }
}

/* ---------- Skills ---------- */
.skills-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.skills-grid li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.skills-grid li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-elevated-2);
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.project-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 14px 0 0;
}

.project-tags li {
  background: rgba(91, 140, 255, 0.10);
  border: 1px solid rgba(91, 140, 255, 0.25);
  color: #a9c0ff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 500;
}

.project-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.project-card--soon {
  border-color: rgba(91, 140, 255, 0.4);
  background: linear-gradient(180deg, rgba(91, 140, 255, 0.06), transparent);
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Contact ---------- */
.contact-email {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-links {
  margin-top: 10px;
}

.contact-links a {
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Project detail page ---------- */
.detail-back {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.detail-back:hover {
  color: var(--text);
}

.detail-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.detail-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 0 20px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.detail-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.detail-gallery figure {
  margin: 0;
}

.detail-gallery figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Portfolio hub ---------- */
.hub .container {
  max-width: 1100px;
}

.hub-hero {
  padding: 72px 24px 48px;
}

.hub-eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hub-hero h1 {
  max-width: 18ch;
  margin: 0 0 18px;
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hub-hero > p:not(.hub-eyebrow) {
  max-width: 620px;
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.hub-head h2 {
  margin: 0;
}

.hub-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.demo-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}

a.demo-tile:hover {
  color: var(--text);
}

.demo-tile .project-tags {
  margin-top: 6px;
}

.demo-tile .project-link {
  margin-top: auto;
  padding-top: 10px;
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.demo-top .badge {
  margin-left: 0;
}

.demo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 75% 56%), hsl(calc(var(--h) + 28) 70% 38%));
}

.demo-sector {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.demo-tile h3 {
  margin: 0;
}

.demo-text {
  font-size: 0.9rem;
}

.demo-tile--soon {
  opacity: 0.7;
}

.demo-tile--soon:hover {
  transform: none;
  border-color: var(--border);
  background: var(--bg-elevated);
}

.badge--muted {
  background: var(--bg-elevated-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge--ok {
  background: rgba(52, 199, 120, 0.14);
  color: #6fe3a4;
  border: 1px solid rgba(52, 199, 120, 0.35);
}

.hub-app {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid rgba(91, 140, 255, 0.4);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.10), rgba(143, 91, 255, 0.08));
}

.hub-app h2 {
  margin: 0 0 12px;
  text-wrap: balance;
}

.hub-app p:last-child {
  margin: 0;
}

.hub-app-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.hub-app-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
}

.hub-app-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

@media (max-width: 700px) {
  .hub-app {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }
}

/* ---------- Footer ---------- */
.site-footer .footer-links {
  margin: 8px 0 0;
}

.site-footer .footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
}

.site-footer .footer-links a + a {
  margin-left: 18px;
}

.site-footer .footer-links a:hover {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .main-nav {
    display: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 20px 48px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .avatar-photo {
    width: 108px;
    height: 108px;
  }
}
