/* Mobile-First Responsive Design for Virtual Coworking Space */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile to respect performance */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  /* Navbar brand smaller on mobile */
  .navbar-brand {
    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 */
  }
  
  /* Section padding reduction */
  .section {
    padding: 3rem 0;
  }
  
  /* Cards spacing */
  .service-card,
  .feature-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Process steps stacked */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* Timeline adjustments */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Gallery grid adjustment */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team photos smaller */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Service card icons smaller */
  .service-card .icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Feature card icons smaller */
  .feature-card .icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Price font size adjustment */
  .price {
    font-size: 1.75rem;
  }
  
  /* Process number smaller */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Contact info adjustments */
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .contact-info-item .icon {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }
}

/* 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: 90vh;
  }
  
  /* Section padding */
  .section {
    padding: 4rem 0;
  }
  
  /* Cards in 2 columns where appropriate */
  .feature-card,
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  .hero-section {
    min-height: 95vh;
  }
  
  /* Section padding */
  .section {
    padding: 4.5rem 0;
  }
  
  /* Contact form grid */
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  /* Gallery grid */
  .gallery-item img {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full section padding */
  .section {
    padding: var(--section-padding);
  }
  
  /* Hero section full height */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Contact form full padding */
  .contact-form {
    padding: 3rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Maximum container width adjustments if needed */
  .container {
    max-width: 1200px;
  }
  
  /* Enhanced spacing for larger screens */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Gallery enhanced for large screens */
  .gallery-item img {
    height: 280px;
  }
}

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

/* High DPI/Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on retina displays */
  .service-card .icon,
  .feature-card .icon,
  .process-number,
  .contact-info-item .icon {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  /* Hide non-essential elements for printing */
  .navbar,
  .footer,
  .contact-form,
  .gallery-item,
  .btn {
    display: none !important;
  }
  
  /* Ensure proper text colors for printing */
  body,
  h1, h2, h3, h4, h5, h6,
  p {
    color: #000 !important;
  }
  
  /* Remove backgrounds for printing */
  * {
    background: transparent !important;
    box-shadow: none !important;
  }
  
  /* Page breaks */
  .section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility improvements for reduced motion */
@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 hover effects that rely on transforms */
  .card:hover,
  .gallery-item:hover img {
    transform: none !important;
  }
}

/* Dark mode preferences (if supported) */

/* High contrast mode */
@media (prefers-contrast: high) {
  /* Enhance contrast for better accessibility */
  .card {
    border: 2px solid var(--gray-300);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-blue);
  }
  
  .btn-outline-primary {
    border: 2px solid var(--primary-blue);
  }
  
  .form-control {
    border: 2px solid var(--gray-400);
  }
  
  .form-control:focus {
    border: 2px solid var(--primary-blue);
  }
}

/* Container max-width adjustments for better content flow */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Navbar collapse adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Form responsiveness */
@media (max-width: 767.98px) {
  .contact-form .row {
    margin: 0;
  }
  
  .contact-form .col-md-6 {
    padding: 0;
    margin-bottom: 1rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Button responsiveness */
@media (max-width: 575.98px) {
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
}

/* Grid adjustments for service and feature cards */
@media (max-width: 767.98px) {
  .service-card,
  .feature-card {
    text-align: center;
  }
}

/* Timeline responsiveness */
@media (max-width: 575.98px) {
  .timeline-item::before {
    left: -5px;
    width: 10px;
    height: 10px;
  }
  
  .timeline-item::after {
    left: -1px;
  }
}

/* Ensure proper spacing on all devices */
.section:first-child {
  padding-top: 0;
}

.section:last-child {
  padding-bottom: 0;
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
} 

.hero-content {
    padding-top: 275px;
}