/* Hero: uçtan uca çizgisi + walkman tuşu butonlar + CV önizleme — ÖNİZLEME */

/* ─── "Uçtan Uca": sunucudan telefona bir hat ─── */
.hero h1 .e2e {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2em;          /* hattın sığacağı boşluk */
}
.e2e-path {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.2em;
  display: flex;
  align-items: center;
  pointer-events: none;
  --e2e: var(--premium-blue, #3156e8);
}
.e2e-end {
  flex: none;
  width: 0.2em;
  height: 0.2em;
  display: grid;
  place-items: center;
  color: var(--premium-ink, #161a21);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2, .9, .3, 1.3);
}
.e2e-end svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.e2e-server svg circle { fill: currentColor; stroke: none; }
.e2e-line {
  flex: 1;
  height: 2px;
  margin: 0 0.07em;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(49, 86, 232, .45) 0 6px, transparent 6px 11px);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.6, 0, .2, 1) .25s;
}
.e2e-dot {
  position: absolute;
  top: 50%;
  left: 0.27em;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--e2e);
  box-shadow: 0 0 0 4px rgba(49, 86, 232, .14);
  opacity: 0;
}
.e2e-path.is-on .e2e-end { opacity: .62; transform: none; }
.e2e-path.is-on .e2e-line { transform: none; }
.e2e-path.is-on .e2e-phone { transition-delay: .9s; }

/* istek gider (mavi), cevap döner (yeşil); ardından kısa bir mola */
.e2e-path.is-live .e2e-dot { animation: e2e-trip 6.5s cubic-bezier(.55, 0, .45, 1) infinite; }
@keyframes e2e-trip {
  0%   { left: 0.27em; opacity: 0; background: var(--e2e); }
  4%   { opacity: 1; }
  24%  { left: calc(100% - 0.27em); opacity: 1; background: var(--e2e); box-shadow: 0 0 0 4px rgba(49, 86, 232, .14); }
  27%  { left: calc(100% - 0.27em); background: #16a270; box-shadow: 0 0 0 4px rgba(22, 162, 112, .16); }
  50%  { left: 0.27em; opacity: 1; background: #16a270; box-shadow: 0 0 0 4px rgba(22, 162, 112, .16); }
  54%, 100% { left: 0.27em; opacity: 0; }
}
/* nokta uca varınca ikon hafifçe "alır" */
.e2e-path.is-live .e2e-phone { animation: e2e-ping-r 6.5s ease infinite; }
.e2e-path.is-live .e2e-server { animation: e2e-ping-l 6.5s ease infinite; }
@keyframes e2e-ping-r { 0%, 22% { opacity: .62; color: var(--premium-ink, #161a21); } 25% { opacity: 1; color: var(--e2e); } 34%, 100% { opacity: .62; color: var(--premium-ink, #161a21); } }
@keyframes e2e-ping-l { 0%, 48% { opacity: .62; color: var(--premium-ink, #161a21); } 51% { opacity: 1; color: #16a270; } 60%, 100% { opacity: .62; color: var(--premium-ink, #161a21); } }

/* ─── Butonlar: walkman tuşu gibi bir tabana oturur ─── */
.hero-actions .btn-primary,
.hero-actions .btn-cv {
  position: relative;
  transition: transform .09s ease, box-shadow .09s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.hero-actions .btn-primary {
  box-shadow: 0 5px 0 #000, 0 12px 24px rgba(20, 24, 31, .18);
}
.hero-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 0 #1d327f, 0 14px 28px rgba(49, 86, 232, .24);
}
.hero-actions .btn-cv {
  background: #fff;
  box-shadow: 0 5px 0 #d5d9e1, 0 10px 22px rgba(20, 24, 31, .07);
}
.hero-actions .btn-cv:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 0 #c3cbe6, 0 12px 26px rgba(20, 24, 31, .09);
}
/* basılı: tuş tabana iner */
.hero-actions .btn-primary.is-down,
.hero-actions .btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #1d327f, 0 4px 10px rgba(49, 86, 232, .2);
}
.hero-actions .btn-cv.is-down,
.hero-actions .btn-cv:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #c3cbe6, 0 3px 8px rgba(20, 24, 31, .06);
}
.hero-actions { padding-bottom: 5px; }

/* proje sayısı rozeti */
.btn-count {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, .14);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0;
  transition: background .2s ease;
}
.btn-count:empty { display: none; }
.btn-primary:hover .btn-count { background: rgba(255, 255, 255, .22); }

.btn-arrow { display: inline-block; transition: transform .25s ease; }
.btn-primary:hover .btn-arrow { animation: arrow-hop 1s ease-in-out infinite; }
@keyframes arrow-hop {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, 3px); }
}

/* projelere varınca ilk kart bir an parlar */
.project-card.is-greet { animation: card-greet 1.2s ease; }
@keyframes card-greet {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 3px rgba(49, 86, 232, .45), 0 18px 40px rgba(49, 86, 232, .18); }
}

/* ─── CV önizleme ─── */
.cv-sheet {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(14, 17, 23, .48);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}
.cv-sheet[hidden] { display: none; }
.cv-sheet.is-open { opacity: 1; }
.cv-card {
  width: min(820px, 100%);
  height: min(88vh, 1060px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  transform: translateY(40px) scale(.98);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.cv-sheet.is-open .cv-card { transform: none; }
.cv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 12px 20px;
  border-bottom: 1px solid rgba(20, 24, 31, .08);
  font-family: 'Inter', sans-serif;
}
.cv-bar strong {
  margin-right: auto;
  color: var(--premium-ink, #161a21);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.cv-act {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(20, 24, 31, .12);
  border-radius: 10px;
  background: #fff;
  color: var(--premium-ink, #161a21);
  font: 750 10.5px/1 'Inter', sans-serif;
  letter-spacing: .9px;
  text-decoration: none;
  cursor: pointer;
}
.cv-act:hover { border-color: rgba(49, 86, 232, .4); color: var(--premium-blue, #3156e8); }
.cv-act.is-main { background: var(--premium-ink, #161a21); border-color: var(--premium-ink, #161a21); color: #fff; }
.cv-act.is-main:hover { background: var(--premium-blue, #3156e8); border-color: var(--premium-blue, #3156e8); color: #fff; }
.cv-close { width: 36px; padding: 0; justify-content: center; font-size: 16px; }
.cv-frame { flex: 1; width: 100%; border: 0; background: #eef0f3; }
html.cv-lock, html.cv-lock body { overflow: hidden; }

@media (max-width: 680px) {
  .hero h1 .e2e { padding-bottom: 0.24em; }
  .e2e-path { height: 0.24em; }
  .e2e-end { width: 0.24em; height: 0.24em; }
  .hero-actions { gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .e2e-end, .e2e-line { transition: none; }
  .e2e-path.is-live .e2e-dot,
  .e2e-path.is-live .e2e-phone,
  .e2e-path.is-live .e2e-server,
  .btn-primary:hover .btn-arrow,
  .project-card.is-greet { animation: none; }
  .cv-card { transition: none; }
}

/* CV önizlemesinde TR / EN seçimi */
.cv-langs {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(20, 24, 31, .12);
  border-radius: 10px;
  background: #f4f5f7;
}
.cv-lang {
  height: 28px;
  min-width: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6b7280;
  font: 800 10.5px/1 'Inter', sans-serif;
  letter-spacing: .8px;
  cursor: pointer;
}
.cv-lang[aria-pressed="true"] { background: #fff; color: var(--premium-ink, #161a21); box-shadow: 0 1px 3px rgba(20, 24, 31, .12); }
.cv-lang:hover { color: var(--premium-blue, #3156e8); }
