/* ==========================================================================
   PT. FARCLEAN INDONESIA - Official Custom Stylesheet
   Theme: Ultra-Clean Precision Cleanroom & Industrial High-Tech
   ========================================================================== */

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

:root {
  --fc-primary: #0067FF;
  --fc-primary-hover: #0052CC;
  --fc-primary-light: #EBF4FF;
  --fc-navy: #0B2545;
  --fc-navy-dark: #071526;
  --fc-cyan: #00D2FF;
  --fc-cyan-glow: rgba(0, 210, 255, 0.35);
  --fc-slate-bg: #F8FAFC;
  --fc-card-bg: #FFFFFF;
  --fc-border: #E2E8F0;
  --fc-border-subtle: #EDF2F7;
  --fc-text-main: #0F172A;
  --fc-text-muted: #64748B;
  --fc-whatsapp: #25D366;
  --fc-whatsapp-dark: #1EBE5D;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--fc-text-main);
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Cleanroom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
  border: 2px solid #F1F5F9;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Hide scrollbar for clean horizontal mobile swipe */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Selection Highlight */
::selection {
  background: #0067FF;
  color: #FFFFFF;
}

/* Mobile-Friendly Input Zoom Prevention on iOS */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Typography Enhancements */
.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism & Clean Surfaces */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-card-dark {
  background: rgba(11, 37, 69, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

/* Cleanroom Grid Pattern Background */
.bg-cleanroom-grid {
  background-size: 28px 28px;
  background-image: 
    linear-gradient(to right, rgba(0, 103, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 103, 255, 0.04) 1px, transparent 1px);
}

.bg-cleanroom-grid-dark {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(0, 210, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
}

/* Glowing Elements & Badges */
.glow-primary {
  box-shadow: 0 0 25px rgba(0, 103, 255, 0.25);
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.35);
}

.badge-pulse {
  position: relative;
}
.badge-pulse::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(0, 103, 255, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 103, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 103, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 103, 255, 0);
  }
}

/* Smooth Card Hover Interactions */
.cleanroom-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) and (pointer: fine) {
  .cleanroom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(11, 37, 69, 0.12), 0 0 1px 1px rgba(0, 103, 255, 0.2);
  }
}

/* Floating Action Button (WhatsApp) - Extra Large & Prominent */
.whatsapp-float-wrap {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.whatsapp-float {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #1EBE5D);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.48);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  pointer-events: auto;
  animation: wa-pulse-ring 2.5s infinite;
}

@media (min-width: 640px) {
  .whatsapp-float-wrap {
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    right: 28px;
  }
  .whatsapp-float {
    width: 74px;
    height: 74px;
  }
}

.whatsapp-float:hover, .whatsapp-float:active {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.65);
}

@keyframes wa-pulse-ring {
  0% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.48), 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.48), 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.48), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-label {
  background: rgba(11, 37, 69, 0.95);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(11, 37, 69, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 210, 255, 0.3);
  white-space: nowrap;
  pointer-events: auto;
  transition: all 0.3s ease;
  display: none;
}

@media (min-width: 768px) {
  .whatsapp-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 20px;
  z-index: 980;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Client Logo Marquee */
.marquee-wrapper {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 1.5rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 2rem;
  animation: scroll-marquee 36s linear infinite;
}
.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scroll-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Modal Animations */
.modal-overlay {
  transition: opacity 0.25s ease-out;
}
.modal-dialog {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.94) translateY(10px);
}
.modal-open .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Touch Active State for Mobile Buttons */
button:active, a:active {
  opacity: 0.92;
}

/* Tab active indicator */
.tab-active {
  background-color: #0067FF !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(0, 103, 255, 0.3);
}

/* Interactive Calculator Active Radio/Checkbox */
.calc-option.selected {
  border-color: #0067FF;
  background-color: #EFF6FF;
  box-shadow: 0 0 0 1px #0067FF;
}

/* Cleanroom ISO Indicator Glows */
.iso-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.iso-pill-a {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}
.iso-pill-b {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}
.iso-pill-c {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}
.iso-pill-d {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

/* Image Aspect and Shimmer */
.img-shimmer {
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Print Stylesheet for RFQ Quotation */
@media print {
  body {
    background: #FFF !important;
    color: #000 !important;
  }
  .no-print, header, footer, .whatsapp-float, .back-to-top {
    display: none !important;
  }
  .modal-dialog {
    box-shadow: none !important;
    border: 1px solid #CCC !important;
  }
}
