/* ==========================================================================
   Digital Presentation Template Hub - Responsive Styles
   Mobile-First Responsive Design
   ========================================================================== */

/* Mobile First Approach - Base styles for mobile */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  
  /* Section padding reduction */
  section {
    padding: 3rem 0;
  }
  
  /* Hero adjustments */
  #hero {
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-shape {
    width: 200px;
    height: 200px;
    top: -30px;
    right: -30px;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    text-align: center;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Price cards */
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Footer */
  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Process steps */
  .process-step {
    padding: 1.5rem 0.5rem;
  }
  
  /* Feature items */
  .feature-item {
    padding: 1.5rem 0.5rem;
  }
  
  /* Info cards */
  .info-card {
    padding: 1.5rem 0.5rem;
  }
  
  /* No animations on mobile for performance */
  .service-card:hover,
  .team-card:hover,
  .feature-item:hover,
  .blog-card:hover,
  .gallery-image:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  
  /* Section spacing */
  section {
    padding: 4rem 0;
  }
  
  /* Hero adjustments */
  #hero {
    padding-top: 90px;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Service cards spacing */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Price cards */
  .price-card.featured {
    transform: scale(1.02);
  }
  
  /* Contact form */
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  h1 { font-size: 2.375rem; }
  h2 { font-size: 1.938rem; }
  
  /* Section spacing */
  section {
    padding: 4.5rem 0;
  }
  
  /* Hero adjustments */
  #hero {
    padding-top: 85px;
  }
  
  .hero-shape {
    width: 250px;
    height: 250px;
    top: -40px;
    right: -40px;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team layout */
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  /* Price cards */
  .price-card.featured {
    transform: scale(1.03);
  }
  
  /* Service cards hover effects restored */
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .team-card:hover {
    transform: translateY(-3px);
  }
  
  .feature-item:hover {
    transform: translateY(-3px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full typography restored */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  /* Full section spacing */
  section {
    padding: 5rem 0;
  }
  
  /* Hero adjustments */
  #hero {
    padding-top: 80px;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Full hover effects */
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
  
  .team-card:hover {
    transform: translateY(-5px);
  }
  
  .feature-item:hover {
    transform: translateY(-5px);
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .gallery-image:hover {
    transform: scale(1.05);
  }
  
  /* Price card featured */
  .price-card.featured {
    transform: scale(1.05);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max-width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing for large screens */
  section {
    padding: 6rem 0;
  }
  
  /* Hero enhancements */
  .hero-shape {
    width: 350px;
    height: 350px;
    top: -60px;
    right: -60px;
  }
  
  /* Gallery optimization */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  /* Enhanced contact form */
  .contact-form {
    padding: 4rem;
  }
  
  /* Enhanced cards */
  .service-card {
    padding: 2.5rem;
  }
  
  .price-card {
    padding: 3rem 2.5rem;
  }
  
  .review-card {
    padding: 2.5rem;
  }
  
  /* Team photos larger */
  .team-photo {
    width: 160px;
    height: 160px;
  }
}

/* Extra Extra Large devices (1400px and up) */
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
  }
  
  /* Even more spacing for ultra-wide screens */
  section {
    padding: 7rem 0;
  }
  
  /* Typography enhancements */
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  
  /* Gallery optimization */
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 500px) {
  /* Reduce hero height for landscape phones */
  #hero {
    min-height: 70vh;
    padding-top: 60px;
  }
  
  /* Reduce section padding */
  section {
    padding: 2rem 0;
  }
  
  /* Navbar adjustments */
  #header {
    padding: 0.5rem 0;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Enhance borders and shadows for crisp appearance */
  .service-card,
  .price-card,
  .review-card,
  .blog-card,
  .faq-card {
    border: 0.5px solid rgba(0, 0, 0, 0.05);
  }
  
  /* Enhance focus indicators */
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline-width: 1px;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and interactive elements */
  #header,
  .navbar,
  .btn,
  button,
  .hero-shape {
    display: none !important;
  }
  
  /* Adjust colors for print */
  * {
    color: #000 !important;
    background: #fff !important;
  }
  
  /* Ensure readable font sizes */
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
  
  /* Remove shadows and effects */
  .service-card,
  .price-card,
  .review-card,
  .blog-card,
  .faq-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
    margin-bottom: 2rem;
  }
  
  /* Remove transforms */
  * {
    transform: none !important;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Override any hover transforms for accessibility */
  .service-card:hover,
  .team-card:hover,
  .feature-item:hover,
  .blog-card:hover,
  .gallery-image:hover,
  .price-card.featured {
    transform: none !important;
  }
  
  /* Remove all transitions */
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Dark mode support (system preference) */

.hero-content {
    padding-top: 250px;
}