/* ========================================
   ARYAS AR-GE MÜHENDİSLİK - RESPONSIVE STYLES
   Mobile-first responsive design
   ======================================== */

/* ========== MOBILE STYLES (Default) ========== */
/* Base styles are already mobile-friendly */

/* ========== SMALL MOBILE (< 480px) ========== */
@media (max-width: 480px) {
  :root {
    --spacing-xl: 2.5rem;
    --spacing-2xl: 3rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

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

  .btn-group {
    flex-direction: column;
  }
}

/* ========== MOBILE TO TABLET (< 768px) ========== */
@media (max-width: 768px) {
  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px var(--spacing-md) var(--spacing-md);
    border-left: 1px solid var(--neutral-light);
    transition: right 0.3s ease;
    z-index: 999;
    align-items: flex-start;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: var(--spacing-sm);
    font-size: 1.125rem;
  }

  .nav-link::after {
    left: 0;
    transform: translateX(0);
    height: 100%;
    width: 3px;
    bottom: auto;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 3px;
    height: 100%;
  }

  .hamburger {
    display: flex;
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: 60px;
  }

  .hero-text {
    order: 1;
    text-align: center;
  }

  .hero-visual {
    order: 2;
    height: 350px;
  }

  .hero-image {
    transform: none;
  }

  .hero-float-card {
    display: none;
  }

  /* Features */
  .features {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Stats */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }

  /* Shapes */
  .shape-blob {
    display: none;
  }

  /* Section padding */
  .section {
    padding: var(--spacing-xl) 0;
  }
}

/* ========== TABLET (768px - 1024px) ========== */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero-visual {
    height: 400px;
  }

  /* Features */
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats */
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

  /* Navigation - show hamburger on tablet too */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 320px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 80px var(--spacing-md) var(--spacing-md);
    border-left: 1px solid var(--neutral-light);
    transition: right 0.3s ease;
    z-index: 999;
    align-items: flex-start;
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: var(--spacing-sm);
  }
}

/* ========== DESKTOP (1024px - 1440px) ========== */
@media (min-width: 1024px) {
  /* Hero */
  .hero-content {
    grid-template-columns: 1.2fr 1fr;
  }

  /* Features */
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats */
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== LARGE DESKTOP (> 1440px) ========== */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  /* Hero */
  .hero-content {
    grid-template-columns: 1.3fr 1fr;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Larger spacing for big screens */
  :root {
    --spacing-2xl: 8rem;
  }
}

/* ========== ULTRA WIDE (> 1920px) ========== */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
}

/* ========== LANDSCAPE MOBILE ========== */
@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }

  .hero-visual {
    height: 300px;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .header,
  .hamburger,
  .nav-menu,
  .scroll-top,
  .hero-float-card,
  .shape-blob {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }

  a {
    text-decoration: underline;
  }

  .btn {
    border: 1px solid #000;
  }
}

/* ========== HIGH DPI DISPLAYS ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .logo {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ========== TOUCH DEVICES ========== */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .hover-lift:hover {
    transform: none;
  }

  .hover-glow:hover {
    box-shadow: none;
  }

  /* Increase touch target sizes */
  .btn {
    min-height: 48px;
    min-width: 48px;
  }

  .nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* ========== DARK MODE SUPPORT (Optional) ========== */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode */
  /*
  :root {
    --neutral-bg: #1a1a1a;
    --text-dark: #f5f5f5;
    --text-medium: #b0b0b0;
    --white: #212121;
  }

  body {
    background: #121212;
    color: #f5f5f5;
  }

  .header {
    background: rgba(0, 0, 0, 0.8);
  }

  .feature-card,
  .product-card {
    background: #1e1e1e;
  }
  */
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .parallax {
    background-attachment: scroll;
  }
}

/* ========== ACCESSIBILITY - HIGH CONTRAST ========== */
@media (prefers-contrast: high) {
  :root {
    --primary-dark: #1a3a0a;
    --text-dark: #000000;
  }

  .btn {
    border: 2px solid currentColor;
  }

  .nav-link {
    text-decoration: underline;
  }
}

/* ========== SMALL HEIGHT DEVICES ========== */
@media (max-height: 600px) {
  .hero {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }
}

/* ========== TABLET PORTRAIT ========== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-content {
    grid-template-columns: 1fr;
  }

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

/* ========== TABLET LANDSCAPE ========== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    height: 350px;
  }
}
