/* HRCareBox Landing - Dark Theme Custom Styles */

html {
  scroll-behavior: smooth;
}

body {
  background: #0f172a;
}

/* Gradient blobs - dark theme */
.blob-1 {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -300px;
  right: -200px;
  pointer-events: none;
  z-index: 0;
}

.blob-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -200px;
  left: -200px;
  pointer-events: none;
  z-index: 0;
}

.blob-3 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* Navbar glassmorphism - dark */
.navbar-glass {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.08);
}

/* Feature card glow on hover */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Timeline log mockup */
.timeline-log {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  max-width: 480px;
}

.timeline-log .log-line {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0;
  animation: log-appear 0.5s ease forwards;
}

@keyframes log-appear {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.timeline-log .log-line:nth-child(1) { animation-delay: 0.3s; }
.timeline-log .log-line:nth-child(2) { animation-delay: 0.8s; }
.timeline-log .log-line:nth-child(3) { animation-delay: 1.3s; }
.timeline-log .log-line:nth-child(4) { animation-delay: 1.8s; }
.timeline-log .log-line:nth-child(5) { animation-delay: 2.3s; }

/* Closed loop flow */
.loop-step {
  position: relative;
  transition: transform 0.3s ease;
}

.loop-step:hover {
  transform: scale(1.05);
}

.loop-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(59,130,246,0.5), rgba(139,92,246,0.5));
  flex-shrink: 0;
}

/* Scenario card */
.scenario-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  transition: border-color 0.3s ease;
}

.scenario-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.scenario-step {
  position: relative;
  padding-left: 2.5rem;
}

.scenario-step::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 1.75rem;
  bottom: -0.75rem;
  width: 2px;
  background: rgba(59, 130, 246, 0.2);
}

.scenario-step:last-child::before {
  display: none;
}

/* AI Coach mockup */
.ai-coach {
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.ai-coach::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

/* Scorecard bars */
.score-bar {
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 1.5s ease;
}

/* Pricing card */
.pricing-popular {
  border: 2px solid #3b82f6;
  position: relative;
}

.pricing-popular::before {
  content: 'Tam Paket';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 4px 20px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Security badge strip */
.security-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease;
}

.security-badge:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 300px;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-chevron.open {
  transform: rotate(180deg);
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.float-animation {
  animation: float 5s ease-in-out infinite;
}

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.15); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.3); }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Mobile menu transition */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

/* Chip/tag style */
.module-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.module-chip:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* SmileYou cross-sell banner */
.smileyou-banner {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #8b5cf6 100%);
}

/* Differentiator card */
.diff-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.diff-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

/* Diagram boxes */
.diagram-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
}

.diagram-arrow {
  color: #3b82f6;
  font-size: 2rem;
  line-height: 1;
}
