/* Global reset and box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== CURSOR STYLES - COMPREHENSIVE FIX ========== */

/* Base cursor for all elements */
* {
  cursor: url("/assets/cursor.cur"), auto;
}

/* Default cursor for html and body */
html,
body {
  cursor: url("/assets/cursor.cur"), auto !important;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  min-height: 100vh;
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Interactive elements - pointer cursor */
a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
select,
[role="button"],
.clickable,
.nav-brand,
.nav-links a,
.mobile-nav a,
.mobile-menu-toggle,
.mobile-nav-close,
.primary-button,
.secondary-button,
.tertiary-button,
.view-profile-button,
.view-details-button,
.recruit-button,
.social-link,
.quick-item,
.modal-close,
.btn,
.button,
.character-card,
.skill-card,
.faction-card,
.record-card,
.timeline-item,
.search-suggestion,
.filter-button,
.sort-button,
.tab-button,
.close-button,
.expand-button,
.collapse-button,
.toggle-button,
.dropdown-toggle,
.pagination-button,
.nav-arrow,
.carousel-button,
.modal-trigger,
.tooltip-trigger {
  cursor: url("../assets/pointer.cur"), pointer !important;
}

/* Interactive elements on hover */
a:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
select:hover,
[role="button"]:hover,
.clickable:hover {
  cursor: url("../assets/pointer.cur"), pointer !important;
}

/* Text input elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
.text-input,
.search-input,
[contenteditable="true"] {
  cursor: url("/assets/cursor.cur"), text !important;
}

/* Button child elements inherit pointer cursor */
button *,
.primary-button *,
.secondary-button *,
.tertiary-button *,
.view-profile-button *,
.view-details-button *,
.recruit-button *,
a *,
[role="button"] *,
.clickable *,
.button-glow,
.button-icon,
.button-text,
.button-particles,
.nav-icon {
  cursor: url("../assets/pointer.cur"), pointer !important;
  pointer-events: none !important;
}

/* Disabled elements */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
.disabled,
[aria-disabled="true"] {
  cursor: url("/assets/cursor.cur"), not-allowed !important;
  opacity: 0.6;
}

/* Special cursor types */
.resizable,
textarea.resizable {
  cursor: url("/assets/cursor.cur"), se-resize !important;
}

.draggable,
[draggable="true"] {
  cursor: url("../assets/pointer.cur"), move !important;
}

.loading,
.loading *,
body.loading,
body.loading * {
  cursor: url("/assets/cursor.cur"), wait !important;
}

.help,
[title]:not(button):not(a):not([role="button"]),
.tooltip,
.has-tooltip {
  cursor: url("../assets/pointer.cur"), help !important;
}

/* Force default cursor for non-interactive elements */
.no-cursor,
.text-content,
.static-content,
p:not(.clickable),
span:not(.clickable):not(.button-icon):not(.button-text):not(.nav-icon),
div:not(.clickable):not(.card):not([onclick]):not([role="button"]),
h1,
h2,
h3,
h4,
h5,
h6 {
  cursor: url("/assets/cursor.cur"), auto !important;
}

/* Fallback for browsers that don't support custom cursors */
@supports not (cursor: url("/assets/cursor.cur")) {
  * {
    cursor: auto;
  }

  a,
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  select,
  [role="button"],
  .clickable {
    cursor: pointer;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  [contenteditable="true"] {
    cursor: text;
  }

  button:disabled,
  input:disabled,
  select:disabled,
  textarea:disabled,
  .disabled {
    cursor: not-allowed;
  }
}

/* CSS custom properties for consistent theming */
:root {
  --primary-blue: #4dd4ff;
  --primary-dark: #0a0e27;
  --secondary-dark: #151b3d;
  --accent-gold: #ffd700;
  --text-light: #e8f0ff;
  --text-muted: rgba(232, 240, 255, 0.6);
  --text-secondary: rgba(232, 240, 255, 0.8);
  --glow-blue: rgba(77, 212, 255, 0.6);
  --glow-gold: rgba(255, 215, 0, 0.6);
  --glow-emerald: rgba(0, 255, 136, 0.6);
  --glow-cyan: rgba(0, 212, 255, 0.6);
  --glow-purple: rgba(170, 85, 255, 0.6);
  --glow-crimson: rgba(255, 51, 102, 0.6);
  --accent-cyan: #00d4ff;
  --accent-cyan-glow: rgba(0, 212, 255, 0.6);
  --accent-crimson: #ff3366;
  --accent-crimson-glow: rgba(255, 51, 102, 0.5);
  --accent-emerald: #00ff88;
  --accent-emerald-glow: rgba(0, 255, 136, 0.5);
  --accent-purple: #aa55ff;
  --accent-purple-glow: rgba(170, 85, 255, 0.5);
  --slime-blue: #4dd4ff;
  --slime-blue-glow: rgba(77, 212, 255, 0.6);
  --border-subtle: #1a2a40;
  --vh: 1vh;
}

/* Loading screen overlay with animated elements */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    #0d1428,
    var(--secondary-dark)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-orb {
  width: 80px;
  height: 80px;
  position: relative;
  background: radial-gradient(circle at 30% 30%, var(--primary-blue), #1a7aa8);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--glow-blue);
  animation: loadingPulse 1.5s ease-in-out infinite;
  margin-bottom: 2rem;
}

.loading-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  border-radius: 50%;
  animation: loadingInner 1.5s ease-in-out infinite;
}

.loading-text {
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  animation: loadingText 2s ease-in-out infinite;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  border-radius: 2px;
  animation: loadingBar 2s ease-in-out infinite;
}

/* Loading animation keyframes */
@keyframes loadingPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes loadingInner {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes loadingText {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@keyframes loadingBar {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Base HTML and body styling with scroll behavior */
html,
body {
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: auto;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* Main body styling with layered background effects */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(
      circle at 25% 25%,
      rgba(77, 212, 255, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(170, 85, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 10%,
      rgba(255, 215, 0, 0.05) 0%,
      transparent 50%
    ),
    linear-gradient(
      135deg,
      var(--primary-dark),
      #0d1428,
      var(--secondary-dark)
    ),
    url("../assets/bg.jpg");
  background-attachment: scroll, scroll, scroll, scroll, fixed;
  background-size: auto, auto, auto, auto, cover;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  color: var(--text-light);
  min-height: 100vh;
  height: auto;
  position: relative;
  touch-action: pan-y;
}

body > * {
  overflow-y: visible;
  pointer-events: auto;
}

/* Animated background particles and visual effects */
.particles,
.starfield,
body::before {
  pointer-events: none;
  overscroll-behavior: none;
  position: fixed;
  z-index: 1;
}

/* Grid overlay pattern for background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 2;
}
/* Floating particle container */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
/* Individual particle styling with color variants */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatOptimized 10s infinite ease-in-out;
  box-shadow: 0 0 10px var(--glow-blue);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
/* Starfield background container */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: visible !important;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkleOptimized ease-in-out infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.particle.blue {
  background: var(--primary-blue);
  box-shadow: 0 0 10px var(--glow-blue);
}
.particle.cyan {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--glow-cyan);
}
.particle.purple {
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--glow-purple);
}
.particle.gold {
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--glow-gold);
}

/* Rotating magic circle background decoration */
.magic-circle {
  position: fixed;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(77, 212, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: magic-rotate 60s linear infinite;
  will-change: transform;
  transform: translate3d(-50%, -50%, 0);
}
.magic-circle::before,
.magic-circle::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(77, 212, 255, 0.08);
  border-radius: 50%;
}
.magic-circle::after {
  inset: 50px;
  border-style: dashed;
}
/* Animation keyframes for visual effects */
@keyframes twinkleOptimized {
  0%,
  100% {
    opacity: 0.3;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.2);
  }
}
@keyframes magic-rotate {
  from {
    transform: translate3d(-50%, -50%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-50%, -50%, 0) rotate(360deg);
  }
}
@keyframes floatOptimized {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(20px, -30px, 0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-30px) translateX(20px);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(77, 212, 255, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(77, 212, 255, 0.6);
  }
}
@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 0 0 20px var(--glow-blue);
  }
  50% {
    text-shadow: 0 0 40px var(--glow-blue);
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Main navigation bar with backdrop blur */
.main-nav {
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 39, 0.95),
    rgba(21, 27, 61, 0.9)
  );
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(77, 212, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: navSlideDown 0.8s ease-out;
}
.main-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-blue),
    var(--accent-cyan),
    transparent
  );
  opacity: 0.8;
}
.main-nav.scrolled {
  padding: 0.75rem 3rem;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 39, 0.98),
    rgba(21, 27, 61, 0.95)
  );
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
/* Navigation brand logo and text */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-shadow: 0 0 25px var(--glow-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: url("../assets/pointer.cur"), pointer;
}
.nav-brand:hover {
  transform: scale(1.05);
  text-shadow: 0 0 30px var(--glow-blue);
}
.nav-brand-icon {
  font-size: 2rem;
  animation: brandFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px var(--glow-blue));
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-brand-icon svg {
  width: 64px;
  height: 64px;
  transition: all 0.3s ease;
}
.nav-brand:hover .nav-brand-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px var(--glow-blue));
}
/* Desktop navigation links container */
.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav-links a {
  position: relative;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(77, 212, 255, 0.1),
    rgba(77, 212, 255, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-links a:hover {
  color: var(--primary-blue);
  transform: translateY(-2px);
}
.nav-links a:hover::before {
  opacity: 1;
}
.nav-links a:hover::after {
  width: 80%;
}
.nav-links a.active {
  color: var(--primary-blue);
  background: linear-gradient(
    135deg,
    rgba(77, 212, 255, 0.2),
    rgba(77, 212, 255, 0.1)
  );
  box-shadow: 0 4px 15px rgba(77, 212, 255, 0.3);
  border: 1px solid rgba(77, 212, 255, 0.3);
  inset: 0 1px 0 rgba(255, 255, 255, 0.1);
}
.nav-links a.active::after {
  width: 80%;
  opacity: 1;
}
.nav-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.nav-links a:hover .nav-icon {
  transform: scale(1.2) rotate(5deg);
}
@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes brandFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(5deg);
  }
}
/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: url("../assets/pointer.cur"), pointer;
  padding: 10px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1002;
  background: linear-gradient(
    135deg,
    rgba(77, 212, 255, 0.1),
    rgba(77, 212, 255, 0.05)
  );
  border: 1px solid rgba(77, 212, 255, 0.2);
  box-shadow: 0 2px 8px rgba(77, 212, 255, 0.1);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.mobile-menu-toggle:hover {
  background: linear-gradient(
    135deg,
    rgba(77, 212, 255, 0.2),
    rgba(77, 212, 255, 0.1)
  );
  border-color: rgba(77, 212, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(77, 212, 255, 0.2);
}
.mobile-menu-toggle.active {
  transform: translateY(0) scale(0.95);
}
.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--primary-blue);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--primary-blue);
}

/* Prevent body scrolling when mobile nav is active */
body.mobile-nav-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
}

html.mobile-nav-active {
  overflow: hidden;
  height: 100%;
}

/* Prevent momentum scrolling on iOS */
body.mobile-nav-active * {
  -webkit-overflow-scrolling: auto !important;
}

/* Full-screen mobile navigation overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--vh, 1vh) * 100);
  background: linear-gradient(
    135deg,
    rgba(10, 14, 39, 0.98),
    rgba(21, 27, 61, 0.95),
    rgba(10, 14, 39, 0.98)
  );
  backdrop-filter: blur(25px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  padding: 1rem;
  padding-top: max(5rem, env(safe-area-inset-top, 5rem));
  padding-bottom: max(3rem, env(safe-area-inset-bottom, 3rem));
  padding-left: max(1rem, env(safe-area-inset-left, 1rem));
  padding-right: max(1rem, env(safe-area-inset-right, 1rem));
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
}
.mobile-nav::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(77, 212, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(170, 85, 255, 0.08) 0%,
      transparent 50%
    );
  animation: mobileNavBg 20s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mobileNavBg {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
}
.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: mobileNavSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  touch-action: manipulation;
  overscroll-behavior: contain;
}
.mobile-nav:not(.active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: mobileNavSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes mobileNavSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    backdrop-filter: blur(25px);
  }
}
@keyframes mobileNavSlideOut {
  from {
    opacity: 1;
    transform: scale(1);
    backdrop-filter: blur(25px);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
    backdrop-filter: blur(0px);
  }
}
.mobile-nav-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.08)
  );
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.6rem;
  font-weight: bold;
  cursor: url("../assets/pointer.cur"), pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  inset: 0 1px 0 rgba(255, 255, 255, 0.2);
}
.mobile-nav-close:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.15)
  );
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  inset: 0 1px 0 rgba(255, 255, 255, 0.3);
}
.mobile-nav-close:active {
  transform: scale(0.95) rotate(90deg);
}
.mobile-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 280px;
  max-width: 85vw;
  justify-content: flex-start;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  inset: 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.5px;
}
.mobile-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(77, 212, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}
.mobile-nav a:hover::before,
.mobile-nav a.active::before {
  left: 100%;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-blue);
  background: linear-gradient(
    135deg,
    rgba(77, 212, 255, 0.25),
    rgba(77, 212, 255, 0.15)
  );
  border-color: rgba(77, 212, 255, 0.4);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(77, 212, 255, 0.2);
  inset: 0 1px 0 rgba(255, 255, 255, 0.2);
}
.mobile-nav a:active {
  transform: translateX(8px) scale(0.98);
}
.mobile-nav a .nav-icon {
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: rgba(77, 212, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.mobile-nav a:hover .nav-icon,
.mobile-nav a.active .nav-icon {
  background: rgba(77, 212, 255, 0.2);
  transform: scale(1.1) rotate(5deg);
}
.mobile-nav::after {
  content: "Jura Tempest Federation";
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(232, 240, 255, 0.6);
  text-align: center;
  letter-spacing: 1px;
}
.mobile-nav-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(77, 212, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: mobileNavParticleFloat 8s ease-in-out infinite;
}
@keyframes mobileNavParticleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(10px, -20px, 0) scale(1.2);
    opacity: 1;
  }
}
.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  transition: width 0.3s ease;
  opacity: 0;
}
.nav-progress.visible {
  opacity: 1;
}
/* Button styling variants for different use cases */
.primary-button,
.secondary-button,
.tertiary-button {
  position: relative;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: url("../assets/pointer.cur"), pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.primary-button {
  background: linear-gradient(135deg, var(--primary-blue), #2a9fd8);
  color: var(--primary-dark);
  box-shadow: 0 0 30px var(--glow-blue);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 40px var(--glow-blue);
}

.secondary-button {
  background: rgba(77, 212, 255, 0.1);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.secondary-button:hover {
  background: rgba(77, 212, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 30px var(--glow-blue);
}

.tertiary-button {
  background: linear-gradient(
    135deg,
    rgba(170, 85, 255, 0.15),
    rgba(170, 85, 255, 0.05)
  );
  color: var(--accent-purple);
  border: 2px solid var(--accent-purple);
}

.tertiary-button:hover {
  background: linear-gradient(
    135deg,
    rgba(170, 85, 255, 0.25),
    rgba(170, 85, 255, 0.1)
  );
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(170, 85, 255, 0.3);
}

.button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.primary-button:hover .button-glow,
.secondary-button:hover .button-glow,
.tertiary-button:hover .button-glow {
  left: 100%;
}

.button-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  margin-right: 0.5rem;
}

.primary-button:hover .button-icon,
.secondary-button:hover .button-icon,
.tertiary-button:hover .button-icon {
  transform: scale(1.2) rotate(5deg);
}

.button-text {
  position: relative;
  z-index: 2;
}
/* Specialized buttons for character cards */
.view-profile-button,
.view-details-button,
.recruit-button {
  position: relative;
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: url("../assets/pointer.cur"), pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.view-profile-button {
  background: linear-gradient(
    135deg,
    rgba(21, 27, 61, 0.9),
    rgba(21, 27, 61, 0.8)
  );
  border: 2px solid rgba(77, 212, 255, 0.6);
  color: rgba(255, 255, 255, 0.95);
}
.view-details-button {
  background: rgba(21, 27, 61, 0.8);
  border: 1px solid rgba(77, 212, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
}
.recruit-button {
  background: linear-gradient(135deg, var(--primary-blue), #2a9fd8);
  color: var(--primary-dark);
  border: none;
}
.view-profile-button:hover,
.view-details-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(77, 212, 255, 0.3);
}
.recruit-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--glow-blue);
}
.view-profile-button:active,
.view-details-button:active,
.recruit-button:active {
  transform: translateY(-1px) scale(0.98);
}
/* Page title with gradient text effect */
.page-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-blue), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px var(--glow-blue);
  animation: titleGlow 3s ease-in-out infinite;
}
.page-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(232, 240, 255, 0.7);
  margin-bottom: 3rem;
}
@keyframes titleGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 20px var(--glow-blue));
  }
  50% {
    filter: drop-shadow(0 0 40px var(--glow-blue));
  }
}

/* Custom scrollbar styling for webkit browsers */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(10, 14, 39, 0.8) 0%,
    rgba(21, 27, 61, 0.6) 50%,
    rgba(10, 14, 39, 0.8) 100%
  );
  border-radius: 10px;
  border: 1px solid rgba(77, 212, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(77, 212, 255, 0.8) 0%,
    rgba(66, 159, 217, 0.9) 50%,
    rgba(77, 212, 255, 0.8) 100%
  );
  border-radius: 10px;
  border: 1px solid rgba(77, 212, 255, 0.3);
  box-shadow: 0 0 10px rgba(77, 212, 255, 0.4);
  inset: 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(77, 212, 255, 1) 0%,
    rgba(66, 159, 217, 1) 50%,
    rgba(77, 212, 255, 1) 100%
  );
  box-shadow: 0 0 15px rgba(77, 212, 255, 0.6);
  inset: 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.9) 0%,
    rgba(255, 183, 27, 1) 50%,
    rgba(255, 215, 0, 0.9) 100%
  );
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  inset: 0 1px 0 rgba(255, 255, 255, 0.4);
}

::-webkit-scrollbar-corner {
  background: rgba(10, 14, 39, 0.8);
  border-radius: 10px;
}

/* Firefox scrollbar styling */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 212, 255, 0.8) rgba(21, 27, 61, 0.6);
}

/* Main footer with gradient border and backdrop effects */
.main-footer {
  background: linear-gradient(
    135deg,
    rgba(10, 14, 39, 0.98) 0%,
    rgba(21, 27, 61, 0.95) 30%,
    rgba(15, 20, 45, 0.97) 70%,
    rgba(10, 14, 39, 0.98) 100%
  );
  border-top: 3px solid transparent;
  border-image: linear-gradient(
      90deg,
      transparent 0%,
      var(--accent-cyan) 20%,
      var(--primary-blue) 50%,
      var(--accent-gold) 80%,
      transparent 100%
    )
    1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-cyan) 10%,
    var(--primary-blue) 30%,
    var(--accent-gold) 50%,
    var(--primary-blue) 70%,
    var(--accent-cyan) 90%,
    transparent 100%
  );
  box-shadow: 0 0 20px var(--glow-blue);
  animation: footerGlow 4s ease-in-out infinite;
}

.main-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(77, 212, 255, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 215, 0, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(138, 43, 226, 0.02) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Footer content grid layout */
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Footer brand section with logo and text */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  color: var(--text-light);
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Animated footer logo with glow effects */
.footer-logo {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, var(--primary-blue), #1a7aa8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 30px var(--glow-blue),
    inset 0 2px 10px rgba(255, 255, 255, 0.2);
  animation: footerPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.footer-logo::before {
  content: "🌟";
  font-size: 1.4rem;
  z-index: 2;
  position: relative;
}

.footer-logo::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: logoShine 4s ease-in-out infinite;
}

.footer-brand-text {
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.footer-info {
  text-align: right;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-copyright {
  font-weight: 500;
  color: var(--text-light);
}

.footer-version {
  opacity: 0.8;
  font-style: italic;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* Social media links with hover effects */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(77, 212, 255, 0.08);
  border: 1px solid rgba(77, 212, 255, 0.2);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: all 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  background: rgba(77, 212, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(77, 212, 255, 0.4);
  transform: translateY(-3px) scale(1.1);
}

@keyframes footerGlow {
  0%,
  100% {
    opacity: 0.8;
    box-shadow: 0 0 20px var(--glow-blue);
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 30px var(--glow-blue),
      0 0 40px rgba(77, 212, 255, 0.3);
  }
}

@keyframes logoShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(0%) translateY(0%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes footerPulse {
  0%,
  100% {
    box-shadow:
      0 0 30px var(--glow-blue),
      inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 40px var(--glow-blue),
      0 0 50px rgba(77, 212, 255, 0.4),
      inset 0 2px 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
  }
}

/* ========== MOBILE RESPONSIVE STYLES ========== */

/* Mobile navigation breakpoints and responsive design */
@media (max-width: 1023px) {
  .main-nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

/* ========== ENHANCED MOBILE RESPONSIVE STYLES ========== */

/* Tablet and small desktop adjustments */
@media (max-width: 767px) {
  .main-nav {
    padding: 0.75rem 1rem;
    min-height: 60px;
    box-sizing: border-box;
  }

  .nav-brand {
    font-size: 1.3rem;
  }

  .nav-brand-icon svg {
    width: 48px;
    height: 48px;
  }

  .mobile-nav {
    padding-top: 80px; /* Account for nav height */
    padding-bottom: 2rem;
    gap: 0.6rem;
    padding-left: max(1rem, env(safe-area-inset-left, 1rem));
    padding-right: max(1rem, env(safe-area-inset-right, 1rem));
  }

  .mobile-nav a {
    width: min(280px, 85vw);
    font-size: 1rem;
    padding: 1rem 1.2rem;
    min-height: 48px; /* Touch-friendly */
    display: flex;
    align-items: center;
    touch-action: manipulation;
  }

  .mobile-nav a .nav-icon {
    font-size: 1.3rem;
    width: 2rem;
    height: 2rem;
  }

  /* Improve mobile menu toggle */
  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Better mobile nav close button */
  .mobile-nav-close {
    top: max(1rem, env(safe-area-inset-top, 1rem));
    right: max(1rem, env(safe-area-inset-right, 1rem));
  }
}

/* Mobile phone optimizations */
@media (max-width: 479px) {
  .main-nav {
    padding: 0.5rem 0.75rem;
    min-height: 56px;
  }

  .nav-brand {
    font-size: 1.1rem;
  }

  .nav-brand-icon svg {
    width: 40px;
    height: 40px;
  }

  .mobile-nav {
    padding-top: 70px;
    padding-bottom: 1.5rem;
    gap: 0.5rem;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0.75rem));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0.75rem));
  }

  .mobile-nav a {
    width: min(260px, 90vw);
    font-size: 0.95rem;
    padding: 0.875rem 1rem;
    min-height: 44px;
  }

  .mobile-nav a .nav-icon {
    font-size: 1.2rem;
    width: 1.8rem;
    height: 1.8rem;
  }

  .mobile-nav-close {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    top: max(1rem, env(safe-area-inset-top, 1rem));
    right: max(1rem, env(safe-area-inset-right, 1rem));
  }

  .mobile-nav a {
    width: 260px;
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }

  .mobile-nav a .nav-icon {
    font-size: 1.2rem;
    width: 1.8rem;
    height: 1.8rem;
  }

  .mobile-nav-close {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    top: 1.5rem;
    right: 1.5rem;
  }
}

/* Extra small screen adjustments */
@media (max-width: 360px) {
  .mobile-nav {
    padding-top: 3rem;
    padding-bottom: 1rem;
    gap: 0.4rem;
  }

  .mobile-nav a {
    width: 240px;
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  .mobile-nav a .nav-icon {
    font-size: 1.1rem;
    width: 1.6rem;
    height: 1.6rem;
  }

  .mobile-nav-close {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    top: 1rem;
    right: 1rem;
  }
}

/* Button responsive styling adjustments */
@media (max-width: 767px) {
  .primary-button,
  .secondary-button,
  .tertiary-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .view-profile-button,
  .view-details-button,
  .recruit-button {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 479px) {
  .primary-button,
  .secondary-button,
  .tertiary-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Footer responsive layout changes */
@media (max-width: 1023px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .main-footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding: 0 1rem;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-brand-header {
    justify-content: center;
  }

  .footer-info {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-brand-text {
    font-size: 1.1rem;
  }

  .footer-tagline {
    font-size: 0.85rem;
  }
}

@media (max-width: 479px) {
  .main-footer {
    padding: 1.5rem 0 0.75rem;
  }

  .footer-content {
    padding: 0 0.75rem;
    gap: 1rem;
  }

  .footer-brand-text {
    font-size: 1rem;
  }

  .footer-logo {
    width: 40px;
    height: 40px;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* Page title responsive font sizing */
@media (max-width: 767px) {
  .page-title {
    font-size: 2.2rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 479px) {
  .page-title {
    font-size: 1.8rem;
  }

  .page-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* ========== CURSOR STYLE OVERRIDES ========== */

/* Override any inline cursor styles */
*[style*="cursor"] {
  cursor: url("../assets/pointer.cur"), pointer !important;
}

/* Specific overrides for common inline styles */
*[style*="cursor: pointer"] {
  cursor: url("../assets/pointer.cur"), pointer !important;
}

*[style*="cursor: text"] {
  cursor: url("/assets/cursor.cur"), text !important;
}

*[style*="cursor: default"] {
  cursor: url("/assets/cursor.cur"), auto !important;
}

*[style*="cursor: auto"] {
  cursor: url("/assets/cursor.cur"), auto !important;
}

/* Ensure cursor works on dynamically added elements */
.dynamic-content,
.dynamic-content * {
  cursor: inherit !important;
}

.dynamic-content button,
.dynamic-content a,
.dynamic-content [role="button"],
.dynamic-content .clickable {
  cursor: url("../assets/pointer.cur"), pointer !important;
}
/* ========== AUDIO CONTROLS STYLING ========== */

.audio-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 39, 0.95),
    rgba(21, 27, 61, 0.9)
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(77, 212, 255, 0.3);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: audioControlsSlideIn 0.8s ease-out;
}

/* Hide audio controls when mobile nav is active */
body.mobile-nav-active .audio-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

.audio-controls:hover {
  background: linear-gradient(
    135deg,
    rgba(10, 14, 39, 0.98),
    rgba(21, 27, 61, 0.95)
  );
  border-color: rgba(77, 212, 255, 0.5);
  box-shadow: 0 6px 25px rgba(77, 212, 255, 0.2);
  transform: translateY(-1px);
}

/* Audio toggle button */
.audio-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: url("../assets/pointer.cur"), pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
}

.audio-toggle:hover {
  background: rgba(77, 212, 255, 0.1);
  color: var(--primary-blue);
  transform: scale(1.1);
}

.audio-toggle.playing {
  color: var(--accent-gold);
  animation: audioPlaying 2s ease-in-out infinite;
}

.audio-toggle.muted {
  color: var(--accent-crimson);
  opacity: 0.7;
}

/* Volume control slider */
.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.audio-controls:hover .volume-control,
.audio-controls.expanded .volume-control {
  opacity: 1;
  max-width: 120px;
}

.volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: url("../assets/pointer.cur"), pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary-blue);
  border-radius: 50%;
  cursor: url("../assets/pointer.cur"), pointer;
  box-shadow: 0 0 10px var(--glow-blue);
  transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: var(--accent-cyan);
  transform: scale(1.2);
  box-shadow: 0 0 15px var(--glow-cyan);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--primary-blue);
  border-radius: 50%;
  cursor: url("../assets/pointer.cur"), pointer;
  border: none;
  box-shadow: 0 0 10px var(--glow-blue);
  transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
  background: var(--accent-cyan);
  transform: scale(1.2);
  box-shadow: 0 0 15px var(--glow-cyan);
}

/* Volume level indicator */
.volume-level {
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-width: 2rem;
  text-align: center;
}

/* Audio loading indicator */
.audio-loading {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(77, 212, 255, 0.3);
  border-top: 2px solid var(--primary-blue);
  border-radius: 50%;
  animation: audioLoadingSpin 1s linear infinite;
}

/* Animations */
@keyframes audioControlsSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes audioPlaying {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes audioLoadingSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .audio-controls {
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    z-index: 999;
  }

  .audio-toggle {
    font-size: 1.1rem;
    min-width: 2.2rem;
    min-height: 2.2rem;
  }

  .volume-control {
    max-width: 100px;
  }

  .volume-slider {
    width: 60px;
  }
}

@media (max-width: 479px) {
  .audio-controls {
    top: 1rem;
    right: 0.5rem;
    padding: 0.3rem 0.6rem;
  }

  .audio-toggle {
    font-size: 1rem;
    min-width: 2rem;
    min-height: 2rem;
  }

  .volume-control {
    display: none; /* Hide volume control on very small screens */
  }
}

/* ========== CURSOR DEBUGGING & TESTING ========== */

/* Add a subtle glow effect to help identify custom cursor usage */
body {
  cursor: url("/assets/cursor.cur"), auto !important;
}

/* Ensure cursor paths are correct with multiple fallbacks */
html {
  cursor: url("/assets/cursor.cur"), url("/assets/cursor.cur"), auto !important;
}

/* Force cursor on all elements as last resort */
*,
*::before,
*::after {
  cursor: inherit !important;
}

/* Specific cursor enforcement for problematic elements */
body *,
html * {
  cursor: inherit !important;
}

/* Override any CSS framework cursor styles */
.btn,
.button,
.clickable,
[onclick] {
  cursor: url("../assets/pointer.cur"), pointer !important;
}

/* Ensure cursor works in all browsers */
@-moz-document url-prefix() {
  * {
    cursor: url("../assets/cursor.cur"), auto !important;
  }

  button,
  a,
  [role="button"] {
    cursor: url("../assets/pointer.cur"), pointer !important;
  }
}

/* WebKit specific cursor fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  * {
    cursor: url("../assets/cursor.cur"), auto !important;
  }

  button,
  a,
  [role="button"] {
    cursor: url("../assets/pointer.cur"), pointer !important;
  }
}
