/* Green Data Center Template - Responsive CSS */

/* ===== EXTRA SMALL DEVICES (320px and up) ===== */
@media (min-width: 320px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section h1 {
    font-size: 1.81rem;
    padding-top: 100px;
}
  
  .hero-section h2 {
    font-size: 1.31rem;
  }
  
  .service-card,
  .price-card,
  .feature-card,
  .info-card {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  .gallery-image {
    height: 180px;
  }
}

/* ===== SMALL DEVICES (576px and up) ===== */
@media (min-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
    padding-top: 100px;
}
  
  .hero-section h2 {
    font-size: 1.55rem;
  }
  
  .service-card,
  .price-card,
  .feature-card,
  .info-card {
    padding: 1.75rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  .contact-form .row .col-md-6 {
    margin-bottom: 0;
  }
}

/* ===== MEDIUM DEVICES (768px and up) ===== */
@media (min-width: 768px) {
  .hero-section {
    text-align: left;
  }
  
  .hero-section h1 {
    font-size: 2.31rem;
    padding-top: 100px;
}
  
  .hero-section h2 {
    font-size: 1.89rem;
  }
  
  .service-card,
  .price-card,
  .feature-card,
  .info-card {
    padding: 2rem;
  }
  
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  .gallery-image {
    height: 220px;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
  
  .step-number {
    width: 59px;
    height: 59px;
    font-size: 1.52rem;
  }
  
  .navbar-nav {
    margin-left: auto;
  }
  
  .feature-item {
    padding: 1.75rem;
  }
}

/* ===== LARGE DEVICES (992px and up) ===== */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 2.58rem;
    padding-top: 100px;
}
  
  .hero-section h2 {
    font-size: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .gallery-image {
    height: 240px;
  }
  
  .price-card.featured {
    transform: scale(1.05);
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.58rem;
  }
  
  .feature-item {
    padding: 2rem;
  }
  
  /* Grid adjustments for better spacing */
  .services-section .col-lg-4,
  .features-section .col-lg-6,
  .team-section .col-lg-2,
  .process-section .col-lg-2,
  .timeline-section .col-lg-2 {
    margin-bottom: 2rem;
  }
}

/* ===== EXTRA LARGE DEVICES (1200px and up) ===== */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 3rem;
    padding-top: 100px;
}
  
  .hero-section h2 {
    font-size: 2.33rem;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .gallery-image {
    height: 260px;
  }
  
  /* Enhanced hover effects for larger screens */
  .service-card:hover,
  .price-card:hover,
  .info-card:hover {
    transform: translateY(-8px);
  }
  
  .feature-item:hover {
    transform: translateX(8px);
  }
}

/* ===== ULTRA WIDE SCREENS (1400px and up) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-section h1 {
    font-size: 3.53rem;
    padding-top: 100px;
}
  
  .hero-section h2 {
    font-size: 2.61rem;
  }
  
  .gallery-image {
    height: 280px;
  }
}

/* ===== LANDSCAPE MOBILE SPECIFIC ===== */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-section {
    min-height: 80vh;
    padding-top: 60px;
  }
  
  .hero-section h1 {
    font-size: 1.86rem;
    padding-top: 100px;
}
  
  .hero-section h2 {
    font-size: 1.34rem;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  .service-card,
  .price-card,
  .feature-card {
    padding: 1rem;
  }
}

/* ===== TABLET SPECIFIC ADJUSTMENTS ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-section {
    padding-top: 90px;
  }
  
  .services-section .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .team-section .col-lg-2 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .process-section .col-lg-2,
  .timeline-section .col-lg-2 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1.56rem;
  }
  
  .gallery-image {
    height: 200px;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .info-card:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .feature-item:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.8);
  }
  
  .gallery-image:hover {
    transform: none;
  }
  
  /* Increase touch target sizes */
  .btn,
  .nav-link,
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  * {
    background: transparent;
    color: black;
    box-shadow: none;
    text-shadow: none;
  }
  
  .navbar,
  .footer,
  .contact-section,
  .gallery-section {
    display: none;
  }
  
  .hero-section,
  .about-section,
  .services-section {
    break-inside: avoid;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .service-card,
  .price-card,
  .feature-card {
    border: 1px solid #b9b9b9;
    page-break-inside: avoid;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-size: cover;
  }
  
  .service-image,
  .gallery-image,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .service-card,
  .price-card,
  .feature-card,
  .feature-item,
  .gallery-image,
  .btn-primary {
    transition: none;
  }
  
  .fade-in-up {
    animation: none;
  }
  
  .hero-section::before {
    animation: none;
  }
}

/* ===== DARK MODE SUPPORT ===== */

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-contrast: high) {
  .hero-section {
    background: linear-gradient(135deg, #000000 0%, #12151b 100%);
  }
  
  .btn-primary {
    background: #000000;
    border: 2px solid #ffffff;
  }
  
  .navbar {
    background: #ffffff;
    border-bottom: 2px solid #000000;
  }
}

/* ===== NAVIGATION DRAWER FOR MOBILE ===== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* ===== CONTAINER SPACING ADJUSTMENTS ===== */
@media (max-width: 575px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 768px) {
  section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ===== GRID FALLBACKS FOR OLDER BROWSERS ===== */
@supports not (display: grid) {
  .services-section .row,
  .features-section .row,
  .team-section .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .services-section .col-lg-4,
  .features-section .col-lg-6,
  .team-section .col-lg-2 {
    flex: 1;
    min-width: 280px;
  }
} 