/* Responsive Design - Mobile First Approach */

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.58rem;
  }
  
  .hero-subtitle {
    font-size: 1.11rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.42rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .price-card {
    margin-bottom: 2rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .about-feature {
    margin-bottom: 2rem;
  }
  
  .coreinfo-card {
    margin-bottom: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .timeline-item {
    margin-left: 1rem;
  }
  
  .timeline-item::before {
    left: -1rem;
  }
  
  .timeline-item::after {
    left: -0.75rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.79rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.76rem; }
  h3 { font-size: 1.53rem; }
  h4 { font-size: 1.36rem; }
  h5 { font-size: 1.25rem; }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card img {
    height: 150px;
  }
  
  .team-card {
    padding: 1.5rem;
  }
  
  .team-card img {
    width: 100px;
    height: 100px;
  }
  
  .testimonial-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
  
  .process-step {
    padding: 1.5rem;
  }
  
  .timeline-item {
    margin-left: 0;
    padding: 1.5rem;
  }
  
  .timeline-item::before,
  .timeline-item::after {
    display: none;
  }
  
  .career-card {
    padding: 1.5rem;
  }
  
  .coreinfo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .coreinfo-card {
    padding: 1.5rem;
  }
  
  .casestudy-card {
    padding: 1.5rem;
  }
  
  .blog-card-content {
    padding: 1.5rem;
  }
  
  .about-feature {
    padding: 1.5rem;
  }
  
  .about-feature i {
    font-size: 2.52rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-card i {
    font-size: 2.59rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .shape-blob:nth-child(1) {
    width: 150px;
    height: 150px;
  }
  
  .shape-blob:nth-child(2) {
    width: 100px;
    height: 100px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.80rem;
  }
  
  .hero-subtitle {
    font-size: 0.97rem;
  }
  
  .hero-desc {
    font-size: 1.02rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.55rem;
  }
  
  .section-subtitle {
    font-size: 1.00rem;
  }
  
  .section-desc {
    font-size: 1.04rem;
  }
  
  h1 { font-size: 1.87rem; }
  h2 { font-size: 1.59rem; }
  h3 { font-size: 1.27rem; }
  h4 { font-size: 1.19rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.97rem; }
  
  p {
    font-size: 1.03rem;
  }
  
  .navbar-brand {
    font-size: 1.21rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .service-card img {
    height: 120px;
  }
  
  .service-price {
    font-size: 1.26rem;
  }
  
  .team-card {
    padding: 1rem;
  }
  
  .team-card img {
    width: 80px;
    height: 80px;
  }
  
  .testimonial-card {
    padding: 1rem;
  }
  
  .price-card {
    padding: 1.5rem 1rem;
  }
  
  .price-amount {
    font-size: 1.87rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-control {
    padding: 0.75rem;
    font-size: 1.04rem;
  }
  
  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 1.05rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.94rem;
  }
  
  .process-step {
    padding: 1rem;
  }
  
  .process-step::before {
    width: 30px;
    height: 30px;
    top: -10px;
    font-size: 1rem;
  }
  
  .timeline-item {
    padding: 1rem;
  }
  
  .career-card {
    padding: 1rem;
  }
  
  .coreinfo-card {
    padding: 1rem;
  }
  
  .casestudy-card {
    padding: 1rem;
  }
  
  .blog-card-content {
    padding: 1rem;
  }
  
  .blog-card img {
    height: 150px;
  }
  
  .about-feature {
    padding: 1rem;
  }
  
  .about-feature i {
    font-size: 2rem;
  }
  
  .feature-card {
    padding: 1rem;
  }
  
  .feature-card i {
    font-size: 2rem;
  }
  
  .footer {
    padding: 1.5rem 0 1rem;
  }
  
  .footer h5 {
    font-size: 1.22rem;
  }
  
  .footer p,
  .footer a {
    font-size: 1.03rem;
  }
  
  .footer-copyright {
    font-size: 0.89rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .shape-blob:nth-child(1) {
    width: 100px;
    height: 100px;
  }
  
  .shape-blob:nth-child(2) {
    width: 80px;
    height: 80px;
  }
}

/* Landscape orientation for mobile devices */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.56rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../LIT_images/hero-bg@2x.webp');
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .footer,
  .shape-blob,
  .btn {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto;
    background: none !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .service-card,
  .team-card,
  .price-card,
  .testimonial-card,
  .feature-card,
  .about-feature,
  .coreinfo-card,
  .casestudy-card,
  .blog-card,
  .career-card,
  .process-step,
  .timeline-item,
  .faq-card {
    box-shadow: none !important;
    border: 1px solid #e4e4e4 !important;
    margin-bottom: 1rem !important;
    page-break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-high-contrast: high) {
  :root {
    --primary-blue: #000ef4;
    --primary-orange: #ff8f00;
    --primary-green: #20910a;
    --primary-purple: #720a84;
    --primary-teal: #007562;
    --neutral-dark: #000000;
    --neutral-gray: #555152;
  }
  
  .service-card,
  .team-card,
  .price-card,
  .testimonial-card,
  .feature-card,
  .about-feature,
  .coreinfo-card,
  .casestudy-card,
  .blog-card,
  .career-card,
  .process-step,
  .timeline-item,
  .faq-card,
  .contact-form {
    border: 2px solid var(--neutral-dark) !important;
  }
}

/* Focus indicators for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus,
.faq-question:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: var(--neutral-white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
} 