/* ---------------------------------------------------------------
   Portfolyo düzeni — Start Bootstrap "Personal" temasının
   renk paleti (#1e30f3 → #e21e80) ve tasarım dili korunarak.
   Sadece düzen/yerleşim katmanı; renkler temanın kendisinden.
   --------------------------------------------------------------- */

:root {
  --ek-primary: #1e30f3;
  --ek-secondary: #e21e80;
  --ek-ink: #101828;
  --ek-muted: #667085;
  --ek-line: #e4e7ec;
  --ek-soft: #f6f7f9;
}

body { color: var(--ek-ink); -webkit-font-smoothing: antialiased; }

/* ---------- nav ---------- */
.site-nav { backdrop-filter: saturate(180%) blur(12px); background: rgba(255,255,255,.92) !important; border-bottom: 1px solid var(--ek-line); }
.site-nav .nav-link { color: #344054; padding: .55rem .8rem !important; border-radius: .5rem; }
.site-nav .nav-link:hover { color: var(--ek-primary); background: #f3f4ff; }
.site-nav .nav-link.active { color: var(--ek-primary); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #1e30f3 0%, #e21e80 100%);
  color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .02em;
}

/* ---------- dil değiştirici (bayraklar) ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--ek-line); border-radius: 10px; background: #fff; }
.lang-flag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 7px;
  text-decoration: none; line-height: 1; filter: grayscale(.45);
  transition: background .15s ease, filter .15s ease;
}
.lang-flag:hover { filter: none; background: #f4f5ff; }
.lang-flag.active { filter: none; background: #eff0ff; box-shadow: inset 0 0 0 1px rgba(30,48,243,.18); }
.lang-flag .flag { width: 20px; height: 15px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(16,24,40,.10); }
.lang-flag .lang-code { font-size: .62rem; font-weight: 800; letter-spacing: .05em; color: #475467; }
.lang-flag.active .lang-code { color: var(--ek-primary); }

/* ---------- hero ---------- */
.hero { padding: 4rem 0 3rem; overflow-x: clip; background:
  radial-gradient(900px 420px at 88% 8%, rgba(226,30,128,.07), transparent 60%),
  radial-gradient(760px 400px at 8% 0%, rgba(30,48,243,.09), transparent 62%); }
.hero-badge { background: #eef0ff; color: var(--ek-primary); border: 1px solid #dfe2ff; font-weight: 700; padding: .55rem 1rem; border-radius: 999px; font-size: .78rem; }
.hero-title { letter-spacing: -.035em; line-height: 1.14; padding-bottom: .06em; max-width: 22ch; font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  background: linear-gradient(315deg, #1e30f3 0%, #e21e80 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent; }
.hero-lead { max-width: 60ch; font-size: 1.06rem; }


.stats-row { border-top: 1px solid var(--ek-line); }
.stat { padding: .5rem 0; text-align: center; }
.stat-num { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat-label { color: var(--ek-muted); font-size: .84rem; margin-top: .35rem; }

/* ---------- sections ---------- */
.section-title { font-weight: 800; letter-spacing: -.025em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-line { width: 54px; height: 4px; border-radius: 4px; background: linear-gradient(135deg, #1e30f3 0%, #e21e80 100%); margin: .9rem 0 0; }
.about-text { font-size: 1.03rem; color: #344054; line-height: 1.7; }
.about-text + .about-text { color: #475467; }

.work-card { border: 1px solid var(--ek-line); border-radius: 16px; padding: 1.6rem; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.work-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(30,48,243,.10); border-color: #d5d9f8; }
.work-ico { font-size: 1.35rem; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #eef0ff; margin-bottom: 1rem; }
.work-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .5rem; }
.work-card p { color: var(--ek-muted); font-size: .92rem; margin: 0; line-height: 1.6; }

.exp-meta { border-left: 3px solid #e3e6ff; padding-left: 1rem; }
.exp-note { font-size: .8rem; color: var(--ek-muted); margin-top: .5rem; font-style: italic; }
.clean-list { list-style: none; padding: 0; margin: 0; }
.clean-list li { position: relative; padding-left: 1.15rem; margin-bottom: .55rem; font-size: .93rem; color: #475467; line-height: 1.6; }
.clean-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #b4bcf5; }
.clean-list.tight li { margin-bottom: .4rem; font-size: .88rem; }
.clean-list.touch li::before { background: linear-gradient(135deg, #1e30f3, #e21e80); }

.skill-row { display: grid; grid-template-columns: 210px 1fr; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px dashed var(--ek-line); }
.skill-row:last-child { border-bottom: 0; padding-bottom: 0; }
.skill-row:first-child { padding-top: 0; }
.skill-label { font-weight: 700; font-size: .88rem; color: var(--ek-primary); }
.skill-text { font-size: .9rem; color: #475467; line-height: 1.65; }
@media (max-width: 768px) { .skill-row { grid-template-columns: 1fr; gap: .35rem; } }

.side-card { border: 1px solid var(--ek-line); border-radius: 14px; padding: 1.25rem 1.35rem; background: #fff; }

/* ---------- projects ---------- */
.project-card { border: 1px solid var(--ek-line); border-radius: 18px; padding: 1.75rem; background: #fff; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(30,48,243,.10); }
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.project-tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ek-primary); background: #eef0ff; padding: .35rem .6rem; border-radius: 6px; }
.project-idx { font-weight: 800; color: #667085; font-size: .95rem; }
.project-card .project-title { font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .2rem; }
.project-org { font-size: .85rem; color: var(--ek-muted); }
.project-role { font-size: .8rem; font-weight: 600; color: #c4186f; margin: .35rem 0 .8rem; }
.project-card p { font-size: .92rem; color: #475467; line-height: 1.65; }
.project-list { padding-left: 1.1rem; margin: .2rem 0 1rem; }
.project-list li { font-size: .87rem; color: #475467; margin-bottom: .4rem; line-height: 1.55; }
.project-tech { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.tag { font-size: .72rem; font-weight: 600; color: #344054; background: var(--ek-soft); border: 1px solid var(--ek-line); padding: .25rem .55rem; border-radius: 6px; }

.cta-band h2, .cta-band p { color: #fff; }

/* ---------- resume ---------- */
.contact-line { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: center; font-size: .9rem; }
.contact-line a, .contact-line span { color: #475467; text-decoration: none; }
.contact-line a:hover { color: var(--ek-primary); }
.contact-line i { color: var(--ek-primary); margin-right: .3rem; }

/* ---------- cv archive ---------- */
.archive-sub { max-width: 62ch; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; justify-content: center; padding: 1rem; border: 1px solid var(--ek-line); border-radius: 14px; background: #fff; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.filter-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ek-muted); margin-right: .2rem; }
.chip-btn { border: 1px solid var(--ek-line); background: #fff; color: #344054; font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; transition: all .15s; }
.chip-btn:hover { border-color: #c3c9f0; }
.chip-btn.active { background: var(--ek-ink); border-color: var(--ek-ink); color: #fff; }

.cv-card { border: 1px solid var(--ek-line); border-radius: 16px; padding: 1.4rem; background: #fff; display: flex; flex-direction: column; gap: 1rem; }
.cv-card-top { display: flex; gap: .9rem; align-items: center; }
.cv-card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef0ff; color: var(--ek-primary); font-size: 1.2rem; flex: none; }
.cv-card .cv-card-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.cv-langs { display: flex; flex-wrap: wrap; gap: .5rem; }
.cv-lang { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--ek-line); border-radius: 10px; padding: .55rem .7rem; text-decoration: none; color: var(--ek-ink); flex: 1 1 130px; transition: all .15s; }
.cv-lang:hover { border-color: var(--ek-primary); background: #f6f7ff; color: var(--ek-primary); }
.cv-lang .flag { width: 18px; height: 13px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(16,24,40,.10); }
.cv-lang-name { font-size: .85rem; font-weight: 600; }
.cv-lang-code { font-size: .64rem; font-weight: 800; letter-spacing: .05em; background: var(--ek-soft); border-radius: 5px; padding: .12rem .3rem; }
.cv-lang i { margin-left: auto; font-size: .85rem; opacity: .45; }
.cv-lang:hover i { opacity: 1; }

/* ---------- contact ---------- */
.contact-card { border: 1px solid var(--ek-line); border-radius: 18px; padding: 1.8rem; background: #fff; }
.contact-row { display: flex; gap: .9rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--ek-line); color: var(--ek-ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.contact-row:last-of-type { border-bottom: 0; }
.contact-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #eef0ff; color: var(--ek-primary); flex: none; }
a.contact-row:hover { color: var(--ek-primary); }

.link-muted { color: var(--ek-muted); text-decoration: none; }
.link-muted:hover { color: var(--ek-primary); }

.text-gradient { background: linear-gradient(315deg, #1e30f3 0%, #e21e80 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .work-card, .project-card, .lang-flag { transition: none; } }

.brand-mark-sm { width: 26px; height: 26px; font-size: .62rem; border-radius: 7px; vertical-align: -.28em; }
.footer-brand { display: flex; align-items: center; gap: .5rem; }

/* ---------- responsive ince ayarlar ---------- */
.hero-badge { white-space: normal; text-align: center; line-height: 1.35; max-width: 100%; }
.hero-badge span { display: inline; }

@media (max-width: 575.98px) {
  .hero { padding: 2.6rem 0 2rem; }

  .hero-title { font-size: clamp(1.75rem, 8.2vw, 2.4rem); }
  .hero-lead { font-size: .98rem; }
  .profile-wrap { width: min(250px, 62vw); }
  .profile-monogram span { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .profile-chip { font-size: .72rem; padding: .4rem .65rem; right: -2%; }
  .stat-num { font-size: 1.55rem; }
  .stat-label { font-size: .78rem; }
  .section-title { font-size: 1.4rem; }
  .about-text { font-size: .96rem; }
  .card-body { padding: 1.15rem !important; }
  .exp-meta { border-left-width: 2px; padding-left: .8rem; }
  .clean-list li, .project-list li { font-size: .89rem; }
  .project-card { padding: 1.25rem; }
  .cv-lang { flex: 1 1 100%; }
  .filter-bar { padding: .75rem; gap: .75rem; }
  .contact-card { padding: 1.2rem; }
  .contact-line { font-size: .82rem; gap: .4rem .9rem; }
  .display-5 { font-size: 1.85rem; }
  .cta-band h2.display-6 { font-size: 1.6rem; }
  footer .small { font-size: .76rem; }
  .lang-flag { padding: 3px 5px; }
  .lang-flag .lang-code { display: none; }
  .site-nav .navbar-nav { padding-top: .5rem; }
  .site-nav .btn { width: 100%; }
  .site-nav .lang-switch { margin-top: .35rem; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-title { font-size: clamp(2.2rem, 5.6vw, 3rem); }
  .profile-wrap { width: min(300px, 55vw); }
}

/* uzun kelimeler / e-posta taşmasın */
body { overflow-wrap: break-word; }
.contact-line a { word-break: break-word; }


/* ---------- hero profil görseli (Start Bootstrap "Personal" düzeni) ---------- */
.hero .profile { margin-top: 5vw; }   /* fotoğraf kutudan taşıyor; üstte yer aç */
.hero .profile .profile-img { width: auto; max-width: none; filter: drop-shadow(0 18px 32px rgba(16,24,40,.18)); }
@media (max-width: 575.98px) {
  .hero .profile { height: 74vw; width: 74vw; border-radius: 6vw;
    max-height: none; max-width: none; margin-top: 26vw; }
  .hero .profile .profile-img { height: 96vw; max-height: none; }
  .hero .profile .dots-1, .hero .profile .dots-2,
  .hero .profile .dots-3, .hero .profile .dots-4 { width: 4vw; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .hero .profile { height: 56vw; width: 56vw; max-height: none; max-width: none; margin-top: 16vw; }
  .hero .profile .profile-img { height: 68vw; max-height: none; }
}
@media (min-width: 992px) {
  .hero .profile { height: 38vw; width: 38vw; max-height: 31rem; max-width: 31rem; margin-top: 6vw; }
  .hero .profile .profile-img { height: 45vw; max-height: 36.5rem; }
}

.stats-note { font-size: .86rem; color: var(--ek-muted); display: flex; align-items: center;
  justify-content: center; gap: .45rem; text-align: center; flex-wrap: wrap; }
.stats-note i { color: var(--ek-primary); }
@media (max-width: 575.98px) { .stats-note { font-size: .78rem; } }

/* ---------- mobilde marka adı ---------- */
.brand-name { font-size: .95rem; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 575.98px) {
  .site-nav .container { padding-left: .7rem !important; padding-right: .7rem !important; }
  .brand-name { font-size: .78rem; }
  .site-nav .brand-mark { width: 28px; height: 28px; font-size: .68rem; border-radius: 8px; }
  .site-nav .navbar-brand { gap: .35rem !important; }
  .lang-switch { gap: 1px; padding: 2px; }
  .lang-flag { padding: 2px 3px; }
  .lang-flag .flag { width: 16px; height: 12px; }
  .site-nav .navbar-toggler { padding: .2rem .35rem; font-size: .85rem; }
  .site-nav .navbar-toggler-icon { width: 1.1em; height: 1.1em; }
}
@media (max-width: 279px) {
  .brand-name { display: none; }
}

/* ---------- CTA şeridi kontrastı (WCAG AA) ---------- */
.cta-band.bg-gradient-primary-to-secondary {
  background: linear-gradient(135deg, #1e30f3 0%, #b31563 100%);
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p.opacity-75 { opacity: 1; }
.cta-band .btn-light { color: #101828; font-weight: 700; }

/* ---------- print ---------- */
@media print {
  @page { size: A4; margin: 13mm 12mm; }
  html, body { background: #fff !important; color: #000 !important; font-size: 10.5pt; }
  .site-nav, footer, .btn, .filter-bar, .hero-badge, .section-line,
  .contact-ico, .cv-lang-code, .cv-lang i, .stats-note,
  .no-print { display: none !important; }
  main { margin: 0 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  a { color: #000 !important; text-decoration: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; }
  .card, .side-card, .project-card, .work-card {
    border: 0 !important; box-shadow: none !important; break-inside: avoid;
  }
  .card-body { padding: 0 !important; }
  section { break-inside: auto; }
  h2 { break-after: avoid; page-break-after: avoid; }
  .clean-list li, .project-list li { break-inside: avoid; }
  .exp-meta { border-left-color: #999 !important; }
  .contact-line a::after { content: none !important; }
  i.bi, .bi::before { display: none !important; }
  .contact-line { gap: .2rem .9rem; }
  .hero-badge, .badge { border: 0 !important; background: none !important; color: #333 !important; padding: 0 !important; }
  .bg-light, .bg-white, body, .card, .side-card, .project-card, .work-card,
  section, .container, .cv-card, div { background: transparent !important; }
  body { background: #fff !important; }
  .profile-text, .text-body-secondary { color: #222 !important; }
  h2.text-primary, .text-primary { color: #102a4c !important; }
}

/* ---------- WCAG AA: bg-light üzerinde Bootstrap text-muted sınırın altında ---------- */
.text-muted { color: #5f6b7a !important; }

/* ---------- hero kanıt çipleri ---------- */
.proof-chips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center;
}
@media (min-width: 992px) { .proof-chips { justify-content: flex-start; } }

.proof-chip {
  display: inline-flex; align-items: baseline; gap: .4rem;
  background: #fff; border: 1px solid var(--ek-line);
  border-radius: 999px; padding: .32rem .72rem;
  font-size: .8rem; line-height: 1.3; color: #475467;
}
.proof-num { font-weight: 800; color: var(--ek-ink); font-size: .85rem; letter-spacing: -.01em; }
.proof-lbl { color: #5f6b7a; }

@media (max-width: 575.98px) {
  .proof-chips { gap: .4rem; flex-direction: column; align-items: stretch; }
  .proof-chip { font-size: .82rem; padding: .5rem .85rem; justify-content: flex-start; }
  .proof-num { font-size: .88rem; }
}

/* ---------- "Nasıl çalışırım" sayfası ---------- */
.method-hero { padding: 2.6rem 0 2.2rem; background:
  radial-gradient(760px 380px at 88% 0%, rgba(226,30,128,.07), transparent 62%),
  radial-gradient(700px 360px at 6% 4%, rgba(30,48,243,.08), transparent 64%); }
.method-h1 { letter-spacing: -.03em; line-height: 1.08; }
.method-lead { max-width: 62ch; font-size: 1.06rem; }

.method-loop { list-style: none; padding: 0; margin: 0; position: relative; }
.method-loop::before {
  content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, #1e30f3 0%, #e21e80 100%); opacity: .22; border-radius: 2px;
}
.method-step { display: flex; gap: 1.4rem; padding: 0 0 2rem; position: relative; }
.method-step:last-child { padding-bottom: 0; }
.method-num {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  color: #fff; background: linear-gradient(135deg, #1e30f3 0%, #e21e80 100%);
  box-shadow: 0 8px 20px rgba(30,48,243,.22); position: relative; z-index: 1;
}
.method-body { padding-top: .25rem; }
.method-title { font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .1rem; }
.method-claim { font-weight: 600; color: #c4186f; font-size: .95rem; margin: 0 0 .6rem; }
.method-text { color: #475467; font-size: .96rem; line-height: 1.68; max-width: 68ch; margin: 0 0 .8rem; }
.method-out { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.method-out-label {
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #1849a9; background: #eef0ff; padding: .25rem .55rem; border-radius: 5px;
}
.method-out-list { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.method-out-list li {
  font-size: .78rem; color: #344054; background: #f6f7f9;
  border: 1px solid var(--ek-line); padding: .24rem .55rem; border-radius: 6px;
}

.principle { border: 1px solid var(--ek-line); border-radius: 14px; padding: 1.3rem 1.4rem; background: #fff; }
.principle-title { font-size: .98rem; font-weight: 800; margin: 0 0 .45rem; letter-spacing: -.01em; }
.principle-text { font-size: .9rem; color: #475467; line-height: 1.6; margin: 0; }

.artefact-card { border: 1px solid var(--ek-line); border-radius: 14px; padding: 1.3rem 1.4rem; background: #fff; }
.artefact-title { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #1849a9; margin: 0 0 .8rem; }
.artefact-list { list-style: none; padding: 0; margin: 0; }
.artefact-list li { position: relative; padding-left: 1rem; font-size: .87rem; color: #475467;
  margin-bottom: .4rem; line-height: 1.5; }
.artefact-list li::before { content: ""; position: absolute; left: 0; top: .58em;
  width: 5px; height: 5px; border-radius: 50%; background: #b4bcf5; }

@media (max-width: 575.98px) {
  .method-loop::before { left: 20px; }
  .method-step { gap: .9rem; padding-bottom: 1.6rem; }
  .method-num { width: 42px; height: 42px; font-size: .8rem; }
  .method-title { font-size: 1.06rem; }
  .method-text { font-size: .92rem; }
  .method-h1 { font-size: 2rem; }
}
@media print {
  .method-loop::before { display: none; }
  .method-num { background: none !important; color: #102a4c !important; box-shadow: none !important; }
}

