/* ===== RESPONSIVE.CSS - Mobile-First Responsive Design ===== */

/* ===== MOBILE FIRST APPROACH ===== */
/* Base styles are mobile-first, then we enhance for larger screens */

/* ===== EXTRA SMALL DEVICES (phones, 576px and down) ===== */
@media (max-width: 575.98px) {
  /* Conservative font sizes for mobile */
  :root {
    --font-size-brand: 1.25rem;
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.125rem;
    --font-size-h6: 1rem;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  /* Hide decorative elements on small screens */
  .hero-decoration {
    display: none;
  }
  
  /* Section padding reduced for mobile */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Contact form mobile adjustments */
  .contact-form {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  /* Service cards stack properly */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team cards mobile spacing */
  .team-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem 1rem;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Process steps mobile */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* FAQ cards mobile spacing */
  .faq-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
  
  /* Review cards mobile */
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  /* NO ANIMATIONS ON MOBILE SCROLL - Critical Requirement */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Disable hover effects on mobile */
  .service-card:hover,
  .team-card:hover,
  .review-card:hover {
    transform: none;
    box-shadow: var(--box-shadow);
  }
}

/* ===== SMALL DEVICES (landscape phones, 576px and up) ===== */
@media (min-width: 576px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Show small hero decorations */
  .hero-decoration-2 {
    display: block;
    width: 150px;
    height: 150px;
  }
}

/* ===== MEDIUM DEVICES (tablets, 768px and up) ===== */
@media (min-width: 768px) {
  /* Restore normal font sizes */
  :root {
    --font-size-brand: 1.5rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.75rem;
    --font-size-h4: 1.5rem;
    --font-size-h5: 1.25rem;
    --font-size-h6: 1.125rem;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  /* Enable decorative elements */
  .hero-decoration {
    display: block;
  }
  
  /* Gallery responsive grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Contact form larger spacing */
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Process steps can be in rows */
  .process-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Timeline better spacing */
  .timeline-item {
    padding-left: 2.5rem;
  }
}

/* ===== LARGE DEVICES (desktops, 992px and up) ===== */
@media (min-width: 992px) {
  /* Enhanced spacing for desktop */
  .section-padding {
    padding: 6rem 0;
  }
  
  /* Gallery full grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  /* Process steps in full row */
  .process-container {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Hero decorations full size */
  .hero-decoration-1 {
    width: 300px;
    height: 300px;
  }
  
  .hero-decoration-2 {
    width: 200px;
    height: 200px;
  }
  
  /* Enable hover effects on desktop */
  .service-card,
  .team-card,
  .review-card,
  .case-study-card,
  .career-card,
  .core-info-item,
  .blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* ===== EXTRA LARGE DEVICES (large desktops, 1200px and up) ===== */
@media (min-width: 1200px) {
  /* Maximum content width for readability */
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced hero decorations */
  .hero-decoration-1 {
    width: 400px;
    height: 400px;
  }
  
  /* Gallery can have more columns on very wide screens */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===== ULTRA WIDE SCREENS (1400px and up) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Ultra-wide gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ===== ACCESSIBILITY - PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions globally */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove hover transforms for accessibility */
  .service-card:hover,
  .team-card:hover,
  .review-card:hover,
  .case-study-card:hover,
  .career-card:hover,
  .core-info-item:hover,
  .blog-card:hover {
    transform: none;
  }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #0000ff;
    --color-secondary: #ff00ff;
    --color-accent: #008000;
    --color-warning: #ffff00;
    --color-info: #00ffff;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .contact-form,
  .case-study-card,
  .career-card,
  .price-plan-card,
  .core-info-item,
  .blog-card {
    border: 2px solid #000000;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  /* Hide navigation and decorative elements when printing */
  .navbar,
  .hero-decoration,
  .footer {
    display: none;
  }
  
  /* Ensure good contrast for printing */
  body {
    color: #000000;
    background: #ffffff;
  }
  
  /* Remove shadows and decorative effects */
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .contact-form,
  .case-study-card,
  .career-card,
  .price-plan-card,
  .core-info-item,
  .blog-card {
    box-shadow: none;
    border: 1px solid #000000;
  }
  
  /* Ensure page breaks work well */
  .section-padding {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ===== ORIENTATION CHANGES ===== */
@media (orientation: landscape) and (max-height: 500px) {
  /* Reduce hero height for landscape orientation on short screens */
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* ===== CUSTOM BREAKPOINTS FOR SPECIFIC LAYOUTS ===== */
/* Services grid responsive breakpoints */
@media (min-width: 576px) and (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Team grid responsive breakpoints */
@media (min-width: 768px) and (max-width: 991.98px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Reviews grid responsive breakpoints */
@media (min-width: 768px) and (max-width: 991.98px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
} 

.hero-section h1 {
    padding-top: 175px;
}