:root {
  font-family: "Noto Sans JP", sans-serif;
}

.sl-toast-stack {
  z-index: 100000 !important;
}

/* Mobile overflow prevention */
* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Prevent any element from extending beyond viewport */
body > * {
  max-width: 100vw;
  box-sizing: border-box;
}

/* Ensure all text content wraps properly */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure flex containers don't overflow */
.flex {
  min-width: 0;
}

/* Prevent flex items from causing overflow */
.flex > * {
  min-width: 0;
  flex-shrink: 1;
}

/* Responsive phone input container */
@media (max-width: 639px) {
  .flex.flex-col.sm\\:flex-row {
    flex-direction: column !important;
  }

  .relative.w-full.sm\\:w-32.md\\:w-40.lg\\:w-48.flex-shrink-0 {
    width: 100% !important;
    flex-shrink: 1 !important;
  }

  /* Ensure registration section has better mobile spacing */
  .grid.lg\\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Better mobile text sizing */
  .text-4xl {
    font-size: 2rem !important;
    line-height: 2.5rem !important;
  }

  /* Ensure dropdowns don't overflow on mobile */
  .absolute.top-full {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -90%;
  width: 85%;
  height: 100vh;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-left: 1px solid #374151;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Prevent scroll chaining to background */
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-panel.active {
  right: 0;
}

/* Hamburger Animation */
.hamburger-line {
  transform-origin: center;
}

.hamburger-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.4rem, 0.4rem);
}

.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

/* Ensure mobile menu is only visible on mobile */
@media (min-width: 768px) {
  .mobile-menu-overlay,
  .mobile-menu-panel {
    display: none !important;
  }
}

/* Body scroll lock styles */
body.scroll-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* Prevent scroll chaining and bounce effects */
html.mobile-menu-open {
  overscroll-behavior: none;
}

body.mobile-menu-open {
  overscroll-behavior: none;
  touch-action: none;
}

/* Modal scroll lock styles */
html.modal-open {
  overscroll-behavior: none;
}

body.modal-open {
  overscroll-behavior: none;
  touch-action: none;
}

/* Base gradients and effects */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.hero-gradient {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.blur-bg {
  backdrop-filter: blur(12px);
}

/* Advanced morphing background shapes */
.morphing-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.morph-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: morphing 20s ease-in-out infinite;
  opacity: 0.1;
}
.blob-1 {
  top: 10%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #8b5cf6, #3b82f6);
  animation-delay: 0s;
}
.blob-2 {
  top: 70%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, #06b6d4, #8b5cf6);
  animation-delay: -10s;
}
.blob-3 {
  bottom: 10%;
  left: 50%;
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, #3b82f6, #06b6d4);
  animation-delay: -5s;
}

@keyframes morphing {
  0%,
  100% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    border-radius: 30% 70% 70% 30%/50% 60% 30% 60%;
    transform: translate(30px, -50px) rotate(90deg) scale(1.1);
  }
  50% {
    border-radius: 50% 60% 30% 60%/30% 60% 70% 40%;
    transform: translate(-20px, 20px) rotate(180deg) scale(0.9);
  }
  75% {
    border-radius: 60% 40% 60% 40%/70% 50% 40% 50%;
    transform: translate(50px, 30px) rotate(270deg) scale(1.05);
  }
}

/* Advanced particle system */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: advancedFloat 8s infinite ease-in-out;
  opacity: 0;
}
.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.8), transparent);
  animation-delay: 0s;
}
.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 20%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent);
  animation-delay: 1s;
}
.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 30%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.7), transparent);
  animation-delay: 2s;
}
.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  left: 40%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent);
  animation-delay: 1.5s;
}
.particle:nth-child(5) {
  width: 4px;
  height: 4px;
  left: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.8), transparent);
  animation-delay: 3s;
}
.particle:nth-child(6) {
  width: 6px;
  height: 6px;
  left: 70%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.6), transparent);
  animation-delay: 2.5s;
}
.particle:nth-child(7) {
  width: 3px;
  height: 3px;
  left: 80%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.7), transparent);
  animation-delay: 4s;
}
.particle:nth-child(8) {
  width: 5px;
  height: 5px;
  left: 90%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent);
  animation-delay: 3.5s;
}
.particle:nth-child(9) {
  width: 2px;
  height: 2px;
  left: 15%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.9), transparent);
  animation-delay: 5s;
}
.particle:nth-child(10) {
  width: 7px;
  height: 7px;
  left: 85%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent);
  animation-delay: 6s;
}

@keyframes advancedFloat {
  0% {
    transform: translateY(100vh) translateX(0) scale(0) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    transform: translateY(75vh) translateX(-20px) scale(0.8) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(50vh) translateX(40px) scale(1.2) rotate(180deg);
    opacity: 0.6;
  }
  75% {
    transform: translateY(25vh) translateX(-30px) scale(0.9) rotate(270deg);
    opacity: 0.4;
  }
  95% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-10vh) translateX(0) scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* Scroll-triggered animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animations */
.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}
.stagger-5 {
  transition-delay: 0.5s;
}

/* Typing animation */
.typing-text {
  overflow: hidden;
  border-right: 3px solid rgba(139, 92, 246, 0.8);
  white-space: nowrap;
  animation: typing 4s steps(40, end), blink-caret 1s step-end infinite;
  animation-delay: 1s;
  animation-fill-mode: both;
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: rgba(139, 92, 246, 0.8);
  }
}

/* Enhanced feature cards */
.feature-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
}
.feature-card:hover .gradient-border {
  opacity: 1;
}
.gradient-border {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
  opacity: 0;
  transition: all 0.6s ease;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Glassmorphism form styling */
.glass-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}

/* Enhanced form inputs */
.form-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.5);
  color: white;
  padding: 0.875rem;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  max-width: 100%;
  min-width: 0;
}
.form-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2),
    0 0 20px rgba(139, 92, 246, 0.1);
  background: rgba(15, 23, 42, 0.8);
  transform: scale(1.01);
}
.form-input:hover {
  border-color: rgba(139, 92, 246, 0.6);
}

/* Enhanced buttons */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  background-size: 200% 200%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  background-position: right center;
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.btn-primary:hover::before {
  left: 100%;
}

/* Enhanced FAQ items */
.faq-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-radius: 1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Text animations */
.animate-text {
  background: linear-gradient(135deg, #ffffff, #cbd5e1, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: textGlow 4s ease-in-out infinite;
}
@keyframes textGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Success message enhancement */
.success-message {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2),
    rgba(16, 185, 129, 0.1)
  );
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(16px);
  animation: successPulse 2s ease-in-out;
}
@keyframes successPulse {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Loading animations */
.loading-dots::after {
  content: "";
  animation: dots 1.5s steps(5, end) infinite;
}
@keyframes dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

/* Smooth scroll enhancement */
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 100px;
}

/* Image hover effects */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}
.image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(139, 92, 246, 0.1),
    rgba(59, 130, 246, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-container:hover::after {
  opacity: 1;
}

/* Enhanced radio buttons */
input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #8b5cf6;
  border-radius: 50%;
  position: relative;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
input[type="radio"]:checked {
  background: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}
input[type="radio"]:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  width: 100%;
  max-width: 28rem; /* 448px */
  max-height: 80vh; /* Safe height for mobile with browser UI */
  transform: scale(0.7) translateY(50px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  /* Prevent scroll chaining to background */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Modal Header - Fixed */
.modal-header {
  padding: 1rem 1rem 0.75rem;
  text-align: center;
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Modal Body - Scrollable */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  /* Custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) rgba(30, 41, 59, 0.1);
}

/* Modal Footer - Fixed */
.modal-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 0 0 1rem 1rem;
}

/* Custom scrollbar styling for modal body */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.1);
  border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(71, 85, 105, 0.3);
  border: 1px solid rgba(71, 85, 105, 0.5);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  font-size: 1rem;
  transition: transform 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease;
  transform-origin: 50% 50%;
  will-change: transform;
  touch-action: manipulation;
  z-index: 10;
  /* Ensure the button itself captures all clicks */
  padding: 0;
}

.modal-close:hover {
  background: rgba(71, 85, 105, 0.5);
  transform: rotate(90deg) translateZ(0);
}

.modal-close svg {
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
  cursor: inherit;
}

.modal-close svg * {
  pointer-events: none;
  cursor: inherit;
}

/* Modal responsive adjustments */
@media (min-width: 640px) {
  .modal-content {
    border-radius: 1.5rem;
    max-width: 32rem; /* 512px */
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-footer {
    padding: 1.5rem;
    border-radius: 0 0 1.5rem 1.5rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .modal-close svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}
@media (min-width: 768px) {
  .modal-overlay {
    padding: 2rem;
  }

  .modal-content {
    max-height: 85vh; /* Slightly more height on larger screens */
  }
}

/* Floating elements animation */
.floating-icon {
  position: absolute;
  animation: floatUpDown 4s ease-in-out infinite;
}
.floating-icon:nth-child(odd) {
  animation-delay: -2s;
}
@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Neon glow effects */
.neon-glow {
  position: relative;
  text-shadow: 0 0 5px rgba(139, 92, 246, 0.5), 0 0 10px rgba(139, 92, 246, 0.5),
    0 0 15px rgba(139, 92, 246, 0.5);
}

/* Loading spinner */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Pulse animations */
.pulse-ring {
  position: absolute;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(
    45deg,
    #8b5cf6,
    #3b82f6,
    #06b6d4,
    #10b981,
    #f59e0b,
    #ef4444,
    #8b5cf6
  );
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 6s ease infinite;
}
@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Glitch effect */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.glitch::before {
  animation: glitch-1 2s infinite;
  color: #ff00ff;
  z-index: -1;
}
.glitch::after {
  animation: glitch-2 2s infinite;
  color: #00ffff;
  z-index: -2;
}
@keyframes glitch-1 {
  0%,
  14%,
  15%,
  49%,
  50%,
  99%,
  100% {
    transform: translate(0);
  }
  1%,
  13% {
    transform: translate(-2px, 2px);
  }
  16%,
  48% {
    transform: translate(2px, -2px);
  }
}
@keyframes glitch-2 {
  0%,
  20%,
  21%,
  62%,
  63%,
  99%,
  100% {
    transform: translate(0);
  }
  1%,
  19% {
    transform: translate(2px, 2px);
  }
  22%,
  61% {
    transform: translate(-2px, -2px);
  }
}

/* Animated icons */
.animated-icon {
  animation: iconBounce 2s ease-in-out infinite;
}
@keyframes iconBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Progress bar animation */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 1rem 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
  border-radius: 2px;
  animation: progressFlow 3s ease-in-out infinite;
}
@keyframes progressFlow {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Floating action button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
  animation: fabPulse 3s ease-in-out infinite;
}
.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}
@keyframes fabPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Scroll indicators */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1001;
}
.scroll-progress {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4, #10b981);
  width: 0%;
  transition: width 0.1s ease;
}

/* Text reveal animation */
.text-reveal {
  overflow: hidden;
}
.text-reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100px);
  animation: textReveal 0.8s ease forwards;
}
@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background grid pattern */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(139, 92, 246, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* New spectacular animations */
.cosmic-drift {
  animation: cosmicDrift 15s ease-in-out infinite;
}
@keyframes cosmicDrift {
  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
    filter: hue-rotate(0deg);
  }
  25% {
    transform: translateX(20px) translateY(-15px) rotate(90deg);
    filter: hue-rotate(90deg);
  }
  50% {
    transform: translateX(-10px) translateY(20px) rotate(180deg);
    filter: hue-rotate(180deg);
  }
  75% {
    transform: translateX(-20px) translateY(-10px) rotate(270deg);
    filter: hue-rotate(270deg);
  }
}

.holographic-text {
  background: linear-gradient(
    45deg,
    #ff0080,
    #00ff80,
    #8000ff,
    #ff8000,
    #0080ff
  );
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: holographic 4s ease infinite;
  text-shadow: 0 0 30px rgba(255, 0, 128, 0.3);
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .holographic-text {
    animation: holographic 10s linear infinite;
  }
}
@keyframes holographic {
  0%,
  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.3);
  }
}

.levitate {
  animation: levitate 6s ease-in-out infinite;
}
@keyframes levitate {
  0%,
  100% {
    transform: translateY(0px) rotateZ(0deg);
  }
  50% {
    transform: translateY(-10px) rotateZ(5deg);
  }
}

.cyber-glow {
  position: relative;
  overflow: hidden;
}
.cyber-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.4),
    transparent
  );
  animation: cyberSweep 3s infinite;
}
@keyframes cyberSweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.matrix-rain {
  position: absolute;
  color: #00ff41;
  font-family: "Courier New", monospace;
  font-size: 14px;
  animation: matrixFall 10s linear infinite;
  opacity: 0.1;
}
@keyframes matrixFall {
  0% {
    transform: translateY(-100vh);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.quantum-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* lock the icon size to avoid layout wobble */
  width: 1.25rem; /* same as w-5 */
  height: 1.25rem; /* same as h-5 */
  will-change: transform, opacity; /* hint for GPU */
}

/* The pulsing ring */
.quantum-pulse::after {
  content: "";
  position: absolute;
  inset: 0; /* ring starts from the icon’s edges */
  border-radius: 9999px; /* fully rounded */
  background: currentColor; /* uses .text-green-400 */
  opacity: 0.28;
  transform: scale(1); /* start tight */
  animation: pulseRing 2.8s ease-out infinite;
  pointer-events: none;
}

/* GPU-friendly: only transform + opacity */
@keyframes pulseRing {
  0% {
    opacity: 0.28;
    transform: scale(1);
  }
  60% {
    opacity: 0;
    transform: scale(2);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

/* Keep the SVG from causing layout; make it fit the wrapper precisely */
.quantum-pulse > svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0); /* nudge GPU on Safari */
}

/* Optional: tone down motion on small screens for even smoother feel */
@media (max-width: 640px) {
  .levitate {
    animation: none !important;
  } /* disable the float effect on mobile */
  .quantum-pulse::after {
    animation-duration: 3.6s;
  } /* slower pulse = fewer frames */
}

/* Respect user preference */
@media (prefers-reduced-motion: reduce) {
  .levitate,
  .quantum-pulse::after {
    animation: none !important;
  }
}

.neon-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg, #8b5cf6, #3b82f6) border-box;
  border-radius: 12px;
}
.neon-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  padding: 2px;
  background: linear-gradient(45deg, #ff0080, #00ff80, #8000ff);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: neonRotate 3s linear infinite;
}
@keyframes neonRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.geometric-float {
  animation: geometricFloat 8s ease-in-out infinite;
}
@keyframes geometricFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
    filter: brightness(1);
  }
  25% {
    transform: translateY(-15px) rotateX(15deg) rotateY(90deg);
    filter: brightness(1.2);
  }
  50% {
    transform: translateY(10px) rotateX(-10deg) rotateY(180deg);
    filter: brightness(0.8);
  }
  75% {
    transform: translateY(-5px) rotateX(5deg) rotateY(270deg);
    filter: brightness(1.1);
  }
}

.aurora-wave {
  background: linear-gradient(
    270deg,
    #ff0080,
    #00ff80,
    #8000ff,
    #ff8000,
    #0080ff
  );
  background-size: 400% 400%;
  animation: auroraWave 8s ease infinite;
}
@keyframes auroraWave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.digital-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.rain-drop {
  position: absolute;
  color: rgba(0, 255, 65, 0.1);
  font-family: "Courier New", monospace;
  font-size: 12px;
  animation: digitalRain 15s linear infinite;
}
@keyframes digitalRain {
  0% {
    transform: translateY(-100vh);
    opacity: 0;
  }
  5% {
    opacity: 0.1;
  }
  95% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.prism-effect {
  background: linear-gradient(
    45deg,
    rgba(255, 0, 0, 0.1) 0%,
    rgba(255, 127, 0, 0.1) 14%,
    rgba(255, 255, 0, 0.1) 28%,
    rgba(0, 255, 0, 0.1) 42%,
    rgba(0, 0, 255, 0.1) 57%,
    rgba(75, 0, 130, 0.1) 71%,
    rgba(148, 0, 211, 0.1) 85%,
    rgba(255, 0, 0, 0.1) 100%
  );
  background-size: 200% 200%;
  animation: prismShift 6s ease infinite;
}
@keyframes prismShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Country dropdown styles */
.country-option {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(71, 85, 105, 0.2);
}
.country-option:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}
.country-option:last-child {
  border-bottom: none;
}

.country-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.country-name {
  color: #e2e8f0;
  font-weight: 500;
}
.country-code {
  color: #94a3b8;
  font-size: 14px;
}
.dropdown-search {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #1e293b;
}

/* Form validation styling override */
.form-input {
  border: 2px solid rgba(71, 85, 105, 0.3) !important;
  transition: border-color 0.3s ease;
}
.form-input:focus {
  border-color: rgba(139, 92, 246, 0.5) !important;
  outline: none;
}
/* Override browser's default validation styling */
.form-input:valid {
  border-color: rgba(71, 85, 105, 0.3) !important;
}
.form-input:invalid {
  border-color: rgba(71, 85, 105, 0.3) !important;
}

/* CSS Custom Properties for Validation Colors */
:root {
  --validation-success-color: #86efac; /* green-300 */
  --validation-error-color: #f87171; /* red-400 */
  --validation-success-shadow: 0 0 0 1px var(--validation-success-color);
  --validation-error-shadow: 0 0 0 1px var(--validation-error-color);
}

/* Only show green border when explicitly set by our JavaScript */
.form-input.border-green-500 {
  border-color: var(--validation-success-color) !important;
  box-shadow: var(--validation-success-shadow) !important;
}
.form-input.border-red-500 {
  border-color: var(--validation-error-color) !important;
  box-shadow: var(--validation-error-shadow) !important;
}
