/**
 * Sentosa Jaya Las - Custom Stylesheet
 * Industrial Modern & Corporate Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --color-primary: #0F172A;
  --color-primary-light: #1E293B;
  --color-accent: #2563EB;
  --color-accent-hover: #1D4ED8;
  --color-accent-light: #38BDF8;
  --color-accent-subtle: #E0F2FE;
  --color-wa: #25D366;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1E293B;
}

/* Font Heading */
.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0F172A;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563EB;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563EB, #38BDF8, #60A5FA);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* Navbar Scrolled State */
.navbar-scrolled {
  background-color: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

/* Navbar active indicator */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #38BDF8;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: #38BDF8 !important;
  font-weight: 600;
}

/* Hero Background and Gradient Overlays */
.hero-gradient-overlay {
  background: linear-gradient(
    135deg,
    rgba(11, 19, 43, 0.95) 0%,
    rgba(15, 23, 42, 0.9) 50%,
    rgba(30, 41, 59, 0.82) 100%
  );
}

.hero-mesh {
  background-image: 
    radial-gradient(at 10% 20%, rgba(37, 99, 235, 0.18) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(56, 189, 248, 0.15) 0px, transparent 50%);
}

/* Industrial Grid Pattern */
.bg-industrial-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.bg-industrial-grid-dark {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

/* Glassmorphism Classes */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.15);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Glow effects */
.glow-accent {
  box-shadow: 0 0 35px -5px rgba(37, 99, 235, 0.35);
}

.glow-subtle {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Animation Classes */
.reveal-init {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.reveal-fade-up {
  transform: translateY(30px);
}
.reveal-init.reveal-fade-left {
  transform: translateX(-30px);
}
.reveal-init.reveal-fade-right {
  transform: translateX(30px);
}
.reveal-init.reveal-zoom {
  transform: scale(0.94);
}

.reveal-init.reveal-visible {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* WhatsApp Floating Button */
.wa-float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  background-color: var(--color-wa);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.wa-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--color-wa);
  animation: wa-pulse 2.2s infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #0F172A;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.25s ease;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #0F172A;
}

.wa-float-btn:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Lightbox Modal */
#lightbox-modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#lightbox-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
#lightbox-modal .lightbox-content {
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

/* FAQ Accordion Transitions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
}
.faq-item.active .faq-content {
  max-height: 400px;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: #2563EB;
  color: #FFFFFF;
}

/* Carousel Testimonials */
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Portfolio Filter Transition */
.portfolio-item {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-item.hidden-item {
  display: none !important;
  opacity: 0;
  transform: scale(0.85);
}

/* Back To Top Button */
#back-to-top {
  position: fixed;
  bottom: 6.25rem;
  right: 2.25rem;
  z-index: 890;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Smooth Badge Pulse */
.badge-pulse {
  position: relative;
}
.badge-pulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #38BDF8;
  animation: dot-pulse 1.8s infinite;
}
@keyframes dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

