/* ==========================================
   ProofNet - Responsive CSS
   Mobile-First Responsive Design
   ========================================== */

/* Mobile First Base Styles (320px+) */
/* Default styles are already mobile-optimized in main.css */

/* Small Mobile Devices (480px+) */
@media (min-width: 480px) {
  .hero-section h1 {
    font-size: 2.75rem;
    padding-top: 125px;
}
  
  .hero-section .lead {
    font-size: 1.25rem;
  }
  
  .card-body {
    padding: 2rem;
    overflow-x: hidden;
}
}

/* Tablet Portrait (768px+) */
@media (min-width: 768px) {
  /* Typography Scaling */
  h1, .display-4 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  /* Hero Section */
  .hero-section h1 {
    font-size: 3.25rem;
    padding-top: 125px;
}
  
  .hero-section .lead {
    font-size: 1.375rem;
  }
  
  /* Navigation */
  .navbar-nav .nav-link {
    padding: 0.75rem 1.25rem;
  }
  
  /* Sections */
  section {
    padding: 6rem 0;
  }
  
  /* Cards */
  .card-img-top {
    height: 220px;
  }
  
  /* Team Images */
  .rounded-circle {
    width: 140px;
    height: 140px;
  }
  
  /* Gallery */
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
}

/* Tablet Landscape (992px+) */
@media (min-width: 992px) {
  /* Typography */
  h1, .display-4 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  /* Hero Section */
  .hero-section h1 {
    font-size: 3.75rem;
    padding-top: 125px;
}
  
  .hero-section .lead {
    font-size: 1.5rem;
  }
  
  /* Sections */
  section {
    padding: 7rem 0;
  }
  
  /* Cards */
  .card-img-top {
    height: 240px;
  }
  
  /* Process Section - Horizontal Layout */
  .process-step {
    position: relative;
  }
  
  .process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateY(-50%);
  }
  
  .process-step:last-child::after {
    display: none;
  }
  
  /* Team Images */
  .rounded-circle {
    width: 160px;
    height: 160px;
  }
}

/* Desktop (1200px+) */
@media (min-width: 1200px) {
  /* Hero Section */
  .hero-section h1 {
    font-size: 4rem;
    padding-top: 125px;
}
  
  .hero-section .lead {
    font-size: 1.625rem;
  }
  
  /* Container Max Width */
  .container {
    max-width: var(--container-max-width);
  }
  
  /* Cards */
  .card-img-top {
    height: 260px;
  }
  
  /* Enhanced Hover Effects for Desktop */
  .card:hover .card-img-top {
    transform: scale(1.05);
  }
  
  .card-img-top {
    transition: transform 0.3s ease;
  }
  
  /* Team Images */
  .rounded-circle {
    width: 180px;
    height: 180px;
  }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .hero-section h1 {
    font-size: 4.25rem;
    padding-top: 125px;
}
  
  section {
    padding: 8rem 0;
  }
}

/* Mobile-Specific Overrides */
@media (max-width: 767px) {
  /* Disable animations on mobile to follow requirements */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Mobile Navigation */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* Mobile Typography */
  h1, .display-4 {
    font-size: 2.25rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    padding-top: 125px;
}
  
  .hero-section .lead {
    font-size: 1.125rem;
  }
  
  /* Mobile Sections */
  section {
    padding: 4rem 0;
  }
  
  .hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  
  /* Mobile Cards */
  .card {
    margin-bottom: 2rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  /* Mobile Buttons */
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
  
  /* Mobile Forms */
  .form-control {
    margin-bottom: 1rem;
  }
  
  /* Mobile Team Section */
  .rounded-circle {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }
  
  /* Mobile Process Section - Vertical Layout */
  .process-step {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .process-step::after {
    display: none;
  }
  
  /* Mobile Footer */
  #footer .col-md-6,
  #footer .col-lg-3 {
    margin-bottom: 2rem;
  }
  
  #footer .text-md-end {
    text-align: center !important;
  }
  
  /* Mobile Gallery - Single Column */
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* Mobile Pricing Cards */
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  /* Mobile Contact Section */
  .contact-form {
    margin-bottom: 3rem;
  }
  
  /* Mobile FAQ */
  .faq-item {
    margin-bottom: 1.5rem;
  }
  
  /* Mobile Breadcrumb */
  .breadcrumb {
    font-size: 0.875rem;
  }
  
  /* Mobile Text Alignment */
  .text-md-end {
    text-align: center;
  }
  
  /* Mobile Spacing */
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
  
  /* Hide desktop-only elements on mobile */
  .d-none.d-md-block {
    display: none !important;
  }
}

/* Tablet-Specific Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  /* Tablet-specific styles */
  .col-md-6.col-lg-3 {
    margin-bottom: 2rem;
  }
  
  .card-columns {
    column-count: 2;
  }
  
  /* Tablet Services Grid */
  .services-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
}

/* High DPI/Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high-resolution displays */
  .card {
    border: 0.5px solid rgba(0, 0, 0, 0.1);
  }
  
  .btn {
    border-width: 1px;
  }
}

/* Landscape Orientation Fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  section {
    padding: 3rem 0;
  }
}

/* Print Media Queries */
@media print {
  /* Hide interactive elements */
  .navbar,
  #footer,
  .btn,
  .form-control,
  [data-sal] {
    display: none !important;
  }
  
  /* Optimize for print */
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
    font-size: inherit;
  }
  
  .card {
    break-inside: avoid;
    border: 1px solid #000;
    box-shadow: none;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  .row {
    margin: 0;
  }
  
  .col-lg-4,
  .col-md-6,
  .col-lg-6 {
    width: 50%;
    float: left;
  }
}

/* Accessibility Enhancements */
@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 transform effects */
  .card:hover,
  .btn:hover,
  .rounded-circle:hover {
    transform: none !important;
  }
  
  /* Disable Sal.js animations */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--neutral-dark);
  }
  
  .btn-outline-primary {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* Dark mode support (future enhancement) */

/* Focus and Keyboard Navigation */
@media (any-hover: hover) {
  /* Enhanced hover effects for devices that support hover */
  .card:hover {
    transform: translateY(-8px);
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
}

/* Touch device optimizations */
@media (any-hover: none) {
  /* Remove hover effects for touch devices */
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .btn {
    min-height: 44px;
    padding: 0.875rem 1.5rem;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
