/* Responsive CSS for Digital Goal Tracker Template */

/* 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;
  }
  
  h3, .h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-section .col-lg-6 {
    margin-bottom: 2rem;
  }
  
  /* Remove animations on mobile */
  .feature-card:hover,
  .feature-item:hover,
  .info-card:hover,
  .analytics-item:hover,
  .visualization-card:hover,
  .report-feature:hover,
  .monitoring-item:hover,
  .integration-item:hover,
  .collaboration-item:hover,
  .permission-card:hover,
  .communication-tool:hover,
  .automation-item:hover,
  .performance-metric:hover {
    transform: none;
  }
  
  /* Mobile spacing adjustments */
  .py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .mb-5 {
    margin-bottom: 2rem;
  }
  
  /* Team member images smaller on mobile */
  .team-member img {
    width: 80px;
    height: 80px;
  }
  
  /* Process step numbers smaller */
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Contact form adjustments */
  .contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  /* Card padding adjustments */
  .card-body {
    padding: 1rem;
    overflow-x: hidden;
}
  
  /* Gallery images responsive */
  #gallery .col-lg-3,
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography adjustments */
  h1, .h1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.625rem;
  }
  
  .navbar-brand {
    font-size: 1.375rem;
  }
  
  /* Hero section adjustments */
  .hero-section {
    padding-top: 90px;
  }
  
  /* Reduce animations on small screens */
  .feature-card:hover,
  .feature-item:hover,
  .info-card:hover {
    transform: translateY(-3px);
  }
  
  /* Team member images */
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Contact info padding */
  .contact-info {
    padding: 1.75rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography fine-tuning */
  h1, .h1 {
    font-size: 2.125rem;
  }
  
  h2, .h2 {
    font-size: 1.75rem;
  }
  
  .navbar-brand {
    font-size: 1.4375rem;
  }
  
  /* Hero section */
  .hero-section {
    padding-top: 85px;
  }
  
  /* Team layout adjustments */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Service cards spacing */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Process steps responsive */
  .process-step {
    margin-bottom: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Standard desktop styles - minimal adjustments needed */
  .hero-section {
    padding-top: 80px;
  }
  
  /* Ensure proper spacing for 5-column layouts */
  .col-lg-2 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max-width adjustments */
  .container {
    max-width: 1200px;
  }
  
  /* Hero section full utilization */
  .hero-section {
    padding-top: 80px;
    min-height: 100vh;
  }
  
  /* Enhanced spacing for large screens */
  .py-5 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .mb-5 {
    margin-bottom: 4rem;
  }
}

/* Extra Extra Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Generous spacing for very large screens */
  .py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 2rem;
  }
  
  /* Reduce vertical spacing in landscape */
  .py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .btn,
  #footer .row:last-child {
    display: none;
  }
  
  /* Adjust colors for print */
  body {
    color: #000;
    background: #fff;
  }
  
  /* Remove shadows and transitions */
  .card,
  .feature-card,
  .info-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  /* Ensure readable font sizes */
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, .h1 { font-size: 18pt; }
  h2, .h2 { font-size: 16pt; }
  h3, .h3 { font-size: 14pt; }
  h4, .h4 { font-size: 13pt; }
  h5, .h5 { font-size: 12pt; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #008000;
    --neutral-color: #000000;
    --neutral-light: #666666;
    --light-bg: #ffffff;
    --dark-bg: #000000;
  }
  
  .card {
    border: 2px solid #000;
  }
  
  .btn {
    border: 2px solid #000;
  }
}

/* Focus management for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem 0.75rem;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover,
  .feature-card:hover,
  .feature-item:hover,
  .info-card:hover {
    transform: none;
    box-shadow: initial;
  }
}

/* Specific mobile navigation adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 1rem;
    border-radius: 0.5rem;
    padding: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}

/* Accessibility improvements for small screens */
@media (max-width: 767.98px) {
  /* Ensure minimum touch target sizes */
  .btn,
  .form-control,
  .nav-link {
    min-height: 44px;
  }
  
  /* Improve text readability */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Stack form elements properly */
  .form-control {
    margin-bottom: 1rem;
  }
  
  /* Improve gallery layout on mobile */
  #gallery .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Reduced motion for mobile devices */
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  * {
    animation: none;
    transition: none;
  }
  
  #gallery img:hover {
    transform: none;
  }
} 

.hero-section h1 {
    padding-top: 125px;
}