/* ============================================================
   Ebubekir Coşkun — yuvarlak profil fotoğraflı sade kişisel sayfa
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

:root {
  --bg: #0f1115;
  --bg-soft: #15181f;
  --text: #f4f5f7;
  --muted: #9aa0ab;
  --wa: #25d366;
  --wa-dark: #1da851;
  --accent: #a9c6d8;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -10%, #232a36 0%, var(--bg) 55%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Sayfa düzeni ---------- */

.page {
  flex: 1 1 auto;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(32px, 9vw, 72px) clamp(16px, 5vw, 28px) 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 30px);
}

/* ---------- Yuvarlak profil fotoğrafı ---------- */

.avatar {
  margin: 0;
  width: min(56vw, 224px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 0 6px rgba(255, 255, 255, 0.045),
    0 28px 60px -24px rgba(0, 0, 0, 0.9);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Yüz odaklı kırpma: baş + omuzlar, aşırı yakın değil */
  object-position: 50% 30%;
}

/* ---------- İsim + buton ---------- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  width: 100%;
}

.name {
  margin: 0;
  font-size: clamp(1.4rem, 6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 15px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--wa) 0%, var(--wa-dark) 100%);
  color: #04220f;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 34px -10px rgba(37, 211, 102, 0.7);
}

.whatsapp-button:active {
  transform: translateY(0);
}

.whatsapp-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wa-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: #04220f;
}

.wa-number {
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 26px 16px 28px;
}

.credit {
  display: inline-flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.18s ease;
}

.credit img {
  display: block;
  height: 20px;
  width: auto;
}

.credit:hover,
.credit:focus-visible {
  opacity: 0.95;
}

.credit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Küçük ekranlar ---------- */

@media (max-width: 400px) {
  .avatar {
    width: min(58vw, 200px);
  }
  .credit img {
    height: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
