:root {
  --bg: #000000;
  --card: #1c1c1e;
  --card-active: #2c2c2e;
  --sep: #38383a;
  --fg: #ffffff;
  --muted: #8e8e93;
  --label: #8e8e93;
  --accent: #0a84ff;
  --chev: #6c6c70;
  --radius: 14px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 66px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
  padding-bottom: 40px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

img { display: block; max-width: 100%; }

/* Nav bar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.scrolled { border-bottom-color: var(--sep); }

.nav-inner {
  max-width: 520px;
  margin: 0 auto;
  height: 50px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  color: var(--accent);
  font-size: 1rem;
}

.burger {
  display: none;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.burger span {
  width: 17px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* İçerik sütunu */
.phone {
  max-width: 520px;
  margin: 0 auto;
  padding-top: 74px;
  padding-bottom: 0;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* Profil */
.profile {
  text-align: center;
  padding: 26px 0 34px;
}

.avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  background: var(--card);
}

.profile h1 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.tag {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 12px;
  border-radius: 980px;
  background: rgba(10, 132, 255, 0.16);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.tag.neutral {
  background: rgba(118, 118, 128, 0.24);
  color: #e5e5ea;
}

.profile p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* Grup başlığı (Ayarlar tarzı) */
.group { margin-bottom: 28px; }

.group-label {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--label);
  padding: 0 16px 8px;
}

/* Kart */
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.bio {
  padding: 18px 16px;
  font-size: 1rem;
  color: var(--fg);
}

.bio p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #ebebef;
  margin-bottom: 14px;
}

.bio p:last-child { margin-bottom: 0; }

.bio h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 22px 0 10px;
}

/* Satır */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  min-height: 48px;
  transition: background 0.15s ease;
}

.row:hover,
.row:active { background: var(--card-active); text-decoration: none; }

.row + .row { border-top: 1px solid var(--sep); }

.row-label {
  color: var(--muted);
  font-size: 0.95rem;
  min-width: 86px;
}

.row-value {
  color: var(--fg);
  font-size: 0.95rem;
  flex: 1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chev {
  color: var(--chev);
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 600;
}

/* Proje satırı */
.project .info { flex: 1; min-width: 0; }

.project .title {
  display: block;
  color: var(--fg);
  font-size: 1rem;
}

.project .sub {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dur {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Bölmeli seçici (iOS segmented control) */
.seg {
  display: flex;
  background: rgba(118, 118, 128, 0.24);
  border-radius: 9px;
  padding: 2px;
  margin-bottom: 10px;
}

.seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.seg-btn.active {
  background: #636366;
  font-weight: 600;
}

.panel[hidden] { display: none; }

.row.empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.footnote {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 10px 16px 0;
}

/* Footer */
footer {
  max-width: 520px;
  margin: 10px auto 0;
  padding: 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobil */
@media (max-width: 560px) {
  .burger { display: flex; }

  .nav-links {
    position: absolute;
    top: 50px;
    left: 12px;
    right: 12px;
    background: rgba(28, 28, 30, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sep);
    border-radius: 14px;
    flex-direction: column;
    gap: 0;
    padding: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    display: block;
    padding: 13px 14px;
    border-radius: 10px;
  }

  .nav-links li + li a { border-top: 1px solid var(--sep); border-radius: 0; }

  .phone { padding-top: 66px; }
  .row { gap: 8px; }
  .row-label { min-width: 64px; }
  .row-value {
    font-size: 0.9rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
