:root {
  --fjb-orange: #ff8c00;
  --fjb-orange-700: #e67e22;
  --fjb-ink: #0f172a;
  --fjb-muted: #6b7280;
  --fjb-surface: #ffffff;
  --fjb-surface-2: #f8fafc;
  --fjb-border: rgba(15, 23, 42, 0.08);
  --fjb-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  --fjb-radius: 16px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  color: var(--fjb-ink);
  background: var(--fjb-surface);
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 96px;
}

.fjb-navbar {
  background: rgba(255, 140, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.fjb-navbar .navbar-brand {
  font-weight: 800;
  letter-spacing: 0.3px;
}

.fjb-navbar .nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.fjb-navbar .nav-link:hover,
.fjb-navbar .nav-link:focus {
  color: #fff;
}

.fjb-navbar .nav-link.active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 8rem 0 6rem; /* Restored bottom padding for mobile safety */
  background: url("../img/13.jpg") center/cover no-repeat;
  animation: hero-bg 20s infinite alternate;
  overflow: hidden;
}

/* Shape Divider */
.custom-shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2; /* Ensure it stays above hero bg */
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 64px; /* Reduced height for cleaner look */
}

.custom-shape-divider-bottom .shape-fill {
  fill: var(--fjb-surface);
}

/* Features */
.feature-card {
  background: var(--fjb-surface);
  border-radius: var(--fjb-radius);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 140, 0, 0.2);
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.1);
}

.feature-card .icon-box {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 140, 0, 0.1);
  color: var(--fjb-orange);
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
  background: var(--fjb-orange);
  color: #fff;
  transform: scale(1.1);
}

/* Stats */
.absolute-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 140, 0, 0.05);
  background-image: radial-gradient(circle at center, #222 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

/* Floating WA */
.float-wa {
  position: fixed;
  right: 24px;
  bottom: 90px; /* Above back-to-top */
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse-wa 2s infinite;
}

.float-wa:hover {
  color: #fff;
  transform: scale(1.1);
}

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

@media (max-width: 768px) {
  .custom-shape-divider-bottom svg {
    height: 40px;
  }
  .float-wa {
    right: 16px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.72) 0%,
    rgba(2, 6, 23, 0.55) 60%,
    rgba(2, 6, 23, 0.7) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 58ch;
}

.section {
  padding: 80px 0;
}

.section.section-alt {
  background: var(--fjb-surface-2);
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-desc {
  color: var(--fjb-muted);
}

.card-fjb {
  border: 1px solid var(--fjb-border);
  border-radius: var(--fjb-radius);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-fjb:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.12);
}

.card-fjb img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  background: #f8f9fa;
}

.team-section {
  background:
    radial-gradient(900px 280px at 50% 0%, rgba(255, 140, 0, 0.18), transparent 60%),
    var(--fjb-surface-2);
}

.team-card {
  position: relative;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--fjb-radius);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.18) inset;
}

.team-card .team-media {
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.08), rgba(15, 23, 42, 0.02));
  padding: 0;
}

.team-card .team-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0;
}

.team-card .card-body {
  text-align: left;
}

.btn-fjb {
  --bs-btn-bg: var(--fjb-orange);
  --bs-btn-border-color: var(--fjb-orange);
  --bs-btn-hover-bg: var(--fjb-orange-700);
  --bs-btn-hover-border-color: var(--fjb-orange-700);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.8rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-fjb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.btn-outline-fjb {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.7);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.14);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.9);
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.8rem 1.2rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-outline-fjb:hover {
  transform: translateY(-2px);
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1030;
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--fjb-shadow);
  transition: transform 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--fjb-surface);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 140, 0, 0.2);
  border-top-color: var(--fjb-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes hero-bg {
  0% { background-position: center; background-size: 110%; }
  100% { background-position: center; background-size: 120%; }
}

.footer {
  border-top: 1px solid var(--fjb-border);
  background: #0b1220;
  color: rgba(255, 255, 255, 0.88);
}

.footer a {
  color: rgba(255, 255, 255, 0.88);
}

.footer a:hover {
  color: #fff;
}
