/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  h4 {
    font-size: 1.25rem;
  }
  
  /* Disable animations on mobile */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 2rem;
    padding-top: 100px;
}
  
  /* Section Spacing */
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Cards */
  .card-body {
    padding: 1.5rem;
    overflow-x: hidden;
}
  
  /* Services */
  .service-card {
    margin-bottom: 2rem;
  }
  
  .service-price {
    font-size: 1.75rem;
  }
  
  /* Features */
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Price Plans */
  .price-card.featured {
    transform: none;
    margin: 1rem 0;
  }
  
  /* Team */
  .team-photo {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
  }
  
  /* Process Steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .process-step::after {
    display: none;
  }
  
  /* Timeline */
  .timeline-item {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Core Info */
  .core-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .core-info-item {
    padding: 1.5rem;
  }
  
  /* Contact Info */
  .contact-info-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Blog */
  .blog-image {
    height: 180px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  /* Footer */
  #footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  /* Disable animations on mobile */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Hero Section */
  #hero {
    min-height: 85vh;
  }
  
  /* Section Spacing */
  section {
    padding: 4rem 0;
  }
  
  /* Services */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Features */
  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  /* Price Plans */
  .price-card.featured {
    transform: scale(1.02);
  }
  
  /* Team */
  .team-photo {
    width: 175px;
    height: 175px;
  }
  
  /* Core Info */
  .core-info-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .gallery-image {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  #hero {
    min-height: 90vh;
  }
  
  /* Services */
  .service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Features */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Price Plans */
  .price-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .price-card.featured {
    transform: scale(1.03);
  }
  
  /* Team */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Reviews */
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Case Studies */
  .case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Process Steps */
  .process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .process-step::after {
    display: none;
  }
  
  /* Career */
  .career-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Core Info */
  .core-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Blog */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* FAQ */
  .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Services */
  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Features */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  /* Price Plans */
  .price-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Team */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Reviews */
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Process Steps */
  .process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Career */
  .career-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Core Info */
  .core-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* FAQ */
  .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Services */
  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  /* Features */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
  
  /* Price Plans */
  .price-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  /* Team */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  /* Reviews */
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  /* Case Studies */
  .case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  /* Process Steps */
  .process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  /* Career */
  .career-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  /* Core Info */
  .core-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  
  .navbar,
  #footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }
  
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  
  thead {
    display: table-header-group;
  }
  
  tr,
  img {
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  @page {
    margin: 0.5in;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #008080;
    --accent-color: #800080;
    --neutral-color: #000000;
    --success-color: #008000;
  }
  
  .card {
    border: 2px solid var(--neutral-color);
  }
  
  .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--neutral-color);
  }
  
  .form-control {
    border: 2px solid var(--neutral-color);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card:hover,
  .btn:hover,
  .team-photo:hover,
  .gallery-item:hover {
    transform: none !important;
  }
} 