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

:root {
  --primary: #0066FF;
  --primary-hover: #0052CC;
  --cyan: #00E5FF;
  --blue-light: #2F9BFF;
  --bg-dark: #050B1A;
  --bg-card: #0A1633;
  --bg-elevated: #0E1E45;
  --line: rgba(255, 255, 255, 0.1);
  --line-light: rgba(0, 102, 255, 0.15);
  --text-main: #FFFFFF;
  --text-muted: #93A3BC;
  --text-sub: #C8D0DA;
  --radius-pill: 9999px;
  --radius-card: 24px;
}

/* Strict modal security - rule 5 */
.hidden {
  display: none !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

/* Typography Headings */
h1, h2, h3, .font-display {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.font-sora {
  font-family: 'Sora', sans-serif;
}

/* KCE Brand elements */
.kce-brand-logo {
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25);
  transition: transform 0.3s ease;
}

.kce-brand-logo:hover {
  transform: scale(1.04);
}

.kce-brand-word {
  font-family: 'Outfit', sans-serif;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.kce-brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  display: flex;
  gap: 6px;
  color: #2F9BFF;
}

/* Custom Buttons */
.pill {
  border-radius: var(--radius-pill);
}

.btn-teal {
  background: linear-gradient(135deg, #00E5FF 0%, #0066FF 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 229, 255, 0.5);
  filter: brightness(1.06);
}

.btn-teal:active {
  transform: translateY(0);
}

.btn-line {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-line:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.5);
  color: #00E5FF;
  transform: translateY(-2px);
}

/* Glass & Card Effects */
.glass {
  background: rgba(10, 22, 51, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
}

.card-round {
  border-radius: var(--radius-card);
}

.service-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 16px 36px rgba(0, 102, 255, 0.2);
}

/* Hero Shine & Animations */
.hero-shine-word {
  background: linear-gradient(135deg, #FFFFFF 0%, #00E5FF 50%, #2F9BFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: shinePulse 4s ease-in-out infinite;
}

@keyframes shinePulse {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.3)); }
  50% { filter: drop-shadow(0 0 35px rgba(0, 229, 255, 0.8)); }
}

.hero-zoom-photo {
  transition: transform 0.5s ease-out;
}

/* Marquee infinite scroll */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

/* Sub-nav horizontal scroll */
.admin-scroll::-webkit-scrollbar,
.subnav-scroll::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}

.admin-scroll::-webkit-scrollbar-thumb,
.subnav-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 255, 0.3);
  border-radius: 9999px;
}

/* Minigame Canvas and HUD */
#gameCanvas {
  background: #081126;
  border-radius: 20px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 102, 255, 0.25);
  touch-action: none;
}

.game-hud {
  font-family: 'Outfit', monospace;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Admin Dashboard Specific Styles */
.admin-shell {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0F172A;
}

.admin-sidebar {
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.03);
}

.admin-nav-active {
  background: #0066FF !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.admin-kpi {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.admin-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Pulse animation for pending requests */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.pulse-badge {
  animation: pulseGlow 2s infinite;
}

/* Before / After Slider */
.comparison-container {
  position: relative;
  overflow: hidden;
  user-select: none;
}

.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-shine-word {
    font-size: 2.75rem !important;
  }
}
