/* ===== RESPONSIVE STYLES ===== */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Spacing */
  section {
    padding: 3rem 0;
  }
  
  /* Hero Section */
  #hero {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-content {
    margin-bottom: 2rem;
    padding-top: 125px;
}
  
  .hero-description {
    font-size: 1rem;
  }
  
  /* Cards */
  .custom-card,
  .service-card,
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  .card-padding {
    padding: 1.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }
  
  /* Buttons */
  .btn-primary,
  .btn-outline-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Team Photos */
  .team-photo {
    height: 200px;
  }
  
  /* Process Steps */
  .process-step::after {
    display: none;
  }
  
  .process-number {
    width: 60px;
    height: 60px;
    font-size: 1.125rem;
  }
  
  /* Gallery */
  .gallery-image {
    height: 200px;
  }
  
  /* Blog */
  .blog-image {
    height: 150px;
  }
  
  /* Footer */
  #footer {
    text-align: center;
  }
  
  .footer-contact-info {
    margin-bottom: 1rem;
  }
  
  /* Remove hover effects on mobile */
  .custom-card:hover,
  .service-card:hover,
  .team-card:hover,
  .case-study-card:hover,
  .gallery-item:hover,
  .blog-card:hover {
    transform: none;
  }
  
  /* Disable animations on mobile per requirements */
  .sal-animate,
  [data-sal] {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .team-photo {
    height: 220px;
  }
  
  .gallery-image {
    height: 250px;
  }
  
  .blog-image {
    height: 180px;
  }
  
  /* Remove mobile hover restrictions */
  .sal-animate,
  [data-sal] {
    transform: initial !important;
    opacity: initial !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  section {
    padding: 4.5rem 0;
  }
  
  .hero-content {
    margin-bottom: 0;
    padding-top: 125px;
}
  
  .contact-form {
    padding: 3rem;
  }
  
  .team-photo {
    height: 240px;
  }
  
  .gallery-image {
    height: 280px;
  }
  
  .blog-image {
    height: 200px;
  }
  
  /* Process step connector */
  .process-step::after {
    width: 60%;
    left: 70%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .team-photo {
    height: 250px;
  }
  
  .gallery-image {
    height: 300px;
  }
  
  .process-step::after {
    width: 70%;
    left: 65%;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.625rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.25rem;
  }
  
  .team-photo {
    height: 280px;
  }
  
  .gallery-image {
    height: 350px;
  }
  
  .process-step::after {
    width: 75%;
    left: 62.5%;
  }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 2.75rem;
  }
  
  section {
    padding: 6rem 0;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  /* Hide navigation and interactive elements */
  #header,
  .btn,
  .navbar,
  .hero-shape,
  .contact-form {
    display: none !important;
  }
  
  /* Optimize spacing for print */
  section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
  
  /* Ensure text is readable */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
  
  /* Optimize images for print */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Show URLs for links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #008080;
    --accent-color: #ff0080;
    --neutral-700: #000000;
    --neutral-900: #000000;
    --neutral-100: #ffffff;
    --neutral-200: #cccccc;
  }
  
  .custom-card,
  .service-card,
  .pricing-card,
  .team-card,
  .review-card,
  .case-study-card,
  .faq-card,
  .blog-card {
    border: 2px solid #000000;
  }
  
  .btn-primary {
    background-color: #0000ff;
    border: 2px solid #000000;
    color: #ffffff;
  }
  
  .btn-outline-primary {
    border: 2px solid #0000ff;
    color: #0000ff;
  }
}

/* ===== DARK MODE SUPPORT ===== */

/* ===== LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

/* ===== RETINA DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  .hero-shape,
  .card-icon,
  .feature-icon,
  .process-number {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== POINTER DEVICE DETECTION ===== */
@media (hover: hover) and (pointer: fine) {
  /* Enhanced hover effects for devices with precise pointers */
  .custom-card:hover,
  .service-card:hover,
  .team-card:hover,
  .case-study-card:hover,
  .gallery-item:hover,
  .blog-card:hover {
    transform: translateY(-10px);
  }
  
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: translateY(-3px);
  }
}

@media (hover: none) {
  /* Remove hover effects for touch devices */
  .custom-card:hover,
  .service-card:hover,
  .team-card:hover,
  .case-study-card:hover,
  .gallery-item:hover,
  .blog-card:hover,
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: none;
  }
} 