/* ================================
   ALPER ERDİNÇ — indie developer portfolio
   black / orange / character card
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,800;1,700;1,800&family=Space+Mono:wght@400;700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a0a;
  --bg2: #101010;
  --panel: #151515;
  --panel2: #1b1b1b;

  --text: #ece7df;
  --muted: #aaa197;
  --faint: #716960;

  --line: #292521;
  --line2: #40352d;

  --accent: #ff7a1a;
  --accent2: #b45118;
  --accent-soft: rgba(255, 122, 26, 0.08);
  --accent-rgb: 255, 122, 26;

  --radius: 8px;

  --font: 'Work Sans', system-ui, sans-serif;
  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', monospace;
  --name: 'Archivo Black', system-ui, sans-serif;
  --surname: 'Playfair Display', Georgia, serif;

  --ink: var(--text);
  --ink2: var(--muted);
  --ink3: var(--faint);
  --border: var(--line);
  --yellow: var(--accent);
  --shadow: none;
  --shadow-hover: none;
}

html[data-theme="orange"] {
  --accent: #ff7a1a;
  --accent2: #b45118;
  --accent-soft: rgba(255, 122, 26, 0.08);
  --accent-rgb: 255, 122, 26;
}

html[data-theme="blue"] {
  --accent: #4aa3ff;
  --accent2: #1f5f9f;
  --accent-soft: rgba(74, 163, 255, 0.09);
  --accent-rgb: 74, 163, 255;
}

html[data-theme="purple"] {
  --accent: #b987ff;
  --accent2: #6f3fb0;
  --accent-soft: rgba(185, 135, 255, 0.09);
  --accent-rgb: 185, 135, 255;
}

html[data-theme="green"] {
  --accent: #56d68a;
  --accent2: #248a50;
  --accent-soft: rgba(86, 214, 138, 0.09);
  --accent-rgb: 86, 214, 138;
}

html[data-mode="day"] {
  --bg: #f4efe6;
  --bg2: #fffaf2;
  --panel: #fff7ec;
  --panel2: #f2e6d7;

  --text: #18130f;
  --muted: #584e43;
  --faint: #8c7f71;

  --line: #ded1bf;
  --line2: #c8b69e;

  --ink: var(--text);
  --ink2: var(--muted);
  --ink3: var(--faint);
  --border: var(--line);
}


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

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background:
    radial-gradient(circle at 20% 10%, rgba(var(--accent-rgb), 0.10), transparent 22rem),
    radial-gradient(circle at 80% 90%, rgba(var(--accent-rgb), 0.05), transparent 24rem);
}

/* ===== CURSOR ===== */

.cursor {
  position: fixed;
  width: 16px;
  height: 16px;

  background: var(--accent);

  pointer-events: none;
  z-index: 9999;

  /*
    Mouse koordinatı üçgenin sol üst ucuna denk gelsin.
    Bu yüzden normal halde translate kullanmıyoruz.
  */
  transform: none;

  /*
    Sol üst köşe cursor ucu gibi davranır.
  */
  clip-path: polygon(0 0, 100% 42%, 38% 100%);

  transition:
    width 0.16s ease,
    height 0.16s ease,
    background 0.16s ease,
    border 0.16s ease,
    border-radius 0.16s ease,
    clip-path 0.16s ease,
    transform 0.16s ease;
}

.cursor.big {
  width: 30px;
  height: 30px;

  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 50%;

  clip-path: none;

  /*
    Hover halinde çember gerçek mouse noktasının etrafında büyüsün.
  */
  transform: translate(-50%, -50%);
}

/* ===== NAVBAR ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;

  width: min(1040px, calc(100% - 2rem));
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 1rem;

  padding: 1rem 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  flex: 0 0 auto;

  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;

  padding: 0.32rem 0.55rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);

  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.nav-logo:hover {
  color: var(--accent);
  background: transparent;
}

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

.nav-links a,
.nav-dropdown summary {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 400;
  color: var(--faint);
  text-decoration: none;
  text-transform: lowercase;

  padding: 0.35rem 0.55rem;
  border-radius: 4px;

  user-select: none;

  transition:
    color 0.16s ease,
    background 0.16s ease;
}

.nav-links a:hover,
.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  color: var(--accent);
  background: var(--accent-soft);
}

.lang-toggle,
.nav-hamburger {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);

  background: transparent;
  border: 1px solid var(--line2);
  border-radius: 4px;
  padding: 0.32rem 0.55rem;

  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.lang-toggle:hover,
.nav-hamburger:hover {
  color: var(--accent);
  border-color: var(--accent2);
  background: var(--accent-soft);
}

.nav-hamburger {
  display: none;
}

/* ===== DROPDOWN ===== */

.nav-dropdown {
  position: relative;
  font-family: var(--mono);
}

.nav-dropdown summary {
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: " /";
  color: var(--accent2);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  z-index: 200;
  transform: translateX(-50%);

  width: 230px;
  padding: 0.45rem;

  display: flex;
  flex-direction: column;
  gap: 0.1rem;

  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.dropdown-menu a {
  display: block;
  width: 100%;

  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
  text-decoration: none;
  text-transform: none;

  padding: 0.55rem 0.65rem;
  border-radius: 4px;
}

.dropdown-menu a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ===== MOBILE MENU ===== */

.mobile-menu {
  display: none;
  position: fixed;
  top: 4.2rem;
  left: 50%;
  z-index: 99;
  width: min(420px, calc(100% - 2rem));
  transform: translateX(-50%);

  flex-direction: column;
  gap: 0.15rem;

  padding: 0.7rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a,
.mobile-dropdown summary {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;

  padding: 0.65rem 0.75rem;
  border-radius: 4px;

  user-select: none;
}

.mobile-menu a:hover,
.mobile-dropdown summary:hover,
.mobile-dropdown[open] summary {
  color: var(--accent);
  background: var(--accent-soft);
}

.mobile-dropdown {
  border-radius: 4px;
}

.mobile-dropdown summary {
  list-style: none;
}

.mobile-dropdown summary::-webkit-details-marker {
  display: none;
}

.mobile-dropdown summary::after {
  content: " /";
  color: var(--accent2);
}

.mobile-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;

  margin: 0.15rem 0 0.35rem 0.75rem;
  padding-left: 0.65rem;

  border-left: 1px solid var(--line2);
}

.mobile-dropdown-menu a {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  text-decoration: none;

  padding: 0.48rem 0.65rem;
  border-radius: 4px;
}

/* ===== HERO CHARACTER CARD ===== */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8rem 1rem 4rem;
  position: relative;
}

.hero-card {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 1rem;

  position: relative;
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.045), rgba(var(--accent-rgb), 0.01)),
    var(--bg2);

  border: 1px solid var(--line2);
  border-radius: 12px;

  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.06) inset,
    0 24px 70px rgba(0, 0, 0, 0.34);

  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: cardFadeIn 0.8s ease both;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.card-top {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding-bottom: 0.85rem;
  margin-bottom: 1rem;

  border-bottom: 1px solid var(--line);
}

.card-series,
.card-rarity {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-series {
  color: var(--faint);
}

.card-rarity {
  color: #111;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.24rem 0.45rem;
  border-radius: 4px;
}

.card-main {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;

  padding-bottom: 1rem;
  margin-bottom: 1rem;

  border-bottom: 1px solid var(--line);
}

.card-portrait {
  min-height: 230px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(45deg, rgba(var(--accent-rgb), 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(var(--accent-rgb), 0.06) 25%, transparent 25%),
    var(--bg);

  background-size: 18px 18px;

  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.card-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-name {
  position: relative;
  z-index: 5;

  font-family: var(--name);
  font-size: clamp(2.7rem, 7.2vw, 5.3rem);
  font-weight: 400;
  font-style: normal;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: none;
  color: var(--text);

  margin-bottom: 1rem;

  opacity: 1;
  transform: none;
  filter: none;

  animation: nameFadeIn 0.9s ease both;
  animation-delay: 0.35s;
}

.hero-name .underlined {
  position: relative;
  display: inline-block;
  color: var(--text);
}

.hero-name .underlined::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.04em;
  bottom: 0.08em;
  height: 0.06em;
  z-index: -1;
  background: var(--accent);
}

.hero-name em {
  display: inline-block;
  margin-top: 0.08rem;

  font-family: var(--surname);
  font-size: inherit;
  font-weight: 800;
  font-style: italic;
  line-height: inherit;
  letter-spacing: -0.055em;
  text-transform: none;
  color: var(--muted);
}

@keyframes nameFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.card-subtitle {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.85;
  color: var(--muted);
}

.card-body {
  position: relative;
  z-index: 2;

  display: grid;
  gap: 0.6rem;

  margin-bottom: 1rem;
}

.card-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;

  padding: 0.65rem 0.75rem;

  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.card-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.card-value {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.card-stats {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;

  margin-bottom: 1.2rem;
}

.stat-box {
  padding: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.stat-name {
  display: block;
  margin-bottom: 0.35rem;

  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: lowercase;
  color: var(--faint);
}

.stat-value {
  display: block;

  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.stat-unit {
  display: block;
  margin-top: 0.25rem;

  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--faint);
  text-transform: lowercase;
}

.card-section-label {
  position: relative;
  z-index: 2;

  margin: 0.2rem 0 0.55rem;

  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-cta {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 2.55rem;
  padding: 0.65rem 0.95rem;

  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;

  border-radius: 4px;

  transition:
    transform 0.16s ease,
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-yellow {
  color: #111;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.btn-yellow:hover {
  background: var(--accent);
}

.btn-white {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line2);
}

.btn-white:hover {
  color: var(--accent);
  border-color: var(--accent2);
  background: var(--accent-soft);
}

.btn-dark {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
}

/* ===== SCROLL TO TOP ===== */

.scroll-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 120;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;

  color: #111;
  background: var(--accent);
  border: 1px solid var(--accent2);
  border-radius: 6px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  color: var(--accent);
  background: var(--bg2);
  border-color: var(--accent);
}

/* ===== MARQUEE ===== */

.marquee-strip {
  overflow: hidden;
  padding: 0.75rem 0;

  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-inner {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}

.marquee-inner span {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--faint);
  padding: 0 1rem;
}

.marquee-inner .sep {
  color: var(--accent2);
  padding: 0 0.15rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ===== SHARED SECTIONS ===== */

.about-section,
.projects-section,
.contact-section {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.about-section {
  padding: 5.5rem 0;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 3.5rem;
  align-items: start;
  width: min(860px, calc(100% - 2rem));
}

.projects-section,
.contact-section {
  padding: 5rem 0;
}

.about-avatar {
  width: 118px;
  height: 118px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: #111;

  background: var(--accent);
  border: 1px solid var(--accent2);
  border-radius: 6px;
}

.about-text {
  max-width: 620px;
}

.about-text h2,
.projects-section>h2,
.contact-section h2,
.project-body h2 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.045em;
}

.about-text h2,
.projects-section>h2,
.contact-section h2 {
  font-size: 1.22rem;
  margin-bottom: 1rem;
}

.about-text h2::before,
.projects-section>h2::before,
.contact-section h2::before,
.project-body h2::before {
  content: "/ ";
  color: var(--accent);
}

.about-text p,
.contact-section p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 0.95rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.35rem;
}

.pill {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);

  padding: 0.34rem 0.58rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 4px;

  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.pill:hover {
  color: var(--accent);
  border-color: var(--accent2);
  background: var(--accent-soft);
}

/* ===== PROJECTS ===== */

.projects-section {
  padding-bottom: 6.5rem;
}

.projects-section>h2,
.projects-section>.sub {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.projects-section>.sub {
  margin-bottom: 2rem;
  color: var(--faint);
  font-size: 0.9rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.8rem;
}

.project-card {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 0.55rem;

  min-height: 220px;
  padding: 1.15rem;

  color: inherit;
  text-decoration: none;

  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);

  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent2);
  background: var(--panel2);
}

.project-card:nth-child(1) {
  grid-column: span 7;
}

.project-card:nth-child(2) {
  grid-column: span 5;
}

.project-card:nth-child(3),
.project-card:nth-child(4),
.project-card:nth-child(5) {
  grid-column: span 4;
}

.card-color-bar {
  width: 34px;
  height: 2px;
  margin-bottom: 0.25rem;
  background: var(--accent);
  border-radius: 0;
}

.project-card:nth-child(2) .card-color-bar,
.project-card:nth-child(4) .card-color-bar {
  background: var(--accent2);
}

.project-card:nth-child(3) .card-color-bar,
.project-card:nth-child(5) .card-color-bar {
  background: var(--accent2);
}

.card-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--faint);
}

.card-title {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text);
  text-transform: uppercase;
}

.project-card:nth-child(1) .card-title {
  font-size: 1.45rem;
}

.card-desc {
  flex: 1;

  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.card-cta {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.7rem;

  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--faint);

  transition: color 0.16s ease;
}

.project-card:hover .card-cta {
  color: var(--accent);
}

/* ===== CONTACT ===== */

.contact-section {
  max-width: min(860px, calc(100% - 2rem));
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* ===== FOOTER ===== */

.footer {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  border-top: 1px solid var(--line);
  color: var(--faint);
}

.footer-left,
.footer-right,
.footer-links a {
  font-family: var(--mono);
  font-size: 0.64rem;
}

.footer-left {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--faint);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-right {
  color: var(--faint);
}

/* ===== PROJECT PAGE SUPPORT ===== */

.project-hero {
  min-height: 44vh;
  display: flex;
  align-items: flex-end;

  padding: 8.5rem 1rem 3.5rem;
  border-bottom: 1px solid var(--line);
}

.project-hero-dots {
  display: none;
}

.project-hero-content {
  width: min(860px, 100%);
  margin: 0 auto;
}

.project-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.08em;
  text-transform: uppercase;

  margin: 0.8rem 0 1rem;
}

.project-hero .lead {
  max-width: 560px;

  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.badge {
  display: inline-flex;

  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--accent);

  padding: 0.32rem 0.55rem;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 4px;
}

.project-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1rem 6rem;
}

.back-link {
  display: inline-flex;

  margin-bottom: 2.5rem;
  padding: 0.42rem 0.62rem;

  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  text-decoration: none;

  border: 1px solid var(--line);
  border-radius: 4px;

  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.back-link:hover {
  color: var(--accent);
  border-color: var(--accent2);
  background: var(--accent-soft);
}

.project-body h2 {
  font-size: 1.05rem;
  margin: 2.6rem 0 0.85rem;
}

.project-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.project-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;

  margin: 1rem 0 1.5rem;
  list-style: none;
}

.project-body ul li {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);

  padding: 0.34rem 0.58rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.project-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg2);
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* ===== CASE STUDY ===== */

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.meta-item {
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.meta-item span {
  display: block;
  margin-bottom: 0.5rem;

  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--accent);
}

.meta-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* ===== MEDIA / GIF AREA ===== */

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0 2.5rem;
}

.media-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.media-placeholder {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);

  background:
    linear-gradient(45deg, rgba(var(--accent-rgb), 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(var(--accent-rgb), 0.05) 25%, transparent 25%),
    var(--bg2);
  background-size: 18px 18px;
}

.media-card figcaption {
  padding: 0.75rem;
  border-top: 1px solid var(--line);

  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--faint);
}

/* ===== AE PONG MINI GAME ===== */

button.card-rarity {
  font: inherit;
  cursor: none;
}

.pong-modal {
  position: fixed;
  inset: 0;
  z-index: 500;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1rem;

  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}

.pong-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pong-panel {
  width: min(760px, 100%);
  padding: 1rem;

  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.045), rgba(var(--accent-rgb), 0.01)),
    var(--bg2);

  border: 1px solid var(--line2);
  border-radius: 12px;

  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.06) inset,
    0 24px 70px rgba(0, 0, 0, 0.45);

  transform: translateY(12px) scale(0.985);
  transition: transform 0.18s ease;
}

.pong-modal.show .pong-panel {
  transform: translateY(0) scale(1);
}

.pong-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;

  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;

  border-bottom: 1px solid var(--line);
}

.pong-kicker {
  display: block;
  margin-bottom: 0.25rem;

  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.pong-head h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.045em;
}

.pong-close {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;

  color: var(--muted);
  background: transparent;

  border: 1px solid var(--line2);
  border-radius: 4px;

  padding: 0.38rem 0.62rem;

  transition:
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.pong-close:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent2);
}

.pong-score {
  margin-bottom: 0.7rem;

  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}

#pongCanvas {
  display: block;
  width: 100%;
  height: auto;

  background:
    linear-gradient(rgba(var(--accent-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.04) 1px, transparent 1px),
    var(--bg);

  background-size: 24px 24px;

  border: 1px solid var(--line);
  border-radius: 8px;
}

.pong-help {
  margin-top: 0.8rem;

  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--faint);
}

.pong-mode-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.pong-mode-btn {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);

  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: 4px;

  padding: 0.36rem 0.62rem;

  transition:
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.pong-mode-btn:hover {
  color: var(--accent);
  border-color: var(--accent2);
  background: var(--accent-soft);
}

.pong-mode-btn.active {
  color: #111;
  background: var(--accent);
  border-color: var(--accent);
}

#pongCanvas {
  touch-action: none;
  user-select: none;
}

.pong-touch-controls {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;

  margin-top: 0.7rem;
}

.pong-touch-btn {
  min-height: 2.6rem;

  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;

  color: #111;
  background: var(--accent);

  border: 1px solid var(--accent2);
  border-radius: 4px;

  text-transform: lowercase;
}

.pong-touch-btn:active {
  transform: translateY(1px);
  background: var(--accent);
}

body.game-open {
  overflow: hidden;
}



/* ===== THEME CONTROLS ===== */

.theme-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.1rem;
}

.theme-dot {
  width: 14px;
  height: 14px;

  border-radius: 50%;
  border: 1px solid var(--line2);

  opacity: 0.58;

  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.theme-dot:hover,
.theme-dot.active {
  opacity: 1;
  transform: scale(1.15);
  border-color: var(--text);
}

.theme-dot.active {
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.theme-orange {
  background: #ff7a1a;
}

.theme-blue {
  background: #4aa3ff;
}

.theme-purple {
  background: #b987ff;
}

.theme-green {
  background: #56d68a;
}

.mode-toggle {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);

  background: transparent;
  border: 1px solid var(--line2);
  border-radius: 4px;
  padding: 0.32rem 0.55rem;

  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.mode-toggle:hover {
  color: var(--accent);
  border-color: var(--accent2);
  background: var(--accent-soft);
}

/* ===== DAY MODE POLISH ===== */

html[data-mode="day"] body::before {
  background:
    linear-gradient(rgba(0, 0, 0, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.042) 1px, transparent 1px);
  background-size: 32px 32px;
}

html[data-mode="day"] body::after {
  opacity: 0.22;
}

html[data-mode="day"] .navbar {
  background: rgba(244, 239, 230, 0.9);
}

html[data-mode="day"] .dropdown-menu,
html[data-mode="day"] .mobile-menu,
html[data-mode="day"] .pong-panel {
  background: var(--bg2);
}

html[data-mode="day"] .hero-card,
html[data-mode="day"] .pong-panel {
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.075), rgba(var(--accent-rgb), 0.018)),
    var(--bg2);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.08) inset,
    0 24px 70px rgba(60, 45, 25, 0.14);
}

html[data-mode="day"] .project-card,
html[data-mode="day"] .stat-box,
html[data-mode="day"] .media-card,
html[data-mode="day"] .meta-item {
  box-shadow: 0 14px 36px rgba(67, 45, 21, 0.05);
}

html[data-mode="day"] .pong-modal {
  background: rgba(244, 239, 230, 0.72);
}

html[data-mode="day"] #pongCanvas {
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.05) 1px, transparent 1px),
    var(--bg);
}

/* ===== DAY / NIGHT TOGGLE ===== */

.mode-toggle {
  width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1;

  color: var(--muted);
  background: transparent;

  border: 1px solid var(--line2);
  border-radius: 50%;

  transition:
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.mode-toggle:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent2);
  transform: rotate(-8deg) scale(1.06);
}

.mode-toggle.is-day {
  color: var(--accent);
}

.mode-toggle.is-night {
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 640px) {
  .mode-toggle {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
}

@media (max-width: 760px) {
  .pong-touch-controls {
    display: grid;
  }

  .pong-panel {
    max-height: calc(100svh - 1.5rem);
    overflow-y: auto;
  }

  .pong-touch-btn {
    cursor: auto;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: inline-flex;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .about-avatar {
    width: 96px;
    height: 96px;
    font-size: 1.4rem;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card:nth-child(n) {
    grid-column: span 1;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-card {
    padding: 0.85rem;
  }

  .card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .card-main {
    grid-template-columns: 1fr;
  }

  .card-portrait {
    min-height: 190px;
  }

  .hero-name {
    font-size: clamp(2.65rem, 16vw, 4.2rem);
  }

  .card-line {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

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

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {

  body,
  *,
  a,
  button,
  summary {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .navbar {
    width: calc(100% - 1rem);
  }

  .hero {
    min-height: 86vh;
    padding: 7rem 1rem 3rem;
  }

  .btn {
    width: 100%;
  }

  .contact-links {
    flex-direction: column;
  }

  .about-section,
  .projects-section,
  .contact-section,
  .footer {
    width: calc(100% - 1.5rem);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .project-hero h1 {
    font-size: clamp(2.4rem, 14vw, 4.2rem);
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-top {
    right: 1rem;
    bottom: 1rem;
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-card,
  .hero-name,
  .marquee-inner {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 640px) {

  button.card-rarity,
  .pong-close {
    cursor: auto;
  }

  .pong-panel {
    padding: 0.85rem;
  }

  .pong-head {
    flex-direction: column;
  }
}

/* ===== HERO CARD COMPACT FIT ===== */

.hero {
  min-height: 100svh;
  padding: 5.8rem 1rem 1.8rem;
}

.hero-card {
  width: min(760px, 100%);
  padding: 0.85rem;
}

.card-top {
  padding-bottom: 0.65rem;
  margin-bottom: 0.75rem;
}

.card-main {
  grid-template-columns: 165px 1fr;
  gap: 0.85rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}

.card-portrait {
  min-height: 185px;
}

.hero-name {
  font-size: clamp(2.35rem, 6.2vw, 4.35rem);
  margin-bottom: 0.65rem;
}

.hero-name em {
  font-size: inherit;
}

.card-subtitle {
  font-size: 0.68rem;
  line-height: 1.65;
}

.card-body {
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.card-line {
  grid-template-columns: 105px 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
}

.card-label {
  font-size: 0.6rem;
}

.card-value {
  font-size: 0.82rem;
  line-height: 1.45;
}

.card-stats {
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.stat-box {
  padding: 0.6rem;
}

.stat-name {
  font-size: 0.56rem;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.15rem;
}

.hero-cta {
  gap: 0.55rem;
}

.btn {
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
}

@media (max-height: 760px) and (min-width: 761px) {
  .hero {
    padding-top: 5.2rem;
    padding-bottom: 1rem;
  }

  .hero-card {
    width: min(720px, 100%);
    padding: 0.75rem;
  }

  .card-top {
    padding-bottom: 0.55rem;
    margin-bottom: 0.6rem;
  }

  .card-main {
    grid-template-columns: 150px 1fr;
    gap: 0.75rem;
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
  }

  .card-portrait {
    min-height: 155px;
  }

  .hero-name {
    font-size: clamp(2.1rem, 5.4vw, 3.75rem);
    margin-bottom: 0.5rem;
  }

  .card-subtitle {
    font-size: 0.64rem;
    line-height: 1.55;
  }

  .card-body {
    gap: 0.35rem;
    margin-bottom: 0.65rem;
  }

  .card-line {
    padding: 0.42rem 0.6rem;
  }

  .card-stats {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    padding: 6.4rem 1rem 1.5rem;
  }

  .hero-card {
    width: min(560px, 100%);
    padding: 0.85rem;
  }

  .card-main {
    grid-template-columns: 1fr;
  }

  .card-portrait {
    min-height: 170px;
    max-height: 230px;
  }

  .hero-name {
    font-size: clamp(2.35rem, 14vw, 4rem);
  }
}

/* ===== THEMED SCROLLBAR ===== */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 1px solid var(--line);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--accent) 82%, var(--text) 18%);
}

/* Pong modal / iç scroll alanları için */
.pong-panel::-webkit-scrollbar {
  width: 8px;
}

.pong-panel::-webkit-scrollbar-track {
  background: var(--panel);
}

.pong-panel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border: 2px solid var(--panel);
  border-radius: 999px;
}