/* ================================================
   MEMET AKİF KOÇ CV — Single Inter Font System
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  /* Göz yormayan krem-beyaz zemin */
  --bg:            #f5f4f0;
  --bg-surface:    #faf9f6;
  --bg-rule:       #e6e3db;

  --text:          #1a1916;
  --text-2:        #4a4740;
  --text-3:        #9a9590;

  /* İkinci renk: Derin Adaçayı / Teal */
  --acc:           #2e8b84;
  --acc-light:     rgba(46, 139, 132, 0.08);
  --acc-mid:       rgba(46, 139, 132, 0.22);
  --acc-dark:      #256f68;

  /* Tek font ailesi */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --max: 820px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv01';
}

a { text-decoration: none; color: inherit; }

/* ── DİL ÇUBUĞU ── */
.lang-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-rule);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 10px 32px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-3);
  transition: all 0.18s var(--ease);
  letter-spacing: 0.01em;
}

.lang-btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.lang-btn:hover { color: var(--text-2); background: rgba(0,0,0,0.04); }
.lang-btn.active {
  background: var(--acc-light);
  border-color: var(--acc-mid);
  color: var(--acc);
  font-weight: 600;
}

/* ── SAYFA KAPSAYICI ── */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 32px 80px;
}

/* ── HEADER & PROFILE PHOTO ── */
.cv-header {
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--bg-rule);
  margin-bottom: 52px;
}

.header-profile-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--bg-rule);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.header-text-block { flex: 1; }

.cv-name {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}

.cv-role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--acc);
  letter-spacing: -0.01em;
}

.cv-bio {
  font-size: 0.97rem;
  color: var(--text-2);
  max-width: 680px;
  line-height: 1.8;
  margin-bottom: 28px;
  font-weight: 400;
}

/* Link sırası */
.cv-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cv-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 16px;
  border: 1px solid var(--bg-rule);
  border-radius: 7px;
  background: var(--bg-surface);
  transition: all 0.18s var(--ease);
}

.cv-link svg, .cv-link img { width: 15px; height: 15px; flex-shrink: 0; }

.cv-link:hover {
  border-color: var(--acc-mid);
  color: var(--acc);
  background: var(--acc-light);
}

/* ── BÖLÜM ── */
.cv-section { margin-bottom: 52px; }

.cv-section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg-rule);
  margin-bottom: 20px;
}


/* ── EXPERIENCE SECTION ── */
.experience-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--bg-rule);
}
.experience-item:last-child { border-bottom: none; }
.experience-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-top: 4px;
  border-radius: 6px;
  background: #ffffff;
  padding: 4px;
  border: 1px solid var(--bg-rule);
}
.experience-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.experience-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.experience-company {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.experience-role-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--acc);
}
.experience-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.experience-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 8px;
}

/* ── PROJE SATIRLARI ── */
.project-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--bg-rule);
}
.project-item:last-child { border-bottom: none; }

.project-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-top: 4px;
  border-radius: 6px;
}

.project-logo-inline {
  width: 34px;
  height: 34px;
  margin-top: 4px;
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 7px;
}

.project-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.project-url {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--acc);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: 1px solid var(--acc-mid);
  border-radius: 5px;
  background: var(--acc-light);
  transition: background 0.15s;
  flex-shrink: 0;
}
.project-url:hover { background: var(--acc-mid); }

.project-desc {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.72;
  margin-bottom: 10px;
  font-weight: 400;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--bg-rule);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── YETKİNLİKLER ── */
.skill-group { margin-bottom: 22px; }
.skill-group-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--text-2);
  background: var(--bg-surface);
  border: 1px solid var(--bg-rule);
  padding: 5px 13px;
  border-radius: 6px;
}
.skill-chip i, .skill-chip img, .skill-chip svg {
  font-size: 0.95rem;
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── DİL TABLOLARI ── */
.lang-subsection { margin-bottom: 32px; }

.lang-subsection-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.lang-table {
  width: 100%;
  border-collapse: collapse;
}
.lang-table thead tr { border-bottom: 1px solid var(--bg-rule); }
.lang-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 8px 14px 8px 0;
  text-align: left;
}
.lang-table td {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--bg-rule);
  font-size: 0.91rem;
  color: var(--text-2);
  vertical-align: middle;
}
.lang-table tr:last-child td { border-bottom: none; }

.lang-flag-img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  border: 1px solid var(--bg-rule);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.lang-name { font-weight: 600; color: var(--text); }

.level-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
}
.level-native   { background: var(--acc-light); color: var(--acc); border: 1px solid var(--acc-mid); }
.level-advanced { background: rgba(37,99,235,0.07); color: #2563eb; border: 1px solid rgba(37,99,235,0.18); }
.level-learning { background: rgba(180,83,9,0.07); color: #b45309; border: 1px solid rgba(180,83,9,0.18); }

/* ── CTA ── */
.cv-cta {
  margin-top: 60px;
  padding-top: 52px;
  border-top: 1px solid var(--bg-rule);
}
.cta-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.cta-desc {
  font-size: 0.97rem;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 28px;
  line-height: 1.75;
  font-weight: 400;
}
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-acc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px;
  font-weight: 600; font-size: 0.92rem;
  font-family: var(--font);
  background: var(--acc); color: #fff;
  transition: all 0.18s var(--ease);
}
.btn-acc:hover { background: var(--acc-dark); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  font-weight: 500; font-size: 0.92rem;
  font-family: var(--font);
  border: 1px solid var(--bg-rule);
  color: var(--text-2); background: var(--bg-surface);
  transition: all 0.18s var(--ease);
}
.btn-outline:hover { border-color: var(--acc-mid); color: var(--acc); background: var(--acc-light); }

/* ── FOOTER ── */
.cv-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-rule);
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 400;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  main { padding: 80px 18px 60px; }
  .header-profile-wrap { flex-direction: column; text-align: center; gap: 16px; }
  .cv-links { justify-content: center; }
  .lang-bar { padding: 10px 16px; gap: 2px; }
  .lang-btn span { display: none; }
  .project-item { grid-template-columns: 1fr; gap: 0; }
  .experience-item { grid-template-columns: 1fr; gap: 0; }
  .experience-logo { display: none; }
  .experience-head { flex-direction: column; gap: 6px; }
  .project-logo, .project-logo-inline { display: none; }
  .project-head { flex-direction: column; gap: 6px; }
}
