/* ============================================================
   GLOBAL.CSS — Kobi Proje Danışmanlık
   ============================================================
   Merkezi tema değişkenleri, CSS reset/normalize, tipografi
   temel stilleri ve genel site genelinde geçerli kurallar.
   
   Bu dosya tüm sayfalarda yüklenir ve diğer tüm CSS
   dosyalarının temelini oluşturur.
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties (Tema Değişkenleri)
   ------------------------------------------------------------ */
:root {
  /* — Renk Paleti — */
  --color-primary: #1a2a5e;
  --color-primary-dark: #0f1d45;
  --color-primary-light: #2d4a8e;
  --color-secondary: #d4a843;
  --color-secondary-light: #e8c76a;
  --color-success: #28a745;
  --color-danger: #dc3545;

  --color-text-primary: #2d3436;
  --color-text-secondary: #636e72;
  --color-text-light: #b2bec3;

  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-dark: #0f1d45;
  --color-border: #e0e0e0;

  /* — Tipografi — */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* — Font Boyutları (Modüler Ölçek) — */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 3rem;      /* 48px */

  /* — Boşluk Ölçeği — */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */

  /* — Gölgeler — */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

  /* — Border Radius — */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;

  /* — Geçiş Süreleri — */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-smooth: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* — Düzen — */
  --container-max: 1200px;
  --container-padding: 1.25rem; /* 20px */
}

/* ------------------------------------------------------------
   2. CSS Reset / Normalize
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 100%;
  line-height: 1.15;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  border-style: none;
  vertical-align: middle;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-bg-primary);
}

:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   3. Tipografi Temel Stilleri
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: var(--font-size-2xl);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h3 {
  font-size: var(--font-size-xl);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.25;
}

h5 {
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.3;
}

h6 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

a {
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--font-size-sm);
}

blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background-color: var(--color-bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  background-color: var(--color-bg-secondary);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

/* Etiket / Label stili */
.label {
  font-family: var(--font-heading);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
}

/* Bölüm başlık üstü küçük etiket */
.section-label {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  display: block;
  margin-bottom: var(--space-sm);
}

/* Bölüm açıklama metni */
.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Responsive tipografi */
@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }

  h3 {
    font-size: var(--font-size-2xl);
  }

  h4 {
    font-size: var(--font-size-xl);
  }
}

/* ------------------------------------------------------------
   4. Erişilebilirlik — prefers-reduced-motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
