/* 1. Quadranta Fontunu Tanımlıyoruz */
@font-face {
  font-family: "Quadranta";
  src: url("Quadranta-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* 2. TPF Quackery Fontunu Tanımlıyoruz */
@font-face {
  font-family: "TPF Quackery";
  src: url("TPF Quackery.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ==========================================
   FONTU KULLANMA ÖRNEKLERİ
   ========================================== */

body {
  font-family: "Quadranta", sans-serif;
}

h1,
h2,
h3 {
  font-family: "TPF Quackery", sans-serif;
}

:root {
  --bg: #0a0d14;
  --surface: #111827;
  --surface-soft: #172033;
  --text: #f8fafc;
  --muted: #a8b3c7;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #38d5c8;
  --accent-strong: #64ffda;
  --ink: #071015;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  user-select: none;
  color: var(--text);
  font-family: "Quadranta", Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(56, 213, 200, 0.2), transparent 28rem),
    linear-gradient(145deg, #080b12 0%, #0e1524 52%, #090c13 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 0, 76, 0.28), transparent 20rem),
    radial-gradient(circle at 78% 22%, rgba(0, 229, 255, 0.3), transparent 22rem),
    radial-gradient(circle at 26% 78%, rgba(0, 255, 102, 0.24), transparent 21rem),
    radial-gradient(circle at 72% 74%, rgba(255, 212, 0, 0.24), transparent 20rem),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.26), transparent 26rem);
  filter: saturate(1.55) blur(1px);
  opacity: 1;
  mix-blend-mode: screen;
  animation: ambientColorDrift 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 0, 76, 0.22), rgba(0, 229, 255, 0.18), rgba(0, 255, 102, 0.2), rgba(255, 212, 0, 0.2), transparent),
    radial-gradient(circle at 25% 35%, rgba(255, 0, 76, 0.18), transparent 22rem),
    radial-gradient(circle at 72% 42%, rgba(0, 229, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 50% 70%, rgba(255, 212, 0, 0.16), transparent 22rem),
    radial-gradient(circle at 58% 50%, rgba(139, 92, 246, 0.16), transparent 28rem);
  opacity: 0;
  mix-blend-mode: screen;
  animation: introColorShake 2.1s ease-out both;
}

@keyframes ambientColorDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  50% {
    transform: translate3d(2%, 1.5%, 0) scale(1.04);
  }

  100% {
    transform: translate3d(1%, -2%, 0) scale(1.02);
  }
}

body > * {
  animation: introReveal 2.1s cubic-bezier(.2,.8,.2,1) both;
}

body > .main-nav {
  animation: none;
}

@keyframes introReveal {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(18px) scale(0.985);
  }

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

  82% {
    transform: translate(0, 0);
    text-shadow: none;
  }

  86% {
    transform: translate(3px, -2px);
    text-shadow:
      -3px 0 rgba(255, 0, 76, 0.7),
      3px 0 rgba(0, 229, 255, 0.65),
      0 2px rgba(255, 212, 0, 0.55);
  }

  90% {
    transform: translate(-3px, 2px);
    text-shadow:
      3px 0 rgba(0, 255, 102, 0.65),
      -3px 0 rgba(139, 92, 246, 0.62),
      0 -2px rgba(255, 212, 0, 0.55);
  }

  94% {
    transform: translate(2px, 1px);
    text-shadow:
      -2px 0 rgba(0, 229, 255, 0.55),
      2px 0 rgba(255, 0, 76, 0.55);
  }

  98%,
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0) scale(1);
    text-shadow: none;
  }
}

@keyframes introColorShake {
  0%,
  72% {
    opacity: 0;
    transform: translateX(0);
  }

  82% {
    opacity: 0.62;
    transform: translateX(0);
  }

  86% {
    opacity: 0.74;
    transform: translateX(7px);
  }

  90% {
    opacity: 0.58;
    transform: translateX(-7px);
  }

  94% {
    opacity: 0.46;
    transform: translateX(4px);
  }

  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

.code-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.code-rain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.12), rgba(8, 11, 18, 0.42));
}

.code-rain span {
  position: absolute;
  top: -18vh;
  left: var(--x);
  color: var(--c);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 700;
  opacity: 0;
  white-space: nowrap;
  text-shadow: 0 0 18px currentColor;
  animation: codeFall 24s linear infinite;
  animation-delay: var(--d);
  animation-fill-mode: both;
}

@keyframes codeFall {
  0% {
    transform: translate3d(-16px, -16vh, 0) rotate(-8deg);
    opacity: 0;
  }

  12% {
    opacity: 0.22;
  }

  88% {
    opacity: 0.16;
  }

  100% {
    transform: translate3d(18px, 124vh, 0) rotate(8deg);
    opacity: 0;
  }
}

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

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.main-nav {
  position: fixed;
  top: 37vh;
  left: auto;
  right: 34px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transform: translate3d(0, -50%, 0);
  font-family: "TPF Quackery", "Inter", Arial, sans-serif;
  pointer-events: auto;
}

.side-nav {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.split-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  min-height: 102px;
  padding: 18px 16px 12px;
  overflow: hidden;
  border: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  color: var(--text);
  background: rgba(7, 16, 21, 0.88);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  pointer-events: auto;
}

.split-button::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: conic-gradient(#ff004c, #00e5ff, #00ff66, #ffd400, #ff004c);
  animation: neonSpin 4s linear infinite;
  pointer-events: none;
}

.split-button::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(9, 12, 19, 0.94);
  transition: background 180ms ease;
  pointer-events: none;
}

.split-button:hover,
.split-button:focus-visible {
  color: #ffffff;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.24), 0 0 34px rgba(255, 212, 0, 0.14);
  transform: translateY(-4px) scale(1.04);
}

.split-button:hover::after,
.split-button:focus-visible::after {
  background: rgba(15, 23, 42, 0.86);
}

.split-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 28px 4px 0;
  text-align: center;
  line-height: 1;
  word-break: keep-all;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.45);
}

@keyframes neonSpin {
  to {
    transform: rotate(360deg);
  }
}

.section-band {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 38px;
  min-height: 100vh;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
.metric strong,
.mail-card strong,
.experience-badge {
  font-style: italic;
}

h1 {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action {
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 44px rgba(56, 213, 200, 0.22);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-3px);
}

.hero-panel {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.panel-glow {
  position: absolute;
  inset: -80px -80px auto auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(100, 255, 218, 0.2);
  filter: blur(16px);
}

.status-row,
.metric {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.status-row {
  position: absolute;
  top: -34px;
  right: 18px;
  width: min(430px, calc(100% - 36px));
  color: var(--accent-strong);
  font-weight: 800;
  align-items: flex-start;
  flex-direction: column;
  z-index: 2;
  margin: 0;
  padding: 12px 12px 16px;
  border: 1px solid rgba(100, 255, 218, 0.18);
  border-radius: 18px;
  background: rgba(7, 16, 21, 0.42);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.status-row .status-dot {
  position: absolute;
  top: 16px;
  left: 12px;
}

.status-row > span {
  padding-left: 22px;
  position: relative;
  z-index: 2;
}

.experience-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 6px 10px;
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 12px;
  font-weight: 900;
}

.tech-stack {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  position: relative;
  z-index: 2;
}

.metric-list {
  padding-top: 118px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 24px var(--accent-strong);
}

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

.metric:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.metric strong {
  font-size: 26px;
}

.metric span {
  color: var(--muted);
  line-height: 1.45;
}

.content-stack {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-grid p,
.service-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(100, 255, 218, 0.46);
  background: rgba(56, 213, 200, 0.08);
}

.service-card span {
  color: var(--accent-strong);
  font-weight: 800;
}

.service-card h3 {
  margin: 18px 0 10px;
  font-size: 18px;
}

.about,
.services,
.contact {
  padding: 58px 0;
}

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

.mail-card {
  display: grid;
  gap: 8px;
  width: min(100%, 460px);
  padding: 22px;
  border: 1px solid rgba(100, 255, 218, 0.32);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(56, 213, 200, 0.14), rgba(255, 255, 255, 0.05));
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(56, 213, 200, 0.14);
}

.mail-card span, {
  color: var(--muted);
}

.mail-card strong {
  font-size: clamp(22px, 3vw, 30px);
  word-break: break-word;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--accent-strong);
}

.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(720px, calc(100% - 48px));
  padding: 18px;
  border: 1px solid rgba(100, 255, 218, 0.28);
  border-radius: 18px;
  color: var(--text);
  background: rgba(7, 16, 21, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-actions,
.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  min-height: 42px;
  border: 1px solid rgba(100, 255, 218, 0.38);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cookie-btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.admin-page {
  min-height: 100vh;
}

.admin-login {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 16, 21, 0.88);
}

.admin-login[hidden] {
  display: none;
}

.admin-login-card {
  display: grid;
  gap: 14px;
  width: min(100%, 380px);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 22px;
  padding: 24px;
  background: rgba(10, 13, 20, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.admin-login-card h1 {
  margin: 0;
  font-size: 42px;
}

.admin-login-card input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
}

.admin-login-card small {
  min-height: 18px;
  color: #fb7185;
}

.admin-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.admin-hero,
.admin-warning,
.admin-actions,
.admin-table-wrap {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 5vw, 58px);
}

.admin-hero p,
.admin-warning {
  color: var(--muted);
  line-height: 1.6;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1320px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  color: var(--muted);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.admin-table th {
  color: var(--accent-strong);
}

@media (max-width: 860px) {
  .main-nav {
    top: auto;
    right: 50%;
    bottom: 12px;
    flex-direction: row;
    gap: 8px;
    transform: translateX(50%);
  }

  .split-button {
    width: 92px;
    min-height: 68px;
    padding: 12px 10px 8px;
    font-size: 9px;
  }

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

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

  .hero {
    min-height: auto;
    padding-top: 38px;
    padding-bottom: 24px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 48px);
  }

  h2 {
    font-size: clamp(24px, 7vw, 34px);
  }

  .hero-copy,
  .about-grid p,
  .service-card p {
    font-size: 14px;
  }

  .hero-panel {
    margin-top: 44px;
  }

  .status-row {
    top: -40px;
    right: 12px;
    width: min(420px, calc(100% - 24px));
  }

  .metric-list {
    padding-top: 138px;
  }
}

@media (max-width: 520px) {
  body::after {
    background:
      linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.14), rgba(255, 212, 0, 0.12), transparent);
    animation: introColorPulseMobile 1.35s ease-out both;
  }

  body > * {
    animation: introRevealMobile 1.35s ease-out both;
  }

  body > .main-nav {
    animation: none;
  }

  .code-rain span {
    animation-duration: 34s;
    opacity: 0.1;
  }

  body::before {
    filter: none;
    opacity: 0.55;
    animation-duration: 28s;
  }

  body {
    padding-bottom: 96px;
  }

  .section-band,
  .content-stack {
    width: min(100% - 24px, 1120px);
  }

  .section-band,
  .about,
  .services,
  .contact {
    padding-top: 42px;
    padding-bottom: 42px;
  }

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

  .split-button {
    width: 72px;
    min-height: 54px;
    padding: 8px 6px 6px;
    font-size: 8px;
  }

  .split-button span {
    padding: 18px 2px 0;
  }

  h1 {
    font-size: 34px;
    line-height: 1.05;
  }

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

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-panel {
    padding: 16px;
  }

  .status-row {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin: 0 0 16px;
  }

  .metric-list {
    padding-top: 0;
  }

  .mail-card strong {
    font-size: 20px;
  }

  .cookie-consent {
    right: 12px;
    bottom: 104px;
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
  }

  .admin-shell {
    width: min(100% - 24px, 1180px);
    padding: 28px 0;
  }

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

@keyframes introRevealMobile {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  72% {
    opacity: 1;
    transform: translateY(0);
  }

  84% {
    transform: translateX(1px);
  }

  92% {
    transform: translateX(-1px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes introColorPulseMobile {
  0%,
  72% {
    opacity: 0;
  }

  86% {
    opacity: 0.34;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
