/* ----------------------------
   Responsive Design
----------------------------- */

/* Up to 992px (Tablets & below) */
@media (max-width: 992px) {
  .creative-img {
    height: 60vh;
  }

  .gallery-grid {
    display: none;
  }

  .gallery-carousel {
    display: block;
  }

  .gallery-carousel-custom .owl-nav button.owl-prev {
    left: -15px;
  }

  .gallery-carousel-custom .owl-nav button.owl-next {
    right: -15px;
  }
}

/* Up to 768px (Tablets & large mobiles) */
@media (max-width: 768px) {
  /* Typography */
  .section-title {
    font-size: 2rem; /* default for mobile */
  }

  /* Logo & footer */
  .temple-logo {
    font-size: 1.5rem;
  }

  .footer-content {
    padding: 3rem 0 1.5rem;
  }

  .social-btn {
    width: 40px;
    height: 40px;
  }

  /* Cards */
  .card-image {
    width: 120px;
    height: 120px;
  }

  .service-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
    transform: none;
  }

  .service-card:hover {
    transform: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-medium);
  }

  /* Show features and buttons by default on mobile */
  .service-card .service-features li,
  .service-card .learn-more-btn {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .learn-more-btn {
    margin-top: 1rem;
  }

  .service-icon::before {
    transform: scale(1);
  }

  /* Stats section */
  .stats-section {
    margin-top: 2rem;
    padding: 2rem 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Project cards */
  .project-card {
    margin: 15px 10px;
    padding: 30px 20px;
    height: auto;
    min-height: 280px;
  }

  .upcoming-projects {
    padding: 60px 0;
  }

  /* Donate section */
  .donate-card {
    grid-template-columns: 1fr;
  }

  .donate-info-section {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .donate-info-section,
  .bank-details-section {
    padding: 30px 25px;
  }

  /* Gallery adjustments */
  .filter-dropdown-container {
    flex-direction: column;
    gap: 10px;
  }

  .filter-dropdown {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .gallery-item img {
    height: 200px;
  }

  .gallery-carousel-custom .owl-nav button.owl-next,
  .gallery-carousel-custom .owl-nav button.owl-prev {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }

  .gallery-carousel-custom .owl-nav button.owl-prev {
    left: -10px;
  }

  .gallery-carousel-custom .owl-nav button.owl-next {
    right: -10px;
  }
}

/* Up to 576px (Small mobiles) */
@media (max-width: 576px) {
  /* Services */
  .service-card {
    padding: 1.25rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-icon i {
    font-size: 1.75rem;
  }

  /* Typography */
  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  /* Gallery */
  .gallery-section {
    padding: 60px 0;
  }

  .filter-dropdown-container {
    margin-bottom: 30px;
  }

  .slide-indicator {
    flex-direction: column;
    gap: 8px;
  }

  .slide-counter {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .progress-bar-custom {
    width: 80px;
  }

  .creative-img {
    height: 50vh;
  }

  .founder-img {
    max-height: 250px; 
  }
}

/* Between 769px and 1024px (Tablets landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
  .service-card {
    padding: 1.25rem;
  }
}

/* Touch device detection */
@media (hover: none) and (pointer: coarse) {
  .service-card .service-features li,
  .service-card .learn-more-btn {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Tap highlight feedback */
  .service-card {
    -webkit-tap-highlight-color: rgba(242, 1, 142, 0.1);
    tap-highlight-color: rgba(242, 1, 142, 0.1);
  }

  .learn-more-btn {
    -webkit-tap-highlight-color: rgba(242, 1, 142, 0.2);
    tap-highlight-color: rgba(242, 1, 142, 0.2);
  }
}
