/* Virtual Camp Template - Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (Mobile phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Hero Section */
  #hero {
    text-align: center;
    padding: 2rem 0;
  }
  
  #hero h1 {
    font-size: var(--font-size-2xl);
  }
  
  #hero .lead {
    font-size: var(--font-size-base);
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: var(--font-size-lg) !important;
  }
  
  .navbar-nav .nav-link {
    font-size: var(--font-size-sm);
    text-align: center;
  }
  
  /* Sections */
  section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: var(--font-size-xl);
  }
  
  /* Cards */
  .service-card,
  .team-card,
  .blog-card,
  .pricing-card {
    margin-bottom: 1.58rem;
  }
  
  .service-card,
  .pricing-card {
    padding: 1.5rem;
  }
  
  /* Timeline */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
  }
  
  .timeline-item::before {
    left: 11px !important;
    right: auto !important;
  }
  
  /* Process Steps */
  .process-step .step-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Testimonials */
  .testimonial-item {
    margin: 0.5rem 0;
    padding: 1.5rem;
  }
  
  .testimonial-item::before {
    font-size: 3rem;
    top: -5px;
  }
  
  /* Disable autoplay and effects for Swiper on mobile */
  .swiper-wrapper {
    transform: none !important;
  }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  #hero h1 {
    font-size: var(--font-size-3xl);
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 4rem !important;
    padding-right: 0 !important;
  }
  
  .timeline-item::before {
    left: 21px !important;
    right: auto !important;
  }
  
  section {
    padding: 50px 0;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Enable full Swiper functionality */
  .swiper-wrapper {
    transform: translate3d(0px, 0px, 0px) !important;
  }
  
  #hero {
    padding: 3rem 0;
  }
  
  section {
    padding: 60px 0;
  }
  
  .timeline::before {
    left: 50%;
  }
  
  .timeline-item {
    width: 45%;
  }
  
  .pricing-card.featured {
    transform: scale(1.02);
  }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  section {
    padding: 70px 0;
  }
  
  .hero-image {
    max-width: 500px;
  }
  
  .service-card:hover {
    transform: translateY(-8px);
  }
}

/* Extra Large Devices (Large desktops, 1200px and up) */
@media (min-width: 1200px) {
  section {
    padding: 80px 0;
  }
  
  .hero-image {
    max-width: 600px;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  section {
    padding: 100px 0;
  }
  
  #hero {
    padding: 4rem 0;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 70vh;
    padding: 1rem 0;
  }
  
  #hero h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: 1.16rem;
  }
  
  #hero .lead {
    margin-bottom: 1.16rem;
  }
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: black !important;
  }
  
  .navbar,
  .contact-form,
  .btn,
  footer {
    display: none !important;
  }
  
  section {
    padding: 20px 0 !important;
  }
  
  .service-card,
  .team-card,
  .pricing-card {
    border: 1px solid #e3e3e3 !important;
    break-inside: avoid;
    margin-bottom: 24.00px !important;
  }
}

/* High DPI / Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img,
  .team-card img,
  .blog-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .pricing-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .contact-form .btn-primary:hover {
    transform: none;
  }
  
  .swiper-wrapper {
    transition: none !important;
  }
  
  .timeline-item,
  .process-step,
  .feature-item {
    animation: none !important;
  }
}

/* Dark Mode Support (for system preference) */
@media (prefers-color-scheme: dark) {
  /* Note: As per requirements, we exclude dark mode styles */
  /* This media query is here for future reference only */
}

/* Focus and Accessibility */
@media (min-width: 768px) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-golden);
    outline-offset: 2px;
  }
}

/* Specific Mobile Adjustments for Swiper */
@media (max-width: 767.98px) {
  .swiper-pagination {
    position: static !important;
    margin-top: 1.23rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .swiper-slide {
    padding: 1rem 0.5rem;
  }
}

/* Tablet and Desktop Swiper Adjustments */
@media (min-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    color: var(--primary-golden);
  }
  
  .swiper-pagination-bullet-active {
    background: var(--primary-golden);
  }
}

/* Container Responsive Adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
}

/* Grid System Adjustments for Components */
@media (max-width: 767.98px) {
  .col-md-4,
  .col-md-6,
  .col-lg-4,
  .col-lg-6 {
    margin-bottom: 2.25rem;
  }
}

/* Font Size Adjustments for Better Readability */
@media (max-width: 575.98px) {
  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl); }
  h3 { font-size: var(--font-size-lg); }
  
  .pricing-card .price {
    font-size: var(--font-size-3xl);
  }
  
  .feature-item i {
    font-size: 2.5rem;
  }
}

/* Form Responsive Adjustments */
@media (max-width: 575.98px) {
  .contact-form .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .contact-form .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

/* Navigation Responsive Behavior */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    margin-top: 1.23rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}