/* =========================================
   RESPONSIVE CSS FOR STARTUP ACCELERATOR
   ========================================= */

/* Base Mobile Styles */
@media (max-width: 991.98px) {
  /* Header & Navigation */
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    margin-top: 1rem;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
  }
  
  /* Hero Section Mobile */
  #hero {
    min-height: 80vh;
    padding: 100px 0 60px;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 250px;
}
  
  .hero-image {
    text-align: center;
  }
  
  /* Section Adjustments */
  section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Grid Adjustments */
  .row > [class*="col-"] {
    margin-bottom: 2rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
  
  /* Card Spacing */
  .service-card,
  .price-card,
  .feature-card,
  .review-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Footer */
  .footer-section {
    margin-bottom: 2rem;
    text-align: center;
  }
}

/* Tablet Styles */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Hero Adjustments */
  #hero {
    min-height: 70vh;
    padding: 80px 0 40px;
  }
  
  /* Process Steps */
  .process-step {
    margin-bottom: 2rem;
  }
  
  .process-number {
    margin-bottom: 1.5rem;
  }
  
  /* Timeline */
  .timeline-item {
    margin-bottom: 1.5rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  /* Team Photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Price Cards */
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Service Features List */
  .service-features li {
    font-size: 0.9rem;
  }
}

/* Mobile Portrait Styles */
@media (max-width: 576px) {
  /* Container Padding */
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography Mobile */
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.375rem;
  }
  
  h4 {
    font-size: 1.125rem;
  }
  
  p {
    font-size: 0.9rem;
  }
  
  /* Header Mobile */
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero Mobile */
  #hero {
    min-height: 60vh;
    padding: 70px 0 30px;
  }
  
  /* Section Spacing */
  section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  /* Cards Mobile */
  .service-card,
  .price-card,
  .feature-card,
  .review-card,
  .case-study-card,
  .career-card,
  .info-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .blog-card .blog-content {
    padding: 1.5rem;
  }
  
  /* Feature Items */
  .feature-item {
    padding: 1.5rem 0.5rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Process Mobile */
  .process-step {
    padding: 1.5rem 0.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Team Mobile */
  .team-card {
    padding: 1rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Price Mobile */
  .price-value {
    font-size: 2rem;
  }
  
  /* Contact Mobile */
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* FAQ Mobile */
  .faq-card {
    padding: 1.5rem;
  }
  
  /* Timeline Mobile */
  .timeline-item {
    padding: 1.5rem;
  }
  
  /* Footer Mobile */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  /* Button Mobile */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-primary {
    padding: 0.75rem 2rem;
  }
  
  /* Form Elements Mobile */
  .form-control {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  textarea.form-control {
    min-height: 120px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  /* Ultra Mobile Typography */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Container Ultra Mobile */
  .container,
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Hero Ultra Mobile */
  #hero {
    min-height: 50vh;
    padding: 60px 0 20px;
  }
  
  /* Section Ultra Mobile */
  section {
    padding: 30px 0;
  }
  
  /* Cards Ultra Mobile */
  .service-card,
  .price-card,
  .feature-card,
  .review-card {
    padding: 1rem;
  }
  
  /* Contact Ultra Mobile */
  .contact-form {
    padding: 1rem;
  }
  
  /* Footer Ultra Mobile */
  #footer {
    padding: 1.5rem 0 0.5rem;
  }
  
  .footer-section h5 {
    font-size: 1rem;
  }
}

/* Landscape Mobile Adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  #hero {
    min-height: 90vh;
  }
  
  section {
    padding: 50px 0;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Enhance text rendering on high-DPI displays */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
  
  /* Sharper borders and shadows */
  .service-card,
  .price-card,
  .feature-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .service-card:hover,
  .price-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .feature-item:hover,
  .info-card:hover {
    transform: none;
    box-shadow: initial;
  }
  
  /* Larger touch targets */
  .navbar-nav .nav-link {
    padding: 1rem 1.5rem;
  }
  
  .btn {
    min-height: 44px;
    padding: 0.875rem 1.5rem;
  }
  
  /* Form elements */
  .form-control {
    min-height: 44px;
    padding: 0.875rem 1rem;
  }
}

/* Animation Reductions for Mobile */
@media (max-width: 768px) {
  /* Disable complex animations on mobile for performance */
  .sal-animate {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Reduce transition complexity */
  * {
    transition-duration: 0.2s !important;
  }
  
  /* Simplify hover effects */
  .feature-item:hover,
  .service-card:hover,
  .price-card:hover {
    transform: translateY(-2px);
  }
}

/* Print Styles */
@media print {
  /* Hide non-essential elements */
  #header,
  #footer,
  .navbar,
  .btn {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
  
  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4 {
    page-break-after: avoid;
    color: #000;
  }
  
  /* Remove backgrounds */
  * {
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Accessibility Improvements */
@media (max-width: 768px) {
  /* Larger focus indicators on mobile */
  .form-control:focus,
  .btn:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  /* Better spacing for readability */
  p {
    line-height: 1.7;
  }
  
  /* Ensure minimum touch target size */
  a, button, .btn, .nav-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
} 