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

:root {
  --primary-navy: #0e224d;
  --primary-dark: #07122a;
  --royal-blue: #1d4ed8;
  --accent-red: #c82a2e;
  --accent-gold: #d97706;
  --bg-soft: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

/* ================= BACKGROUND MESH & GLOW ================= */
.bg-ambient-glow {
  background: 
    radial-gradient(circle at 10% 20%, rgba(29, 78, 216, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(200, 42, 46, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 50% 60%, rgba(14, 34, 77, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(29, 78, 216, 0.07) 0%, transparent 40%),
    #f8fafc;
}

/* Bank Grid Pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(14, 34, 77, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 34, 77, 0.035) 1px, transparent 1px);
}

/* ================= EFEK MENGKILAT (SHIMMER / SHINE EFFECT) ================= */
.shine-box {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shine-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.5) 55%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 10;
  animation: shineSweep 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shineSweep {
  0% {
    left: -160%;
  }
  35%, 100% {
    left: 200%;
  }
}

/* Secondary Gloss Highlight on Logo Hover */
.shine-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 35px -10px rgba(14, 34, 77, 0.15), 0 0 25px rgba(29, 78, 216, 0.1);
}

/* Shimmer specifically for the logo image */
.logo-shimmer-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 1rem;
}

.logo-shimmer-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.3) 70%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: logoGleam 4s infinite 1.5s;
  pointer-events: none;
}

@keyframes logoGleam {
  0% {
    left: -150%;
  }
  30%, 100% {
    left: 220%;
  }
}

/* ================= COUNTDOWN CARDS ================= */
.countdown-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(14, 34, 77, 0.12);
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #102a6b, #c82a2e);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

/* Pulse animation on number tick */
.number-pulse {
  animation: tickPulse 0.4s ease-out;
}

@keyframes tickPulse {
  0% {
    transform: scale(1.08);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= GLASS & CARD STYLING ================= */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.glass-dark-panel {
  background: rgba(14, 34, 77, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================= OTW GUSAHA FOOTER CARD ================= */
.otw-footer-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.otw-footer-card:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 16px 32px -8px rgba(14, 165, 233, 0.18);
}

.otw-footer-card:hover .otw-arrow {
  transform: translateX(4px);
}

/* ================= FLOATING & BADGE ANIMATIONS ================= */
@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-float {
  animation: floatGentle 5s ease-in-out infinite;
}

/* Toast Notification Animation */
.toast-enter {
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-enter-active {
  transform: translateY(0);
  opacity: 1;
}

/* Smooth Focus Rings */
input:focus, button:focus {
  outline: none;
}
