/* ==========================================================================
   Methodis AI - Main Stylesheet
   ========================================================================== */

/* Hide reCAPTCHA v3 badge (text attribution included in form per Google's requirements) */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ea580c;
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Custom Utilities */
body {
  font-family: "Inter", sans-serif;
  background-color: #030303;
  color: #e5e5e5;
  cursor: none;
}

/* Show native cursor on form elements */
input,
textarea,
select,
button,
a,
[role="button"],
.booking-modal input,
.booking-modal textarea,
.booking-modal button {
  cursor: auto;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea {
  cursor: text;
}

input[type="range"] {
  cursor: pointer;
}

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

/* Disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }

  #cursor {
    display: none !important;
  }
}

.font-display {
  font-family: "Oswald", sans-serif;
}

.font-grotesk {
  font-family: "Space Grotesk", sans-serif;
}

.font-mono {
  font-family: "Space Mono", monospace;
}

/* Grain Texture */
.bg-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Custom Cursor */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #ea580c;
  background: rgba(234, 88, 12, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s,
    background 0.3s,
    opacity 0.2s;
  mix-blend-mode: difference;
}

#cursor.hovered {
  width: 60px;
  height: 60px;
  background: #ea580c;
  mix-blend-mode: normal;
}

/* Horizontal Scroll Animation */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

/* Smooth Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Glitch Effect for METHODIS Text */
.glitch-wrapper {
  position: relative;
  display: inline-block;
}

.glitch-text {
  position: relative;
  z-index: 2;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 #00ffff;
  clip-path: inset(0 0 0 0);
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: 1px 0 #ff00ff;
  clip-path: inset(0 0 0 0);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip-path: inset(20% 0 80% 0);
  }
  20% {
    clip-path: inset(60% 0 10% 0);
  }
  40% {
    clip-path: inset(40% 0 50% 0);
  }
  60% {
    clip-path: inset(80% 0 5% 0);
  }
  80% {
    clip-path: inset(10% 0 70% 0);
  }
  100% {
    clip-path: inset(30% 0 20% 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip-path: inset(10% 0 60% 0);
  }
  20% {
    clip-path: inset(30% 0 10% 0);
  }
  40% {
    clip-path: inset(80% 0 5% 0);
  }
  60% {
    clip-path: inset(10% 0 40% 0);
  }
  80% {
    clip-path: inset(50% 0 20% 0);
  }
  100% {
    clip-path: inset(20% 0 70% 0);
  }
}

/* Text Outline Utility */
.text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  color: transparent;
}

.text-outline-strong {
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
  color: transparent;
}

/* ==========================================================================
   Font Family Declarations
   ========================================================================== */

.font-geist {
  font-family: "Geist", sans-serif !important;
}
.font-roboto {
  font-family: "Roboto", sans-serif !important;
}
.font-montserrat {
  font-family: "Montserrat", sans-serif !important;
}
.font-poppins {
  font-family: "Poppins", sans-serif !important;
}
.font-playfair {
  font-family: "Playfair Display", serif !important;
}
.font-instrument-serif {
  font-family: "Instrument Serif", serif !important;
}
.font-merriweather {
  font-family: "Merriweather", serif !important;
}
.font-bricolage {
  font-family: "Bricolage Grotesque", sans-serif !important;
}
.font-jakarta {
  font-family: "Plus Jakarta Sans", sans-serif !important;
}
.font-manrope {
  font-family: "Manrope", sans-serif !important;
}
.font-space-grotesk {
  font-family: "Space Grotesk", sans-serif !important;
}
.font-work-sans {
  font-family: "Work Sans", sans-serif !important;
}
.font-pt-serif {
  font-family: "PT Serif", serif !important;
}
.font-geist-mono {
  font-family: "Geist Mono", monospace !important;
}
.font-space-mono {
  font-family: "Space Mono", monospace !important;
}
.font-quicksand {
  font-family: "Quicksand", sans-serif !important;
}
.font-nunito {
  font-family: "Nunito", sans-serif !important;
}
.font-newsreader {
  font-family: "Newsreader", serif !important;
}
.font-google-sans-flex {
  font-family: "Google Sans Flex", sans-serif !important;
}
.font-oswald {
  font-family: "Oswald", sans-serif !important;
}
.font-dm-sans {
  font-family: "DM Sans", sans-serif !important;
}
.font-cormorant {
  font-family: "Cormorant Garamond", serif !important;
}

/* ==========================================================================
   Booking Modal Styles
   ========================================================================== */

/* Modal Overlay */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.booking-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.booking-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #171717;
  border: 1px solid #262626;
  border-radius: 1.5rem;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

.booking-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.booking-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0;
}

.booking-modal-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: #fff;
}

.booking-modal-close {
  background: transparent;
  border: 1px solid #404040;
  border-radius: 0.5rem;
  padding: 0.5rem;
  color: #a3a3a3;
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-modal-close:hover {
  color: #fff;
  border-color: #ea580c;
  background: rgba(234, 88, 12, 0.1);
}

/* Modal Body */
.booking-modal-body {
  padding: 1.5rem;
}

/* Form Labels */
.booking-form-label {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a3a3a3;
  margin-bottom: 0.5rem;
}

/* Form Inputs */
.booking-form-input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  margin-bottom: 1rem;
}

.booking-form-input:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.booking-form-input::placeholder {
  color: #525252;
}

/* Form Textarea */
.booking-form-textarea {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  margin-bottom: 1rem;
  resize: vertical;
  min-height: 100px;
}

.booking-form-textarea:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.booking-form-textarea::placeholder {
  color: #525252;
}

/* Submit Button */
.booking-form-submit {
  width: 100%;
  background: #ea580c;
  border: none;
  border-radius: 9999px;
  padding: 1rem 1.5rem;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.booking-form-submit:hover {
  background: #fff;
  color: #000;
}

.booking-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Spinner */
.booking-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success State */
.booking-success {
  text-align: center;
  padding: 2rem;
}

.booking-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.booking-success-icon svg {
  width: 32px;
  height: 32px;
  color: #22c55e;
}

.booking-success-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.booking-success-message {
  color: #a3a3a3;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Required Field Indicator */
.booking-form-required {
  color: #ea580c;
  margin-left: 2px;
}

/* ==========================================================================
   Revenue Calculator Range Sliders
   ========================================================================== */

/* Range slider track */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #262626;
  border-radius: 4px;
  outline: none;
}

/* Range slider thumb - WebKit (Chrome, Safari) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #ea580c;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.6);
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

/* Range slider thumb - Firefox */
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #ea580c;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.6);
}

/* Range slider track - Firefox */
input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  background: #262626;
  border-radius: 4px;
}

/* Focus styles */
input[type="range"]:focus {
  outline: none;
}

input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow:
    0 0 0 4px rgba(234, 88, 12, 0.2),
    0 2px 10px rgba(234, 88, 12, 0.4);
}

/* Mobile-friendly range sliders - larger touch targets */
@media (hover: none) and (pointer: coarse) {
  input[type="range"] {
    height: 12px;
  }

  input[type="range"]::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
    border-width: 4px;
  }

  input[type="range"]::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-width: 4px;
  }

  input[type="range"]::-moz-range-track {
    height: 12px;
  }
}

/* Ensure booking modal is properly layered above custom cursor */
.booking-modal,
.booking-modal-overlay {
  cursor: auto;
}

.booking-modal * {
  cursor: auto;
}

.booking-modal input,
.booking-modal textarea {
  cursor: text;
}

.booking-modal button {
  cursor: pointer;
}

/* ==========================================================================
   Enhanced Design System - Visual Polish & Micro-interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   Typography Enhancements
   -------------------------------------------------------------------------- */

/* Improved heading styles with better line heights */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Better paragraph readability */
p {
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   Button System - Premium Hover States & Animations
   -------------------------------------------------------------------------- */

/* Primary CTA buttons (orange) */
.btn-primary,
button[data-booking-trigger],
a[href="#contact"].bg-orange-600,
a.bg-orange-600,
button.bg-orange-600 {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary::before,
button[data-booking-trigger]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-primary:hover::before,
button[data-booking-trigger]:hover::before {
  left: 100%;
}

/* Button hover lift effect */
button[data-booking-trigger]:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 40px rgba(234, 88, 12, 0.4),
    0 6px 20px rgba(234, 88, 12, 0.3);
}

button[data-booking-trigger]:active,
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 5px 20px rgba(234, 88, 12, 0.3);
}

/* Secondary/outline buttons */
.btn-secondary,
a.border-neutral-700 {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover,
a.border-neutral-700:hover {
  border-color: #ea580c;
  background: rgba(234, 88, 12, 0.05);
  transform: translateY(-1px);
}

/* Nav CTA button special treatment */
nav button[data-booking-trigger],
nav a[href="/#contact"] {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

nav button[data-booking-trigger]:hover,
nav a[href="/#contact"]:hover {
  transform: translateY(-1px) scale(1.02);
}

/* Arrow animation on hover for buttons with arrows */
.group:hover svg,
button:hover svg,
a:hover svg {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --------------------------------------------------------------------------
   Card System - Elevated Hover States
   -------------------------------------------------------------------------- */

/* Base card styles */
.card,
[class*="bg-neutral-900"][class*="border"][class*="rounded"] {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card hover lift effect */
.card:hover,
.bg-neutral-900\/30:hover,
.bg-neutral-900\/50:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Product cards - sticky stack items */
.sticky.group > div {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sticky.group:hover > div {
  transform: translateY(-8px);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 16px 32px rgba(0, 0, 0, 0.3);
}

/* Comparison card hover - ServiceTitan, Tradify, etc */
.bg-neutral-900\/50.border.rounded-2xl:hover {
  border-color: rgba(234, 88, 12, 0.4);
  background: rgba(23, 23, 23, 0.6);
}

/* Stats boxes hover */
.bg-neutral-950.rounded-xl,
.bg-neutral-900\/80.rounded-xl {
  transition: all 0.3s ease;
}

.bg-neutral-950.rounded-xl:hover,
.bg-neutral-900\/80.rounded-xl:hover {
  background: rgba(10, 10, 10, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Link Styles - Consistent Hover Effects
   -------------------------------------------------------------------------- */

/* Nav links */
nav a {
  position: relative;
  transition: color 0.3s ease;
}

nav a:not(.bg-white):not([data-booking-trigger])::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ea580c;
  transition: width 0.3s ease;
}

nav a:not(.bg-white):not([data-booking-trigger]):hover::after {
  width: 100%;
}

/* Footer links */
footer a {
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

footer a:hover {
  color: #ea580c;
}

/* Inline text links */
p a,
.text-neutral-400 a {
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
  text-decoration-color: transparent;
}

p a:hover,
.text-neutral-400 a:hover {
  text-decoration-color: currentColor;
}

/* --------------------------------------------------------------------------
   Focus States - Accessibility
   -------------------------------------------------------------------------- */

/* Focus ring for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Focus ring for form inputs (overrides existing) */
.booking-form-input:focus-visible,
.booking-form-textarea:focus-visible {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

/* Remove default focus for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   Badge & Tag Styles
   -------------------------------------------------------------------------- */

/* Trade tags and category pills */
.rounded-full[class*="bg-neutral-900"][class*="border"] {
  transition: all 0.3s ease;
}

.rounded-full[class*="bg-neutral-900"][class*="border"]:hover {
  background: rgba(38, 38, 38, 1);
  border-color: rgba(234, 88, 12, 0.4);
  transform: translateY(-1px);
}

/* Status badges */
.px-3.py-1[class*="bg-"][class*="border"][class*="rounded-full"] {
  transition: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   Table Styles
   -------------------------------------------------------------------------- */

/* Comparison table rows */
table tbody tr {
  transition: background-color 0.2s ease;
}

table tbody tr:hover {
  background: rgba(38, 38, 38, 0.3);
}

/* Table cell improvements */
table th,
table td {
  transition: color 0.2s ease;
}

/* --------------------------------------------------------------------------
   Icon Animations
   -------------------------------------------------------------------------- */

/* Icon containers */
.rounded-full[class*="bg-"][class*="/20"] {
  transition: all 0.3s ease;
}

.group:hover .rounded-full[class*="bg-"][class*="/20"],
.rounded-full[class*="bg-"][class*="/20"]:hover {
  transform: scale(1.05);
}

/* Icon inside containers */
.rounded-full[class*="bg-"][class*="/20"] svg {
  transition: transform 0.3s ease;
}

.group:hover .rounded-full[class*="bg-"][class*="/20"] svg {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Section Dividers & Borders
   -------------------------------------------------------------------------- */

/* Animated border glow on key sections */
.border-orange-500\/20,
.border-orange-500\/30 {
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.border-orange-500\/20:hover,
.border-orange-500\/30:hover {
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow: 0 0 30px rgba(234, 88, 12, 0.1);
}

/* --------------------------------------------------------------------------
   Mobile Menu Enhancements
   -------------------------------------------------------------------------- */

/* Mobile menu overlay */
#mobile-menu {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

#mobile-menu:not(.hidden) {
  animation: fadeIn 0.3s ease forwards;
}

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

/* Mobile menu links */
#mobile-menu a,
#mobile-menu button {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.4s ease forwards;
}

#mobile-menu:not(.hidden) a:nth-child(1),
#mobile-menu:not(.hidden) button:nth-child(1) {
  animation-delay: 0.1s;
}
#mobile-menu:not(.hidden) a:nth-child(2),
#mobile-menu:not(.hidden) button:nth-child(2) {
  animation-delay: 0.15s;
}
#mobile-menu:not(.hidden) a:nth-child(3),
#mobile-menu:not(.hidden) button:nth-child(3) {
  animation-delay: 0.2s;
}
#mobile-menu:not(.hidden) a:nth-child(4),
#mobile-menu:not(.hidden) button:nth-child(4) {
  animation-delay: 0.25s;
}

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

/* Mobile menu button hamburger animation */
#mobile-menu-btn {
  transition: all 0.3s ease;
}

#mobile-menu-btn:hover {
  background: rgba(234, 88, 12, 0.1);
  border-color: rgba(234, 88, 12, 0.3);
}

#mobile-menu-btn svg {
  transition: transform 0.3s ease;
}

#mobile-menu-btn:hover svg {
  transform: scale(1.1);
}

/* Close button */
#close-menu-btn {
  transition: all 0.3s ease;
}

#close-menu-btn:hover {
  color: #ea580c;
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   Form Elements
   -------------------------------------------------------------------------- */

/* Range slider track fill */
input[type="range"] {
  background: linear-gradient(
    to right,
    #ea580c var(--range-progress, 0%),
    #262626 var(--range-progress, 0%)
  );
}

/* Select dropdowns */
select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Loading & Animation States
   -------------------------------------------------------------------------- */

/* Pulse animation for live indicators */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Shimmer loading effect */
.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* --------------------------------------------------------------------------
   Scroll Animations Enhancements
   -------------------------------------------------------------------------- */

/* Staggered reveal delays */
.reveal.delay-100 {
  transition-delay: 0.1s;
}
.reveal.delay-200 {
  transition-delay: 0.2s;
}
.reveal.delay-300 {
  transition-delay: 0.3s;
}
.reveal.delay-400 {
  transition-delay: 0.4s;
}
.reveal.delay-500 {
  transition-delay: 0.5s;
}

/* Reveal from different directions */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* --------------------------------------------------------------------------
   Stats Counter Animation
   -------------------------------------------------------------------------- */

/* Number display styles */
.font-display[class*="text-5xl"],
.font-display[class*="text-7xl"] {
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.text-center:hover .font-display[class*="text-5xl"],
.text-center:hover .font-display[class*="text-7xl"] {
  transform: scale(1.05);
  color: #ea580c;
}

/* --------------------------------------------------------------------------
   FAQ Accordion Styles
   -------------------------------------------------------------------------- */

/* FAQ items */
.bg-neutral-900\/30.border.rounded-xl {
  transition: all 0.3s ease;
}

.bg-neutral-900\/30.border.rounded-xl:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(23, 23, 23, 0.5);
}

/* --------------------------------------------------------------------------
   Hero Section Enhancements
   -------------------------------------------------------------------------- */

/* Hero badge hover */
.bg-neutral-900\/80.backdrop-blur-md.rounded-full {
  transition: all 0.3s ease;
}

.bg-neutral-900\/80.backdrop-blur-md.rounded-full:hover {
  background: rgba(38, 38, 38, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Tech spec box hover */
.border.bg-black\/90.backdrop-blur-md {
  transition: all 0.4s ease;
}

.border.bg-black\/90.backdrop-blur-md:hover {
  border-color: rgba(234, 88, 12, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   CTA Section Enhancements
   -------------------------------------------------------------------------- */

/* CTA section backgrounds */
.bg-gradient-to-r[class*="from-orange"] {
  transition: all 0.4s ease;
}

.bg-gradient-to-r[class*="from-orange"]:hover {
  box-shadow: 0 0 60px rgba(234, 88, 12, 0.15);
}

/* Warning/urgency banners */
.bg-red-950\/40,
.bg-red-950\/30,
.bg-red-950\/20 {
  transition: all 0.3s ease;
}

.bg-red-950\/40:hover,
.bg-red-950\/30:hover,
.bg-red-950\/20:hover {
  background: rgba(69, 10, 10, 0.5);
  border-color: rgba(239, 68, 68, 0.4);
}

/* --------------------------------------------------------------------------
   Image & Media
   -------------------------------------------------------------------------- */

/* Hero image subtle animation */
header img {
  transition: filter 0.5s ease;
}

header:hover img {
  filter: contrast(130%) grayscale(1) brightness(95%);
}

/* --------------------------------------------------------------------------
   Scrollbar Styling
   -------------------------------------------------------------------------- */

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

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

::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #262626 #0a0a0a;
}

/* --------------------------------------------------------------------------
   Selection Styling (Enhancement)
   -------------------------------------------------------------------------- */

::selection {
  background: #ea580c;
  color: white;
}

::-moz-selection {
  background: #ea580c;
  color: white;
}

/* --------------------------------------------------------------------------
   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;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
