/* Mobile-First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Navbar mobile */
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .navbar-nav .nav-link {
    text-align: center;
    padding: 0.75rem 1rem;
  }
  
  /* Button adjustments */
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .btn-primary,
  .btn-outline-primary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  
  /* Card spacing */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Service items */
  .service-item {
    padding: 1.5rem 1rem;
  }
  
  .service-icon {
    font-size: 2.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery items */
  .gallery-item img {
    height: 200px;
  }
  
  /* FAQ items */
  .faq-question,
  .faq-answer {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem 0;
    text-align: center;
  }
  
  .footer .col-md-3 {
    margin-bottom: 1.5rem;
  }
  
  /* Process steps mobile */
  .process-step {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .process-number {
    position: static;
    display: inline-flex;
    margin-bottom: 1rem;
  }
  
  /* Price plans mobile */
  .price-plan {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .price-plan.featured {
    transform: none;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Core info mobile */
  .core-info-item {
    padding: 1rem;
  }
  
  .core-info-icon {
    font-size: 2rem;
  }
  
  /* Career items mobile */
  .career-item {
    padding: 1rem;
  }
  
  /* Case study mobile */
  .case-study-item {
    padding: 1.5rem;
  }
  
  /* Blog posts mobile */
  .blog-post {
    margin-bottom: 1.5rem;
  }
  
  .blog-post-title {
    font-size: 1.1rem;
  }
  
  /* Review cards mobile */
  .review-card {
    padding: 1.5rem;
  }
  
  .review-text {
    font-size: 1rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .service-item {
    padding: 1.75rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .price-plan.featured {
    transform: scale(1.02);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: var(--container-max-width);
  }
  
  /* Full effects enabled on desktop */
  .hero-section::before,
  .hero-section::after {
    display: block;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    padding: 0;
  }
  
  .section {
    padding: 100px 0;
  }
  
  .contact-form {
    padding: 4rem;
  }
}

/* Print styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .navbar,
  .footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
  
  h1, h2, h3 {
    color: #000;
  }
  
  .card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #ffffff;
    --accent-color: #0066cc;
    --success-color: #006600;
    --warning-color: #cc6600;
  }
  
  .card {
    border: 2px solid #333;
  }
  
  .btn {
    border-width: 2px;
  }
}

/* Dark mode support */

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
}

/* Focus improvements for keyboard navigation */
@media (min-width: 768px) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 3px solid var(--warning-color);
    outline-offset: 2px;
  }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
}

/* Retina display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
} 

.hero-content {
    padding-top: 275px;
}