/* Gallery Page Styles (rewritten for gallery.html) */

#galleryContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, #f8fafc 60%, #fff7ed 100%);
  border-radius: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(249,115,22,0.07);
  transition: box-shadow 0.3s;
}
@media (max-width: 1024px) {
  #galleryContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    border-radius: 1.5rem;
  }
}
@media (max-width: 640px) {
  #galleryContainer {
    grid-template-columns: 1fr;
    gap: 1rem;
    border-radius: 1rem;
    padding: 1rem 0;
  }
}

.gallery-item {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
  cursor: pointer;
  display: flex;
  align-items: stretch;
  border: 2px solid transparent;
  position: relative;
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  pointer-events: none;
  transition: box-shadow 0.3s, border 0.3s;
}
.gallery-item:hover {
  transform: translateY(-8px) scale(1.04) rotate(-1deg);
  box-shadow: 0 16px 40px rgba(249,115,22,0.18);
  border: 2px solid #f97316;
  z-index: 2;
}
.gallery-item:hover::before {
  box-shadow: 0 0 0 4px rgba(249,115,22,0.10);
  border: 2px solid #fb923c;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 1.2rem;
  transition: transform 0.4s, opacity 0.6s cubic-bezier(0.4,0,0.2,1);
  display: block;
  opacity: 0;
  animation: fadeInImg 1.2s ease forwards;
}
@keyframes fadeInImg {
  to { opacity: 1; }
}
.gallery-item:hover .gallery-img {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(249,115,22,0.10);
}
@media (max-width: 640px) {
  .gallery-img {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

/* Pagination */
.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.gallery-pagination button {
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(249,115,22,0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  outline: none;
  letter-spacing: 0.03em;
}
.gallery-pagination button:disabled {
  background: #e5e7eb;
  color: #bdbdbd;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.gallery-pagination button:not(:disabled):hover {
  background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 16px rgba(249,115,22,0.18);
}
#pageIndicator {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f97316;
  background: #fff7ed;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 1px 4px rgba(249,115,22,0.07);
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .gallery-pagination {
    gap: 0.5rem;
  }
  .gallery-pagination button {
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
  }
  #pageIndicator {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, rgba(0,0,0,0.95) 70%, rgba(249,115,22,0.10) 100%);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeInModal 0.5s cubic-bezier(0.4,0,0.2,1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border-radius: 1rem;
  justify-content: center;
}
.modal-img {
  width: 80vw;
  max-width: 80vw;
  max-height: 80vh;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.5s;
  background: #fff;
}
@media (max-width: 900px) {
  .modal-img {
    width: 95vw;
    max-width: 95vw;
    max-height: 80vw;
  }
}
.modal-img:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 32px 64px rgba(249,115,22,0.18);
}
.modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: white;
  font-size: 2.2rem;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s, color 0.3s;
  z-index: 10002;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover, .modal-close:focus {
  background: #f97316;
  color: #fff;
  transform: scale(1.1) rotate(10deg);
}
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.modal-nav:active, .modal-nav:focus, .modal-nav:hover {
  background: #f97316;
  color: #fff;
  transform: scale(1.1);
}
.modal-prev {
  left: -3.5rem;
}
.modal-next {
  right: -3.5rem;
}
@media (max-width: 900px) {
  .modal-prev {
    left: -2.2rem;
  }
  .modal-next {
    right: -2.2rem;
  }
  .modal-close {
    top: -2rem;
    font-size: 1.7rem;
    padding: 0.4rem 0.9rem;
  }
}
@media (max-width: 600px) {
  .modal-nav {
    font-size: 1.3rem;
    width: 1.8rem;
    height: 1.8rem;
  }
  .modal-prev {
    left: 0.2rem;
  }
  .modal-next {
    right: 0.2rem;
  }
  .modal-close {
    top: -1.5rem;
    font-size: 1.2rem;
    padding: 0.3rem 0.7rem;
  }
}
@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }
  .modal-img {
    max-height: 60vh;
  }
  .modal-close {
    top: -30px;
    font-size: 1.5rem;
  }
}

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Responsive Call Now Button Styles */
#callNowBtn {
  position: fixed;
  bottom: 92px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f97316 60%, #ffb347 100%);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 24px 0 rgba(249,115,22,0.25), 0 1.5px 6px 0 rgba(0,0,0,0.10);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: callnow-pulse 1.5s infinite;
  border: none;
  outline: none;
  font-size: 0;
}
#callNowBtn:active {
  transform: scale(0.96);
}
#callNowBtn .callnow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
#callNowBtn svg {
  width: 32px;
  height: 32px;
  color: #fff;
  filter: drop-shadow(0 0 6px #ffb34788);
}
@keyframes callnow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249,115,22,0.5), 0 4px 24px 0 rgba(249,115,22,0.25);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(249,115,22,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249,115,22,0.5), 0 4px 24px 0 rgba(249,115,22,0.25);
  }
}
@media (min-width: 768px) {
  #callNowBtn {
    display: none !important;
  }
}
@media (max-width: 767px) {
  #callNowBtn {
    display: flex;
  }
}
