@font-face {
  font-family: "Open Sans";
  src: url("./assets/open-sans-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./assets/open-sans-semibold.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./assets/open-sans-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f8f8fc;
  --white: #fff;
  --ink: #18172d;
  --muted: #55566d;
  --primary: #4235c7;
  --primary-hover: #3427aa;
  --line: #dfdeec;
  --dark: #1e1a3a;
  --lilac: #eae7ff;
  --radius: 21px;
  --page-width: 72rem;
  font-family: "Open Sans", system-ui, sans-serif;
  font-synthesis: none;
}

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

html { scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #6355e4;
  outline-offset: 5px;
}

h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.13;
}

p { color: var(--muted); }

.container { width: min(var(--page-width), calc(100% - 5rem)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 8;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(248, 248, 252, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  min-height: 4.55rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-photo {
  display: block;
  flex-shrink: 0;
  width: 2.38rem;
  height: 2.38rem;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 41%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
body:has(#deneyim:target) .site-nav a[href="#deneyim"],
body:has(#yetkinlikler:target) .site-nav a[href="#yetkinlikler"],
body:has(#egitim:target) .site-nav a[href="#egitim"],
body:has(#projeler:target) .site-nav a[href="#projeler"] {
  background: var(--lilac);
  color: var(--primary);
}

.site-nav .nav-cv {
  margin-left: 0.55rem;
  padding-inline: 1rem;
  border: 1px solid #cecaee;
  color: var(--primary);
}

.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  padding-block: clamp(3.5rem, 7vw, 6.25rem) clamp(2.8rem, 5vw, 4.65rem);
}

.eyebrow {
  display: flex;
  gap: 0.62rem;
  align-items: center;
  margin-bottom: 0.85rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 1.55rem;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(4.4rem, 8.4vw, 7.75rem);
  line-height: 0.92;
  letter-spacing: -0.083em;
}

.hero-description {
  max-width: 32rem;
  margin-top: 1.55rem;
  font-size: clamp(1rem, 1.55vw, 1.17rem);
  line-height: 1.7;
}

.hero-actions, .cv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.hero-actions { margin-top: 1.65rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 3.22rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { border-color: #d3cfee; background: var(--white); color: var(--primary); }
.button-secondary:hover { border-color: #c0b9ed; background: #f2efff; }

.download-icon {
  position: relative;
  width: 0.97rem;
  height: 0.88rem;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  clip-path: polygon(0 50%, 36% 50%, 36% 0, 63% 0, 63% 50%, 100% 50%, 100% 100%, 0 100%);
}

.download-icon::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 0.51rem;
  top: 0;
  left: calc(50% - 1px);
  background: currentColor;
}

.hero-portrait {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1.13;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid #d5d0fa;
  border-radius: 28px;
  background: radial-gradient(ellipse at 61% 35%, #f5f1ff, transparent 57%), linear-gradient(142deg, #c9bdf8, #e6e2ff 58%, #d4ccff);
}

.portrait-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(90deg, rgba(99, 80, 175, 0.1) 1px, transparent 1px), linear-gradient(rgba(99, 80, 175, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse, transparent 24%, #000 86%);
}

.portrait-frame {
  position: relative;
  width: min(53%, 16rem);
  aspect-ratio: 1;
  border: 8px solid #f4f1ff;
  border-radius: 50%;
  background: #dedbf0;
  box-shadow: 0 1rem 2.7rem #4a388735;
}

.portrait-frame::before,
.portrait-frame::after {
  position: absolute;
  z-index: -1;
  inset: -2rem;
  border-radius: 50%;
  border: 1px solid #6b53b935;
  content: "";
}

.portrait-frame::after { inset: -3.8rem; border-style: dashed; }

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-portrait figcaption {
  position: absolute;
  right: 1.05rem;
  bottom: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 0.8rem;
  border: 1px solid #e0d9f7;
  border-radius: 8px;
  background: #fbf9ff;
  color: #35296e;
  font-size: 0.875rem;
  font-weight: 700;
}

.location-dot {
  width: 0.56rem;
  height: 0.56rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.summary-card {
  padding: clamp(1.25rem, 3.25vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.summary-card h2 { margin-bottom: 0.8rem; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.summary-card p { max-width: 62rem; }

.section { padding-block: clamp(3.75rem, 7.5vw, 6rem); }
.section-intro { margin-bottom: clamp(1.45rem, 3.25vw, 2.4rem); }

h2 {
  font-size: clamp(2.35rem, 5vw, 4.05rem);
  letter-spacing: -0.058em;
}


.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-entry {
  display: grid;
  grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3.5rem);
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1.35rem, 3vw, 2.2rem);
}

.timeline-entry + .timeline-entry { border-top: 1px solid var(--line); }

.timeline-organization {
  position: relative;
  padding-left: 1.25rem;
}

.timeline-organization::before {
  position: absolute;
  content: "";
  width: 0.64rem;
  height: 0.64rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  top: 0.52rem;
  left: 0;
  background: var(--lilac);
}

.company { color: var(--ink); font-weight: 700; }
.time { font-size: 0.875rem; margin-top: 0.2rem; }
.timeline h3 { margin-bottom: 0.5rem; font-size: clamp(1.17rem, 2.2vw, 1.4rem); letter-spacing: -0.027em; }
.timeline p + p:not(.time) { margin-top: 0.45rem; }
.content-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.content-list li + li { margin-top: 0.38rem; }

.role-details { margin-top: 0.65rem; }
.role-details summary { padding-block: 0.4rem; cursor: pointer; color: var(--primary); font-weight: 700; }
.role-details .content-list { margin-top: 0.35rem; }
.role-details strong { color: var(--ink); }

.skill-section {
  background: var(--dark);
  color: var(--white);
}

.tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  border: 1px solid #d8d2f2;
  border-radius: 6px;
  padding: 0.23rem 0.53rem;
  color: #443989;
  font-size: 0.875rem;
  font-weight: 600;
}

.skills-list li {
  border-color: #5b527c;
  background: #2a254a;
  color: #eee9ff;
  padding: 0.48rem 0.8rem;
  font-size: 1rem;
}

.learning-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: start;
  gap: clamp(1rem, 3.5vw, 3rem);
}

.education-card, .credentials {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.3rem, 3vw, 2rem);
}

.education-card {
  position: relative;
  isolation: isolate;
  min-height: 16.75rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  overflow: hidden;
  background: #ece8ff;
  border-color: #ded5fa;
}

.education-card::after {
  position: absolute;
  z-index: -1;
  right: -4.25rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  border: 1px solid #cfc5f4;
  border-radius: 50%;
  box-shadow: 0 0 0 1.9rem #ddd4f950, 0 0 0 3.7rem #ddd4f945;
  content: "";
}

.education-card h3 {
  max-width: 18rem;
  margin-bottom: 0.73rem;
  font-size: clamp(1.42rem, 2.7vw, 2.05rem);
  letter-spacing: -0.045em;
}

.credentials h3 { font-size: 1.22rem; }

.credential-list { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.credential-list li + li { border-top: 1px solid var(--line); }
.credential-list li { padding: 0.65rem 0; color: var(--muted); }
.project-section {
  border-block: 1px solid var(--line);
  background: #f0eff8;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: 1rem;
}

.project-card {
  padding: clamp(1.2rem, 2.8vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.project-featured { background: #e1dcff; border-color: #d8cffc; }
.project-type { color: #4a3b9a; font-size: 0.875rem; font-weight: 700; }
.project-card h3 { margin: 0.6rem 0 0.75rem; font-size: clamp(1.28rem, 2.8vw, 1.8rem); letter-spacing: -0.04em; }

.cv-section { padding-block: clamp(2.85rem, 6vw, 5rem); }

.cv-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.4rem, 4vw, 2.8rem);
  border: 1px solid #d9d4f6;
  border-radius: var(--radius);
  background: #eeeaff;
}

.extra-info { margin-top: 1.55rem; }
.extra-info h3 { font-size: 1.2rem; }
.cv-actions { flex-shrink: 0; }

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.25rem;
}

.footer-inner > a:last-child {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-underline-offset: 3px;
}

@media (max-width: 970px) {
  .container { width: calc(100% - 3rem); }
  .hero { gap: 1.7rem; }
  .hero-portrait { min-height: 17.25rem; }
  .cv-card { align-items: start; flex-direction: column; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 5rem; }
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.2rem; flex-wrap: wrap; gap: 0; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 0.15rem; }
  .site-nav a { padding-inline: 0.65rem; }
  .site-nav .nav-cv { margin-left: 0; }
  .site-nav.menu-enabled {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    padding: 0.65rem 1rem 0.9rem;
    border-bottom: 1px solid var(--line);
    background: var(--background);
    box-shadow: 0 1rem 1.4rem #221b4f12;
  }

  .site-nav.menu-enabled.is-open { display: grid; }
  .site-nav.menu-enabled a { min-height: 2.75rem; }
  .site-nav.menu-enabled .nav-cv { margin-top: 0.15rem; }

  .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid #d3cfee;
    border-radius: 8px;
    background: var(--white);
    color: var(--primary);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
  }

  .menu-lines {
    width: 0.9rem;
    height: 0.59rem;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  }

  .hero { grid-template-columns: 1fr; gap: 1.85rem; padding-top: 2.75rem; }
  .hero h1 { font-size: clamp(3.6rem, 14vw, 6rem); }
  .hero-description { margin-top: 1.15rem; }
  .hero-actions { margin-top: 1.2rem; }
  .hero-portrait { width: 100%; aspect-ratio: 1.35; min-height: 14rem; max-height: 21.5rem; }
  .portrait-frame { width: min(47%, 13rem); border-width: 6px; }
  .portrait-frame::before { inset: -1.25rem; }
  .portrait-frame::after { inset: -2.6rem; }
  .hero-portrait figcaption { bottom: 0.7rem; right: 0.7rem; }

  .learning-grid, .project-grid { grid-template-columns: 1fr; }
  .timeline-entry { grid-template-columns: 1fr; gap: 0.65rem; }
  .timeline-entry h3 { margin-bottom: 0.35rem; }
  .timeline-organization { padding-left: 1.05rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
