/* Custom styles for CopilotHarness Marketing Site */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.7;
  scroll-behavior: smooth;
  padding-top: 64px; /* Account for fixed header */
  position: relative;
}

/* Loading state - prevent flash of unstyled content (only when JS enabled) */
.js-enabled body {
  opacity: 0;
}

.js-enabled body.page-loaded {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

/* Without JS, body is immediately visible */
html:not(.js-enabled) body {
  opacity: 1;
}

main, header, footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

code, pre {
  font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Mobile menu animations */
#mobile-menu {
  transition: all 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  max-height: 500px;
}

/* Header shadow on scroll */
#header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.1);
}

/* Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Grid pattern background with animation */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(0, 217, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* Particle field */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(var(--drift));
    opacity: 0;
  }
}

/* Gradient orb background animation */
.orb-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: floatOrb linear infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.8) 0%, rgba(0, 217, 255, 0) 70%);
  top: 10%;
  left: 10%;
  animation-duration: 25s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, rgba(139, 92, 246, 0) 70%);
  top: 50%;
  right: 10%;
  animation-duration: 30s;
  animation-delay: -10s;
}

.orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, rgba(168, 85, 247, 0) 70%);
  bottom: 10%;
  left: 50%;
  animation-duration: 35s;
  animation-delay: -20s;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, -80px) scale(0.9);
  }
  75% {
    transform: translate(70px, -40px) scale(1.05);
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none;
  }
}

/* Floating code snippets in hero */
.code-snippets-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.code-snippet {
  position: absolute;
  background: rgba(20, 20, 20, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 8px;
  padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #00D9FF;
  box-shadow: 0 8px 32px rgba(0, 217, 255, 0.1);
  animation: floatSnippet ease-in-out infinite;
  opacity: 0.7;
}

.code-snippet-1 {
  top: 20%;
  left: 15%;
  animation-duration: 8s;
  animation-delay: 0s;
}

.code-snippet-2 {
  top: 30%;
  right: 10%;
  animation-duration: 10s;
  animation-delay: -2s;
}

.code-snippet-3 {
  bottom: 25%;
  left: 10%;
  animation-duration: 9s;
  animation-delay: -4s;
}

.code-snippet-4 {
  bottom: 35%;
  right: 15%;
  animation-duration: 11s;
  animation-delay: -6s;
  color: #8B5CF6;
  border-color: rgba(139, 92, 246, 0.2);
}

@keyframes floatSnippet {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-10px) translateX(-15px);
  }
  75% {
    transform: translateY(-25px) translateX(5px);
  }
}

/* Hide code snippets on mobile for cleaner look */
@media (max-width: 768px) {
  .code-snippet {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-snippet {
    animation: none;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00D9FF, #8B5CF6);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00D9FF, #A855F7);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid #00D9FF;
  outline-offset: 2px;
  border-radius: 4px;
  transition: outline 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Enhanced focus styles for different element types */
a:focus-visible {
  outline: 2px solid #00D9FF;
  outline-offset: 4px;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
}

button:focus-visible {
  outline: 2px solid #00D9FF;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.2), 0 0 20px rgba(0, 217, 255, 0.3);
  transition: all 0.2s ease-in-out;
}

/* Focus styles for navigation links */
nav a:focus-visible {
  outline: 2px solid #00D9FF;
  outline-offset: 2px;
  background-color: rgba(0, 217, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
  transition: all 0.2s ease-in-out;
}

/* Focus styles for primary CTA buttons with gradient */
.bg-gradient-to-r:focus-visible {
  outline: 3px solid #00D9FF;
  outline-offset: 4px;
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
  transform: scale(1.02);
  transition: all 0.2s ease-in-out;
}

/* Focus styles for cards */
.problem-card:focus,
.solution-card:focus,
.feature-card:focus,
.testimonial-card:focus {
  outline: 2px solid #00D9FF;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.1), 0 0 30px rgba(0, 217, 255, 0.2);
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}

/* Smooth animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease-out forwards;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from right for solution cards */
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply slide-in-right to solution cards */
#solution > div > div {
  opacity: 0;
  transform: translateX(50px);
}

#solution > div > div.fade-in {
  animation: slideInRight 0.8s ease-out forwards;
}

/* Animated checkmarks for solution cards */
#solution > div > div > div:first-child {
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#solution > div > div.fade-in > div:first-child {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition-delay: 0.3s;
}

@keyframes checkmarkDraw {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

#solution > div > div.fade-in > div:first-child {
  animation: checkmarkDraw 0.6s ease-out forwards;
  animation-delay: 0.4s;
}

/* Glow effects */
.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.glow-purple {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Pulsing glow animation for CTA buttons */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6), 0 0 60px rgba(139, 92, 246, 0.4);
  }
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Button Shine Effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}


/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

/* Link underline animation */
a:not(.no-underline-anim) {
  position: relative;
  text-decoration: none;
}

a:not(.no-underline-anim)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00D9FF, #8B5CF6);
  transition: width 0.3s ease;
}

a:not(.no-underline-anim):hover::after,
a:not(.no-underline-anim).active::after {
  width: 100%;
}

/* Active navigation link */
nav a.active {
  color: #00D9FF;
}

/* Icon pulse animation */
.icon-pulse {
  filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.4));
  transition: filter 0.3s ease;
}

.icon-pulse:hover {
  animation: iconPulse 0.6s ease-in-out;
  filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.7)) drop-shadow(0 0 25px rgba(139, 92, 246, 0.5));
}

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

/* Bento grid layout for features */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  grid-auto-rows: 180px;
}

.bento-card {
  border: 1px solid rgba(0, 217, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-large {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-tall {
  grid-row: span 2;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-large {
    grid-column: span 2;
  }
  
  .bento-tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  
  .bento-large,
  .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Shake/glitch effect for problem card icons */
@keyframes iconShake {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -1px) rotate(-1deg);
  }
  20% {
    transform: translate(1px, 1px) rotate(1deg);
  }
  30% {
    transform: translate(-1px, 1px) rotate(-0.5deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(0.5deg);
  }
  50% {
    transform: translate(-1px, 0px) rotate(-0.5deg);
  }
  60% {
    transform: translate(1px, 0px) rotate(0.5deg);
  }
  70% {
    transform: translate(0px, -1px) rotate(-0.5deg);
  }
  80% {
    transform: translate(0px, 1px) rotate(0.5deg);
  }
  90% {
    transform: translate(-0.5px, 0px) rotate(-0.25deg);
  }
}

#problem > div > div > div:first-child {
  animation: iconShake 4s ease-in-out infinite;
  animation-delay: calc(var(--card-index, 0) * 0.3s);
  display: inline-block;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

/* Animated gradient border on hover */
@keyframes rotateBorder {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.gradient-border-animated {
  position: relative;
  background: linear-gradient(90deg, #00D9FF, #8B5CF6, #00D9FF);
  background-size: 200% 200%;
  animation: rotateBorder 3s linear infinite;
}

.gradient-border-animated::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: #141414;
  border-radius: inherit;
}

/* Card hover effects with animated gradient borders */
#problem > div > div,
#solution > div > div {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

#problem > div > div::before,
#solution > div > div::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #00D9FF, #8B5CF6, #00D9FF, #8B5CF6);
  background-size: 300% 300%;
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  animation: rotateGradient 4s linear infinite;
}

#problem > div > div:hover::before,
#solution > div > div:hover::before {
  opacity: 1;
}

#problem > div > div:hover,
#solution > div > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

@keyframes rotateGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Feature cards hover effect */
#features > div > div {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

#features > div > div::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #00D9FF, #8B5CF6, #00D9FF);
  background-size: 300% 300%;
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  animation: rotateGradient 4s linear infinite;
}

#features > div > div:hover::before {
  opacity: 1;
}

#features > div > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

/* Loop diagram sequential light-up animation */
.loop-step {
  opacity: 0.3;
  transform: scale(0.95);
  transition: all 0.6s ease;
}

.loop-connector {
  opacity: 0.3;
  transition: opacity 0.6s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

/* Add flowing line effect using pseudo-element */
.loop-connector::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 217, 255, 0.8) 50%,
    transparent 100%
  );
  box-shadow: 
    0 0 10px rgba(0, 217, 255, 0.8),
    0 0 20px rgba(0, 217, 255, 0.6),
    0 0 30px rgba(0, 217, 255, 0.4);
  opacity: 0;
  border-radius: 2px;
}

#loop-diagram.animate .loop-step {
  animation: stepLightUp 0.8s ease-out forwards;
}

/* Stagger the animation for each step */
#loop-diagram.animate .loop-step:nth-child(1) { animation-delay: 0s; }
#loop-diagram.animate .loop-connector:nth-child(2) { --connector-delay: 0.2s; }
#loop-diagram.animate .loop-step:nth-child(3) { animation-delay: 0.4s; }
#loop-diagram.animate .loop-connector:nth-child(4) { --connector-delay: 0.6s; }
#loop-diagram.animate .loop-step:nth-child(5) { animation-delay: 0.8s; }
#loop-diagram.animate .loop-connector:nth-child(6) { --connector-delay: 1.0s; }
#loop-diagram.animate .loop-step:nth-child(7) { animation-delay: 1.2s; }
#loop-diagram.animate .loop-connector:nth-child(8) { --connector-delay: 1.4s; }
#loop-diagram.animate .loop-step:nth-child(9) { animation-delay: 1.6s; }
#loop-diagram.animate .loop-connector:nth-child(10) { --connector-delay: 1.8s; }
#loop-diagram.animate .loop-step:nth-child(11) { animation-delay: 2.0s; }
#loop-diagram.animate .loop-connector:nth-child(12) { --connector-delay: 2.2s; }
#loop-diagram.animate .loop-step:nth-child(13) { animation-delay: 2.4s; }

@keyframes stepLightUp {
  0% {
    opacity: 0.3;
    transform: scale(0.95);
    box-shadow: none;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
  }
}

@keyframes connectorLightUp {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

/* Continuous glowing effect for connectors */
@keyframes connectorGlow {
  0%, 100% {
    text-shadow: 
      0 0 15px rgba(0, 217, 255, 0.6),
      0 0 30px rgba(0, 217, 255, 0.4),
      0 0 45px rgba(0, 217, 255, 0.2);
    color: rgba(0, 217, 255, 0.7);
  }
  50% {
    text-shadow: 
      0 0 25px rgba(0, 217, 255, 1),
      0 0 40px rgba(0, 217, 255, 0.8),
      0 0 60px rgba(139, 92, 246, 0.6),
      0 0 80px rgba(139, 92, 246, 0.4);
    color: rgba(255, 255, 255, 1);
  }
}

/* Flowing animation for the connecting line */
@keyframes flowDown {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(0px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(30px) scale(0.5);
  }
}

/* Apply glow to connectors after initial animation */
#loop-diagram.animate .loop-connector {
  animation: connectorLightUp 0.8s ease-out forwards, 
             connectorGlow 2s ease-in-out infinite;
  animation-delay: var(--connector-delay, s), 
                   calc(var(--connector-delay, 0s) + 0.8s);
}

/* Apply flowing animation to the connecting line */
#loop-diagram.animate .loop-connector::before {
  animation: flowDown 3s ease-in-out infinite;
  animation-delay: calc(var(--connector-delay, 0s) + 0.8s);
}

/* Text selection */
::selection {
  background-color: rgba(0, 217, 255, 0.3);
  color: white;
}

::-moz-selection {
  background-color: rgba(0, 217, 255, 0.3);
  color: white;
}

/* Terminal typing effect cursor */
.terminal-cursor {
  color: #00D9FF;
  font-weight: bold;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 50% {
    opacity: 1;
  }
  50.01%, 100% {
    opacity: 0;
  }
}

.typing-line {
  opacity: 0;
}

/* Testimonial fade-in animation */
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .bg-grid-pattern {
    animation: none !important;
  }
}

/* Mobile performance optimizations - reduce heavy animations */
@media (max-width: 768px) {
  /* Disable parallax effects on mobile (handled in JS) */
  
  /* Reduce animation speeds for better mobile performance */
  .bg-grid-pattern {
    animation-duration: 30s !important; /* Slower = less CPU */
  }
  
  /* Simplify gradient animations on mobile */
  .hero-gradient-bg,
  .cta-gradient-bg {
    animation: none;
    background: linear-gradient(135deg, #141414 0%, #1a1a2e 100%);
  }
  
  /* Reduce loop diagram animation complexity */
  #loop-diagram .loop-step {
    animation-duration: 1.2s !important; /* Faster to complete sooner */
  }
  
  /* Disable hover animations on touch devices */
  .feature-card:hover .feature-detail,
  .problem-card:hover,
  .solution-card:hover {
    transform: none;
  }
  
  /* Simplify button hover effects */
  button:hover,
  a:hover {
    transform: translateY(0) !important;
  }
  
  /* Touch-friendly button sizes - minimum 44x44px touch targets */
  #mobile-menu-button {
    padding: 0.625rem !important; /* 10px = 44px total with 24px icon */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Ensure all buttons and links have adequate touch targets */
  a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mobile menu links */
  .mobile-menu-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.75rem 0 !important; /* 12px vertical for comfort */
  }
  
  /* Navigation links on mobile */
  nav a {
    min-height: 44px;
    padding: 0.5rem !important;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .bg-grid-pattern,
  nav,
  button {
    display: none;
  }
  
  a {
    text-decoration: underline;
  }
  
  section {
    page-break-inside: avoid;
  }
}

/* Moved from inline styles */
#scroll-progress {
  width: 0%;
}


