/*
Theme Name: Berk Acar Portföy
Theme URI: https://github.com/berkacardev
Author: Berk Acar
Description: Berk Acar kişisel portföy teması — Makine Mühendisi. Aurora premium tema.
Version: 1.0
Text Domain: berk-portfolio
*/

/* ===========================================================
   Berk Acar — Kişisel Portföy  ·  "Aurora" premium tema
   Marka: amber/turuncu  ·  Sora (başlık) + Inter (gövde)
   =========================================================== */

:root {
  /* renk sistemi */
  --accent: #ffb800;
  --accent-2: #ff7a00;
  --accent-soft: rgba(255, 184, 0, 0.12);
  --grad: linear-gradient(135deg, #ffb800 0%, #ff7a00 100%);

  --ink: #0f1115;
  --ink-2: #2b2f38;
  --muted: #6b7280;
  --line: #ececf1;

  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-dark: #0f1115;
  --bg-dark-2: #171a21;

  --max: 1180px;
  --nav-h: 76px;
  --r: 16px;
  --r-sm: 10px;
  --shadow-sm: 0 4px 18px rgba(17, 19, 24, 0.06);
  --shadow: 0 18px 50px rgba(17, 19, 24, 0.10);
  --shadow-accent: 0 16px 40px rgba(255, 138, 0, 0.30);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: "Sora", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Bölüm başlık bloğu ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-top: 16px;
}

.section-sub {
  color: var(--muted);
  max-width: 540px;
  margin-top: 12px;
}

.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(255, 138, 0, 0.42); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-3px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ===========================================================
   NAVBAR  (glassmorphism + scroll efektli)
   =========================================================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}
.navbar.scrolled {
  height: 64px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--accent-2); }
.nav-links a:hover::after { width: 18px; }
.nav-links a.active { color: var(--accent-2); background: var(--accent-soft); }
.nav-links a.active::after { width: 0; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-select { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2); font-size: 0.9rem; font-weight: 500;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.lang-menu {
  position: absolute; right: 0; top: 150%;
  background: #fff; box-shadow: var(--shadow);
  border-radius: var(--r-sm); padding: 6px; min-width: 130px;
  display: none; border: 1px solid var(--line);
}
.lang-menu.open { display: block; animation: pop 0.18s ease; }
.lang-menu li a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 0.9rem; }
.lang-menu li a:hover { background: var(--bg-soft); color: var(--accent-2); }

.socials { display: flex; align-items: center; gap: 8px; }
.socials a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  border: 1.5px solid var(--line);
  transition: 0.25s;
  line-height: 0;
}
.socials a svg { display: block; }
.socials a:hover {
  color: #fff; border-color: transparent;
  background: var(--grad);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}
.socials svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 90px;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -2;
  opacity: 0.55;
}
.hero::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,184,0,0.55), transparent 70%);
  top: -120px; right: -80px;
  animation: float1 12s ease-in-out infinite;
}
.hero::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,122,0,0.35), transparent 70%);
  bottom: -140px; left: -100px;
  animation: float2 14s ease-in-out infinite;
}
/* robotik doodle dokusu (fotoğrafın arkasında) */
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("assets/bg-pattern.png") center / cover no-repeat;
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(circle at 68% 40%, #000 22%, transparent 82%);
  mask-image: radial-gradient(circle at 68% 40%, #000 22%, transparent 82%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}
.hero .container > * { min-width: 0; }
.hero-text { max-width: 100%; }
.hero-text .lead { overflow-wrap: break-word; }

.badge-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.badge-status .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulse 2s infinite;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 800;
  margin: 22px 0 10px;
}
.hero-text h1 .wave {
  display: inline-block; transform-origin: 70% 70%;
  animation: wave 2.4s infinite;
}
.hero-text .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* sağ taraf — fotoğraf + uçuşan rozetler */
.hero-visual {
  position: relative;
  display: grid; place-items: center;
  min-height: 380px;
}
.photo-ring {
  position: relative;
  width: 320px; height: 320px;
  border-radius: 50%;
  padding: 7px;
  background: var(--grad);
  box-shadow: 0 30px 70px rgba(255,138,0,0.35);
}
.photo-ring::before {
  content: "";
  position: absolute; inset: -16px;
  border-radius: 50%;
  border: 2px dashed rgba(255,138,0,0.35);
  animation: spin 22s linear infinite;
}
.photo-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
}
.chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  animation: floatY 5s ease-in-out infinite;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip.c1 { top: 18%; left: -6%; animation-delay: 0s; }
.chip.c2 { top: 4%; right: 2%; animation-delay: .8s; }
.chip.c3 { bottom: 16%; left: -10%; animation-delay: 1.6s; }
.chip.c4 { bottom: 4%; right: -4%; animation-delay: 2.4s; }

/* ---------- Stats şeridi ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max);
  margin: -40px auto 0;
  padding: 0 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat .num { font-family: "Sora"; font-size: 2.1rem; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: 0.88rem; }

/* ===========================================================
   GENEL BÖLÜM
   =========================================================== */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }

/* ---------- Skill kartları ---------- */
.skills-head { margin-bottom: 54px; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.skill-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.skill-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s;
}
.skill-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.skill-card:hover::before { transform: scaleX(1); }
.skill-card .ico {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 18px;
}
.skill-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.skill-card li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--line);
}
.skill-card li:last-child { border-bottom: none; }
.skill-card li svg { width: 16px; height: 16px; color: var(--accent-2); flex-shrink: 0; }

/* ---------- Marquee (üstünde çalışılanlar) ---------- */
.marquee {
  margin-top: 46px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 14px; width: max-content;
  animation: scrollx 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.tag {
  white-space: nowrap;
  font-weight: 600; font-size: 0.92rem; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
  padding: 11px 20px; border-radius: 999px;
}
.tag span { color: var(--accent-2); }

/* ---------- Proje kartları ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 50px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.project-card .thumb {
  height: 168px;
  display: grid; place-items: center;
  font-size: 2.6rem;
  color: #fff;
}
.project-card .thumb.g1 { background: linear-gradient(135deg,#ffb800,#ff7a00); }
.project-card .thumb.g2 { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.project-card .thumb.g3 { background: linear-gradient(135deg,#06b6d4,#3b82f6); }
.project-card .body { padding: 24px; }
.project-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.project-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.project-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-card .tags span {
  font-size: 0.76rem; font-weight: 600; color: var(--accent-2);
  background: var(--accent-soft); padding: 5px 11px; border-radius: 999px;
}

/* ---------- Sertifika showcase ---------- */
.cert-wrap { display: grid; grid-template-columns: 1fr 0.8fr; gap: 50px; align-items: center; }
.cert-card {
  justify-self: center;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 44px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.4s;
}
.cert-card:hover { transform: translateY(-8px) rotate(-1.5deg); }
.cert-card::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 24px; z-index: -1;
  background: var(--grad);
  opacity: 0.5; filter: blur(20px);
}
.cert-card img { width: 150px; margin: 0 auto 16px; }
.cert-card h4 { font-size: 1rem; font-weight: 700; }
.cert-card p { font-size: 0.86rem; color: var(--muted); }

/* ---------- Blog kartları ---------- */
.blog-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.blog-card .meta { font-size: 0.78rem; color: var(--accent-2); font-weight: 600; }
.blog-card .body { padding: 26px; }
.blog-card h3 { font-size: 1.1rem; font-weight: 700; margin: 8px 0 10px; }
.blog-card p { color: var(--muted); font-size: 0.92rem; }
.blog-card .read {
  margin-top: 16px; font-weight: 600; font-size: 0.88rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.blog-card:hover .read { color: var(--accent-2); gap: 10px; }

/* ===========================================================
   KISACA BEN (kişisel tanıtım — robotik doodle zeminli)
   =========================================================== */
.intro-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 46px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 54px;
  overflow: hidden;
}
.intro-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("assets/bg-pattern.png") center / cover no-repeat;
  opacity: 0.14;
}
.intro-card > *:not(.intro-bg) { position: relative; z-index: 1; }
.intro-photo {
  justify-self: center;
  width: 210px; height: 210px;
  border-radius: 50%;
  padding: 6px;
  background: var(--grad);
  box-shadow: var(--shadow-accent);
}
.intro-photo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-soft);
}
.intro-text h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 14px 0 16px; }
.intro-text p { color: var(--ink-2); margin-bottom: 14px; }
.signature {
  font-family: "Caveat", cursive;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-top: 4px;
}

/* ---------- Deneyim / Eğitim timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 50px auto 0; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 18px;
  width: 2px; background: linear-gradient(var(--accent), var(--accent-2), transparent);
}
.t-item { position: relative; padding: 0 0 32px 36px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.t-item .when { font-size: 0.8rem; font-weight: 600; color: var(--accent-2); }
.t-item h4 { font-family: "Sora"; font-size: 1.06rem; font-weight: 700; margin: 4px 0 2px; color: var(--ink); }
.t-item .where { font-size: 0.92rem; color: var(--ink-2); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.t-item p { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
.uni-logo {
  height: 28px; width: auto; max-width: 100px;
  object-fit: contain;
  border-radius: 7px; background: #fff;
  border: 1px solid var(--line); padding: 3px 7px;
  flex-shrink: 0;
}
/* dairesel amblemler — daha büyük ve yuvarlak */
.uni-logo.round {
  height: 50px; width: 50px; max-width: none;
  border-radius: 50%; padding: 3px;
}

/* ---------- Sertifika listesi ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 46px; }
.cert-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.cert-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.cert-item .yr {
  flex-shrink: 0; font-family: "Sora"; font-weight: 800; color: var(--accent-2);
  font-size: 0.9rem; background: var(--accent-soft); padding: 6px 10px; border-radius: 8px;
}
.cert-item h4 { font-size: 0.96rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cert-item p { font-size: 0.84rem; color: var(--muted); margin-top: 2px; }

/* ---------- Rozet kartları (gerçek sertifika görselleri) ---------- */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  margin-top: 50px;
}
.badge-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 20px; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.badge-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.badge-card img {
  width: 108px; height: 108px; object-fit: contain;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 16px rgba(17,19,24,0.14));
  transition: transform 0.3s;
}
.badge-card:hover img { transform: scale(1.07) rotate(-2deg); }
.badge-card h4 { font-size: 0.92rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.badge-card p { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
.badge-card .yr {
  display: inline-block; margin-top: 10px;
  font-size: 0.74rem; font-weight: 700; color: var(--accent-2);
  background: var(--accent-soft); padding: 3px 11px; border-radius: 999px;
}

/* iki sütunlu bölüm (deneyim + eğitim) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.two-col .timeline { margin-top: 30px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 10px; } }

/* ===========================================================
   FOOTER (koyu)
   =========================================================== */
.footer {
  background: var(--bg-dark);
  color: #aab;
  padding: 70px 0 30px;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer-col h5 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; font-family: "Sora"; }
.footer-col a { display: block; padding: 6px 0; transition: color 0.2s; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.footer .socials { gap: 10px; }
.footer .socials a {
  width: 40px; height: 40px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
}
.footer .socials a:hover {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}
.footer .socials svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.85rem; flex-wrap: wrap; gap: 10px;
}

/* ===========================================================
   Yardımcı: scroll reveal & back-to-top
   =========================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-accent);
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: 0.3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* placeholder (taslak sayfalar) */
.placeholder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 24px; margin-top: 40px; }
.placeholder-card {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r);
  padding: 34px; min-height: 150px; display: grid; place-items: center;
  color: var(--muted); text-align: center;
}

/* ===========================================================
   ANİMASYONLAR
   =========================================================== */
@keyframes wave { 0%,60%,100%{transform:rotate(0)} 10%,30%{transform:rotate(14deg)} 20%{transform:rotate(-8deg)} 40%{transform:rotate(-4deg)} 50%{transform:rotate(10deg)} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,30px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-24px)} }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,0.6)} 70%{box-shadow:0 0 0 9px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }
@keyframes pop { from{opacity:0; transform:translateY(-6px)} to{opacity:1; transform:none} }
@keyframes scrollx { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .badge-status { margin: 0 auto; }
  .hero-visual { margin-top: 30px; }
  .skills-grid, .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-wrap { grid-template-columns: 1fr; text-align: center; }
  .intro-card { grid-template-columns: 1fr; text-align: center; gap: 28px; padding: 44px 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(78vw, 320px);
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 90px 22px 30px;
    box-shadow: var(--shadow);
    transform: translateX(110%); transition: transform 0.35s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .nav-right .socials { display: none; }
  /* hero mobilde basit blok akışı — grid taşmasını tamamen önler */
  .hero .container { display: block; }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { margin: 30px auto 0; display: flex; justify-content: center; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .skills-grid, .cards-grid, .stats { grid-template-columns: 1fr; }
  .photo-ring { width: 240px; height: 240px; }
  .chip { display: none; } /* dar ekranda uçuşan rozetleri gizle (temiz görünüm) */
  .hero-text .lead { max-width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .intro-card { padding: 36px 22px; border-radius: 22px; }
  .intro-photo { width: 170px; height: 170px; }
}

/* ===== Blog yazı detay ===== */
.blog-post { padding: calc(var(--nav-h) + 60px) 0 40px; }
.blog-post .container { max-width: 760px; }
.blog-back { display: inline-block; color: var(--accent-2); font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; }
.blog-post .meta { display: block; color: var(--accent-2); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em; }
.blog-post h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; margin: 10px 0 22px; }
.blog-cover { width: 100%; border-radius: 18px; margin-bottom: 28px; box-shadow: var(--shadow); max-height: 420px; object-fit: cover; }
.blog-body { font-size: 1.05rem; line-height: 1.8; color: var(--ink-2); }
.blog-body p { margin: 0 0 18px; }
.blog-body h2 { font-size: 1.6rem; font-weight: 700; margin: 34px 0 12px; }
.blog-body h3 { font-size: 1.28rem; font-weight: 700; margin: 26px 0 10px; }
.blog-body ul, .blog-body ol { padding-left: 24px; margin: 0 0 18px; }
.blog-body li { margin: 6px 0; }
.blog-body blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; color: #555; font-style: italic; margin: 0 0 18px; }
.blog-body a { color: var(--accent-2); text-decoration: underline; }
.blog-body img { max-width: 100%; border-radius: 12px; margin: 12px 0; height: auto; }
.blog-card { color: inherit; }
/* WP pagination */
.pagination, .nav-links.pagination { display: inline-flex; gap: 6px; }
.blog-post .wp-caption, .blog-body figure { margin: 12px 0; }

/* ===== Proje kartı tıklanabilir + detay ===== */
.project-card { color: inherit; display: block; }
.project-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.project-single .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-single .tags span { font-size: 0.78rem; font-weight: 600; color: var(--accent-2); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }

/* ===== Kod görüntüleyici (highlight.js) ===== */
.blog-body pre {
  position: relative;
  background: #282c34;
  border-radius: 12px;
  padding: 42px 0 6px;
  margin: 0 0 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.blog-body pre::before {
  content: "";
  position: absolute; top: 15px; left: 18px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #ff5f56;
  box-shadow: 19px 0 #febc2e, 38px 0 #28c840;
}
.blog-body pre code,
.blog-body pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 0 20px 14px;
  background: transparent !important;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem; line-height: 1.7;
}
/* satır içi kod */
.blog-body :not(pre) > code {
  background: #f2f2f6; color: #b4318a;
  padding: 2px 7px; border-radius: 6px; font-size: 0.88em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
