* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #05060a;
  --bg-alt: #0b0d14;
  --text: #f5f6fa;
  --muted: rgba(245, 246, 250, .65);
  --accent: #5b8cff;
  --accent-2: #8f6bff;
  --border: rgba(255, 255, 255, .08);
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overscroll-behavior-y: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* --- Preload / Fallback ekranı --- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 220px;
}

.loader-logo {
  font-weight: 800;
  letter-spacing: .18em;
  font-size: 14px;
  color: var(--text);
}

.loader-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, .15);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .15s ease-out;
}

#loader-text {
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--muted);
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease, padding .3s ease;
}

.site-header.scrolled {
  background: rgba(5, 6, 10, .75);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}

.nav-inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* --- Scroll ile oynayan kare dizisi --- */
#scroll-section {
  position: relative;
  width: 100%;
  height: 400vh; /* kaydırma mesafesi -> daha uzun = daha akıcı/daha yavaş oynatma */
}

.canvas-wrap {
  position: sticky; /* GSAP pin ile birlikte ekrana sabitlenir */
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.hero-caption.is-active {
  opacity: 1;
}

.hero-caption .eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-caption h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
}

.hero-caption h2 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
}

.hero-caption p {
  color: var(--muted);
  margin-top: 8px;
  font-size: clamp(14px, 2vw, 17px);
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--muted), transparent);
  animation: hint-move 1.8s ease-in-out infinite;
}

@keyframes hint-move {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: .3; }
}

/* --- Genel bölüm stilleri --- */
.section {
  padding: 120px 0;
  position: relative;
}

.section.alt {
  background: var(--bg-alt);
}

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.tag.center {
  display: block;
  text-align: center;
}

.center {
  text-align: center;
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 46ch;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.stat-grid {
  display: grid;
  gap: 20px;
}

.mini-stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: rgba(255, 255, 255, .02);
}

.mini-stat-num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mini-stat-label {
  color: var(--muted);
  font-size: 14px;
}

/* --- Hizmet kartları --- */
.cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
  transition: transform .3s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .2);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* --- Süreç zaman çizelgesi --- */
.timeline {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.timeline-step {
  padding: 28px 22px;
  border-top: 2px solid var(--border);
  position: relative;
}

.timeline-num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
}

.timeline-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.timeline-step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --- İletişim --- */
.contact-info {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  background: rgba(255, 255, 255, .02);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  margin-top: 6px;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.contact-form button:hover {
  opacity: .88;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-inner p {
  color: var(--muted);
  font-size: 13px;
}

/* --- Scroll reveal animasyonu (GSAP tarafından kontrol edilir) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(280px, 78vw);
    background: rgba(5, 6, 10, .97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .35s ease;
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 80px 0;
  }
}
