/* Cloud Collaboration SaaS Template - Responsive Styles */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  /* Disable animations for mobile */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Section padding */
  section {
    padding: 40px 0;
  }
  
  /* Hero section */
  #hero {
    min-height: 80vh;
    text-align: center;
    padding-top: 100px;
  }
  
  .hero-content .lead {
    font-size: 1rem;
  }
  
  /* Remove decorative elements on mobile */
  .hero-decoration {
    display: none;
  }
  
  /* Cards and components */
  .service-card,
  .price-card,
  .feature-card,
  .team-card,
  .review-card,
  .case-card,
  .career-card,
  .info-card,
  .faq-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  /* Timeline adjustments */
  .timeline-item {
    margin-left: 0.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  /* Section padding */
  section {
    padding: 60px 0;
  }
  
  /* Hero section */
  #hero {
    min-height: 90vh;
    padding-top: 90px;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact form */
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Section padding */
  section {
    padding: 70px 0;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max width */
  .container {
    max-width: var(--container-max-width);
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile navigation adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  #footer,
  .hero-decoration,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .page-break {
    page-break-before: always;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0066cc;
    --primary-mint: #00a86b;
    --primary-lavender: #8a2be2;
    --primary-coral: #ff6347;
    --primary-sage: #9caf88;
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #666666;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover,
  .service-card:hover,
  .price-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .review-card:hover,
  .case-card:hover,
  .career-card:hover,
  .info-card:hover,
  .faq-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Landscape phone adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
  }
  
  section {
    padding: 50px 0;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .price-card.featured {
    transform: none;
  }
}

/* Large screen adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  section {
    padding: 100px 0;
  }
  
  #hero {
    min-height: 100vh;
  }
} 