/* Responsive Design for Aquarium Shop Template */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .price-plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    padding-left: 2rem;
    padding-right: 1rem;
    text-align: left;
  }
  
  .timeline-item::before {
    left: 20px;
    transform: translateX(-50%);
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .services-grid,
  .features-grid,
  .team-grid,
  .price-plan-grid,
  .casestudy-grid,
  .career-grid,
  .coreinfo-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .timeline {
    position: relative;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    padding-left: 2rem;
    padding-right: 1rem;
    text-align: left;
  }
  
  .timeline-item::before {
    left: 20px;
    transform: translateX(-50%);
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .hero-section {
    min-height: 60vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  /* Single column layout for mobile */
  .services-grid,
  .features-grid,
  .team-grid,
  .price-plan-grid,
  .casestudy-grid,
  .career-grid,
  .coreinfo-grid,
  .blog-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* Mobile navigation */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 0.9rem !important;
  }
  
  .navbar-nav .nav-link {
  font-size: 10px;
    padding: 0.5rem 1rem;
    text-align: center;
  }
  
  /* Mobile cards */
  .service-card,
  .team-card,
  .price-plan-card,
  .casestudy-item,
  .career-item,
  .coreinfo-item,
  .blog-item {
    margin-bottom: 1rem;
  }
  
  .service-card-content,
  .team-card,
  .price-plan-card,
  .casestudy-content,
  .career-item,
  .coreinfo-item,
  .blog-content {
    padding: 1rem;
  }
  
  /* Mobile timeline */
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1rem;
    text-align: left;
  }
  
  .timeline-item::before {
    left: 15px;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  /* Mobile contact form */
  .contact-form {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.5rem;
    font-size: 14px;
  }
  
  .btn-submit {
    width: 100%;
    padding: 0.75rem;
  }
  
  /* Mobile FAQ */
  .faq-question {
    padding: 1rem;
    font-size: 14px;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 14px;
  }
  
  /* Mobile footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 1.5rem;
  }
  
  /* Mobile images */
  .team-card img {
    width: 120px;
    height: 120px;
  }
  
  .about-feature i,
  .feature-item i,
  .coreinfo-item i {
    font-size: 2rem;
  }
  
  .process-item .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Hide decorative elements on mobile */
  .hero-shape {
    display: none;
  }
  
  /* Mobile-specific text sizes */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }
  h4 { font-size: 1rem; }
  
  p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Mobile spacing adjustments */
  .mb-3 { margin-bottom: 1rem; }
  .mb-4 { margin-bottom: 1.5rem; }
  .mb-5 { margin-bottom: 2rem; }
  
  .mt-3 { margin-top: 1rem; }
  .mt-4 { margin-top: 1.5rem; }
  .mt-5 { margin-top: 2rem; }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 50vh;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-size: cover;
  }
  
  .service-card img,
  .team-card img,
  .casestudy-item img,
  .blog-item img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .team-card:hover,
  .price-plan-card:hover,
  .casestudy-item:hover,
  .career-item:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .about-feature:hover,
  .feature-item:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-submit:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  /* Increase touch targets */
  .navbar-nav .nav-link {
  font-size: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .faq-question {
    min-height: 44px;
  }
  
  .btn-submit {
    min-height: 44px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* Keep light theme for aquarium shop as it's more appropriate */
  /* This can be uncommented if dark mode is needed in the future */
  /*
  :root {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --gray: #a0a0a0;
    --dark-gray: #e0e0e0;
  }
  */
}

/* Print media adjustments */
@media print {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .services-grid,
  .features-grid,
  .team-grid,
  .price-plan-grid,
  .casestudy-grid,
  .career-grid,
  .coreinfo-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .gallery-grid {
    display: none;
  }
  
  .contact-form {
    border: 1px solid #ccc;
    background: white;
  }
  
  .hero-shape,
  .timeline::before,
  .timeline-item::before {
    display: none;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-shape {
    animation: none;
  }
  
  .fade-in,
  .slide-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #000080;
    --primary-teal: #008080;
    --primary-aqua: #0066cc;
    --primary-coral: #cc0000;
    --primary-kelp: #006600;
  }
  
  .service-card,
  .team-card,
  .price-plan-card,
  .casestudy-item,
  .career-item,
  .coreinfo-item,
  .blog-item,
  .about-feature,
  .feature-item,
  .contact-form,
  .faq-item {
    border: 2px solid var(--dark-gray);
  }
} 