/*
* Responsive CSS for Solar-Powered Phone Charging Kiosks Template
* Mobile-First Responsive Design
*/

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    display: none; /* Remove decorative elements on mobile */
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Sections */
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Cards */
  .custom-card {
    margin-bottom: 1.5rem;
  }
  
  .service-card,
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    margin: 1rem 0;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 150px;
  }
  
  /* Team Cards */
  .team-card img {
    height: 200px;
  }
  
  /* FAQ */
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* No animations on mobile */
  * {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  .custom-card:hover {
    transform: none !important;
  }
  
  .btn-primary:hover {
    transform: none !important;
  }
  
  .gallery-item:hover img {
    transform: none !important;
  }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .gallery-item img {
    height: 175px;
  }
  
  .team-card img {
    height: 225px;
  }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .gallery-item img {
    height: 185px;
  }
  
  .team-card img {
    height: 240px;
  }
  
  /* Services Grid */
  .services-grid .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .section {
    padding: var(--section-padding);
  }
  
  .gallery-item img {
    height: 190px;
  }
  
  .team-card img {
    height: 245px;
  }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .team-card img {
    height: 250px;
  }
  
  /* Container max-width for very large screens */
  .container {
    max-width: 1200px;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .custom-card,
  .contact-form {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  }
}

/* Print Media Queries */
@media print {
  .hero-section {
    min-height: auto;
    background: white !important;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .custom-card {
    box-shadow: none;
    border: 1px solid #e9e9e9;
  }
  
  .gallery-item {
    page-break-inside: avoid;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .custom-card,
  .btn-primary,
  .gallery-item img {
    transition: none !important;
  }
}

/* Dark Mode Support */

/* Container Responsive Padding */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) {
  .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Navbar Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    box-shadow: var(--box-shadow);
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-grey);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Form Responsive Adjustments */
@media (max-width: 767.98px) {
  .form-row .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

/* Grid Responsive Utilities */
@media (max-width: 575.98px) {
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
} 

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