:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow: 0 10px 25px rgba(0,0,0,.06);

  --radius: 14px;
  --gap: 14px;
  --headerH: 72px;
}

*{margin:0;padding:0;box-sizing:border-box}

html{
  scroll-behavior:smooth;
  scroll-padding-top: calc(var(--headerH) + 12px);
}

body{
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.dark{
  --bg:#0b0d12;
  --card:#121622;
  --text:#e5e7eb;
  --muted:#a1a1aa;
  --border: rgba(255,255,255,.12);
  --shadow: 0 10px 25px rgba(0,0,0,.4);
}

.wrap{
  width: min(920px, 92%);
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

body.dark .topbar{
  background: rgba(18,22,34,.86);
}

.topbar-inner{
  height: var(--headerH);
  display:flex;
  align-items:center;
  gap: 12px;
}

.nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a{
  text-decoration:none;
  color: var(--text);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.nav a:hover{
  background: rgba(0,0,0,.06);
}
body.dark .nav a:hover{
  background: rgba(255,255,255,.08);
}

.actions{
  margin-left:auto;
  display:flex;
  gap: 10px;
  align-items: center;
}

.btn{
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor:pointer;
  font-weight: 700;
}

.lang{ display:flex; gap: 8px; }
.lang-btn.active{
  outline: 2px solid rgba(0,0,0,0.18);
}
body.dark .lang-btn.active{
  outline: 2px solid rgba(255,255,255,0.22);
}

main{
  padding: 18px 0 30px;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: var(--gap);
}

.hero h1{
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.muted{ color: var(--muted); }

h2{
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.item{
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.item:first-of-type{
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.item-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.item h3{
  font-size: 15px;
}

.meta{
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* Skills chips */
.chips{
  list-style:none;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li{
  border: 1px solid var(--border);
  background: rgba(0,0,0,.04);
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}
body.dark .chips li{
  background: rgba(255,255,255,.08);
}

/* Contact */
.contact{
  display:flex;
  flex-direction:column;
  gap: 8px;
  font-size: 14px;
}
.label{
  font-weight: 800;
  color: var(--muted);
  margin-right: 6px;
}

.footer{
  text-align:center;
  padding: 10px 0;
  font-size: 13px;
}

/* Tablet düzeni */
@media (max-width: 768px){
  :root{ --headerH: 110px; }
  .hero h1{ font-size: 28px; }
  .nav a{ font-size: 13px; }
  .meta{ white-space: normal; }
  .chips li{ font-size: 14px; padding: 10px 14px; }
}

/* ---------- LANGUAGES ---------- */
.lang-item { margin-bottom: 14px; }
.lang-head{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.level{
  width:100%;
  height:8px;
  background: var(--border);
  border-radius:999px;
  overflow:hidden;
}
.level-bar{
  height:100%;
  background: var(--text);
  border-radius:999px;
}
.level-100{ width:100%; }
.level-85{ width:85%; }
.level-30{ width:30%; }
body.dark .level{ background: rgba(255,255,255,0.15); }
body.dark .level-bar{ background: #e5e7eb; }

/* ---------------- PRINT (PDF) ---------------- */
@media print{
  @page{ size: A4; margin: 12mm; }

  *{
    box-shadow: none !important;
    text-shadow: none !important;
    max-width: 100% !important;
  }

  body{
    background: #fff !important;
    color: #111 !important;
  }

  .topbar, .actions{
    display:none !important;
  }

  .wrap{
    width: 100% !important;
    margin: 0 !important;
  }

  main{ padding: 0 !important; }

  .card{
    box-shadow: none !important;
    border: 1px solid #d1d5db !important;
    padding: 10px 12px !important;
    margin-bottom: 6mm !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .chips li{
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    font-size: 11.5px !important;
    padding: 6px 10px !important;
  }

  .hero h1{ font-size: 20px !important; }
  h2{ font-size: 14px !important; margin-bottom: 4mm !important; }
  .meta{ font-size: 11.5px !important; color: #374151 !important; }

  .level{ background: #e5e7eb !important; }
  .level-bar{ background: #111 !important; }

  a, a:visited{
    color:#111 !important;
    text-decoration: underline !important;
  }
}

/* Contact links */
.link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
}

/* Anchor scroll fix (sticky header altında kalmasın) */
#contact {
    scroll-margin-top: calc(var(--headerH) + 14px);
}