/* AI Resume Keyword Matcher - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  .navbar-brand {
    font-size: 1.125rem !important;
  }
  
  h1, .display-4 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3, .h3 {
    font-size: 1.25rem;
  }
  
  h4, .h4, h5, .h5 {
    font-size: 1.125rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Hero Section Mobile */
  #hero {
    padding: 2rem 0;
    min-height: 80vh;
  }
  
  /* NO animations on mobile as per requirements */
  #hero::before {
    display: none;
  }
  
  /* Button Adjustments */
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }
  
  /* Card Spacing */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
    overflow-x: hidden;
}
  
  /* Section Spacing */
  section {
    padding: 2.5rem 0;
  }
  
  /* Services Grid */
  #services .col-md-6:not(:last-child) {
    margin-bottom: 1.5rem;
  }
  
  /* Team Section Mobile */
  #team img {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }
  
  /* Process Section Mobile */
  #process .rounded-circle {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  /* Contact Form Mobile */
  #contacts .form-control {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  
  /* Footer Mobile */
  #footer .col-lg-4 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Gallery Mobile */
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* FAQ Mobile */
  #faq .col-lg-6 {
    margin-bottom: 1rem;
  }
  
  /* Price Plan Mobile */
  #priceplan .col-lg-4 {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1, .display-4 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.75rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 85vh;
  }
  
  /* NO animations on mobile */
  #hero::before {
    display: none;
  }
  
  /* Button Adjustments */
  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.075rem;
  }
  
  /* Section Spacing */
  section {
    padding: 3.5rem 0;
  }
  
  /* Team Images */
  #team img {
    width: 130px;
    height: 130px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  h1, .display-4 {
    font-size: 2.25rem;
  }
  
  h2, .h2 {
    font-size: 1.875rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 90vh;
  }
  
  /* Section Spacing */
  section {
    padding: 4rem 0;
  }
  
  /* Services Grid */
  #services .col-md-6 {
    margin-bottom: 2rem;
  }
  
  /* Team Section */
  #team img {
    width: 140px;
    height: 140px;
  }
  
  /* Custom 2-column layout for team on tablets */
  .col-lg-2-4 {
    width: 50%;
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Full animations enabled on desktop */
  #hero::before {
    display: block;
  }
  
  /* Team Grid - 5 columns */
  .col-lg-2-4 {
    width: 20%;
  }
  
  /* Enhanced hover effects on desktop */
  .card:hover {
    transform: translateY(-6px);
  }
  
  #team img:hover {
    transform: scale(1.08);
  }
  
  #gallery img:hover {
    transform: scale(1.08);
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max-width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing for large screens */
  section {
    padding: 6rem 0;
  }
  
  /* Typography scaling */
  h1, .display-4 {
    font-size: 2.75rem;
  }
  
  h2, .h2 {
    font-size: 2.25rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 100vh;
  }
  
  /* Enhanced card spacing */
  .card-body {
    padding: 2rem;
  }
}

/* Ultra Wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Even more generous spacing */
  section {
    padding: 7rem 0;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  /* Reduce hero height on landscape mobile */
  #hero {
    min-height: 70vh;
  }
  
  /* Compact section spacing */
  section {
    padding: 2rem 0;
  }
}

/* High DPI / Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper borders and shadows */
  .card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  }
}

/* Print Styles */
@media print {
  /* Hide navigation and interactive elements */
  #header,
  .btn,
  #footer {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
  
  .container {
    max-width: none;
    width: 100%;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }
  
  /* Force background colors for print */
  .bg-light {
    background-color: #f8f9fa !important;
  }
}

/* Accessibility - Reduced Motion */
@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 floating animation */
  #hero::before {
    animation: none !important;
  }
  
  /* Remove transform effects */
  .card:hover,
  #team img:hover,
  #gallery img:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  /* Increase contrast for better accessibility */
  .card {
    border-width: 2px;
    border-color: #000;
  }
  
  .btn-primary {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
    border-color: #000;
  }
}

/* Dark Mode Support (if system prefers dark) */

/* Focus Management for Mobile */
@media (max-width: 767.98px) {
  /* Larger touch targets */
  .btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  .nav-link {
    padding: 1rem;
  }
  
  .form-control {
    min-height: 48px;
  }
  
  /* Improved focus visibility on mobile */
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
  }
} 