/* Reset & Temel Stiller */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Arka Plan Atmosferik Işık & Grid Detayları */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(56, 189, 248, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(29, 78, 216, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Dekoratif Silik YBS Teknoloji Terimleri Arka Plan Şeridi */
.tech-watermark-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  letter-spacing: 0.25em;
  color: #ffffff;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  line-height: 1;
}

.tech-watermark-row {
  display: flex;
  gap: 60px;
  animation: techTicker 80s linear infinite;
}

.tech-watermark-row:nth-child(even) {
  animation-direction: reverse;
  animation-duration: 95s;
}

@keyframes techTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Konteyner & Grid */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* Tipografi Kuralları */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1.15rem;
}

p {
  color: var(--text-body);
  font-size: 1.025rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Seçim & Scrollbar */
::selection {
  background-color: var(--color-primary);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Ortak Bölüm Başlığı Bloğu */
.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 55px auto;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-border);
  color: var(--color-accent);
  font-family: var(--font-badge);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.65;
}

/* ==========================================================================
   SCROLL REVEAL ANİMASYONLARI (KADEMELİ & AKICI)
   ========================================================================== */
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active,
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Kademeli (Staggered) Kart Girişleri */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.06s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.14s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.22s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.38s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.46s; opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-up,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .tech-watermark-row {
    animation: none !important;
  }
}
