/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile specific styles (below 768px) */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .service-card, .team-card {
    margin-bottom: 2rem;
  }
  
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .blog-card {
    margin-bottom: 2rem;
  }
  
  .feature-item {
    margin-bottom: 2rem;
  }
  
  .process-item, .timeline-item {
    padding: 1.5rem 0.5rem;
  }
  
  .case-study-card, .career-card, .core-info-item {
    margin-bottom: 1.5rem;
  }
  
  .additional-section {
    padding: 2rem 0;
  }
  
  .section-item {
    padding: 1rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-desc {
    font-size: 0.85rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .service-card, .team-card, .price-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .service-card img {
    height: 150px;
  }
  
  .gallery-item img {
    height: 180px;
  }
  
  .blog-card img {
    height: 150px;
  }
  
  .process-item i, .timeline-item i {
    font-size: 2.5rem;
  }
  
  .feature-item i {
    font-size: 2rem;
  }
  
  .core-info-item i {
    font-size: 2rem;
  }
}

/* Landscape orientation for mobile devices */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .additional-section {
    padding: 1.5rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../NUM_images/hero-bg@2x.webp');
  }
}

/* Print styles */
@media print {
  .navbar, .footer, .contact-form, .swiper-pagination, .swiper-button-next, .swiper-button-prev {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .service-card, .team-card, .price-card, .case-study-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  body {
  overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus,
  a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
  }
}

/* Dark mode support (if system preference) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-light: #374151;
    --bg-white: #1f2937;
  }
  
  .service-card, .team-card, .price-card, .blog-card, .case-study-card, .section-item {
    background-color: #374151;
    color: #f9fafb;
  }
  
  .contact-form {
    background-color: #374151;
  }
  
  .form-control {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #f9fafb;
  }
  
  .accordion-item {
    background-color: #374151;
    border-color: #4b5563;
  }
  
  .accordion-button {
    background-color: #374151;
    color: #f9fafb;
  }
}

/* Container max-widths adjustment */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Custom scrollbar for webkit browsers */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
  }
} 