/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --h1-size: 1.75rem;
    --h2-size: 1.5rem;
    --h3-size: 1.25rem;
    --section-padding: 3rem;
    --card-padding: 1rem;
  }
  
  .hero-section h1 {
    font-size: 2.55rem;
    padding-top: 100px;
}
  
  .hero-section h2 {
    font-size: 1.33rem;
  }
  
  .hero-section p {
    font-size: var(--font-size-base);
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .hero-bg {
    background-attachment: scroll;
  }
  
  .pricing-card.featured {
    transform: none;
    margin-top: 2rem;
  }
  
  .team-member img {
    width: 80px;
    height: 80px;
  }
  
  .process-step .step-number,
  .timeline-item .timeline-year {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .contact-form {
    margin-bottom: 2rem;
  }
  
  /* Gallery responsive */
  #gallery .col-6 {
    margin-bottom: 1rem;
  }
  
  /* FAQ accordion spacing */
  .accordion-button {
    padding: 0.75rem;
    font-size: var(--font-size-small);
  }
  
  /* Hero section responsive */
  .hero-section .row {
    text-align: center;
  }
  
  .hero-section .col-lg-6:last-child {
    margin-top: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --h1-size: 2rem;
    --h2-size: 1.75rem;
    --section-padding: 3.5rem;
  }
  
  .hero-section h1 {
    font-size: 3rem;
    padding-top: 100px;
}
  
  .hero-bg {
    background-attachment: scroll;
  }
  
  .pricing-card.featured {
    transform: scale(1.02);
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Services grid adjustment */
  .service-card {
    margin-bottom: 1.61rem;
  }
  
  /* Team section responsive */
  .team-member {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --section-padding: 4rem;
  }
  
  .hero-section h1 {
    font-size: 3.27rem;
    padding-top: 100px;
}
  
  .hero-bg {
    background-attachment: scroll;
  }
  
  /* Navigation adjustments */
  .navbar-nav .nav-link {
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem;
  }
  
  /* Cards responsive spacing */
  .feature-card,
  .service-card,
  .info-card {
    margin-bottom: 1.59rem;
  }
  
  /* Team grid adjustment */
  .team-member {
    margin-bottom: 1.62rem;
  }
  
  /* Process steps responsive */
  .process-step,
  .timeline-item {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section h1 {
    font-size: 3.53rem;
    padding-top: 100px;
}
  
  /* Optimize spacing for larger screens */
  .team-member {
    margin-bottom: 1rem;
  }
  
  /* Gallery optimization */
  #gallery .col-lg-3 {
    margin-bottom: 1rem;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 4rem;
    padding-top: 100px;
}
  
  .hero-section h2 {
    font-size: 1.81rem;
  }
  
  /* Container max-width adjustment */
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing for xl screens */
  .feature-item,
  .info-card {
    padding: 2rem 1.5rem;
  }
}

/* Ultra Wide screens (1400px and up) */
@media (min-width: 1400px) {
  :root {
    --section-padding: 6rem;
  }
  
  .container {
    max-width: 1320px;
  }
  
  .hero-section h1 {
    font-size: 4.53rem;
    padding-top: 100px;
}
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 600px;
  }
  
  .hero-section .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2.62rem;
    margin-bottom: 1rem;
    padding-top: 100px;
}
  
  .hero-section h2 {
    font-size: 1.28rem;
    margin-bottom: 0.63rem;
  }
  
  .hero-section p {
    margin-bottom: 1rem;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-bg,
  #space::before {
    background-size: cover;
    background-position: center;
  }
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-bg,
  #space::before {
    display: none;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4 {
    page-break-after: avoid;
  }
  
  .card,
  .feature-card,
  .service-card {
    border: 1px solid #d8c6c6;
    page-break-inside: avoid;
  }
}

/* Specific component responsive adjustments */

/* Navbar responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
}

/* Services section responsive */
@media (max-width: 767.98px) {
  .service-card .card-img-top {
    height: 180px;
  }
  
  .service-card ul {
    font-size: var(--font-size-small);
  }
}

/* Pricing cards responsive */
@media (max-width: 991.98px) {
  .pricing-card {
    margin-bottom: 1.57rem;
  }
  
  .pricing-card.featured::before {
    top: -10px;
    font-size: 0.80rem;
    padding: 0.25rem 0.75rem;
  }
}

/* Blog cards responsive */
@media (max-width: 767.98px) {
  .blog-card .card-img-top {
    height: 160px;
  }
}

/* FAQ responsive */
@media (max-width: 575.98px) {
  .accordion-button span {
    font-size: var(--font-size-small);
  }
  
  .accordion-body p {
    font-size: var(--font-size-small);
  }
}

/* Contact section responsive */
@media (max-width: 991.98px) {
  .contact-info {
    margin-top: 2rem;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  footer .col-lg-4 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  footer ul {
    text-align: center;
  }
}

/* Gallery responsive improvements */
@media (max-width: 575.98px) {
  #gallery .col-6 {
    padding: 0.25rem;
  }
  
  #gallery img {
    border-radius: 0.25rem;
  }
}

/* Timeline and Process responsive */
@media (max-width: 767.98px) {
  .process-step,
  .timeline-item {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .process-step h4,
  .timeline-item h4 {
    font-size: 1rem;
  }
  
  .process-step p,
  .timeline-item p {
    font-size: var(--font-size-small);
  }
}

/* Case studies responsive */
@media (max-width: 767.98px) {
  .case-study-card .card-img-top {
    height: 150px;
  }
}

/* Team section responsive refinements */
@media (max-width: 575.98px) {
  .team-member h4 {
    font-size: 1rem;
  }
  
  .team-member p {
    font-size: var(--font-size-small);
  }
}

/* Review cards responsive */
@media (max-width: 767.98px) {
  .review-card {
    margin-bottom: 1rem;
  }
  
  .stars {
    font-size: var(--font-size-small);
  }
} 