/* ========================================
   ADDITIONAL RESPONSIVE IMPROVEMENTS
   For Gallery, Customers, and Homepage
   ======================================== */

/* ==========================
   HOMEPAGE GALLERY SECTION
   ========================== */
.in-gallery {
  padding: 50px 20px;
  margin-top: 50px;
}

.in-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.in-section-title {
  text-align: center;
  margin-bottom: 50px;
}

.in-section-title h2 {
  font-size: 41px;
  font-weight: 600;
  color: #0b0c41;
  margin-bottom: 10px;
  line-height: 1;
}

.in-section-title p {
  font-size: 16px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.in-gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Tablet: 3 columns */
@media (max-width: 1199px) {
  .in-gallery-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Small tablet: 2 columns */
@media (max-width: 991px) {
  .in-gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
  .in-gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Small mobile: 2 columns */
@media (max-width: 479px) {
  .in-gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.in-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  line-height: 0;
  background: transparent;
}

.in-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.in-gallery-item a {
  display: block;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.in-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
}

/* Tablet view - show full images */
@media (min-width: 768px) and (max-width: 991px) {
  .in-gallery-item img {
    background: #f5f5f5;
  }
}

.in-gallery-item:hover img {
  transform: scale(1.05);
}

.in-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11, 12, 65, 0.95), transparent);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.in-gallery-item:hover .in-gallery-overlay {
  transform: translateY(0);
}

.in-gallery-caption h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.in-gallery-caption p {
  color: #f0f0f0;
  font-size: 14px;
  margin: 0;
}


/* ==========================
   ABU CUSTOMERS SECTION
   ========================== */
.abu-customers-section {
  padding: 60px 20px;
  text-align: center;
  margin: 100px 0 100px 0;
}

.abu-customers-section h2 {
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 50px;
}

.customer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.customer-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: left;
}

.customer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.customer-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.customer-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0b0c41;
  margin: 20px 20px 10px;
}

.customer-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 20px 20px;
}


/* ==========================
   CONTACT SECTION (HOMEPAGE)
   ========================== */
.contact {
  padding: 60px 20px;
  background: #0b0c41;
  color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact p {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.contact .btn {
  background: #FBA301;
  color: #fff;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.contact .btn:hover {
  background: #fff;
  color: #0b0c41;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(251, 163, 1, 0.3);
}

/* ==========================
   RESPONSIVE FOR ADDITIONS
   ========================== */

@media (max-width: 767px) {
  .in-gallery,
  .abu-customers-section,
  .contact {
    padding: 20px 15px;
  }
  
  .in-gallery {
    margin-top: 15px;
  }
  
  .in-section-title {
    margin-bottom: 20px;
  }
  
  .in-section-title h2 {
    font-size: 22px;
    line-height: 1.3;
    padding: 0 10px;
  }
  
  .abu-customers-section h2,
  .contact h2 {
    font-size: 26px;
  }
  
  .in-section-title p,
  .contact p {
    font-size: 14px;
  }
  
  .customer-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .in-gallery-item {
    border-radius: 8px;
    overflow: hidden;
  }
  
  .in-gallery-item img {
    border-radius: 8px;
    height: 150px;
    object-fit: cover;
    width: 100%;
  }
  
  .customer-card img {
    height: 180px;
  }
  
  .in-gallery-caption h3 {
    font-size: 11px;
    margin-bottom: 2px;
    line-height: 1.2;
  }
  
  .in-gallery-caption p {
    font-size: 9px;
    display: none;
  }
  
  .in-gallery-overlay {
    padding: 8px;
  }
  
  .customer-card h3 {
    font-size: 18px;
  }
  
  .customer-card p {
    font-size: 13px;
  }
  
  /* Mobile: Show caption always visible (no hover needed) */
  .in-gallery-overlay {
    transform: translateY(0) !important;
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(11, 12, 65, 0.9), transparent);
  }
  
  .in-gallery-caption {
    transform: translateY(0) !important;
  }
  
  .in-gallery-item:hover img {
    transform: scale(1) !important;
  }
}

@media (max-width: 575px) {
  .in-section-title h2,
  .abu-customers-section h2,
  .contact h2 {
    font-size: 20px;
    line-height: 1.3;
  }
  
  .in-gallery-item {
    border-radius: 6px;
  }
  
  .in-gallery-item img {
    border-radius: 6px;
    height: 130px;
    object-fit: cover;
  }
  
  .customer-card img {
    height: 160px;
  }
  
  .in-gallery-caption h3 {
    font-size: 10px;
  }
  
  .customer-card h3 {
    font-size: 16px;
  }
  
  .contact .btn {
    padding: 12px 30px;
    font-size: 14px;
  }
  
  /* Mobile: Show caption always visible (no hover needed) */
  .in-gallery-overlay {
    transform: translateY(0) !important;
    opacity: 1 !important;
    padding: 6px;
  }
  
  .in-gallery-caption {
    transform: translateY(0) !important;
  }
}

/* ==========================
   ANIMATION CLASSES
   ========================== */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation delays */
.animate-up:nth-child(1) { animation-delay: 0.1s; }
.animate-up:nth-child(2) { animation-delay: 0.2s; }
.animate-up:nth-child(3) { animation-delay: 0.3s; }
.animate-up:nth-child(4) { animation-delay: 0.4s; }
.animate-up:nth-child(5) { animation-delay: 0.5s; }
.animate-up:nth-child(6) { animation-delay: 0.6s; }
.animate-up:nth-child(7) { animation-delay: 0.7s; }
.animate-up:nth-child(8) { animation-delay: 0.8s; }

/* ==========================
   END OF ADDITIONS
   ========================== */


/* ==========================
   TABLET SPECIFIC FIXES FOR GAPS
   ========================== */
@media (min-width: 768px) and (max-width: 991px) {
  /* Fix for in-gallery section */
  .in-gallery {
    padding: 50px 15px;
  }
  
  .in-container {
    padding: 0 10px;
  }
  
  .in-gallery-container {
    gap: 15px;
  }
  
  .in-gallery-item {
    background: #f5f5f5;
    border-radius: 10px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
  }
  
  .in-gallery-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .in-gallery-item img {
    border-radius: 10px;
    background: transparent;
  }
  
  /* Fix for customer cards */
  .customer-cards {
    gap: 15px;
  }
  
  .customer-card {
    background: #fff;
  }
  
  .customer-card img {
    object-fit: contain;
    background: #f5f5f5;
    height: auto;
    min-height: 180px;
    max-height: 250px;
  }
}
