/* ============================================
   MBTI313 - WELCOME PAGE CSS
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(26, 26, 37, 0.6);
  --bg-elevated: #222230;

  --accent-primary: #f59e0b;
  --accent-secondary: #06b6d4;
  --accent-glow: rgba(245, 158, 11, 0.3);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(245, 158, 11, 0.25);

  --font-kurdish: "Vazirmatn", "Noto Sans Arabic", sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.15);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-kurdish);
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-secondary) 40%, #0d0d14 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.8;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 12s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================
   SKIP LINK
   ============================================ */

.skip-link {
  position: absolute;
  top: -100%;
  right: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent-primary);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ============================================
   BACKGROUND ORBS
   ============================================ */

.orb, .floating-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.orb-1, .floating-orb.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(245, 158, 11, 0.08);
  top: -100px;
  right: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2, .floating-orb.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.06);
  bottom: -80px;
  left: -80px;
  animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3, .floating-orb.orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(139, 92, 246, 0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, 50px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, -30px) scale(1.05); }
  66% { transform: translate(20px, -50px) scale(0.9); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* ============================================
   GRID OVERLAY
   ============================================ */

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   MBTI313 - PREMIUM HAMBURGER MENU
   ============================================ */

/* ── OVERLAY BACKDROP ── */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1098;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── HAMBURGER BUTTON - PREMIUM ── */
.menu-dots {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: rgba(26, 26, 37, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 0 0 rgba(245, 158, 11, 0);
  transition: 
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
  opacity: 0;
  transform: scale(0);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

@keyframes scaleIn {
  to { opacity: 1; transform: scale(1); }
}

/* Breathing glow ring */
.menu-dots::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease, inset 0.3s ease;
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.menu-dots:hover {
  transform: scale(1.1);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
}

.menu-dots:hover::before {
  opacity: 1;
  inset: -6px;
}

.menu-dots:active {
  transform: scale(0.92);
}

/* Ripple effect on click */
.menu-dots::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.menu-dots.active::after {
  animation: rippleBurst 0.5s ease-out;
}

@keyframes rippleBurst {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ── HAMBURGER ICON - ELASTIC LINES ── */
#hamburger {
  width: 24px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

#hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
  pointer-events: none;
  position: relative;
}

#hamburger span:nth-child(1) { width: 100%; }
#hamburger span:nth-child(2) { width: 75%; margin-left: auto; }
#hamburger span:nth-child(3) { width: 50%; margin-left: auto; }

/* Hover: lines equalize and glow */
.menu-dots:hover #hamburger span {
  width: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

/* ── X TRANSFORMATION - PERFECT ANIMATION ── */
.menu-dots.active #hamburger span:nth-child(1) {
  animation: bar1ToX 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.menu-dots.active #hamburger span:nth-child(2) {
  animation: bar2ToX 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.menu-dots.active #hamburger span:nth-child(3) {
  animation: bar3ToX 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Close animation (when removing .active) */
.menu-dots:not(.active) #hamburger span:nth-child(1) {
  animation: bar1FromX 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.menu-dots:not(.active) #hamburger span:nth-child(2) {
  animation: bar2FromX 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.menu-dots:not(.active) #hamburger span:nth-child(3) {
  animation: bar3FromX 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Keyframes for Open (to X) */
@keyframes bar1ToX {
  0% { transform: translateY(0) rotate(0); width: 100%; }
  50% { transform: translateY(8.75px) rotate(0); width: 100%; }
  100% { transform: translateY(8.75px) rotate(45deg); width: 100%; background: var(--accent-primary); }
}

@keyframes bar2ToX {
  0% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.5); opacity: 0.5; }
  100% { transform: scaleX(0); opacity: 0; }
}

@keyframes bar3ToX {
  0% { transform: translateY(0) rotate(0); width: 50%; }
  50% { transform: translateY(-8.75px) rotate(0); width: 100%; }
  100% { transform: translateY(-8.75px) rotate(-45deg); width: 100%; background: var(--accent-primary); }
}

/* Keyframes for Close (from X) */
@keyframes bar1FromX {
  0% { transform: translateY(8.75px) rotate(45deg); width: 100%; background: var(--accent-primary); }
  50% { transform: translateY(8.75px) rotate(0); width: 100%; }
  100% { transform: translateY(0) rotate(0); width: 100%; }
}

@keyframes bar2FromX {
  0% { transform: scaleX(0); opacity: 0; }
  50% { transform: scaleX(0.5); opacity: 0.5; }
  100% { transform: scaleX(1); opacity: 1; }
}

@keyframes bar3FromX {
  0% { transform: translateY(-8.75px) rotate(-45deg); width: 100%; background: var(--accent-primary); }
  50% { transform: translateY(-8.75px) rotate(0); width: 100%; }
  100% { transform: translateY(0) rotate(0); width: 50%; }
}

/* ── DROPDOWN MENU - PREMIUM ── */
.dropdown-menu {
  position: fixed;
  top: 90px;
  right: 24px;
  width: 260px;
  background: rgba(34, 34, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  z-index: 1099;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(245, 158, 11, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.9);
  transform-origin: top right;
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.menu-dots.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dropdown items - Glass Cards */
.dropdown-item {
  font-family: var(--font-kurdish);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 14px 18px;
  margin: 4px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
  opacity: 0;
  transform: translateX(25px) scale(0.95);
  -webkit-tap-highlight-color: transparent;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.menu-dots.active .dropdown-item {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.menu-dots.active .dropdown-item:nth-child(1) { transition-delay: 0.05s; }
.menu-dots.active .dropdown-item:nth-child(2) { transition-delay: 0.10s; }
.menu-dots.active .dropdown-item:nth-child(3) { transition-delay: 0.15s; }
.menu-dots.active .dropdown-item:nth-child(4) { transition-delay: 0.20s; }
.menu-dots.active .dropdown-item:nth-child(5) { transition-delay: 0.25s; }
.menu-dots.active .dropdown-item:nth-child(6) { transition-delay: 0.30s; }

/* Shimmer sweep */
.dropdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

/* Left gradient accent bar */
.dropdown-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 0%;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transform: translateY(-50%);
  transition: height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--text-primary);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.15);
  transform: translateX(-6px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(245, 158, 11, 0.08);
  outline: none;
}

.dropdown-item:hover::before {
  left: 100%;
}

.dropdown-item:hover::after {
  height: 60%;
}

/* Item icon */
.dropdown-item .item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
  flex-shrink: 0;
}

.dropdown-item:hover .item-icon {
  transform: scale(1.15) rotate(-8deg);
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

/* Active page state */
.dropdown-item.active {
  color: var(--accent-primary);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

.dropdown-item.active::after {
  height: 80%;
}

.dropdown-item.active .item-icon {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .menu-dots {
    top: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  #hamburger {
    width: 22px;
    height: 18px;
  }

  #hamburger span { height: 2px; }

  /* Adjust X animations for mobile */
  @keyframes bar1ToX {
    0% { transform: translateY(0) rotate(0); width: 100%; }
    50% { transform: translateY(7.75px) rotate(0); width: 100%; }
    100% { transform: translateY(7.75px) rotate(45deg); width: 100%; background: var(--accent-primary); }
  }

  @keyframes bar3ToX {
    0% { transform: translateY(0) rotate(0); width: 50%; }
    50% { transform: translateY(-7.75px) rotate(0); width: 100%; }
    100% { transform: translateY(-7.75px) rotate(-45deg); width: 100%; background: var(--accent-primary); }
  }

  @keyframes bar1FromX {
    0% { transform: translateY(7.75px) rotate(45deg); width: 100%; background: var(--accent-primary); }
    50% { transform: translateY(7.75px) rotate(0); width: 100%; }
    100% { transform: translateY(0) rotate(0); width: 100%; }
  }

  @keyframes bar3FromX {
    0% { transform: translateY(-7.75px) rotate(-45deg); width: 100%; background: var(--accent-primary); }
    50% { transform: translateY(-7.75px) rotate(0); width: 100%; }
    100% { transform: translateY(0) rotate(0); width: 50%; }
  }

  .dropdown-menu {
    top: 78px;
    right: 16px;
    width: 200px;
    padding: 0.5rem 0;
  }

  .dropdown-item {
    font-size: 0.9rem;
    padding: 12px 18px;
    margin: 3px 10px;
  }
}

@media (max-width: 480px) {
  .dropdown-menu {
    width: calc(100vw - 32px);
    right: 16px;
    left: 16px;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .menu-dots,
  .menu-dots::before,
  #hamburger span,
  .dropdown-menu,
  .dropdown-item {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  
  .menu-dots::before {
    opacity: 0.5;
    animation: none;
  }
}

/* ============================================
   PARTICLES CONTAINER
   ============================================ */

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   PARTICLES
   ============================================ */

.particle {
  position: fixed;
  width: 3px;
  height: 3px;
  background: rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: particleFloat linear infinite;
}

.particle:nth-child(5) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(6) { left: 25%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(7) { left: 40%; animation-duration: 12s; animation-delay: 4s; }
.particle:nth-child(8) { left: 55%; animation-duration: 20s; animation-delay: 1s; }
.particle:nth-child(9) { left: 70%; animation-duration: 16s; animation-delay: 3s; }
.particle:nth-child(10) { left: 85%; animation-duration: 14s; animation-delay: 5s; }
.particle:nth-child(11) { left: 15%; animation-duration: 22s; animation-delay: 6s; }
.particle:nth-child(12) { left: 90%; animation-duration: 17s; animation-delay: 0.5s; }

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.container {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  margin: 2rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   ICON
   ============================================ */

.icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: iconFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.3));
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   HEADING
   ============================================ */

h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 50%, #fff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================
   INTRO TEXT
   ============================================ */

.intro-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.9;
}

/* ============================================
   INSTRUCTIONS SECTION
   ============================================ */

#instructions {
  text-align: right;
  margin-bottom: 2rem;
  outline: none;
}

#instructions[hidden] {
  display: none;
}

#instructions:not([hidden]) {
  animation: fadeInUp 0.5s var(--ease-out-expo) both;
}

#instructions p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 2;
  font-size: 1rem;
}

#instructions strong {
  color: var(--accent-primary);
  font-weight: 700;
}

#instructions .highlight {
  color: var(--accent-secondary);
  font-weight: 600;
  background: rgba(6, 182, 212, 0.08);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--accent-secondary);
  margin-top: 1.5rem;
}

/* ============================================
   INSTRUCTION LIST (ol/li)
   ============================================ */

.instruction-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: instruction;
}

.instruction-list li {
  position: relative;
  padding-right: 3rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 2;
  font-size: 1rem;
}

.instruction-list li::before {
  counter-increment: instruction;
  content: counter(instruction, arabic-indic) ".";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 1.1rem;
  width: 2rem;
  text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

button {
  font-family: var(--font-kurdish);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out-back);
  min-width: 160px;
}

button:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

#start-btn {
  background: linear-gradient(135deg, var(--accent-primary), #d97706);
  color: #fff;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

#start-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4), 0 0 0 4px rgba(245, 158, 11, 0.1);
}

#start-btn:active {
  transform: translateY(-1px) scale(0.98);
}

#ready-btn {
  background: linear-gradient(135deg, var(--accent-secondary), #0891b2);
  color: #fff;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

#ready-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.4), 0 0 0 4px rgba(6, 182, 212, 0.1);
}

#ready-btn:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

#ready-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ============================================
   PULSE ANIMATION
   ============================================ */

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3), 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3), 0 0 0 12px rgba(245, 158, 11, 0);
  }
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin-top: -9px;
  margin-left: -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading span {
  opacity: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

::selection {
  background: rgba(245, 158, 11, 0.25);
  color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .container {
    margin: 1rem;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
  }

  h1 {
    font-size: 1.6rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  #instructions p,
  .instruction-list li {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  button {
    font-size: 1rem;
    padding: 0.875rem 2rem;
    min-width: 140px;
  }

  .btn-group {
    gap: 0.75rem;
  }

  .orb {
    opacity: 0.25;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  button {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before {
    animation: none;
  }

  .container {
    animation: none;
  }

  .icon {
    animation: none;
  }
}

/* Performance overrides */
body::before,
.orb,
.particle,
.icon,
h1,
.pulse,
.menu-dots::before {
  animation: none;
}

button,
.menu-dots,
.dropdown-menu,
.dropdown-item { transition-duration: 0.18s; }

@media (max-width: 768px) {
  body { background-attachment: scroll; }
  .container {
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
