:root {
  --white: #ffffff;
  --navy: #0b1f3a;
  --bg: #f4f7fa;
  --bg-page: #ffffff;
  --text: #172033;
  --headings: #0b1f3a;
  --muted: #64748b;
  --line: #dce4ec;
  --accent: #2d8fb8;
  --header-bg: rgba(255, 255, 255, 0.96);
  --card-bg: #ffffff;
  --button-hover: #14345a;
  --shadow: rgba(11, 31, 58, 0.12);
  --horn-shadow: rgba(11, 31, 58, 0.14);
  --max: 1200px;
  --font: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --anchor-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 32 32'%3E%3Ctext x='3' y='25' font-size='24'%3E%E2%9A%93%3C/text%3E%3C/svg%3E") 5 12, auto;
}

html.dark-theme,
body.dark-theme,
.dark-theme {
  --white: #111a28;
  --navy: #f1f5f9;
  --bg: #15243d;
  --bg-page: #0a111e;
  --text: #cbd5e1;
  --headings: #ffffff;
  --muted: #94a3b8;
  --line: #1e324f;
  --accent: #38bdf8;
  --header-bg: rgba(10, 17, 30, 0.96);
  --card-bg: #111c2e;
  --button-hover: #1e3a5f;
  --shadow: rgba(0, 0, 0, 0.5);
  --horn-shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  cursor: var(--anchor-cursor);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg-page);
  font-family: var(--font);
  line-height: 1.6;
  cursor: var(--anchor-cursor);
  transition: background-color 200ms ease, color 200ms ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  cursor: var(--anchor-cursor);
  text-decoration: none;
}

button,
.button {
  cursor: var(--anchor-cursor);
}

:focus-visible {
  outline: 3px solid rgba(45, 143, 184, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  transition: background-color 200ms ease, border-color 200ms ease;
}

main,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.nav,
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.nav {
  min-height: auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: grid;
  gap: 0.1rem;
  color: var(--navy);
  font-weight: 800;
}

.brand span {
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 700;
  height: auto;
  overflow: visible;
}

.nav-links a:not(.lang-link) {
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:not(.lang-link):hover,
.nav-links a:not(.lang-link):focus-visible {
  border-color: var(--navy);
}

.nav-links a:not(.lang-link)[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2.4rem;
  height: 2.1rem;
  border: 1px solid var(--line) !important;
  border-radius: 999px;
  padding: 0.25rem 0.65rem !important;
  text-align: center;
  line-height: 1;
  transition: all 160ms ease;
}

.lang-link:hover,
.lang-link:focus-visible {
  border-color: var(--accent) !important;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2.4rem;
  height: 2.1rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1;
  cursor: var(--anchor-cursor);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-1px);
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
  width: 100%;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  /* Şeffaf PNG'nin daha şık durması için hafif bir derinlik */
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-number {
  display: none !important;
}

h1,
h2,
h3,
.section-title,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.section-title {
  color: var(--navy);
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.hero-copy > p:not(.eyebrow),
.prose,
.project p,
.project dd,
.skill-grid p,
.software em,
.timeline span {
  color: var(--muted);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  color: var(--navy);
  font-weight: 800;
}

.button:hover,
.button:focus-visible {
  background: var(--navy);
  color: var(--bg-page);
}

.button.primary {
  background: var(--navy);
  color: var(--bg-page);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--button-hover);
  color: #ffffff;
}

.section {
  scroll-margin-top: 96px;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

#hakkimda,
#about,
.about-section {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-title {
  display: grid;
  align-content: start;
  margin-top: 0;
}

.about-title h2 {
  margin-top: 0;
  font-size: clamp(calc(2rem - 2px), calc(4vw - 2px), calc(4rem - 2px));
}

.about-photo {
  width: min(100%, 300px);
  align-self: end;
  margin-top: 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 0.35rem;
  filter: drop-shadow(0 18px 34px var(--shadow));
}

.registry-note {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 2px;
  color: #555;
  clear: both;
  grid-column: 1 / -1;
  text-transform: uppercase;
  font-weight: 700;
}

body.dark-theme .registry-note {
  border-top-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.about-section .registry-note,
#hakkimda .registry-note,
#about .registry-note,
.split .registry-note {
  grid-column: 1 / -1;
}

.prose p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* İsim Konteyneri */
.bio-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 0.2rem;
  line-height: 1;
}

/* Ad (Vivaldi) */
.bio-name .first-name {
  font-family: 'Vivaldi', cursive, serif;
  font-size: 40px;
  font-weight: normal;
  margin-right: 10px;
}

/* Soyad */
.bio-name .last-name {
  font-family: 'Vivaldi', cursive, serif;
  font-size: 40px;
  font-weight: normal;
  text-transform: capitalize;
  letter-spacing: 1px;
  margin-left: 5px;
}

/* Unvan */
.bio-role {
  font-size: 30px !important;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

body.dark-theme .bio-role {
  color: #e2e8f0;
}

.section-head {
  max-width: 760px;
}

.page-section {
  min-height: calc(100vh - 82px);
}

.page-intro {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
}

.project-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.project {
  display: block;
  padding: clamp(1.5rem, 4vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
}

.project > span {
  display: none !important;
}

.project-photo {
  margin: 1rem 0 1.1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  border-radius: 8px;
}

/* Proje Görselleri - Tam Gösterim Kuralı */
.project-photo img,
.project-image img,
.project-item img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
  display: block;
}

.project-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

/* Metin alanı solda (%50 civarı alan kaplar) */
.project-split .split-text {
  flex: 1;
  order: 1;
}

/* Görsel alanı sağda */
.project-split .split-image {
  flex: 1;
  order: 2;
  display: flex;
  justify-content: flex-end;
}

.project-split .split-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mobil ekranlar için (Responsive) kırılma noktası */
@media (max-width: 768px) {
  .project-split {
    flex-direction: column;
    gap: 1.5rem;
  }
  .project-split .split-text,
  .project-split .split-image {
    order: unset;
    justify-content: center;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background-color: #f8f9fa;
  transition: transform 180ms ease;
}

body.dark-theme .gallery-item img {
  background-color: #1a2234;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.book-shelf {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.book-category {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
}

.book-category h3 {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.book-list {
  columns: 2 260px;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-list li {
  break-inside: avoid;
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.book-list strong,
.book-list span {
  display: block;
}

.book-list strong {
  color: var(--navy);
  line-height: 1.25;
}

.book-list span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap !important;
}

.numbered-book-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: 2rem;
  padding-left: 0;
  counter-reset: books;
  columns: initial;
  list-style: none;
  border-top: 1px solid var(--line);
}

.numbered-book-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  row-gap: 4px;
  column-gap: 0.85rem;
  align-items: baseline;
  counter-increment: books;
}

.numbered-book-list li strong {
  grid-column: 2;
}

.numbered-book-list li span {
  grid-column: 2;
  white-space: nowrap !important;
  margin-top: 4px;
}

.numbered-book-list li::before {
  content: counter(books, decimal-leading-zero);
  grid-column: 1;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.project dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.5rem 1rem;
  margin: 1rem 0 0;
}

.project dt {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project dd {
  margin: 0;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline strong {
  color: var(--navy);
}

.timeline span {
  grid-column: 2;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.skill-grid section {
  background: var(--card-bg);
  padding: 1.25rem;
}

.software {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.software p {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(120px, 0.5fr) minmax(220px, 1.4fr);
  gap: 1rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.software strong {
  color: var(--navy);
}

.software span {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.software em {
  font-style: normal;
}

.contact {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(2rem, 6vw, 4rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.contact h2 {
  max-width: 820px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--navy);
  font-weight: 800;
}

.footer-credit {
  color: var(--accent) !important;
  text-align: center;
}

@media (max-width: 767px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-note {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  img {
    max-width: 100%;
  }

  .bio-name {
    margin-top: 0;
  }

  .about-photo {
    max-width: 240px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-category {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .software p {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 620px) {
  main,
  .container,
  .nav,
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  .actions,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .project,
  .project dl,
  .timeline li,
  .skill-grid,
  .gallery-grid,
  .numbered-book-list {
    grid-template-columns: 1fr;
  }

  .numbered-book-list li {
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }

  .timeline span {
    grid-column: auto;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-note {
    border-left: 1px solid var(--line);
    border-top: 0;
    padding-left: 1.4rem;
  }

  .split {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  .book-category {
    display: grid;
    grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
    gap: clamp(1rem, 4vw, 3rem);
  }

  .software p {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(120px, 0.5fr) minmax(220px, 1.4fr);
    gap: 1rem;
  }

  .actions {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .button {
    width: auto;
  }
}

@media (min-width: 992px) {
  .hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .skill-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1fr);
    gap: 5rem;
  }
}
