/* AI Contract Analysis Tool - Responsive Styles */

/* Large Devices (Desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
  
  .section-padding-lg {
    padding: 7rem 0;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (max-width: 1199.98px) and (min-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .service-card .fa {
    font-size: 2.5rem;
  }
  
  .team-avatar {
    width: 120px;
    height: 120px;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (max-width: 767.98px) and (min-width: 576px) {
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card .fa {
    font-size: 2rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-padding-lg {
    padding: 4rem 0;
  }
  
  .card-custom {
    margin-bottom: 1.5rem;
  }
}

/* Extra Small Devices (Portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile per requirements */
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  
  body {
    font-size: 14px;
    overflow-x: hidden;
}
  
  .hero-section {
    min-height: 60vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-section p {
    font-size: 0.9rem;
  }
  
  .text-subtitle {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  /* Standard Bootstrap 5 mobile menu - no customization */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .service-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .service-card .fa {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
  
  .team-avatar {
    width: 80px;
    height: 80px;
  }
  
  .team-card {
    padding: 1rem;
  }
  
  .review-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .faq-card {
    padding: 1rem;
  }
  
  .section-padding {
    padding: 2.5rem 0;
  }
  
  .section-padding-lg {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .btn-primary-custom {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .blog-item img {
    height: 150px;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  .process-item,
  .timeline-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .col-md-3 {
    margin-bottom: 1.5rem;
  }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
  .card-custom:hover {
    transform: none;
  }
  
  .btn-primary-custom:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .blog-item:hover {
    transform: none;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-size: 500px 500px;
  }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 50vh;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .navbar-collapse {
    max-height: 200px;
    overflow-y: auto;
  }
}

/* Print Styles */
@media print {
  .hero-section,
  .navbar,
  .footer,
  .btn-primary-custom {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: black;
    background: white;
  }
  
  .card-custom {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .card-custom:hover,
  .btn-primary-custom:hover,
  .gallery-item:hover img,
  .blog-item:hover {
    transform: none;
  }
}

/* Container Max-Width Adjustments */
@media (min-width: 1400px) {
  .container-xl {
    max-width: 1320px;
  }
}

/* Specific Mobile Fixes */
@media (max-width: 575.98px) {
  /* Ensure proper spacing on very small screens */
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
  
  /* Hero section mobile optimization */
  .hero-content .btn-primary-custom {
    width: 100%;
    margin-top: 1rem;
  }
  
  /* Contact form mobile optimization */
  .contact-form .form-control {
    margin-bottom: 1rem;
  }
  
  /* Team section mobile grid */
  .team-member {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Services grid mobile */
  .service-item {
    margin-bottom: 1.5rem;
  }
}

