/* Scroll-reveal animations (replaces WOW.js + animate.css) */
.wow {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.wow.fadeInDown {
  transform: translateY(-30px);
}

.wow.fadeInUp {
  transform: translateY(30px);
}

.wow.zoomIn {
  transform: scale(0.85);
}

.wow.animated {
  opacity: 1;
  transform: none;
}

@keyframes shake {
  from, to { transform: translate3d(0, 0, 0); }
  10%, 30%, 50%, 70%, 90% { transform: translate3d(-10px, 0, 0); }
  20%, 40%, 60%, 80% { transform: translate3d(10px, 0, 0); }
}

.shake.animated {
  animation: shake 0.8s;
}

@keyframes tada {
  from { transform: scale3d(1, 1, 1); }
  10%, 20% { transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); }
  30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }
  40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }
  to { transform: scale3d(1, 1, 1); }
}

.tada.animated {
  animation: tada 0.8s;
}

/* Lightbox (replaces Nivo Lightbox) */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 85%;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

/* Disable fixed-background parallax on small screens (poor support on iOS Safari) */
@media (max-width: 768px) {
  #hero-area,
  #features {
    background-attachment: scroll;
  }
}

/* Full-screen mobile menu */
@media (max-width: 991.98px) {
  /* Neutralize Bootstrap's height-based collapse animation; we use our own fade */
  #main-navbar.collapsing {
    transition: none;
    height: auto !important;
  }

  #main-navbar {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #212529;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  #main-navbar.show {
    opacity: 1;
    visibility: visible;
  }

  #main-navbar .navbar-nav {
    width: 100%;
    align-items: center;
  }

  #main-navbar .nav-item {
    width: 100%;
    text-align: center;
    padding: 0 24px;
  }

  #main-navbar .nav-link {
    font-size: 28px !important;
    padding: 18px 0 !important;
    margin: 0 !important;
  }

  /* Keep the toggle button above the full-screen menu and turn it into a close (X) icon when open */
  .navbar-toggler {
    position: relative;
    z-index: 1060;
  }

  .navbar-toggler[aria-expanded="true"] .lnr-menu {
    display: none;
  }

  .navbar-toggler[aria-expanded="true"]::before {
    content: "\00d7";
    display: block;
    width: 24px;
    line-height: 20px;
    font-size: 28px;
    color: #fff;
  }
}

/* Back-to-top fade (replaces jQuery fadeIn/fadeOut) */
.back-to-top {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Page loader fade-out (replaces jQuery fadeOut) */
#loader {
  opacity: 1;
  transition: opacity 0.4s ease;
}

#loader.loaded {
  opacity: 0;
  pointer-events: none;
}

/* #portfolio is a Bootstrap .row nested inside another .row's column;
   without this, its own negative gutter margin stacks on top of the
   outer row's, pushing cards past the container's edge (visible on
   mobile as cards not aligned/centered with the rest of the page). */
#portfolio {
  margin-left: 0;
  margin-right: 0;
}

/* Services Catalog Styles */
.service-pillar {
  margin-bottom: 40px;
}

.service-pillar-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #61D2B4;
  margin-bottom: 30px;
  position: relative;
}

.service-pillar .item-boxes p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Portfolio Custom Styles */
.portfolio-item {
  position: relative;
  margin-bottom: 30px;
}

.portfolio-content {
  background: #fff;
  padding: 20px;
  text-align: left;
  border: 1px solid #eee;
  border-top: none;
  transition: all 0.3s ease;
}

.portfolio-content h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  min-height: 40px;
}

.portfolio-content p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  min-height: 60px;
}

.portfolio-item:hover .portfolio-content {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.shot-item {
  position: relative;
  overflow: hidden;
}

.shot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-content h5 {
    font-size: 14px;
    min-height: auto;
  }
  
  .portfolio-content p {
    font-size: 12px;
    min-height: auto;
  }
}
