/* Mobile First Responsive Design */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* No animations on mobile */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Section padding */
  section {
    padding: 40px 0;
  }
  
  /* Hero section */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  #hero .col-md-6 {
    margin-bottom: 2rem;
  }
  
  /* Service cards */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-card .icon {
    font-size: 2.5rem;
  }
  
  .service-card .price {
    font-size: 1.5rem;
  }
  
  /* Team cards */
  .team-card img {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Process steps */
  .process-step {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .process-step .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Price plans */
  .price-plan {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .price-plan .price {
    font-size: 2.5rem;
  }
  
  /* Core info items */
  .core-info-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .core-info-item .icon {
    font-size: 2rem;
  }
  
  /* Career positions */
  .career-position {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Review cards */
  .review-card {
    padding: 1.5rem;
  }
  
  /* FAQ cards */
  .faq-card {
    padding: 1rem;
  }
  
  /* Timeline items */
  .timeline-item {
    padding: 1rem;
  }
  
  /* Blog posts */
  .blog-post-content {
    padding: 1rem;
  }
  
  /* Case studies */
  .case-study-content {
    padding: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  section {
    padding: 50px 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card .price {
    font-size: 1.8rem;
  }
  
  .price-plan .price {
    font-size: 2.8rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    padding: 1.8rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .process-step {
    padding: 1.8rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card {
    padding: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Navbar responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Hero section responsive */
@media (max-width: 767.98px) {
  #hero .row {
    flex-direction: column-reverse;
  }
  
  #hero .col-md-6:first-child {
    text-align: center;
    margin-top: 2rem;
  }
}

/* Service grid responsive */
@media (max-width: 575.98px) {
  .services-grid .col-lg-4 {
    margin-bottom: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .services-grid .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Team grid responsive */
@media (max-width: 575.98px) {
  .team-grid .col-md-4 {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .team-grid .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Price plan responsive */
@media (max-width: 767.98px) {
  .price-plans .col-md-4 {
    margin-bottom: 1.5rem;
  }
}

/* Process steps responsive */
@media (max-width: 767.98px) {
  .process-steps .col-md-4 {
    margin-bottom: 1rem;
  }
}

/* Features responsive */
@media (max-width: 575.98px) {
  .features-grid .col-md-6 {
    margin-bottom: 1rem;
  }
}

/* Blog grid responsive */
@media (max-width: 767.98px) {
  .blog-grid .col-md-4 {
    margin-bottom: 1.5rem;
  }
}

/* Case studies responsive */
@media (max-width: 767.98px) {
  .case-studies .col-md-4 {
    margin-bottom: 1.5rem;
  }
}

/* Core info responsive */
@media (max-width: 575.98px) {
  .core-info-grid .col-lg-4 {
    margin-bottom: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .core-info-grid .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Career responsive */
@media (max-width: 575.98px) {
  .career-grid .col-md-6 {
    margin-bottom: 1rem;
  }
}

/* Timeline responsive */
@media (max-width: 767.98px) {
  .timeline-item {
    margin-left: 0;
    border-left: none;
    border-top: 4px solid var(--primary-color);
    border-radius: 8px;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  #footer .col-md-4 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  #footer .footer-section {
    margin-bottom: 1.5rem;
  }
}

/* Contact form responsive */
@media (max-width: 767.98px) {
  .contact-section .col-md-6 {
    margin-bottom: 2rem;
  }
}

/* Utilities for responsive spacing */
@media (max-width: 575.98px) {
  .mb-xs-3 {
    margin-bottom: 1rem !important;
  }
  
  .py-xs-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

/* Hide decorative elements on mobile for performance */
@media (max-width: 767.98px) {
  #hero::before {
    display: none;
  }
  
  .decorative-shape {
    display: none;
  }
}

/* Ensure proper spacing between sections on all devices */
section + section {
  margin-top: 0;
}

/* Responsive text alignment */
@media (max-width: 767.98px) {
  .text-md-left {
    text-align: center !important;
  }
  
  .text-md-center {
    text-align: center !important;
  }
}

/* Responsive image sizing */
@media (max-width: 575.98px) {
  img {
    max-width: 100%;
    height: auto;
  }
  
  .img-responsive {
    width: 100%;
    height: auto;
  }
} 

body {
    overflow-x: hidden;
}