/* Digital Nomad Coliving Space - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 1rem;
    padding-top: 275px;
}
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Section Padding */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Service Cards */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Feature Items */
  .feature-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-item i {
    font-size: 2.5rem;
  }
  
  /* Price Cards */
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .price-card.featured {
    transform: none;
    border-width: 3px;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Team Members */
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Core Info Items */
  .core-info-item {
    padding: 1.25rem;
  }
  
  .core-info-item i {
    font-size: 2rem;
  }
  
  /* Gallery Items */
  .gallery-item img {
    height: 200px;
  }
  
  /* Process Steps */
  .process-step {
    padding: 1.5rem;
  }
  
  /* Timeline Items */
  .timeline-item {
    padding: 1.5rem;
  }
  
  /* Career Cards */
  .career-card {
    padding: 1.5rem;
  }
  
  /* Case Study Cards */
  .case-study-card {
    padding: 1.5rem;
  }
  
  /* Review Cards */
  .review-card {
    padding: 1.5rem;
  }
  
  /* FAQ Cards */
  .faq-card {
    padding: 1.5rem;
  }
  
  /* Blog Cards */
  .blog-card-body {
    padding: 1.25rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Contact Info */
  .contact-info {
    padding: 1.5rem;
    text-align: center;
  }
  
  /* Space Page */
  #space {
    min-height: 50vh;
    margin: 1rem 0;
  }
  
  #space::before {
    font-size: 2.5rem;
  }
  
  /* Button Adjustments */
  .btn-primary {
    padding: 0.5rem 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* No animations on mobile for performance - Sal.js removed */
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 85vh;
  }
  
  /* Service Cards */
  .service-card {
    padding: 1.75rem;
  }
  
  /* Price Cards */
  .price-card.featured {
    transform: scale(1.02);
  }
  
  /* Team Members */
  .team-member img {
    width: 175px;
    height: 175px;
  }
  
  /* Gallery Items */
  .gallery-item img {
    height: 220px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2.5rem;
  }
  
  /* No animations on mobile for performance - Sal.js removed */
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Service Cards Grid */
  .service-card {
    height: 100%;
  }
  
  /* Price Cards */
  .price-card.featured {
    transform: scale(1.03);
  }
  
  /* Gallery Items */
  .gallery-item img {
    height: 240px;
  }
  
  /* Team Grid */
  .team-member {
    margin-bottom: 3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full desktop styles already applied in main.css */
  
  /* Gallery Items */
  .gallery-item img {
    height: 260px;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Enhanced spacing for large screens */
  .section-padding {
    padding: 6rem 0;
  }
  
  /* Container adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Enhanced typography */
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  /* Gallery Items */
  .gallery-item img {
    height: 280px;
  }
  
  /* Service Cards */
  .service-card:hover {
    transform: translateY(-8px);
  }
  
  /* Enhanced hover effects */
  .blog-card:hover {
    transform: translateY(-8px);
  }
}

/* High resolution displays */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section-padding {
    padding: 7rem 0;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

/* Print styles */
@media print {
  .hero-section {
    min-height: auto;
    background: none;
  }
  
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .service-card,
  .price-card,
  .review-card,
  .case-study-card,
  .timeline-item,
  .career-card,
  .core-info-item,
  .faq-card,
  .blog-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e2e2e2;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-coral: #e60024;
    --primary-ocean: #07697d;
    --primary-lavender: #0d6900;
    --primary-sunset: #ffe500;
    --primary-sky: #2500ff;
    --light-gray: #F0F0F0;
    --gray: #6b6161;
    --dark-gray: #363636;
  }
  
  .service-card,
  .price-card,
  .review-card,
  .case-study-card,
  .timeline-item,
  .career-card,
  .core-info-item,
  .faq-card,
  .blog-card {
    border: 2px solid var(--dark-gray);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .blog-card,
  .gallery-item,
  .btn-primary {
    transition: none;
  }
  
  .service-card:hover,
  .blog-card:hover,
  .btn-primary:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .hero-section::before {
    animation: none;
  }
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-coral);
  outline-offset: 2px;
}

/* Dark mode support */