/* ================================
   Responsive Styles
   Template 156 - Mobile First Design
   ================================ */

/* Base Mobile Styles (320px and up) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Section padding */
  section {
    padding: 2rem 0;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .btn-hero {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Cards adjustments */
  .feature-card,
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 1.5rem;
  }
  
  /* Form adjustments */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Features grid mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Info grid mobile */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Footer adjustments */
  #footer {
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  /* Remove animations on mobile for performance */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  /* No floating animation on mobile */
  #hero::before {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero adjustments */
  .hero-text h1 {
    font-size: 3rem;
  }
  
  /* Gallery grid tablet */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Features grid tablet */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Price cards tablet */
  .price-card.featured {
    transform: none;
  }
  
  .price-card:hover {
    transform: translateY(-5px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Gallery grid desktop */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Features grid desktop */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Info grid desktop */
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max-width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Gallery grid large desktop */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Features grid large desktop */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Info grid large desktop */
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Hero section adjustments */
  .hero-text h1 {
    font-size: 4rem;
  }
  
  .hero-text p {
    font-size: 1.25rem;
  }
  
  /* Section title adjustments */
  .section-title h2 {
    font-size: 2.5rem;
  }
  
  .section-title p {
    font-size: 1.125rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
  }
  
  .hero-text {
    padding: 2rem 0;
    padding-top: 200px;
}
  
  /* Reduce vertical spacing in landscape */
  section {
    padding: 3rem 0;
  }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper shadows for retina displays */
  .shadow-custom {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  .shadow-custom-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  }
}

/* Print media adjustments */
@media print {
  /* Hide navigation and interactive elements */
  #header,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  /* Adjust colors for print */
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
    break-after: avoid;
  }
  
  /* Adjust typography for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  /* Increase contrast for accessibility */
  :root {
    --gray-600: #4a5568;
    --gray-800: #2d3748;
    --primary-purple: #553c9a;
    --primary-teal: #319795;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove floating animation */
  #hero::before {
    animation: none;
  }
  
  /* Remove hover transforms */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .price-card:hover,
  .btn-hero:hover,
  .btn-submit:hover {
    transform: none;
  }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
  /* Touch device adjustments */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: none;
  }
}

/* Dark mode support (if browser supports) */

/* Container adjustments for very small screens */
@media (max-width: 350px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-text h1 {
    font-size: 1.75rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .feature-card,
  .service-card,
  .contact-form {
    padding: 1rem;
  }
}

/* Optimize for common breakpoints */
@media (width: 375px) {
  /* iPhone specific adjustments */
  .hero-text {
    padding: 1rem 0;
    padding-top: 200px;
}
}

@media (width: 414px) {
  /* iPhone Plus specific adjustments */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width: 768px) {
  /* iPad portrait specific adjustments */
  .price-card.featured {
    transform: scale(1.02);
  }
}

/* Navbar adjustments for different screen sizes */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(160, 132, 220, 0.95);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
  .contact-form .row .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .btn-submit {
    width: 100%;
  }
}

/* Team section responsive grid */
@media (min-width: 576px) and (max-width: 991.98px) {
  .team-card {
    max-width: 280px;
    margin: 0 auto 1.5rem;
  }
}

/* Services section responsive adjustments */
@media (max-width: 991.98px) {
  .service-card {
    max-width: 350px;
    margin: 0 auto 1.5rem;
  }
}

/* Contact info responsive stacking */
@media (max-width: 767.98px) {
  .contact-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .contact-icon {
    margin: 0 0 1rem 0;
  }
} 