/* ================================================
   STAR YAZILIM - Responsive Tasarım
   ================================================ */

/* ---- Tablet (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  :root {
    --fs-6xl: 3.5rem;
    --fs-5xl: 3rem;
    --fs-4xl: 2.5rem;
    --fs-3xl: 2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .floating-element {
    display: none;
  }

  .services-grid,
  .products-grid,
  .testimonials-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Mobile Large (max-width: 768px) ---- */
@media (max-width: 768px) {
  :root {
    --fs-6xl: 2.75rem;
    --fs-5xl: 2.25rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.5rem;
    --space-5xl: 5rem;
    --space-4xl: 4rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  /* Show hamburger, hide nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
  }

  .hero-visual-card {
    max-width: 100%;
  }

  .hero-stats {
    gap: var(--space-xl);
  }

  .hero-stat .number {
    font-size: var(--fs-2xl);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .services-grid,
  .products-grid,
  .testimonials-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat-item {
    padding: var(--space-lg);
  }

  .stat-number {
    font-size: var(--fs-3xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .cta-box {
    padding: var(--space-2xl);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    gap: var(--space-sm);
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: var(--fs-xs);
  }

  .page-hero .section-title {
    font-size: var(--fs-4xl);
  }

  .breadcrumb {
    font-size: var(--fs-xs);
  }
}

/* ---- Mobile Small (max-width: 480px) ---- */
@media (max-width: 480px) {
  :root {
    --fs-6xl: 2.25rem;
    --fs-5xl: 1.85rem;
    --fs-4xl: 1.65rem;
    --space-5xl: 4rem;
    --space-4xl: 3rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero-stat {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }

  .hero-stat .number {
    font-size: var(--fs-xl);
  }

  .section-label {
    font-size: var(--fs-xs);
    letter-spacing: 2px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .product-card-footer {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }

  .product-card-footer .btn {
    width: 100%;
  }

  .value-card,
  .why-us-card {
    flex-direction: column;
  }

  .contact-info-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin: 0 auto;
  }
}

/* ---- Accessibility: Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
