/* ============================================
   MBTI313 - FIXED MENU CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Noto+Sans+Arabic:wght@400;600;700;800&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a25;
  --bg-elevated: #222230;
  --accent-primary: #f59e0b;
  --accent-secondary: #06b6d4;
  --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-display: 'Inter', 'Noto Sans Arabic', sans-serif;
  --font-kurdish: 'Noto Sans Arabic', 'Inter', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

*, *::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-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-secondary) 40%, #0d0d14 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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; }
}

/* ── FLOATING ORBS ── */
.floating-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(245, 158, 11, 0.1);
  top: -100px;
  right: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.06);
  bottom: 10%;
  left: -100px;
  animation: orbFloat2 25s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 40px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* ── HEADER ── */
header {
  position: relative;
  width: 92%;
  max-width: 900px;
  margin: var(--space-lg) auto;
  padding: var(--space-lg) var(--space-xl);
  background: rgba(26, 26, 37, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1;
  animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(-20px);
}

@keyframes slideDown {
  to { opacity: 1; transform: translateY(0); }
}

header h1 {
  font-family: var(--font-kurdish);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  position: relative;
  line-height: 1.3;
  background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards,
             gradientShift 8s ease-in-out infinite;
  opacity: 0;
  transform: translateY(15px);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  border-radius: var(--radius-full);
  animation: expandWidth 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  width: 0;
}

@keyframes expandWidth {
  to { width: 50px; }
}

header p {
  font-family: var(--font-kurdish);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
  max-width: 500px;
  line-height: 1.9;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
  transform: translateY(15px);
}

/* ============================================
   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;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-overlay.active {
  opacity: 1;
  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);
  /* Prevent text selection */
  -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;
}

/* Staggered width for visual interest */
#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);

  display: none;
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  transform-origin: top right;
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-dots.active .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Open state */
.menu-dots.active .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* 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;
  }
}

/* ── MAIN ── */
main {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── BUTTONS ── */
.test-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  width: 100%;
  justify-items: center;
}

.test-links a.btn {
  font-family: var(--font-kurdish);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  width: 100%;
  max-width: 320px;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(25px);
}

.test-links a.btn:nth-child(1) { animation-delay: 0.1s; }
.test-links a.btn:nth-child(2) { animation-delay: 0.2s; }
.test-links a.btn:nth-child(3) { animation-delay: 0.3s; }
.test-links a.btn:nth-child(4) { animation-delay: 0.4s; }

/* Shimmer */
.test-links a.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s ease;
}

.test-links a.btn:hover::before {
  left: 100%;
}

/* Gradient border */
.test-links a.btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-primary), transparent, var(--accent-secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.test-links a.btn:hover::after {
  opacity: 1;
}

.test-links a.btn:hover,
.test-links a.btn:focus {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.15);
  border-color: var(--border-glow);
  outline: none;
}

.test-links a.btn:active {
  transform: translateY(-2px) scale(0.98);
}

.test-links a.btn .btn-icon {
  font-size: 2rem;
  margin-bottom: 4px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.test-links a.btn:hover .btn-icon {
  transform: scale(1.2) rotate(-5deg);
}

.test-links a.btn .btn-label {
  font-family: var(--font-kurdish);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.2s ease;
}

.test-links a.btn:hover .btn-label {
  color: var(--accent-primary);
}

/* ── FOOTER ── */
footer {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  position: relative;
  z-index: 1;
  letter-spacing: 0.03em;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  opacity: 0;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: var(--radius-full); border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

::selection {
  background: rgba(245, 158, 11, 0.25);
  color: var(--text-primary);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --space-lg: 1.5rem; --space-xl: 2.5rem; }
  .floating-orb { display: none; }

  header {
    width: 95%;
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-md) auto;
  }
  header h1 { font-size: 1.8rem; }
  header p { font-size: 1rem; }

  .menu-dots {
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  #hamburger { width: 20px; height: 16px; }
  #hamburger span { height: 2px; }

  .menu-dots.active #hamburger span:nth-child(1) {
    transform: translateY(6.75px) rotate(45deg);
  }
  .menu-dots.active #hamburger span:nth-child(3) {
    transform: translateY(-6.75px) rotate(-45deg);
  }

  .dropdown-menu {
    top: 78px;
    right: 16px;
    width: 220px;
    padding: 0.4rem;
  }

  .dropdown-item {
    font-size: 0.9rem;
    padding: 12px 14px;
    gap: 12px;
  }

  .dropdown-item .item-icon {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  main { padding: var(--space-lg) var(--space-md); }
  .test-links { grid-template-columns: 1fr; gap: var(--space-md); }
  .test-links a.btn { max-width: 100%; padding: var(--space-md); }
}

@media (max-width: 480px) {
  header h1 { font-size: 1.5rem; }
  .test-links a.btn { font-size: 1rem; }
}

/* Reduced motion */
@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; }
  .floating-orb { display: none; }
}