/* ===================================
   TeamCulture Pro - Responsive CSS
   ================================== */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography */
  .display-4 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .display-3 {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .lead {
    font-size: 0.95rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  /* Hero Section */
  #hero {
    padding: 2rem 0;
    min-height: 80vh;
  }
  
  #hero .container {
    padding: 0 1rem;
  }
  
  #hero .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  #hero .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
    overflow-x: hidden;
}
  
  .card-img-top {
    height: 200px;
  }
  
  /* Team Cards */
  #team .card-img-top {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
  }
  
  /* Buttons */
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Forms */
  .form-control {
    font-size: 1rem;
  }
  
  /* Timeline */
  .timeline::before {
    left: 30px;
  }
  
  .timeline .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .timeline .card {
    margin-left: 60px;
  }
  
  .timeline .card::before {
    left: -45px !important;
  }
  
  /* Statistics */
  .display-3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  /* Process Numbers */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Feature Icons */
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon i {
    font-size: 1.5rem;
  }
  
  /* Gallery */
  #gallery .col-lg-4 {
    margin-bottom: 1rem;
  }
  
  /* Spacing */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* No animations on mobile for better performance */
  @media (prefers-reduced-motion: no-preference) {
    .card:hover {
      transform: none;
    }
    
    .card-img-top {
      transition: none;
    }
    
    .card:hover .card-img-top {
      transform: none;
    }
    
    #gallery img:hover {
      transform: none;
    }
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero Section */
  #hero {
    min-height: 85vh;
  }
  
  /* Cards */
  .card-img-top {
    height: 220px;
  }
  
  /* Team Cards */
  #team .card-img-top {
    width: 170px;
    height: 170px;
  }
  
  /* Timeline adjustments */
  .timeline::before {
    left: 50%;
  }
  
  .timeline .card {
    margin-left: 0;
  }
  
  /* Statistics */
  .display-3 {
    font-size: 2.25rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  #hero {
    min-height: 90vh;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  /* Cards */
  .card-img-top {
    height: 240px;
  }
  
  /* Team Cards */
  #team .card-img-top {
    width: 180px;
    height: 180px;
  }
  
  /* Services Grid */
  #services .col-lg-4:nth-child(3n+1) {
    clear: left;
  }
  
  /* Statistics */
  .display-3 {
    font-size: 2.5rem;
  }
  
  /* Feature Icons */
  .feature-icon {
    width: 70px;
    height: 70px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  #hero {
    min-height: 100vh;
  }
  
  /* Cards */
  .card-img-top {
    height: 250px;
  }
  
  /* Team Cards */
  #team .card-img-top {
    width: 200px;
    height: 200px;
  }
  
  /* Statistics */
  .display-3 {
    font-size: 2.75rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max-widths */
  .container {
    max-width: 1140px;
  }
  
  /* Hero Section */
  #hero {
    min-height: 100vh;
  }
  
  /* Typography */
  .display-4 {
    font-size: 3rem;
  }
  
  .display-3 {
    font-size: 3rem;
  }
  
  /* Cards */
  .card-img-top {
    height: 260px;
  }
  
  /* Team Cards */
  #team .card-img-top {
    width: 220px;
    height: 220px;
  }
  
  /* Feature Icons */
  .feature-icon {
    width: 90px;
    height: 90px;
  }
  
  /* Process Numbers */
  .process-number {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 120vh;
  }
  
  .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 crisp images on retina displays */
  .card-img-top,
  #team .card-img-top,
  #gallery img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark Mode Support */

/* Print Styles */
@media print {
  /* Hide interactive elements */
  .navbar,
  .btn,
  #footer,
  .breadcrumb {
    display: none !important;
  }
  
  /* Adjust typography for print */
  body {
    font-size: 11pt;
    line-height: 1.4;
    color: #000000;
    background: #ffffff;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000000;
    page-break-after: avoid;
  }
  
  /* Avoid breaking elements */
  .card,
  .timeline .card {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  /* Remove shadows and colors for print */
  .card {
    border: 1px solid #000000;
    box-shadow: none;
  }
  
  /* Adjust image sizes */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Remove backgrounds */
  .bg-light,
  .bg-primary {
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-outline-primary {
    border-width: 2px;
  }
  
  .card {
    border-width: 2px;
  }
  
  .form-control:focus {
    border-width: 2px;
  }
}

/* Accessibility - Reduced Motion */
@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;
  }
  
  .card:hover {
    transform: none;
  }
  
  .card-img-top {
    transition: none;
  }
  
  #gallery img {
    transition: none;
  }
}

/* Focus Improvements for Keyboard Navigation */
@media (any-hover: none) {
  /* Touch devices - improve focus states */
  .btn:focus,
  .nav-link:focus,
  .form-control:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Larger hero text for ultra-wide */
  .display-4 {
    font-size: 3.5rem;
  }
  
  /* Increased spacing for better proportion */
  .py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
} 