/* =========================================================
   e-GAS RACING TEAM — RESPONSIVE ADAPTATIONS & ACCESSIBILITY
   Modern Tablet, Mobile & Micro-screen Layouts
   ========================================================= */

/* TABLET UYUMLULUĞU (1024px ve altı) */
@media (max-width: 1024px) {
  .work-row,
  .work-row.reverse {
    grid-template-columns: 1fr 1fr;
  }

  .history-card {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
  }
}

/* MOBİL VE KÜÇÜK TABLETLER (860px ve altı) */
@media (max-width: 860px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image {
    max-height: 400px;
    margin-inline: auto;
  }

  .history-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .history-image {
    aspect-ratio: 16 / 9;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* AKILLI TELEFONLAR (768px ve altı) */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-intro {
    margin-bottom: 36px;
  }

  /* Çalışma satırları dikey karta dönüşür */
  .work-rows {
    gap: 32px;
  }

  .work-row,
  .work-row.reverse {
    grid-template-columns: 1fr;
  }

  .work-photo {
    order: -1;
    min-height: 240px;
    max-height: 300px;
  }

  .work-copy {
    padding: 28px 24px;
  }

  /* Zaman çizgisi */
  .history-timeline-nav {
    top: 76px;
    padding: 12px 16px;
    margin-bottom: 32px;
  }

  .timeline-nodes {
    gap: 8px;
  }

  .timeline-btn {
    padding: 6px 10px;
  }

  .timeline-year-label {
    font-size: 0.95rem;
  }

  .timeline-dot {
    width: 13px;
    height: 13px;
  }

  .history-list {
    --tl: 20px;
    margin-left: 8px;
    padding-left: 24px;
    gap: 40px;
  }

  .history-card {
    padding: 20px;
  }

  .history-card::before {
    left: calc(-1 * var(--tl) - 13px);
    top: 24px;
    width: 14px;
    height: 14px;
  }

  .history-year {
    font-size: 2.6rem;
  }

  /* Değerler ve İletişim kartları */
  .values-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .value-card,
  .contact-card {
    padding: 28px 22px;
  }

  .contact-card h3 {
    font-size: 1.25rem;
  }
}

/* KÜÇÜK EKRANLAR (480px ve altı) */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .history-timeline-nav {
    top: 70px;
    padding: 10px 10px;
    border-radius: var(--radius-md);
  }

  .timeline-nodes {
    justify-content: flex-start;
  }

  .timeline-track-line {
    left: 14px;
    right: 14px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding: 48px 0 36px;
  }

  .hero-tag {
    font-size: 0.75rem;
    padding: 5px 14px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    margin: 16px 0;
  }

  .hero-button {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact-item a {
    width: 46px;
    height: 46px;
  }
}

/* =========================================================
   ERİŞİLEBİLİRLİK (A11Y) & PERFORMANS
   ========================================================= */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 2000;
  background: var(--pink);
  color: #252027;
  padding: 12px 20px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transition: top var(--duration-fast) var(--ease-spring);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

body[data-theme="light"] :focus-visible {
  outline-color: #252027;
}

@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;
  }
}
