/* =====================================================
   ScoreCloud Template - Responsive CSS
   Mobile & Tablet Optimizations
   ===================================================== */

/* Mobile First Approach */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 3.57rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  /* 5-column layout for extra large screens */
  .col-xl {
    flex: 0 0 auto;
    width: 20%; /* 100% / 5 columns */
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Devices (7613px and up) */
@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  
  .section-header {
    margin-bottom: 4rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.5rem;
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.61rem;
  }
  
  .section-title {
    font-size: 2.37rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 3rem 0;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --font-size-2xl: 1.5rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Header */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.36rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.38rem;
    margin-bottom: 1.70rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Sections */
  .section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.86rem;
    margin-bottom: 0.84rem;
  }
  
  .section-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.97rem;
  }
  
  .section-desc {
    font-size: 1rem;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .process-card,
  .timeline-card,
  .career-card,
  .coreinfo-card,
  .blog-card,
  .add-page-card {
    margin-bottom: 1.74rem;
    padding: 1.5rem;
  }
  
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Service Cards */
  .service-image {
    height: 180px;
  }
  
  .service-price {
    font-size: 1.77rem;
  }
  
  /* Price Cards */
  .price-amount {
    font-size: 2.58rem;
  }
  
  /* Team Cards */
  .team-photo {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }
  
  /* Process Cards */
  .process-number {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }
  
  .form-control {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
  
  /* Gallery */
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  /* FAQ */
  .accordion-item {
    margin-bottom: 0.81rem;
  }
  
  .accordion-button {
    padding: 1rem;
    font-size: 1.06rem;
  }
  
  .accordion-body {
    padding: 1rem;
  }
  
  /* Blog Cards */
  .blog-image {
    height: 180px;
  }
  
  .blog-content {
    padding: 1.25rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  .footer h5 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
  }
  
  /* Space Page */
  #space {
    min-height: 60vh;
    margin: 1rem 0;
    text-align: center;
    padding: 2rem;
    font-size: 1.40rem;
  }
  
  /* Utilities */
  .decorative-shape {
    display: none;
  }
  
  /* Breadcrumbs */
  .breadcrumb {
    padding: 0.5rem 0;
  }
  
  .breadcrumb-item img {
    width: 20px;
    height: 20px;
  }
}

/* Height-based Media Queries */
@media (max-height: 700px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }
}

@media (max-height: 500px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .case-card:hover,
  .process-card:hover,
  .career-card:hover,
  .coreinfo-card:hover,
  .blog-card:hover,
  .add-page-card:hover {
    transform: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
    background: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility Improvements */
@media (max-width: 767.98px) {
  /* Increase touch target sizes for mobile */
  .nav-link,
  .btn,
  .form-control {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Improve readability */
  body {
    line-height: 1.6;
  }
  
  p {
    margin-bottom: 1.49rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .process-card,
  .timeline-card,
  .career-card,
  .coreinfo-card,
  .blog-card,
  .contact-form,
  .add-page-card {
    border: 2px solid var(--gray-800);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-1-dark);
  }
} 

.hero-content {
    padding-top: 150px;
}