/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Hero Section Mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  #hero::before {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  /* Section Padding Mobile */
  section {
    padding: 2rem 0;
  }
  
  /* Cards Mobile */
  .feature-card,
  .service-card,
  .pricing-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .process-step {
    margin-bottom: 1.5rem;
  }
  
  /* Contact Form Mobile */
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
    padding: 2rem !important;
    border-radius: 15px !important;
  }
  
  .contact-form .form-control {
    padding: 0.8rem 1rem !important;
    font-size: 0.95rem !important;
  }
  
  .contact-form .btn-primary {
    padding: 0.9rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .contact-info-item i {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.5rem !important;
    margin-right: 1rem !important;
  }
  
  .contact-info-item {
    padding: 0.8rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  #contacts .section-title h2 {
    font-size: 1.8rem !important;
  }
  
  #contacts .section-title p,
  #contacts .section-subtitle {
    font-size: 0.95rem !important;
  }
  
  /* Typography Mobile */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  
  /* Navbar Mobile */
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Gallery Mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team Photos Mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process Numbers Mobile */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero Section */
  #hero {
    min-height: 85vh;
  }
  
  .hero-content h1 {
    font-size: 1.875rem;
  }
  
  /* Section Padding */
  section {
    padding: 2.5rem 0;
  }
  
  /* Typography */
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.625rem; }
  
  /* Gallery */
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  #hero {
    min-height: 90vh;
  }
  
  .hero-content h1 {
    font-size: 1.95rem;
  }
  
  /* Section Padding */
  section {
    padding: 3rem 0;
  }
  
  /* Cards */
  .service-card,
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  /* Contact Layout */
  .contact-form {
    margin-bottom: 2rem;
    padding: 1.5rem !important;
  }
  
  .contact-info {
    padding: 1.5rem !important;
  }
  
  .contact-form .form-control {
    padding: 0.7rem 1rem !important;
    border-radius: 10px !important;
  }
  
  .contact-form .btn-primary {
    padding: 0.8rem 1.5rem !important;
  }
  
  .contact-info-item i {
    width: 35px !important;
    height: 35px !important;
    font-size: 1.3rem !important;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 240px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  #hero {
    min-height: 95vh;
  }
  
  /* Full animations enabled on desktop */
  .feature-card:hover,
  .service-card:hover,
  .pricing-card:hover,
  .team-card:hover,
  .casestudy-card:hover,
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  /* Gallery */
  .gallery-item img {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero Section */
  #hero {
    min-height: 100vh;
  }
  
  /* Full animations and effects enabled */
  .feature-card:hover,
  .service-card:hover,
  .pricing-card:hover,
  .team-card:hover,
  .casestudy-card:hover,
  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  }
  
  /* Enhanced hover effects for large screens */
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: translateY(-2px);
  }
}

/* Print Styles */
@media print {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
  
  #header,
  #footer {
    display: none;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .btn {
    display: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #f0f0f0;
    --accent-color: #ff6600;
    --text-dark: #000000;
  }
  
  .card,
  .feature-card,
  .service-card,
  .pricing-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .process-step {
    border: 2px solid #000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Dark Mode Support */

body {
    overflow-x: hidden;
}