/* =====================================================
   BPOXCEL Unified Stylesheet
   ===================================================== */

* {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* Base header transitions */
#navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 1024px) {
  #navbar {
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  #navbar .max-w-7xl {
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  #navbar img {
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  /* Navbar scroll style with frosted glass */
  .navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  }
  .navbar-scrolled .max-w-7xl {
    height: 68px !important;
  }
  .navbar-scrolled img {
    height: 60px !important;
  }
}

@media (max-width: 1023px) {
  /* On mobile, scrolled navbar is simple white with shadow (no layout recalculations or blur processing) */
  .navbar-scrolled {
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
}

/* Professional Fade-in/Up on Load (Hero elements) */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up { animation: fadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }
.delay-5 { animation-delay: 0.60s; }

/* Scroll Reveal Utilities */
.reveal {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal-up { transform: translateY(16px); }
.reveal-down { transform: translateY(-16px); }
.reveal-left { transform: translateX(-16px); }
.reveal-right { transform: translateX(16px); }
.reveal-scale { transform: scale(0.98); }

.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

@media (min-width: 1024px) {
  .reveal {
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-up { transform: translateY(32px); }
  .reveal-down { transform: translateY(-32px); }
  .reveal-left { transform: translateX(-32px); }
  .reveal-right { transform: translateX(32px); }
  .reveal-scale { transform: scale(0.96); }
}

/* Sequential Staggered Delays for Lists/Grids - disabled on mobile, enabled on desktop */
@media (max-width: 1023px) {
  .delay-100, .delay-150, .delay-200, .delay-250, .delay-300, .delay-350, .delay-400, .delay-450, .delay-500, .delay-600, .delay-700 {
    transition-delay: 0ms !important;
  }
}

@media (min-width: 1024px) {
  .delay-100 { transition-delay: 100ms; }
  .delay-150 { transition-delay: 150ms; }
  .delay-200 { transition-delay: 200ms; }
  .delay-250 { transition-delay: 250ms; }
  .delay-300 { transition-delay: 300ms; }
  .delay-350 { transition-delay: 350ms; }
  .delay-400 { transition-delay: 400ms; }
  .delay-450 { transition-delay: 450ms; }
  .delay-500 { transition-delay: 500ms; }
  .delay-600 { transition-delay: 600ms; }
  .delay-700 { transition-delay: 700ms; }
}

/* Hero Animation Keyframes - desktop only for performance */
@media (min-width: 768px) {
  @keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  .animate-float-slow {
    animation: floatSlow 6s ease-in-out infinite;
  }

  @keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .animate-spin-slow {
    animation: spinSlow 30s linear infinite;
  }
}

/* Card hover lift - updated to be smoother and use modern bezier curves */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -5px rgba(8, 145, 178, 0.12), 0 8px 16px -8px rgba(30, 58, 95, 0.08);
}

/* Hero gradient blob */
.hero-blob {
  background: radial-gradient(ellipse at 70% 50%, rgba(6, 182, 212, 0.12) 0%, rgba(30, 58, 95, 0.06) 60%, transparent 80%);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0891b2 0%, #1e3a5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section divider accent */
.section-accent::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #0891b2, #1e3a5f);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* Smooth link underline */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0891b2, #1e3a5f);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Mobile nav overlay */
@media (max-width: 767px) {
  #nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }
}
#nav-menu.open { display: flex; }

/* Form focus */
.form-input:focus {
  outline: none;
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

/* WhatsApp button */
.wa-btn { background: #25d366; }
.wa-btn:hover { background: #1ebe5d; }
.wa-green { background: #25d366; transition: background 0.3s ease; }
.wa-green:hover { background: #1ebe5d; }

/* Landing Page Specific: Industry chip */
.industry-card {
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.industry-card:hover {
  background: linear-gradient(135deg, #0891b2, #1e3a5f);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.18);
}

/* Landing Page Specific: Service icon circle */
.icon-circle {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(30, 58, 95, 0.08));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}
.icon-circle svg {
  width: 26px;
  height: 26px;
}

/* Landing Page Specific: Apply Job CTA button */
.apply-job-btn {
  background: linear-gradient(135deg, #0891b2 0%, #1e3a5f 100%);
  transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.apply-job-btn:hover {
  opacity: 0.92;
  box-shadow: 0 12px 32px rgba(8, 145, 178, 0.28);
  transform: translateY(-2px);
}

/* Jobs Page Specific: Job badge tags & statuses */
.job-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.badge-open   { background: #dcfce7; color: #16a34a; }
.badge-urgent { background: #fef3c7; color: #d97706; }
.badge-hot    { background: #fee2e2; color: #dc2626; }

.apply-btn {
  background: linear-gradient(135deg, #0891b2, #1e3a5f);
  transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.apply-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(8,145,178,0.22);
}

.job-number {
  background: linear-gradient(135deg, rgba(8,145,178,0.10), rgba(30,58,95,0.07));
  border: 1px solid rgba(8,145,178,0.20);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0891b2, #1e3a5f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3), 0 2px 4px rgba(30, 58, 95, 0.1);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  outline: none;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.45), 0 4px 8px rgba(30, 58, 95, 0.2);
}
.back-to-top:active {
  transform: translateY(-1px);
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
