/* Personal Time Capsule - Responsive Styles */

/* Mobile First Approach */
@media (max-width: 767.98px) {
  /* Disable autoplay and effects for Swiper on mobile */
  .swiper-container {
    --swiper-navigation-size: 32px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination {
    bottom: 10px;
  }
  
  /* Conservative font sizes on mobile */
  :root {
    --font-size-base: 14px;
    --font-size-sm: 12px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
  }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: var(--font-size-base) !important;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    margin: 5px 0;
    padding: 10px 0;
  }
  
  /* Hero section */
  .hero-section {
  padding-top: 50px;
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.68rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: 1.11rem;
  }
  
  .hero-desc {
    font-size: var(--font-size-base);
  }
  
  /* Sections */
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: var(--font-size-xl);
    margin-bottom: 0.68rem;
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: 1.11rem;
  }
  
  .section-desc {
    margin-bottom: 2.09rem;
    font-size: var(--font-size-sm);
  }
  
  /* Cards */
  .feature-card,
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.57rem;
  }
  
  .service-img {
    height: 150px;
    margin-bottom: 1.11rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
    margin-bottom: 0.68rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Blog cards */
  .blog-img {
    height: 150px;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  .blog-title {
    font-size: var(--font-size-base);
    margin-bottom: 0.68rem;
  }
  
  /* FAQ */
  .faq-question {
    padding: 1rem;
    font-size: var(--font-size-sm);
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: var(--font-size-sm);
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
  }
  
  .gallery-img {
    height: 200px;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .col-md-3 {
    margin-bottom: 1.57rem;
  }
  
  /* Breadcrumb */
  .breadcrumb-img {
    height: 150px;
  }
  
  /* Space page */
  #space {
    min-height: 60vh;
    font-size: var(--font-size-xl);
    padding: 2rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
  padding-top: 50px;
    min-height: 80vh;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .service-img,
  .blog-img {
    height: 180px;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .hero-section {
  padding-top: 50px;
    min-height: 100vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  
  /* Hover effects only on desktop */
  .feature-card:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .gallery-item:hover {
    transform: scale(1.05);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-content {
  padding-top: 100px !important;
    padding: 4rem 0;
  }
  
  .section {
    padding: 100px 0;
  }
  
  .contact-form {
    padding: 4rem;
  }
}

/* Extra Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .btn {
    display: none !important;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: auto;
    padding: 40px 0;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .hero-title,
  .section-title {
    color: #000 !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #211e1f;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
  }
  
  .btn-primary {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
  }
  
  .form-control {
    border: 2px solid #000000 !important;
  }
}
