/* ==========================================================================
   Royal Marketing Networks - Premium Industrial Plastics & Moulding Styles
   Brand Theme: Royal Blue (#0284c7, #0072ce), Sky Light Blue (#38bdf8, #e0f2fe),
   Clean White (#ffffff), Slate Navy (#0f172a), and Bee Gold Accent (#f59e0b)
   ========================================================================== */

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

:root {
  --primary-blue: #0284c7;
  --primary-dark-blue: #0369a1;
  --primary-deep: #075985;
  --light-blue: #38bdf8;
  --light-blue-bg: #f0f9ff;
  --light-blue-tint: #e0f2fe;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --dark-navy: #0f172a;
  --dark-card: #1e293b;
  --dark-surface: #111827;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --whatsapp-color: #25d366;
  --whatsapp-dark: #128c7e;

  --shadow-subtle: 0 4px 20px -2px rgba(2, 132, 199, 0.08);
  --shadow-card: 0 10px 30px -4px rgba(2, 132, 199, 0.12);
  --shadow-hover: 0 20px 40px -6px rgba(2, 132, 199, 0.22);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.35);

  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  color: var(--text-primary);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0369a1;
}

/* Utility Animations */
@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(2, 132, 199, 0);
  }
}

@keyframes pulseWa {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes shimmerEffect {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

/* Floating Glassy Blue Pill Navbar */
.floating-navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1rem 0;
  pointer-events: none;
}

.pill-navbar {
  pointer-events: auto;
  background: rgba(224, 242, 254, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 35px -6px rgba(2, 132, 199, 0.18), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-radius: 9999px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-navbar.scrolled {
  background: rgba(210, 235, 253, 0.94);
  box-shadow: 0 16px 42px -6px rgba(2, 132, 199, 0.28);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

/* Nav Link Hover & Active Underline */
.nav-link-custom {
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  padding: 0.4rem 0.2rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: #0284c7;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: #0284c7;
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 100%;
}

/* Smooth & Slow Mobile Dropdown Menu */
.mobile-dropdown-wrapper {
  pointer-events: auto;
  max-width: 1200px;
  margin: 0.6rem auto 0;
  position: relative;
  z-index: 60;
}

.mobile-dropdown-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  transform-origin: top center;
  transition: max-height 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  border-radius: 1.5rem;
  background: rgba(240, 249, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(186, 230, 253, 0.85);
  box-shadow: 0 20px 45px rgba(2, 132, 199, 0.22);
}

.mobile-dropdown-menu.open {
  max-height: 550px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(224, 242, 254, 0.9);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Gradient Backgrounds */
.gradient-blue-bg {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}

.gradient-mesh {
  background-color: #ffffff;
  background-image:
    radial-gradient(at 10% 15%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 85%, rgba(2, 132, 199, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(224, 242, 254, 0.4) 0px, transparent 65%);
}

/* Section Tag / Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Primary Brand Gradient Text */
.text-gradient-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-light {
  background: linear-gradient(135deg, #38bdf8 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-royal {
  background: linear-gradient(135deg, #0284c7 0%, #0072ce 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-royal:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-royal-outline {
  background: rgba(255, 255, 255, 0.9);
  color: #0284c7;
  font-weight: 600;
  border: 1.5px solid #0284c7;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-royal-outline:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
  color: #ffffff;
}

/* Card Interactive Hover Effects */
.hover-lift {
  transition: var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Swiper Controls Custom Styling */
.swiper-btn-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
}

.swiper-btn-nav:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: scale(1.08);
}

/* WhatsApp Floating Widget & Interactive Card */
.whatsapp-widget-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}

.whatsapp-float-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: var(--transition-smooth);
  animation: pulseWa 2.8s infinite;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  background: #20ba5a;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-badge-online {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #10b981;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
}

.whatsapp-chat-popup {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 340px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(2, 132, 199, 0.1);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.whatsapp-chat-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-popup-header {
  background: linear-gradient(135deg, #075985 0%, #0284c7 100%);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.wa-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.wa-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.wa-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.wa-popup-body {
  background: #f8fafc;
  padding: 18px;
}

.wa-bubble-msg {
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 14px 14px 14px 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  color: #1e293b;
  line-height: 1.5;
  border: 1px solid #e2e8f0;
}

.wa-popup-footer {
  padding: 14px 18px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.wa-start-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.925rem;
  padding: 12px 18px;
  border-radius: 9999px;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.wa-start-chat-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Category Filter Tags */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  border: 1px solid #bae6fd;
  background: #ffffff;
  color: #0369a1;
  cursor: pointer;
}

.filter-btn:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* Modal Styling */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Notification Toast */
.toast-notice {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-widget-container {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-chat-popup {
    width: 300px;
    bottom: 74px;
    right: 0;
  }
}