/* BookSwap - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile */
  .sal-animate {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  
  /* Typography adjustments */
  #hero h1 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Spacing adjustments */
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  /* Card spacing */
  .card-body {
    padding: 1rem;
    overflow-x: hidden;
}
  
  /* Team member images */
  .rounded-circle {
    width: 80px !important;
    height: 80px !important;
  }
  
  /* Gallery grid */
  #gallery .col-sm-6 {
    margin-bottom: 1rem;
  }
  
  /* Form adjustments */
  .form-control {
    padding: 0.5rem;
  }
  
  /* Button sizing */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Footer spacing */
  footer {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  /* Navbar brand sizing */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Process steps */
  .bg-primary.rounded-circle {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  #hero h1 {
    font-size: 2.25rem;
  }
  
  /* Team member adjustments */
  .rounded-circle {
    width: 100px !important;
    height: 100px !important;
  }
  
  /* Process steps */
  .bg-primary.rounded-circle {
    width: 55px !important;
    height: 55px !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  #hero {
    min-height: 80vh;
  }
  
  /* Team member spacing */
  #team .row > div {
    margin-bottom: 2rem;
  }
  
  /* Services grid adjustments */
  #services .col-md-6:nth-child(odd) {
    margin-bottom: 2rem;
  }
  
  /* FAQ grid */
  #faq .col-lg-6 {
    margin-bottom: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Hero section full height */
  #hero {
    min-height: 100vh;
  }
  
  /* Enhanced card hover effects */
  .card:hover {
    transform: translateY(-5px);
  }
  
  /* Gallery hover effects */
  #gallery img:hover {
    transform: scale(1.08);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing for large screens */
  section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  
  /* Typography scaling */
  #hero h1 {
    font-size: 2.75rem;
  }
}

/* Print Styles */
@media print {
  /* Hide navigation and interactive elements */
  #header,
  .btn,
  #gallery,
  footer {
    display: none !important;
  }
  
  /* Optimize for printing */
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .card {
    border-width: 2px;
  }
  
  .btn {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* Dark Mode Support */