/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: var(--font-size-base);
  }
  
  .section {
    padding: 60px 0;
  }
  
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Disable autoplay and effects on mobile for Swiper */
  .swiper {
    --swiper-navigation-size: 30px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .hero-shape {
    display: none;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section {
    padding: 70px 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section {
    padding: var(--section-padding);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: translateY(-10px);
  }
  
  .feature-card:hover,
  .case-card:hover,
  .career-card:hover,
  .info-card:hover {
    transform: translateY(-5px);
  }
  
  /* Enable Swiper autoplay and effects on desktop */
  .swiper-button-next,
  .swiper-button-prev {
    display: flex;
  }
  
  .hero-shape {
    display: block;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-image {
    height: 300px;
  }
  
  .blog-image {
    height: 250px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 5rem;
  }
  
  .section {
    padding: 100px 0;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 50px 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .blog-image,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .blog-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;
  }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
  :root {
    --primary-coral: #D32F2F;
    --primary-sky: #00796B;
    --primary-lavender: #388E3C;
    --primary-gold: #F57C00;
    --primary-rose: #C2185B;
    --gray: #424242;
    --dark-gray: #212121;
  }
  
  .btn-primary {
    background: var(--primary-coral);
    border: 2px solid var(--dark-gray);
  }
  
  .form-control:focus {
    border-color: var(--primary-coral);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.5);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-shape {
    animation: none;
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .feature-card:hover,
  .case-card:hover,
  .career-card:hover,
  .info-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .fade-in,
  .slide-in-left,
  .slide-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #121212;
    --light-gray: #1E1E1E;
    --gray: #B0B0B0;
    --dark-gray: #FFFFFF;
    --black: #FFFFFF;
  }
  
  body {
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--dark-gray);
  }
  
  .navbar {
    background: rgba(30, 30, 30, 0.95);
  }
  
  .service-card,
  .price-card,
  .team-card,
  .blog-card,
  .feature-card,
  .case-card,
  .career-card,
  .contact-form,
  .faq-item {
    background: var(--light-gray);
    color: var(--dark-gray);
  }
  
  .form-control {
    background: var(--light-gray);
    color: var(--dark-gray);
    border-color: var(--gray);
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
  outline: 2px solid var(--primary-coral);
  outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-coral);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  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-coral);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes for Responsive Design */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
  
  .d-desktop-none {
    display: none;
  }
}

.text-mobile-center {
  text-align: center;
}

@media (min-width: 768px) {
  .text-mobile-center {
    text-align: left;
  }
}

/* Container Responsive Padding */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 576px) {
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 768px) {
  .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 992px) {
  .container-fluid {
    padding-left: 40px;
    padding-right: 40px;
  }
} 