/* Custom styles for Jagannath Engineering & Equipment */

/* Alpine.js x-cloak to prevent FOUC */
[x-cloak] { 
    display: none !important; 
}

/* Smooth scrolling is handled by Lenis */
html {
  scroll-behavior: auto;
}

/* Hide scrollbar for Lenis */
body::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-top: 64px; /* Add padding to account for fixed header */
}

/* Mobile menu styles */
.mobile-menu-button {
  display: block;
  z-index: 50;
}

.mobile-menu {
  position: fixed;
  top: 64px; /* Height of the header */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Ensure content doesn't shift when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Custom animations for GSAP */
.hero-content {
  opacity: 0;
  transform: translateY(50px);
}

.counter {
  font-variant-numeric: tabular-nums;
}

/* Mobile menu animations */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Back to top button */
.back-to-top {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

/* Form animations */
.form-field {
  transition: all 0.3s ease;
}

.form-field:focus-within {
  transform: translateY(-2px);
}

/* Card hover effects */
.service-card,
.project-card {
  transition: all 0.3s ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-8px);
}

/* Sticky header animation */
.header-scroll {
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* GLightbox customizations */
.glightbox-clean .gclose {
  color: white;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: white;
  padding: 8px;
  text-decoration: none;
  transition: top 0.3s;
  z-index: 100;
}

.skip-link:focus {
  top: 6px;
}

/* Focus styles */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}