/* ==========================================================================
   DUTAMIK.ID - Master Premium Stylesheet
   Duta Media Informasi berKarya
   Soft UI, Bulletproof Light/Dark Theme Engine & Universal Motion
   ========================================================================== */

/* Theme Variables & Tokens */
:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --bg-light: #f8fafc;
  --bg-dark: #030712;
  --card-light: #ffffff;
  --card-dark: #0f172a;
  --border-light: #e2e8f0;
  --border-dark: #1e293b;
  --text-light: #0f172a;
  --text-dark: #f8fafc;
  --primary-blue: #2563eb;
  --primary-indigo: #4f46e5;
  --primary-cyan: #00d2ff;
}

html {
  background-color: var(--bg-light);
  color: var(--text-light);
}

html.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background-color 0.25s ease, color 0.25s ease;
}

html.dark body {
  background-color: var(--bg-dark) !important;
  color: var(--text-dark) !important;
}

/* Glassmorphism Navigation & Panels */
.glass-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #e2e8f0 !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
html.dark .glass-nav {
  background: rgba(3, 7, 18, 0.96) !important;
  border-color: #1e293b !important;
}

.glass-panel {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
html.dark .glass-panel {
  background-color: #0f172a !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

/* Gradients */
.gradient-brand {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%) !important;
}

.text-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 40%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.dark .text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow & Hover Effects */
.glow-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.15);
}
html.dark .glow-card:hover {
  box-shadow: 0 14px 30px -10px rgba(96, 165, 250, 0.12);
}

/* Running Ticker Bar */
.ticker-bar {
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  width: 100% !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
html.dark .ticker-bar {
  background: #0b1120 !important;
  border-color: #1e293b !important;
  color: #94a3b8 !important;
}

.ticker-content {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  animation: continuous-ticker 30s linear infinite !important;
}
.ticker-content:hover {
  animation-play-state: paused !important;
}

@keyframes continuous-ticker {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 440px;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast-info {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
}
.toast-success {
  background: #064e3b;
  color: #ecfdf5;
  border: 1px solid #059669;
}
.toast-error {
  background: #881337;
  color: #fff1f2;
  border: 1px solid #e11d48;
}

/* Modals */
.modal-backdrop {
  background-color: rgba(3, 7, 18, 0.78) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Scrollbar Remover */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   BORDERLESS FLOATING ROBOT ASSISTANT (CLEAN AVATAR - NO BOX / NO BORDER)
   ========================================================================== */

#peeking-robot-dock {
  position: fixed !important;
  right: 16px !important;
  bottom: 22% !important;
  z-index: 50 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: auto !important;
}

#robot-peek-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  outline: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Aerodynamic Hovering Animation */
@keyframes robotAirplaneHover {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-2deg); }
  50% { transform: translateY(-1px) rotate(1.5deg); }
  75% { transform: translateY(-5px) rotate(-1deg); }
}

.robot-flight-idle {
  animation: robotAirplaneHover 3.6s ease-in-out infinite !important;
}

@keyframes robotLedEyeBlink {
  0%, 86%, 94%, 100% { transform: scaleY(1); opacity: 1; }
  90%, 92% { transform: scaleY(0.08); opacity: 0.8; }
}

.robot-led-eyes {
  animation: robotLedEyeBlink 3.8s infinite ease-in-out !important;
  transform-origin: 110px 88px;
}

@keyframes thrusterPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

.robot-thruster-glow {
  animation: thrusterPulse 1.6s ease-in-out infinite alternate !important;
  transform-origin: center;
}

@keyframes robotAirplaneLandingGlide {
  0% { transform: translate(220px, 110px) rotate(-18deg) scale(0.4); opacity: 0; }
  35% { transform: translate(45px, -35px) rotate(-12deg) scale(1.15); opacity: 1; }
  65% { transform: translate(-10px, -12px) rotate(3deg) scale(1.04); opacity: 1; }
  85% { transform: translate(3px, -4px) rotate(-2deg) scale(1.01); }
  100% { transform: translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; }
}

.robot-airplane-landing-active {
  animation: robotAirplaneLandingGlide 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

@keyframes robotAirplaneReturnTakeoff {
  0% { transform: translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; }
  25% { transform: translate(-8px, -15px) rotate(-10deg) scale(1.06); opacity: 1; }
  55% { transform: translate(60px, -25px) rotate(14deg) scale(1.1); opacity: 0.9; }
  100% { transform: translate(240px, 60px) rotate(20deg) scale(0.3); opacity: 0; }
}

.robot-airplane-return-active {
  animation: robotAirplaneReturnTakeoff 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.robot-drone-curious {
  transform: translateY(-5px) rotate(-10deg) scale(1.08) !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 8px 18px rgba(0, 210, 255, 0.6)) !important;
}

@keyframes robotSmoothNodAndBlink {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  25% { transform: translateY(5px) rotate(6deg) scale(1.05); }
  50% { transform: translateY(-2px) rotate(-3deg) scale(1.02); }
  75% { transform: translateY(3px) rotate(4deg) scale(1.03); }
  100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

.robot-smooth-nod {
  animation: robotSmoothNodAndBlink 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ==========================================================================
   ULTRA-SMOOTH AUTO SLIDER & MOMENTUM DRAG ENGINE
   ========================================================================== */

.snap-x,
.horizontal-drag-slider,
[data-drag-scroll] {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.snap-x.is-dragging,
.horizontal-drag-slider.is-dragging,
[data-drag-scroll].is-dragging {
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  cursor: grabbing !important;
}

@media (max-width: 767px) {
  .mobile-slide-card {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 80vw !important;
    scroll-snap-align: start !important;
  }
}

@media (max-width: 639px) {
  .contributor-slide-card {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 80vw !important;
    scroll-snap-align: start !important;
  }
}
