/* ==========================================================================
   ResumeAI Pro - Responsive CSS
   Mobile-First Responsive Design
   ========================================================================== */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1, .h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2, .h2 {
    font-size: 1.81rem;
    line-height: 1.3;
  }
  
  h3, .h3 {
    font-size: 1.59rem;
    line-height: 1.4;
  }
  
  h4, .h4 {
    font-size: 1.31rem;
    line-height: 1.4;
  }
  
  .lead {
    font-size: 1.14rem;
  }
  
  .navbar-brand {
    font-size: 1.23rem;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 100vh;
    padding: 80px 0 40px;
  }
  
  .hero-section .display-4 {
    font-size: 2rem;
  }
  
  /* Section Padding */
  section {
    padding: 40px 0;
  }
  
  /* Card Spacing */
  .row.g-4 {
    --bs-gutter-y: 2rem;
  }
  
  /* Button Adjustments */
  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  /* Contact Form */
  .contact-form .form-control {
    padding: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Team Member Images */
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Process Steps */
  .step-number .badge {
    width: 50px;
    height: 50px;
    font-size: 1.22rem;
  }
  
  /* Timeline Mobile */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-date {
    left: 20px;
    transform: translateY(-50%);
  }
  
  /* Footer */
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Navigation */
  .navbar-nav {
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  /* Gallery Grid */
  #gallery .col-lg-3,
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* Blog Grid */
  #blog_grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* FAQ Layout */
  .faq-card {
    margin-bottom: 1rem;
  }
  
  /* Additional Page Adjustments */
  .security-timeline .col-lg-2,
  .security-timeline .col-lg-3 {
    margin-bottom: 1.67rem;
  }
  
  .metrics-dashboard .col-lg-2,
  .metrics-dashboard .col-lg-3 {
    margin-bottom: 1.64rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography Fine-tuning */
  h1, .h1 {
    font-size: 2.33rem;
  }
  
  h2, .h2 {
    font-size: 2rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 100px 0 60px;
  }
  
  /* Section Padding */
  section {
    padding: 50px 0;
  }
  
  /* Team Images */
  .team-member img {
    width: 110px;
    height: 110px;
  }
  
  /* Timeline Adjustments */
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
    padding-left: 24px;
  }
  
  .timeline-date {
    left: 30px;
  }
  
  /* Process Steps */
  .step-number .badge {
    width: 55px;
    height: 55px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-section .display-4 {
    font-size: 2.63rem;
  }
  
  /* Section Padding */
  section {
    padding: 60px 0;
  }
  
  /* Timeline Restoration */
  .timeline::before {
    left: 50%;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    margin-left: 0;
    padding-right: 30px;
    padding-left: 0;
    text-align: right;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 30px;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-date {
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Team Grid Adjustment */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Services Grid */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Price Plans */
  .price-card {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  .hero-section {
    padding: 120px 0 80px;
  }
  
  /* Section Padding */
  section {
    padding: 80px 0;
  }
  
  /* Container Adjustments */
  .container {
    max-width: 960px;
  }
  
  /* Team Members - Adjust for 5 items */
  .team-member {
    flex: 0 0 auto;
    width: 20%;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero Section */
  .hero-section {
    padding: 140px 0 100px;
  }
  
  /* Section Padding */
  section {
    padding: 100px 0;
  }
  
  /* Enhanced Spacing */
  .row.g-4 {
    --bs-gutter-y: 3rem;
  }
  
  /* Team Grid - Perfect 5-column layout */
  .team-member {
    flex: 0 0 auto;
    width: 20%;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .review-card:hover,
  .case-study-card:hover,
  .career-card:hover,
  .info-card:hover,
  .blog-card:hover,
  .faq-card:hover,
  .ml-model-card:hover,
  .market-card:hover,
  .innovation-card:hover,
  .solution-card:hover,
  .support-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }
  
  .service-card:hover .card-img-top,
  #gallery img:hover {
    transform: none;
  }
  
  .team-member:hover img {
    border-color: var(--primary-light);
  }
  
  /* Enhanced touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .form-control {
    min-height: 44px;
  }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Crisp borders and shadows */
  .feature-card,
  .service-card,
  .price-card,
  .review-card,
  .case-study-card,
  .career-card,
  .info-card,
  .blog-card,
  .faq-card {
    border-width: 0.5px;
  }
  
  /* Enhanced image quality */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  /* Hide interactive elements */
  .navbar,
  .footer,
  .breadcrumb-nav,
  .btn,
  .form-control,
  .form-check {
    display: none;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }
  
  .container {
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  .card {
    border: 1px solid #ded1d2;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  /* Force background colors for print */
  .hero-section,
  .space-section {
    background: white !important;
  }
  
  /* Simplify layout for print */
  .row > div {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Landscape Orientation Adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
  /* Reduce hero section height on short landscape screens */
  .hero-section {
    min-height: 90vh;
    padding: 60px 0 40px;
  }
  
  /* Compact navigation */
  .navbar {
    padding: 0.25rem 0;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Reduce section padding */
  section {
    padding: 30px 0;
  }
}

/* Dark Mode Support (for future implementation) */

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  /* Override any remaining animations */
  .timeline::before {
    animation: none;
  }
  
  .step-number .badge {
    animation: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  /* Enhance contrast for accessibility */
  .card {
    border: 2px solid var(--gray-900);
  }
  
  .btn {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* Focus Improvements for Keyboard Navigation */
@media (prefers-reduced-motion: no-preference) {
  /* Enhanced focus styles */
  .btn:focus,
  .nav-link:focus,
  .form-control:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
  }
} 

.hero-section h1 {
    padding-top: 200px;
}