:root {
  --ink: #39383e;
  --paper: #dadce1;
  --content: #f9f9f9;
  --night: #212035;
  --hero-sky-top: #268afe;
  --hero-sky-bottom: #8ef1ff;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px;
  transition: background 0.2s ease;
}

.site-header.solid {
  background: rgba(18, 28, 48, 0.88);
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  height: 48px;
  width: auto;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.logo img {
  height: 48px;
  width: auto;
  /* Resmi kes, sadece logo ikonunu göster */
  object-fit: cover;
  object-position: left;
  max-width: 48px;
}

/* Logo yanına PokemonMods yazısı */
.logo::after {
  content: "PokemonMods";
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-left: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

.nav a:hover { opacity: 0.8; }

.theme-toggle {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent url("assets/dark_mode_837708ef11.svg") center / 24px 24px no-repeat;
  filter: invert(1);
  cursor: pointer;
}

.theme-toggle:focus-visible,
.nav a:focus-visible,
.btn:focus-visible,
.carousel-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #3682e6;
}

.sky {
  position: absolute;
  inset: 0 0 42% 0;
  background: linear-gradient(var(--hero-sky-top), var(--hero-sky-bottom));
}

.clouds {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 195px;
  background: url("assets/clouds.png") repeat-x bottom;
  background-size: 2048px 195px;
  image-rendering: pixelated;
  animation: cloud-scroll 120s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  overflow: hidden;
  perspective: 34vh;
  z-index: 1;
}

.water-tile {
  width: 100%;
  height: 100%;
  background-image: url("assets/water_tile_a76abbc3c5.png");
  background-repeat: repeat;
  transform: scale(10) skewX(45deg) rotateX(85deg);
  transform-origin: center top;
  image-rendering: pixelated;
  animation: water-translate 20s linear infinite;
}

.water-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(#c2f3ff, #268afe 10%, #8ef1ff);
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes cloud-scroll {
  from { background-position: 0 0; }
  to { background-position: 2048px 0; }
}

@keyframes water-translate {
  from { background-position: 0 0; }
  to { background-position: 19rem 19rem; }
}

@keyframes swim {
  0% { transform: rotate(-1deg) translate(0, 0); }
  50% { transform: rotate(2deg) translate(15px, -3px); }
  100% { transform: rotate(-1deg) translate(0, 0); }
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(80deg, rgba(2, 20, 35, 0.9), rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: 10%;
  top: 37%;
  max-width: 762px;
  color: #fff;
  transform: translateY(-50%);
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.hero-copy p {
  margin: 0;
  max-width: 36em;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
}

.lapras {
  position: absolute;
  z-index: 3;
  right: 6vw;
  bottom: 180px;
  width: 391px;
  height: auto;
  pointer-events: none;
  user-select: none;
  image-rendering: pixelated;
  transform-origin: center center;
  animation: swim 1.9s ease-in-out infinite;
}

.update {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12vh 12vw 10vh;
  color: #fff;
  background: url("assets/1_8_f47e7911d1.webp") center / cover no-repeat;
}

.update h2 {
  margin: 0 0 24px;
  max-width: 12em;
  font-size: clamp(36px, 3vw, 58px);
  font-weight: 400;
  line-height: 1.25;
}

.update p {
  margin: 0;
  max-width: 18em;
  font-size: clamp(22px, 1.8vw, 35px);
  font-weight: 300;
  line-height: 1.25;
}

.update-link {
  align-self: flex-end;
  color: #fff;
  font-size: clamp(22px, 1.6vw, 31px);
  font-weight: 400;
  text-decoration: none;
}

.update-link:hover { text-decoration: underline; }

.video,
.about,
.shots,
.ask {
  padding: 72px 24px;
}

.video-frame {
  width: min(960px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  object-fit: contain;
}

.about,
.ask {
  text-align: center;
}

.about h2,
.feature h3,
.ask h2 {
  margin: 0 0 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
}

.about h2 { font-size: 40px; font-weight: 700; }

.about p,
.feature p {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
}

.about .lead {
  max-width: 760px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 96px;
  background: var(--night);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover { filter: brightness(1.15); }

.btn-lg { font-size: 32px; }
.btn-md { font-size: 20px; }
.btn-sm { font-size: 18px; }

.shots { padding-top: 0; }

.carousel {
  position: relative;
  width: min(854px, 100%);
  margin: 0 auto;
}

.carousel img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 675;
  object-fit: cover;
  background: #cfd3da;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(33, 32, 53, 0.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #9aa0ab;
  cursor: pointer;
}

.dots button[aria-current="true"] { background: var(--night); }

.features {
  background: var(--content);
  padding: 32px 64px 72px;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 0;
}

.feature.reverse { flex-direction: row-reverse; }

.feature .copy,
.feature .visual {
  flex: 1 1 0;
  min-width: 0;
}

.feature h3 { font-size: 40px; }

.feature .visual img {
  width: 100%;
  height: auto;
}

.summary {
  position: relative;
  width: 100%;
  aspect-ratio: 662 / 324;
}

.summary img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ask h2 { font-size: 32px; }

.site-footer {
  background: var(--night);
  color: #fff;
  text-align: center;
  padding: 48px 24px 36px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.site-footer .logo {
  margin: 0 auto 16px;
  height: 42px;
}

.site-footer .logo img { height: 42px; margin: 0 auto; }

.site-footer a { color: #fff; font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer p { margin: 8px auto; max-width: 720px; }

.social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.social a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #dadce1;
}

.social svg { width: 22px; height: 22px; fill: currentColor; }

html[data-theme="dark"] {
  --ink: #e7e8ee;
  --paper: #1b1c24;
  --content: #12131a;
  --night: #3a3b55;
  color-scheme: dark;
}

html[data-theme="dark"] .dots button { background: #5c6270; }
html[data-theme="dark"] .dots button[aria-current="true"] { background: #fff; }

@media (max-width: 1100px) {
  .nav { gap: 8px; }
  .nav a { font-size: 15px; }
}

@media (max-width: 980px) {
  .nav a { font-size: 16px; }
  .hero-copy { left: 6%; right: 6%; max-width: none; top: 34%; }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy p { font-size: 18px; }
  .lapras { width: min(240px, 42vw); right: 10vw; bottom: 0; }
  .features { padding: 16px 24px 48px; }
  .feature,
  .feature.reverse { flex-direction: column; gap: 24px; text-align: left; }
  .update { padding: 72px 24px; min-height: 520px; }
  .update-link { align-self: flex-start; margin-top: 32px; }
  .btn-lg { font-size: 24px; }
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; }
  .nav { flex-wrap: wrap; justify-content: flex-end; max-width: 60%; gap: 8px 12px; }
  .logo img { height: 36px; }
  .hero { min-height: 560px; }
  .hero-copy h1 { font-size: 26px; }
  .water { perspective: 40vh; }
}
