@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&display=swap');

:root {
  --primary: #d97706;
  --primary-hover: #b45309;
  --primary-light: #fbbf24;
  --primary-rgb: 217, 119, 6;
  --navy-dark: #071527;
  --navy-base: #0b1f38;
  --navy-surface: #122b4d;
  --navy-light: #1e3a63;
  --accent-gold: #c97416;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* ========================================================
   PAGE LOADER
   ======================================================== */
#page-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0f2747 0%, #071527 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 35px rgba(217, 119, 6, 0.25);
}

.loader-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(217, 119, 6, 0.15);
  border-top-color: #d97706;
  border-right-color: #f59e0b;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-logo {
  max-width: 110px;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  animation: pulse-subtle 2s ease-in-out infinite alternate;
}

.loader-text {
  margin-top: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
}

.loader-subtext {
  font-size: 0.78rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.loader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 16px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #d97706, #fbbf24, transparent);
  animation: loader-prog 1.5s infinite;
}

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

@keyframes pulse-subtle {
  0% {
    transform: scale(0.96);
    opacity: 0.92;
  }
  100% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes loader-prog {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ========================================================
   FLOATING WHATSAPP BUTTON
   ======================================================== */
.whatsapp-float-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px -3px rgba(37, 211, 102, 0.5), 0 4px 6px -4px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  font-size: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

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

.whatsapp-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0.7;
  animation: whatsapp-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes whatsapp-ping {
  75%, 100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.whatsapp-tooltip {
  background: #0f172a;
  color: #f8fafc;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  display: none;
}

@media (min-width: 768px) {
  .whatsapp-tooltip {
    display: block;
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================================
   HERO VIDEO BACKGROUND
   ======================================================== */
.hero-video-container {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--navy-dark);
}

.hero-video-element {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 21, 39, 0.92) 0%,
    rgba(11, 31, 56, 0.85) 50%,
    rgba(7, 21, 39, 0.95) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* ========================================================
   NAVBAR & HEADER
   ======================================================== */
.nav-sticky {
  background: rgba(7, 21, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link-active {
  color: var(--primary) !important;
  position: relative;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* ========================================================
   CUSTOM CARD EFFECTS & UTILITIES
   ======================================================== */
.card-hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.badge-amber {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px 0 rgba(217, 119, 6, 0.39);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 6px 20px 0 rgba(217, 119, 6, 0.55);
  transform: translateY(-1px);
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--navy-dark);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #0b1f38;
}
::-webkit-scrollbar-thumb {
  background: #d97706;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}
