/* Remote Team Culture Gamification - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* No animations on mobile as per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography */
  .display-4 {
    font-size: 1.8rem;
  }
  
  h1, .h1 {
    font-size: 1.6rem;
  }
  
  h2, .h2 {
    font-size: 1.4rem;
  }
  
  h3, .h3 {
    font-size: 1.2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 60px 0 30px;
    text-align: center;
  }
  
  .hero-cta .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: 12px 20px;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .pricing-card,
  .review-card,
  .case-study-card,
  .blog-card,
  .faq-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team Photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process Steps */
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Timeline */
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0;
    padding-left: 40px;
    padding-right: 0.5rem;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
    padding-left: 40px;
    padding-right: 0.5rem;
  }
  
  .timeline-item::before,
  .timeline-item:nth-child(even)::before,
  .timeline-item:nth-child(odd)::before {
    left: 5px;
    width: 15px;
    height: 15px;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  /* Spacing */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Gallery */
  #gallery .col-lg-3,
  #gallery .col-md-4,
  #gallery .col-sm-6 {
    margin-bottom: 1rem;
  }
  
  /* Footer */
  #footer {
    text-align: center;
  }
  
  #footer .col-lg-4,
  #footer .col-lg-2,
  #footer .col-lg-3 {
    margin-bottom: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* No animations on mobile as per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography */
  .display-4 {
    font-size: 2rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 70px 0 35px;
  }
  
  .hero-cta .btn {
    margin: 0.25rem;
  }
  
  /* Cards in rows */
  .service-card,
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  /* Timeline adjustments */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-item:nth-child(even) {
    padding-left: 50px;
  }
  
  .timeline-item::before,
  .timeline-item:nth-child(even)::before,
  .timeline-item:nth-child(odd)::before {
    left: 10px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  .display-4 {
    font-size: 2.2rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 80px 0 40px;
  }
  
  /* Cards */
  .service-card,
  .pricing-card,
  .review-card,
  .case-study-card,
  .blog-card {
    margin-bottom: 2rem;
  }
  
  /* Team Photos */
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  /* Timeline - still single column on tablet */
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0;
    padding-left: 70px;
    padding-right: 1rem;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
    padding-left: 70px;
  }
  
  .timeline-item::before,
  .timeline-item:nth-child(even)::before,
  .timeline-item:nth-child(odd)::before {
    left: 20px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Typography */
  .display-4 {
    font-size: 2.3rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 90px 0 45px;
  }
  
  /* Cards */
  .service-card,
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  /* Timeline - back to two columns */
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-item {
    width: 50%;
  }
  
  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 2rem;
    padding-right: 1rem;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 2rem;
    padding-left: 1rem;
  }
  
  .timeline-item:nth-child(even)::before {
    left: -10px;
  }
  
  .timeline-item:nth-child(odd)::before {
    right: -10px;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Typography */
  .display-4 {
    font-size: 2.5rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 100px 0 50px;
  }
  
  /* Container max-width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Cards spacing */
  .service-card,
  .pricing-card,
  .review-card,
  .case-study-card,
  .blog-card {
    margin-bottom: 2rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    padding: 40px 0 20px;
  }
  
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure images remain crisp */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .hero-cta,
  .contact-form,
  #gallery,
  .btn {
    display: none !important;
  }
  
  /* Adjust colors for print */
  * {
    color: #000 !important;
    background: #fff !important;
  }
  
  /* Ensure proper spacing */
  .py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  /* Page breaks */
  .section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove hover effects that use transforms */
  .feature-card:hover,
  .service-card:hover,
  .pricing-card:hover,
  .review-card:hover,
  .case-study-card:hover,
  .blog-card:hover,
  .career-card:hover,
  .info-card:hover,
  .btn:hover {
    transform: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  /* Increase contrast for better accessibility */
  :root {
    --primary-color: #000080;
    --secondary-color: #000040;
    --text-primary: #000000;
    --text-secondary: #333333;
    --light-bg: #ffffff;
    --dark-bg: #000000;
  }
  
  /* Ensure borders are visible */
  .card,
  .btn,
  .form-control {
    border: 2px solid #000000 !important;
  }
}

/* Focus management for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  /* Only apply focus styles when motion is not reduced */
  .btn:focus,
  .nav-link:focus,
  .form-control:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Container queries for modern browsers */
@supports (container-type: inline-size) {
  .service-container {
    container-type: inline-size;
  }
  
  @container (max-width: 300px) {
    .service-card .card-body {
      padding: 1rem;
    overflow-x: hidden;
}
    
    .service-card .card-title {
      font-size: 1rem;
    }
  }
}

/* Utility classes for responsive design */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 767.98px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
  
  /* Mobile-specific utilities */
  .text-center-mobile {
    text-align: center;
  }
  
  .mb-mobile-3 {
    margin-bottom: 1rem;
  }
  
  .px-mobile-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Tablet-specific utilities */
@media (min-width: 768px) and (max-width: 991.98px) {
  .text-center-tablet {
    text-align: center;
  }
  
  .mb-tablet-3 {
    margin-bottom: 1rem;
  }
} 

.hero-section h1 {
    padding-top: 200px;
}