/* ── BilSam Technologies – Custom Styles (works alongside Tailwind CDN) ── */
/* Brand Colors: Orange #f59e0b / Charcoal Gray #5D6B73 */

/* ── Page Load Animation ── */
body {
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.page-loaded {
  opacity: 1;
}

/* ── Scroll-Reveal System ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Gradient Text (Brand Orange) ── */
.gradient-text {
  background: linear-gradient(135deg, #f59e0b, #f97316, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Glassmorphism Card ── */
.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(245, 158, 11, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(245, 158, 11, 0.25);
}

/* ── Header Scroll State ── */
.header-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(245, 158, 11, 0.15) !important;
}

/* ── Animated Gradient Background for Hero ── */
.hero-gradient {
  background: linear-gradient(
    135deg,
    #020617 0%,
    #0f172a 25%,
    #1a1207 50%,
    #0f172a 75%,
    #020617 100%
  );
  background-size: 400% 400%;
  animation: gradient-shift 12s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ── Floating Particles ── */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(40px) scale(0.5);
    opacity: 0;
  }
}

/* ── Pulse Glow on Tags ── */
.tag-glow {
  transition: all 0.3s ease;
}
.tag-glow:hover {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3),
    0 0 40px rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

/* ── Glowing Form Inputs ── */
.glow-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
}
.glow-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2),
    0 0 20px rgba(245, 158, 11, 0.08);
  background-color: rgba(15, 23, 42, 1);
}

/* ── Button Glow ── */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.4);
  filter: brightness(1.1);
}
.btn-glow::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* ── Gradient Border Effect ── */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.gradient-border:hover::before {
  opacity: 1;
}

/* ── Logo Mark Pulse ── */
.logo-pulse {
  border-radius: 9999px;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
}

/* ── Nav Link Underline ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  transition: width 0.3s ease;
  border-radius: 999px;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ── Stat Counter Glow ── */
.stat-glow {
  text-shadow: 0 0 40px rgba(245, 158, 11, 0.25);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f59e0b, #f97316);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fbbf24, #fb923c);
}

/* ── Hero Swiper: slides fill full height ── */
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  height: 100%;
}

/* ── Swiper Navigation Arrows (visible on hover) ── */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: #f59e0b;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}
.hero-swiper:hover .swiper-button-prev,
.hero-swiper:hover .swiper-button-next {
  opacity: 1;
}
.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
}

/* ── Mobile Menu Slide ── */
.mobile-menu-slide {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Icon Container ── */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.15);
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.glass-card:hover .icon-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(249, 115, 22, 0.15));
  border-color: rgba(245, 158, 11, 0.35);
  transform: scale(1.08);
}

/* ── Section Divider Gradient ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.25), rgba(249, 115, 22, 0.25), transparent);
}

/* ── AI Highlight Badge Animation ── */
@keyframes ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.ai-badge {
  animation: ai-pulse 2s ease-in-out infinite;
}

/* ── Floating Social Action Bar ── */
.floating-social-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.floating-social-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
}

.floating-social-container.active .floating-social-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, background-color 0.2s;
  position: relative;
}

.social-btn:hover {
  transform: scale(1.1);
}

.social-btn-wa { background-color: #25D366; }
.social-btn-wa:hover { background-color: #1EBE5A; }

.social-btn-fb { background-color: #1877F2; }
.social-btn-fb:hover { background-color: #1466D3; }

.social-btn-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-btn-ig:hover { filter: brightness(1.1); }

.floating-main-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.5);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  outline: none;
}

.floating-main-btn svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s;
}

.floating-social-container.active .floating-main-btn {
  background: #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.floating-social-container.active .floating-main-btn svg {
  transform: rotate(45deg);
}

/* Tooltip for desktop hover */
@media (min-width: 768px) {
  .social-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
  }

  .social-btn:hover::before {
    opacity: 1;
  }
}
