/* ---------- Fontlar ---------- */
@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --page-pad-y: clamp(16px, 2.4vh, 28px);
  --page-pad-x: clamp(14px, 3vw, 32px);
  --header-space: calc(var(--page-pad-y) + 48px);
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- Video ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  pointer-events: none;
}

/* Dikey ekranlar (telefon): video alt kısmı doldurur, üstü bulanık kareye yumuşakça geçer */
@media (orientation: portrait) {
  .bg {
    background: #000 url("assets/background-fill.jpg") center / cover no-repeat;
  }

  .bg-video {
    top: auto;
    height: 62%;
    object-fit: cover;
    object-position: 28% 50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
  }
}

/* ---------- Üst bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: var(--page-pad-y) var(--page-pad-x) 0;
  pointer-events: none;
}

.header {
  --nav-h: clamp(44px, 5.2vw, 48px);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 820px;
  pointer-events: auto;
  animation: slideDown 0.7s var(--ease-out) both;
}

.logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  height: var(--nav-h);
  padding: 0 18px;
  border-radius: 14px;
  background: #fff;
  color: #000;
  box-shadow: var(--nav-shadow);
  transition: transform 0.3s var(--ease-out);
}

.logo:hover {
  transform: scale(1.04);
}

/* Logo: "Donaa" Instrument Sans ile, yumuşak köşeli beyaz zeminde */
.logo-text {
  font-family: "Instrument Sans", var(--font-sans);
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: #000;
}

.nav {
  flex: 1;
  max-width: 560px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(8px, 1.2vw, 14px);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.is-active {
  opacity: 1;
}

.nav-link.is-active::after,
.mobile-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.nav-link:focus-visible,
.mobile-link:focus-visible {
  outline: 2px solid #111;
  outline-offset: -2px;
  border-radius: 999px;
}

/* Dil düğmesi */
.lang-switch {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--nav-h, 48px);
  padding: 0 clamp(16px, 2vw, 22px);
  border-radius: 999px;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, transform 0.25s ease;
}

.lang-switch:hover {
  background: #323234;
  transform: translateY(-1px);
}

.lang-btn {
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--sign-in-text);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  opacity: 0.55;
  cursor: pointer;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.lang-btn:hover {
  color: #fff;
  opacity: 0.85;
}

.lang-btn[aria-pressed="true"] {
  color: #fff;
  opacity: 1;
}

.lang-sep {
  color: var(--sign-in-text);
  opacity: 0.5;
}

/* Hamburger (yalnızca mobilde görünür) */
.burger {
  display: none;
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  cursor: pointer;
  transition: background 0.3s ease;
}

.burger span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin: -0.75px 0 0 -9px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease, background 0.3s ease;
}

.burger span:nth-child(1) {
  transform: translateY(-6.5px);
}

.burger span:nth-child(3) {
  transform: translateY(6.5px);
}

.burger[aria-expanded="true"] {
  background: #fff;
}

.burger[aria-expanded="true"] span {
  background: #000;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-space) + 16px) var(--page-pad-x) var(--page-pad-y);
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.trust-avatar {
  position: relative;
  flex-shrink: 0;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border: 1px solid var(--trust-border);
  border-radius: 50%;
  background: var(--trust-bg);
  transition: transform 0.35s var(--ease-out);
}

.trust-avatar + .trust-avatar {
  margin-left: calc(var(--trust-size) * -0.42);
}

.trust-avatar.a1 {
  z-index: 1;
}

.trust-avatar.a2 {
  z-index: 2;
}

.trust-avatar.a3 {
  z-index: 4;
}

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

.trust:hover .a2 {
  transform: translateY(-4px);
}

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

.trust-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}

.trust-pill {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 16px 0 calc(var(--trust-size) * 0.58);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  background: var(--trust-bg);
  color: var(--trust-text);
  font-size: clamp(12px, 1.4vw, 13.5px);
  font-weight: 500;
  white-space: nowrap;
}

.headline {
  max-width: 100%;
  margin: 0 0 clamp(14px, 2.2vh, 22px);
  font-family: var(--font-display);
  font-size: clamp(20px, 5.6vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #fff;
}

.headline-line {
  display: block;
  padding: 0 0.06em;
  overflow: hidden;
  white-space: nowrap;
  animation: headlineFade 0.85s var(--ease-out) backwards;
}

.headline-line.l1 {
  animation-delay: 0.12s;
}

.headline-line.l2 {
  animation-delay: 0.3s;
}

.subhead {
  max-width: min(620px, 92%);
  margin: 0 0 clamp(20px, 3.2vh, 32px);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0.8;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.25s ease, color 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 30px rgba(255, 255, 255, 0.45),
    0 0 64px rgba(255, 255, 255, 0.2);
}

.cta--ghost {
  padding: calc(clamp(11px, 1.6vh, 13px) - 1px) calc(clamp(22px, 3vw, 28px) - 1px);
  border: 1px solid var(--trust-border);
  background: var(--pill-dark);
  color: var(--sign-in-text);
  box-shadow: var(--nav-shadow);
}

.cta--ghost:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--nav-shadow);
}

/* ---------- İstatistikler ---------- */
.stats {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
  padding-top: clamp(12px, 2vh, 20px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  color: #fff;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.stat-label {
  font-size: clamp(11px, 1.2vw, 12.5px);
  color: var(--muted);
}

/* ---------- Bölümler ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 24px var(--page-pad-x) clamp(48px, 9vh, 96px);
  scroll-margin-top: var(--header-space);
}

.section-panel {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(30, 30, 32, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.section-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
}

.reveal {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  background: var(--pill-dark);
  font-size: 13px;
  line-height: 1.3;
  color: var(--trust-text);
}

/* Hakkımda */
.about-text {
  max-width: 760px;
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--trust-text);
}

/* Yetkinlik ve proje kartları */
.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Yan yana dizildiklerinde proje kartlarının hepsi aynı yükseklikte */
@media (min-width: 901px) {
  .projects-grid {
    grid-auto-rows: 1fr;
  }
}

.skill-card,
.project-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.skill-card:hover,
.project-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

.skill-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.skill-icon {
  --trust-size: 42px;
}

.skill-body {
  min-width: 0;
}

.skill-title {
  margin: 9px 0 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 28px);
}

.project-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #000;
  /* Hepsi aynı 16:9 kutuda; dikey fragmanlar kırpılmadan ortalanır */
  object-fit: contain;
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-titles {
  flex: 1;
  min-width: 0;
}

.project-badge {
  flex-shrink: 0;
  padding: 5px 12px;
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  background: var(--pill-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-kind {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-name {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.project-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--trust-text);
}

.project-card .tags {
  margin-top: auto;
}

.project-link {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.project-link:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* İletişim */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contact-intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--trust-text);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-row:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.contact-row.is-pending {
  cursor: default;
}

.contact-row.is-pending:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: none;
}

.contact-row.is-pending .contact-value {
  color: var(--muted);
}

.contact-icon {
  --trust-size: 42px;
}

.contact-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

/* Uzun adresler kesilmez, satıra kırılır */
.contact-value {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-arrow {
  color: var(--muted);
  font-size: 13px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--trust-text);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.field [aria-invalid="true"] {
  border-color: rgba(255, 255, 255, 0.6);
}

.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
}

.form-submit {
  align-self: flex-start;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 13px;
  color: var(--trust-text);
}

/* ---------- Alt bilgi ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px var(--page-pad-x) 40px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-inner {
  padding: 14px 22px;
  border: 1px solid var(--trust-border);
  border-radius: 20px;
  background: var(--pill-dark);
}

.footer-inner p {
  margin: 0 0 4px;
}

.footer-inner p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  display: inline-block;
  padding: 6px 2px;
  color: inherit;
}

.site-footer a:hover {
  color: #fff;
}

/* Sayfanın en altındaki marka yazısı: içi saydam, yalnızca kontur (Montserrat ExtraBold) */
.brand-wordmark {
  margin-top: clamp(24px, 4vw, 48px);
  padding: 0 0.04em;
  font-family: "Montserrat", var(--font-sans);
  font-size: clamp(64px, 22vw, 320px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
  user-select: none;
}

@supports not (-webkit-text-stroke: 1px) {
  .brand-wordmark {
    color: rgba(255, 255, 255, 0.6);
  }
}

/* ---------- Mobil menü ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

.mobile-menu {
  position: fixed;
  z-index: 11;
  top: calc(var(--header-space) + 12px);
  left: 14px;
  right: 14px;
  max-width: 420px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s var(--ease-out) both;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-link {
  position: relative;
  display: block;
  padding: 14px 8px 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.25s ease;
  animation: linkIn 0.45s var(--ease-out) calc(0.06s + var(--i, 0) * 0.05s) backwards;
}

.mobile-link:hover {
  opacity: 0.75;
}

.mobile-link.is-active {
  opacity: 1;
}

.mobile-link.is-active::after {
  bottom: 8px;
}

.lang-switch--block {
  width: 100%;
  height: 48px;
  animation: linkIn 0.45s var(--ease-out) 0.31s backwards;
}

.lang-switch--block .lang-btn {
  font-size: 15px;
}

/* ---------- Giriş animasyonları ---------- */
.anim {
  animation: reveal 0.85s var(--ease-out) var(--d, 0s) backwards;
}

.headline.anim {
  animation: none;
}

.cta.anim {
  animation-name: revealPulse;
  animation-duration: 1.1s;
}

.cta--ghost.anim {
  animation-name: reveal;
  animation-duration: 0.85s;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  80% {
    transform: scale(1.04);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 34px rgba(255, 255, 255, 0.55),
      0 0 70px rgba(255, 255, 255, 0.22);
  }
}

@keyframes headlineFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Kırılım noktaları ---------- */
@media (max-width: 900px) {
  .projects-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header {
    justify-content: space-between;
    max-width: none;
  }

  .nav,
  .header > .lang-switch {
    display: none;
  }

  .logo {
    height: 48px;
  }

  .burger {
    display: block;
  }

  .headline {
    line-height: 1.05;
    letter-spacing: -0.08em;
  }

  .trust-pill {
    font-size: 12px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }

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

  /* iOS Safari 16px altındaki alanlarda sayfayı otomatik yakınlaştırır */
  .field input,
  .field textarea {
    font-size: 16px;
  }
}

/* Küçük telefonlar: daha büyük başlık, daha geniş içerik */
@media (max-width: 480px) {
  .headline {
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .headline-line.l2 {
    white-space: normal;
    overflow: visible;
  }

  .section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .section-panel {
    padding: 20px 16px;
  }

  .project-card {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .trust-pill {
    padding-right: 12px;
  }

  .headline {
    line-height: 1.04;
    letter-spacing: -0.09em;
  }

  .skill-card {
    padding: 16px;
  }
}

@media (max-height: 700px) {
  .trust {
    margin-bottom: 12px;
  }

  .headline {
    margin-bottom: 10px;
  }

  .subhead {
    margin-bottom: 16px;
    line-height: 1.45;
  }

  .stats {
    padding-top: 8px;
  }
}

/* Yatay telefonlar: ilk ekran sıkı kalsın */
@media (max-height: 500px) {
  .trust {
    --trust-size: 32px;
    margin-bottom: 8px;
  }

  .headline {
    margin-bottom: 6px;
    font-size: clamp(20px, min(9vh, 5.6vw), 44px);
  }

  .subhead {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 0;
    padding-top: 4px;
  }

  .stat {
    gap: 2px;
  }

  .stat-icon {
    font-size: 20px;
  }

  .stat-value {
    font-size: 18px;
  }
}

/* Çok kısa yatay ekranlar (tarayıcı çubuklarıyla ~320–340px yükseklik) */
@media (max-height: 340px) {
  :root {
    --page-pad-y: 10px;
  }

  .trust {
    --trust-size: 28px;
    margin-bottom: 6px;
  }

  .subhead {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.35;
  }

  .cta {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}
