/* Responsive Design for EV Charging Aggregator */

/* Large Tablets and Small Desktops */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 2.61rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .price-amount {
    font-size: 2rem;
  }
}

/* Tablets */
@media (max-width: 991.98px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.30rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.57rem;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .team-img {
    width: 120px;
    height: 120px;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.39rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Mobile Landscape */
@media (max-width: 767.98px) {
  .hero {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.82rem; }
  h3 { font-size: 1.59rem; }
  h4 { font-size: 1.32rem; }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .card {
    margin-bottom: 1.70rem;
  }
  
  .card-img-top {
    height: 160px;
  }
  
  .team-img {
    width: 100px;
    height: 100px;
  }
  
  .process-number {
    width: 45px;
    height: 45px;
    font-size: 1.19rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .price-amount {
    font-size: 1.87rem;
  }
  
  .service-price {
    font-size: 1.38rem;
  }
}

/* Mobile Portrait */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero {
    min-height: 60vh;
    padding: 1.5rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.87rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1.03rem;
  }
  
  .navbar-brand {
    font-size: 1.37rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.62rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-desc {
    font-size: 0.96rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.12rem;
  }
  
  .card-text {
    font-size: 1.00rem;
  }
  
  .team-img {
    width: 80px;
    height: 80px;
  }
  
  .team-name {
    font-size: 1.21rem;
  }
  
  .team-role {
    font-size: 0.99rem;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .process-title {
    font-size: 1rem;
  }
  
  .process-desc {
    font-size: 0.88rem;
  }
  
  .faq-question {
    padding: 0.75rem;
    font-size: 0.97rem;
  }
  
  .faq-answer {
    padding: 0 0.75rem 0.75rem;
    font-size: 0.91rem;
  }
  
  .review-text {
    font-size: 1.05rem;
  }
  
  .review-author {
    font-size: 0.97rem;
  }
  
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .contact-form {
    padding: 0.75rem;
  }
  
  .form-control {
    padding: 0.6rem 0.75rem;
    font-size: 1.05rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 1.03rem;
  }
  
  .price-header {
    padding: 1rem;
  }
  
  .price-amount {
    font-size: 1.65rem;
  }
  
  .service-price {
    font-size: 1.24rem;
  }
  
  .service-features {
    font-size: 0.92rem;
  }
  
  .footer {
    padding: 1.5rem 0 1rem;
  }
  
  .footer h5 {
    font-size: 1rem;
  }
  
  .footer p, .footer small {
    font-size: 0.88rem;
  }
}

/* Extra Small Devices */
@media (max-width: 320px) {
  .hero-content h1 {
    font-size: 1.59rem;
  }
  
  .section-title {
    font-size: 1.39rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .contact-form {
    padding: 0.5rem;
  }
  
  .form-control {
    padding: 0.5rem;
  }
  
  .btn-primary {
    padding: 0.5rem 1rem;
  }
  
  .gallery-item img {
    height: 150px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../CYB_images/hero-bg@2x.webp');
  }
  
  .space-content::before {
    background-image: url('../CYB_images/space-bg@2x.webp');
  }
}

/* Dark Mode Support (optional) */

/* Print Styles */
@media print {
  .navbar,
  .hero,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #dadada;
  }
  
  .gallery-layout {
    display: none;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
  }
  
  p, .card-text, .section-desc {
    color: #464545;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .floating-elements::before,
  .floating-elements::after {
    animation: none;
  }
  
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .price-card:hover {
    transform: none;
  }
}

/* Focus Styles for Accessibility */
.form-control:focus,
.btn:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-electric);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--neutral-tech-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--neutral-tech-dark);
  }
  
  .form-control {
    border: 2px solid var(--neutral-tech-dark);
  }
} 