/* Responsive CSS - Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1, .h1 {
    font-size: 1.75rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  /* Hero section mobile adjustments */
  #hero {
    padding-top: 5rem;
    text-align: center;
  }
  
  #hero .display-4 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  #hero .lead {
    font-size: 1.125rem;
  }
  
  /* Section padding adjustments */
  section {
    padding: 3rem 0;
  }
  
  /* Card adjustments */
  .card-body {
    padding: 1.5rem 1rem;
    overflow-x: hidden;
}
  
  /* Button adjustments */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Team member photos */
  .team-member-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process numbers */
  .process-number {
    width: 3rem;
    height: 3rem;
    font-size: 0.9rem;
  }
  
  /* Metric cards */
  .metric-card {
    padding: 1.5rem 0.75rem;
  }
  
  .metric-number {
    font-size: 2.5rem;
  }
  
  /* Integration icons */
  .integration-icon, .report-icon {
    width: 3rem;
    height: 3rem;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 200px;
  }
  
  /* Form adjustments */
  .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  /* Footer adjustments */
  #footer {
    text-align: center;
  }
  
  #footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Navbar brand size */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Container padding */
  .container, .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* No animations on mobile per requirements */
  .sal-animate {
    animation: none !important;
    transition: none !important;
  }
  
  /* Disable hover effects on mobile */
  .card:hover,
  .services-card:hover,
  .metric-card:hover,
  .success-story:hover,
  .feature-card:hover,
  .gallery-item:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  .integration-icon:hover,
  .report-icon:hover {
    transform: none;
    background: var(--primary-color);
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  #hero .display-4 {
    font-size: 2.25rem;
  }
  
  /* Section padding */
  section {
    padding: 4rem 0;
  }
  
  /* Team photos */
  .team-member-photo {
    width: 140px;
    height: 140px;
  }
  
  /* Process numbers */
  .process-number {
    width: 3.25rem;
    height: 3.25rem;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 220px;
  }
  
  /* No animations on mobile per requirements */
  .sal-animate {
    animation: none !important;
    transition: none !important;
  }
  
  /* Disable hover effects on mobile */
  .card:hover,
  .services-card:hover,
  .metric-card:hover,
  .success-story:hover,
  .feature-card:hover,
  .gallery-item:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  .integration-icon:hover,
  .report-icon:hover {
    transform: none;
    background: var(--primary-color);
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  #hero .display-4 {
    font-size: 2.5rem;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 240px;
  }
  
  /* Team photos */
  .team-member-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Cards in rows */
  .row .col-md-6:nth-child(2n+1) {
    clear: left;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Full desktop experience with animations */
  .gallery-item img {
    height: 250px;
  }
  
  /* Enable full hover effects on desktop */
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .services-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
  
  .success-story:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
  
  .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .gallery-item:hover {
    transform: scale(1.05);
  }
  
  .integration-icon:hover,
  .report-icon:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Larger container for better content distribution */
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing for large screens */
  section {
    padding: 6rem 0;
  }
  
  /* Larger hero text */
  #hero .display-4 {
    font-size: 3rem;
  }
  
  #hero .lead {
    font-size: 1.375rem;
  }
}

/* Extra Extra Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Maximum spacing for very large screens */
  section {
    padding: 7rem 0;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
    padding-top: 4rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .btn,
  #footer,
  .breadcrumb {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
  }
  
  /* Remove shadows and effects */
  .card,
  .shadow,
  .shadow-sm,
  .shadow-lg {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  
  /* Ensure proper page breaks */
  .card,
  .feature-card,
  .metric-card {
    break-inside: avoid;
  }
  
  section {
    break-inside: avoid;
    padding: 1rem 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --primary-dark: #000080;
    --gray-600: #000000;
    --gray-700: #000000;
    --gray-800: #000000;
  }
  
  .card {
    border: 2px solid var(--gray-800) !important;
  }
  
  .btn {
    border-width: 2px !important;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable 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 transforms */
  .card:hover,
  .btn:hover,
  .gallery-item:hover,
  .integration-icon:hover,
  .report-icon:hover {
    transform: none !important;
  }
}

/* Focus management for accessibility */
@media (any-hover: hover) {
  /* Only apply hover effects on devices that support hover */
  .nav-link:hover,
  .btn:hover,
  .card:hover {
    transition: all 0.3s ease;
  }
}

/* Touch device optimizations */
@media (any-pointer: coarse) {
  /* Larger touch targets for better usability */
  .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .nav-link {
    padding: 1rem 0.75rem;
  }
  
  .form-control {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
  
  /* Larger clickable areas */
  .card {
    margin-bottom: 1rem;
  }
}

/* Dark mode support (if browser supports it) */

/* Specific breakpoint adjustments for better content flow */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Tablet-specific adjustments */
  .col-md-6 .card {
    height: 100%;
  }
  
  .team-member-card {
    padding: 1.5rem 1rem;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Desktop-specific adjustments */
  .col-lg-4 .card,
  .col-lg-3 .card {
    height: 100%;
  }
}

/* Utility classes for responsive behavior */
.mobile-center {
  text-align: center;
}

@media (min-width: 768px) {
  .mobile-center {
    text-align: left;
  }
}

.mobile-stack {
  flex-direction: column;
}

@media (min-width: 768px) {
  .mobile-stack {
    flex-direction: row;
  }
}

/* Ensure images are always responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive table handling */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Better spacing for mobile forms */
@media (max-width: 767.98px) {
  .form-group,
  .mb-3 {
    margin-bottom: 1.5rem;
  }
}

/* Responsive video embeds */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  display: block;
  content: "";
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-responsive-16by9::before {
  padding-top: 56.25%;
}

.embed-responsive-4by3::before {
  padding-top: 75%;
}

.embed-responsive-1by1::before {
  padding-top: 100%;
} 