/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Conservative typography for mobile */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-decorative-shape {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Section padding reduction */
  .section {
    padding: 3rem 0;
  }
  
  /* Card adjustments */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .pricing-card.featured {
    transform: none; /* Remove scale on mobile */
    margin-bottom: 2rem;
  }
  
  /* Gallery grid for mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Process steps mobile layout */
  .process-step {
    margin-bottom: 1.5rem;
  }
  
  .process-step-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  /* Team images smaller on mobile */
  .team-image {
    width: 120px;
    height: 120px;
  }
  
  /* Service and feature icons smaller */
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Contact info adjustments */
  .contact-info-item {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }
  
  .contact-info-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }
  
  /* Timeline adjustments */
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  /* No animations on mobile for performance */
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Gallery grid for small tablets */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Pricing cards side by side */
  .pricing-card.featured {
    transform: none;
  }
  
  /* Contact info in row layout */
  .contact-info-item {
    flex-direction: row;
    text-align: left;
  }
  
  .contact-info-icon {
    margin-right: 1rem;
    margin-bottom: 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  #hero {
    min-height: 80vh;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .navbar-brand {
    font-size: 1.125rem !important;
  }
  
  /* Gallery grid for tablets */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Services grid adjustment */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Team grid for tablets */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Process steps in row */
  .process-steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .process-step {
    flex: 0 1 calc(50% - 1rem);
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full hero height */
  #hero {
    min-height: 100vh;
  }
  
  /* Gallery grid full layout */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Services in 3 columns */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team in row layout */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Process steps in single row */
  .process-steps-container {
    display: flex;
    justify-content: space-between;
  }
  
  .process-step {
    flex: 1;
    margin: 0 1rem;
  }
  
  /* Featured pricing card scale */
  .pricing-card.featured {
    transform: scale(1.02);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max width */
  .container {
    max-width: var(--container-max-width);
  }
  
  /* Gallery grid with more columns */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
  
  /* Services in 3 columns with more spacing */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Full featured pricing scale */
  .pricing-card.featured {
    transform: scale(1.05);
  }
  
  /* Larger decorative shapes */
  .hero-shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-shape-2 {
    width: 200px;
    height: 200px;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  /* Even larger container */
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced gallery layout */
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  /* More spacing for sections */
  .section {
    padding: 6rem 0;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 80vh;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  /* Reduce hero decorative elements */
  .hero-decorative-shape {
    display: none;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on retina displays */
  .card,
  .btn,
  .form-control {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  /* Hide non-essential elements when printing */
  .navbar,
  .hero-decorative-shape,
  .btn,
  #footer {
    display: none !important;
  }
  
  /* Adjust colors for print */
  * {
    color: #000 !important;
    background: #fff !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  /* Ensure proper margins */
  @page {
    margin: 2cm;
  }
}

/* Dark mode support (if user prefers dark mode) */

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Specifically target floating animations */
  .hero-shape-1,
  .hero-shape-2 {
    animation: none !important;
  }
  
  /* Remove hover transformations */
  .card:hover,
  .gallery-item:hover img,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* Custom breakpoint for very small devices */
@media (max-width: 320px) {
  /* Extra small phone adjustments */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  h1 {
    font-size: 1.25rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  /* Stack everything vertically */
  .row > * {
    margin-bottom: 1rem;
  }
}

/* Custom utilities for responsive behavior */
.mobile-center {
  text-align: center;
}

@media (min-width: 768px) {
  .mobile-center {
    text-align: left;
  }
}

.mobile-hidden {
  display: none;
}

@media (min-width: 768px) {
  .mobile-hidden {
    display: block;
  }
}

.desktop-hidden {
  display: block;
}

@media (min-width: 768px) {
  .desktop-hidden {
    display: none;
  }
} 

body {
    overflow-x: hidden;
}