/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography */
  .display-4 {
    font-size: 1.75rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.125rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    margin: 0;
  }
  
  /* Hero Section */
  #hero {
    min-height: 100vh;
    padding-top: 120px;
    text-align: center;
  }
  
  #hero .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Services Grid */
  #services .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Team Members */
  .team-member {
    margin-bottom: 2rem;
  }
  
  .team-member img {
    width: 80px;
    height: 80px;
  }
  
  /* Process Steps */
  .process-step {
    margin-bottom: 2rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Contact Form */
  .contact-form .btn {
    width: 100%;
  }
  
  /* Pricing Cards */
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery */
  #gallery .col-lg-3 {
    margin-bottom: 1rem;
  }
  
  /* Sections Padding */
  section {
    padding: 3rem 0 !important;
  }
  
  /* Footer */
  #footer .col-lg-4 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Animations disabled on mobile for performance */
  @media (prefers-reduced-motion: no-preference) {
    [data-sal] {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .display-4 {
    font-size: 2rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .team-member img {
    width: 90px;
    height: 90px;
  }
  
  .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.125rem;
  }
  
  #hero {
    padding-top: 110px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Hero adjustments for tablets */
  #hero {
    padding-top: 100px;
  }
  
  /* Services grid for tablets */
  #services .row .col-lg-4:nth-child(3n+1) {
    clear: left;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Standard desktop styles are handled in main.css */
  
  /* Team grid alignment */
  .team-member {
    padding: 0 0.5rem;
  }
  
  /* Process steps horizontal alignment */
  .process-step {
    position: relative;
  }
  
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    z-index: -1;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing for large screens */
  section {
    padding: 6rem 0;
  }
  
  #hero {
    padding: 8rem 0;
  }
  
  /* Larger feature icons on big screens */
  .feature-icon {
    width: 90px;
    height: 90px;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Specific responsive adjustments for different sections */

/* Hero responsive behavior */
@media (max-width: 991.98px) {
  #hero .row {
    flex-direction: column-reverse;
  }
  
  #hero .col-lg-6:first-child {
    text-align: center;
    margin-top: 2rem;
  }
}

/* Services responsive grid */
@media (max-width: 767.98px) {
  #services .card {
    max-width: 400px;
    margin: 0 auto 2rem;
  }
}

/* Pricing responsive */
@media (max-width: 991.98px) {
  .pricing-card {
    max-width: 400px;
    margin: 0 auto 2rem;
  }
}

/* FAQ responsive */
@media (max-width: 767.98px) {
  #faq .row {
    flex-direction: column;
  }
  
  #faq .col-lg-6 {
    width: 100%;
  }
}

/* Contact responsive */
@media (max-width: 767.98px) {
  .contact-form .row .col-md-6 {
    margin-bottom: 1rem;
  }
}

/* Gallery responsive */
@media (max-width: 575.98px) {
  #gallery .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 391.98px) {
  #gallery .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Blog responsive */
@media (max-width: 767.98px) {
  #blog .card {
    max-width: 400px;
    margin: 0 auto 2rem;
  }
}

/* Team responsive for smaller screens */
@media (max-width: 575.98px) {
  .team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  #team .row {
    justify-content: center;
  }
  
  #team .col-lg-2 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 2rem;
  }
}

/* Reviews responsive */
@media (max-width: 767.98px) {
  #reviews .card {
    margin-bottom: 1.5rem;
  }
}

/* Case studies responsive */
@media (max-width: 767.98px) {
  .case-study-card {
    margin-bottom: 2rem;
  }
}

/* Process responsive */
@media (max-width: 991.98px) {
  .process-step:not(:last-child)::after {
    display: none;
  }
  
  .process-step {
    margin-bottom: 3rem;
  }
}

/* Features responsive */
@media (max-width: 767.98px) {
  .feature-box {
    margin-bottom: 2rem;
  }
}

/* Button responsive adjustments */
@media (max-width: 575.98px) {
  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
  
  #hero .btn {
    margin: 0.5rem 0;
  }
}

/* Form responsive improvements */
@media (max-width: 575.98px) {
  .contact-form .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .contact-form textarea {
    min-height: 120px;
  }
}

/* Navigation responsive enhancements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.98);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-medium);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--secondary-color);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  #footer,
  .btn,
  [data-sal] {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
} 