/* Responsive Styles for Remote Hardware Prototyping Lab */

/* Large Devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .section-padding {
    padding: 100px 0;
  }
  
  .container-xl {
    max-width: 1200px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  /* Typography Adjustments */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  h4 {
    font-size: 1.2rem;
  }
  
  p {
    font-size: 0.95rem;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 275px;
}
  
  /* Section Spacing */
  .section-padding {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Cards and Components */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .blog-card,
  .faq-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Service Images */
  .service-image {
    height: 150px;
    font-size: 2rem;
  }
  
  /* Team Images */
  .team-image {
    width: 100px;
    height: 100px;
    font-size: 1.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer .col-md-3,
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
  
  /* Buttons */
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Container Adjustments */
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Typography Further Reduced */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 50vh;
    padding: 1.5rem 0;
  }
  
  /* Sections */
  .section-padding {
    padding: 30px 0;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .blog-card,
  .faq-card {
    padding: 1.25rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }
  
  /* Service and Price Values */
  .service-price,
  .price-value {
    font-size: 1.3rem;
  }
  
  /* Feature Icons */
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Form Elements */
  .form-control {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  
  /* Service Features and Price Features */
  .service-features,
  .price-features {
    font-size: 0.9rem;
  }
  
  /* Contact Info Items */
  .contact-info-item {
    margin-bottom: 1.5rem;
  }
  
  .contact-info-item i {
    font-size: 1.2rem;
  }
}

/* Landscape Phone Specific */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 80vh;
  }
  
  .navbar-collapse {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* Mobile Menu Adjustments */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    margin-top: 1rem;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
}

/* Disable Animations on Mobile (Performance) */
@media (max-width: 767.98px) {
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .btn:hover {
    transform: none;
  }
  
  /* Remove hover effects on mobile */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .blog-card,
  .gallery-item {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .section-padding {
    padding: 20px 0;
  }
  
  * {
    color: #000 !important;
    background: #fff !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .card,
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .blog-card,
  .faq-card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
}

/* Dark Mode Preference Support */

/* Reduced Motion - Disable Animations */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .blog-card,
  .gallery-item,
  .btn {
    transition: none !important;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .btn:hover {
    transform: none !important;
  }
}