/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .section-title {
    font-size: 1.75rem !important;
  }
  
  .feature-card,
  .pricing-card,
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .macbook-mockup {
    padding: 1rem !important;
  }
  
  .dashboard-preview {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
  
  .client-logos {
    gap: 1rem !important;
  }
  
  .footer {
    padding: 3rem 0 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding-top: 8rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
}

/* Height based media queries */
@media (max-height: 700px) {
  .hero-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Orientation based */
@media (orientation: portrait) {
  .hero-image-wrapper {
    min-height: 400px;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    padding-top: 6rem;
  }
  
  .header {
    padding: 0.5rem 0;
  }
}

/* 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;
  }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
  .light-theme {
    --dark: #0a0a0f;
    --dark-card: #151520;
    --light: #ffffff;
    --gray: #8a8aa3;
  }
}

/* Light mode preference */
@media (prefers-color-scheme: light) {
  .light-theme {
    --dark: #f8f9fa;
    --dark-card: #ffffff;
    --light: #0a0a0f;
    --gray: #6c757d;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary: #00ffff;
    --secondary: #ff00ff;
    --success: #00ff00;
    --danger: #ff0000;
  }
  
  .gradient-text {
    background: none;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
  }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
  .feature-card:hover,
  .pricing-card:hover,
  .testimonial-card:hover,
  .btn:hover {
    transform: none !important;
  }
  
  .nav-link:hover::after {
    width: 0 !important;
  }
  
  /* Better touch targets */
  .btn,
  .nav-link,
  .faq-question {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Print styles */
@media print {
  @page {
    margin: 0.5in;
  }
  
  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .header,
  .footer,
  .hero-actions,
  .btn,
  .cta-section,
  .testimonial-slider,
  .swiper-pagination,
  .social-links,
  .pricing-toggle {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    page-break-inside: avoid;
    max-width: 100% !important;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    font-weight: normal;
  }
  
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
}