/* Responsive Stylesheet for Virtual Pension Scenario Studio */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar-brand {
    font-size: 12px !important;
    font-size: 1.25rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem 1rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Disable Swiper autoplay and effects on mobile */
@media (max-width: 767.98px) {
  .swiper-wrapper {
    transition: none !important;
  }
  
  .swiper-slide {
    transform: none !important;
  }
  
  .swiper-pagination {
    position: static !important;
    margin-top: 1rem;
  }
  
  /* Disable animations on mobile for better performance */
  .service-card:hover,
  .feature-card:hover,
  .blog-card:hover,
  .price-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .navbar {
    box-shadow: 0 1px 8px rgba(0,0,0,0.12);
  }
  
  .service-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .gallery-section {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1.5rem 0;
    break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .feature-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

/* Accessibility - Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .swiper-wrapper,
  .swiper-slide {
    transition: none !important;
    transform: none !important;
  }
  
  .service-card,
  .feature-card,
  .blog-card,
  .price-card,
  .btn-primary {
    transition: none !important;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .blog-card:hover,
  .price-card:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
  :root {
    --background-light: #1A202C;
    --text-primary: #E2E8F0;
    --text-secondary: #A0AEC0;
  }
  
  .navbar {
    background: var(--background-dark);
  }
  
  .service-card,
  .price-card,
  .feature-card,
  .contact-form {
    background: var(--neutral-dark);
    color: var(--text-primary);
  }
}

/* Container adjustments for better spacing */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Form responsive adjustments */
@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; /* Prevents zoom on iOS */
  }
}

/* Button responsive sizes */
@media (max-width: 575.98px) {
  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Hero section image responsive behavior */
@media (max-width: 767.98px) {
  .hero-image img {
    max-width: 100%;
    height: auto;
  }
}

/* Team section responsive grid */
@media (max-width: 575.98px) {
  .team-member {
    margin-bottom: 3rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .team-member {
    margin-bottom: 2.5rem;
  }
}

/* FAQ responsive adjustments */
@media (max-width: 767.98px) {
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

/* Blog grid responsive behavior */
@media (max-width: 575.98px) {
  .blog-card {
    margin-bottom: 1.5rem;
  }
}

/* Service features list responsive */
@media (max-width: 575.98px) {
  .service-features {
    font-size: 0.9rem;
  }
  
  .service-features li {
    padding: 0.4rem 0;
  }
}

/* Price display responsive */
@media (max-width: 575.98px) {
  .service-price {
    font-size: 2rem;
  }
  
  .price-card .service-price {
    font-size: 2.25rem;
  }
} 