/* ============================================================
   Pekin Dijital — style.css
   ============================================================ */

:root {
  --indigo: #4B0082;
  --indigo-bright: #6A1FB0;
  --dark: #0D0A14;
  --dark-2: #1A1523;
  --light: #F7F5FB;
  --white: #FFFFFF;
  --ink: #1A1523;
  --ink-soft: rgba(26, 21, 35, 0.62);
  --white-soft: rgba(255, 255, 255, 0.62);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(2rem, 5.5vw, 3.75rem); }

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

:focus-visible {
  outline: 2px solid var(--indigo-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.kicker {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--indigo-bright);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
}

.br-desktop { display: none; }
@media (min-width: 720px) { .br-desktop { display: inline; } }

/* ============ Reveal (scroll-triggered) ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  [data-parallax] { transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(13, 10, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { width: auto; height: 34px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a { color: var(--white-soft); transition: color 0.25s ease; }
.nav__links a:hover { color: var(--white); }
.nav__cta {
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav__cta:hover { background: var(--indigo-bright); border-color: var(--indigo-bright); }
@media (max-width: 560px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============ 1 · HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem var(--pad) 5rem;
  background: var(--dark);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 82%, rgba(75, 0, 130, 0.42), transparent 70%),
    radial-gradient(ellipse 45% 35% at 50% 100%, rgba(106, 31, 176, 0.28), transparent 70%);
  pointer-events: none;
}
.hero__visual {
  position: absolute;
  inset: auto 0 0 0;
  height: 74vh;
  pointer-events: none;
  will-change: transform;
}
.hero__visual img,
.hero__visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0.9;
  mask-image: linear-gradient(to top, #000 55%, rgba(0,0,0,0) 96%);
  -webkit-mask-image: linear-gradient(to top, #000 55%, rgba(0,0,0,0) 96%);
}
.hero__video {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__video.is-playing { opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 60rem;
  margin-bottom: 26vh;
  text-shadow: 0 2px 30px rgba(13, 10, 20, 0.65);
}
.hero__title {
  font-size: clamp(2.5rem, 8vw, 5.75rem);
  font-weight: 700;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--indigo-bright), #A56BE8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 9px;
}
.hero__scroll-line {
  width: 2px;
  height: 10px;
  background: var(--white);
  border-radius: 2px;
  animation: scroll-hint 2.2s var(--ease) infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ 2 · PROBLEM ============ */
.problem {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--pad);
  background: linear-gradient(to bottom, var(--dark) 0%, var(--dark-2) 34%, var(--light) 100%);
}
.problem__inner { max-width: 56rem; }
.problem h2 { color: var(--white); }
.problem .lead { margin-top: 1.5rem; color: var(--white-soft); }

.flow {
  margin-top: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 4vw, 2.5rem);
  color: var(--ink);
}
.flow__stage {
  width: clamp(88px, 16vw, 150px);
  aspect-ratio: 3 / 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(26, 21, 35, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 45px -18px rgba(26, 21, 35, 0.18);
}
.flow__stage svg { width: 72%; height: auto; }
.flow__label {
  position: absolute;
  bottom: -2rem;
  left: 0;
  right: 0;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.flow__dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-soft);
}
.flow__dot:nth-child(1) { top: 18%; left: 20%; }
.flow__dot:nth-child(2) { top: 55%; left: 38%; }
.flow__dot:nth-child(3) { top: 26%; left: 62%; }
.flow__dot:nth-child(4) { top: 66%; left: 74%; background: var(--indigo-bright); }
.flow__dot:nth-child(5) { top: 40%; left: 12%; }
.flow__dot:nth-child(6) { top: 70%; left: 52%; }
.flow__arrow {
  width: clamp(18px, 3vw, 36px);
  height: 1.5px;
  background: rgba(26, 21, 35, 0.3);
  position: relative;
  flex-shrink: 0;
}
.flow__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3.25px;
  border-left: 7px solid rgba(26, 21, 35, 0.3);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* ============ 3 · HİZMETLER ============ */
.services {
  background: var(--light);
  color: var(--ink);
  padding: clamp(4rem, 10vh, 8rem) 0;
}
.service {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
  max-width: 90rem;
  margin: 0 auto;
}
.service--flip .service__text { order: 2; }
.service--flip .service__media { order: 1; }
.service__num {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--indigo-bright);
  margin-bottom: 1rem;
}
.service h3 { font-size: clamp(1.85rem, 4vw, 3.25rem); }
.service .lead { margin-top: 1.25rem; color: var(--ink-soft); max-width: 26rem; }
.service__media {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #E9E3F5, #D9CCEE);
  box-shadow: 0 40px 80px -30px rgba(75, 0, 130, 0.25);
}
.service__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .service {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }
  .service--flip .service__text { order: 1; }
  .service--flip .service__media { order: 2; }
  .service .lead { margin-inline: auto; }
}

/* ============ 4 · NEDEN BİZ ============ */
.why {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  padding: clamp(6rem, 14vh, 9rem) var(--pad);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 45% at 80% 10%, rgba(75, 0, 130, 0.3), transparent 70%);
  pointer-events: none;
}
.why__inner {
  position: relative;
  max-width: 70rem;
  margin: 0 auto;
  width: 100%;
}
.why h2 { color: var(--white); }
.why__values {
  list-style: none;
  margin-top: clamp(3rem, 8vh, 5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.why__values h4 {
  font-size: 1.2rem;
  color: var(--white);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.why__values p {
  margin-top: 0.6rem;
  font-size: 0.98rem;
  color: var(--white-soft);
}
@media (max-width: 720px) {
  .why__values { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============ 5 · CTA ============ */
.cta {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(5rem, 12vh, 8rem) var(--pad);
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-bright) 55%, #3A0066 100%);
}
.cta__inner { max-width: 54rem; }
.cta h2 { color: var(--white); font-size: clamp(1.7rem, 4.5vw, 3.25rem); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  margin-top: 2.75rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--light {
  background: var(--white);
  color: var(--indigo);
}
.btn--light:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.4);
}

/* ============ 6 · FOOTER ============ */
.footer {
  background: var(--dark);
  color: var(--white-soft);
  padding: clamp(3.5rem, 8vh, 5.5rem) var(--pad) 2rem;
}
.footer__inner {
  max-width: 70rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer__brand { display: flex; align-items: flex-start; }
.footer__brand img { width: auto; height: 132px; }
.footer__links, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.92rem;
}
.footer__links a:hover, .footer__contact a:hover { color: var(--white); }
.footer__note {
  max-width: 70rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ============ Yüzen WhatsApp ============ */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
