/* Surveyor Hub UK - Main Stylesheet */

/* ============================================
   GLOBAL VARIABLES & RESET
   ============================================ */
:root {
  --primary-blue: #1E3A8A;
  --secondary-blue: #3B82F6;
  --accent-orange: #F97316;
  --accent-green: #10B981;
  --neutral-dark: #1F2937;
  --neutral-gray: #6B7280;
  --neutral-light: #F3F4F6;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--neutral-dark);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-sm {
  padding: 40px 0;
}

.section-lg {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-blue);
}

.text-accent {
  color: var(--accent-orange);
}

.bg-light {
  background-color: var(--neutral-light);
}

.bg-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--neutral-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--neutral-gray);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 2rem;
  color: var(--accent-orange);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--neutral-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--primary-blue);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--accent-orange);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover {
  background-color: #EA580C;
  transform: translateY(-2px);
}

.nav-cta::after {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--primary-blue);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  filter: brightness(1.1) contrast(1.05);
  animation: kenBurns 25s ease-in-out infinite;
}

.hero-bg-image.slide-1 {
  animation: slideShow1 21s ease-in-out infinite, kenBurns1 21s ease-in-out infinite;
}

.hero-bg-image.slide-2 {
  animation: slideShow2 21s ease-in-out infinite, kenBurns2 21s ease-in-out infinite;
}

.hero-bg-image.slide-3 {
  animation: slideShow3 21s ease-in-out infinite, kenBurns3 21s ease-in-out infinite;
}

/* Slideshow fade animations */
@keyframes slideShow1 {
  0% { opacity: 1; }
  30% { opacity: 1; }
  35% { opacity: 0; }
  95% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideShow2 {
  0% { opacity: 0; }
  30% { opacity: 0; }
  35% { opacity: 1; }
  63% { opacity: 1; }
  68% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes slideShow3 {
  0% { opacity: 0; }
  63% { opacity: 0; }
  68% { opacity: 1; }
  95% { opacity: 1; }
  100% { opacity: 0; }
}

/* Ken Burns effect variations */
@keyframes kenBurns1 {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.15) translate(-5%, 3%); }
  100% { transform: scale(1) translate(0, 0); }
}

@keyframes kenBurns2 {
  0% { transform: scale(1.1) translate(3%, -2%); }
  50% { transform: scale(1) translate(-2%, 4%); }
  100% { transform: scale(1.1) translate(3%, -2%); }
}

@keyframes kenBurns3 {
  0% { transform: scale(1) translate(-3%, 2%); }
  50% { transform: scale(1.12) translate(4%, -3%); }
  100% { transform: scale(1) translate(-3%, 2%); }
}

body.reduce-motion .hero-bg-image {
  animation: none !important;
  transform: scale(1);
  filter: brightness(1) contrast(1);
  opacity: 1;
}

body.reduce-motion .hero-bg-image.slide-2,
body.reduce-motion .hero-bg-image.slide-3 {
  opacity: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.75);
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text .lead {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

.hero-features {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-feature-icon {
  font-size: 1.5rem;
  color: var(--accent-green);
}

.hero-form-container {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
}

.hero-form-container h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 2px solid transparent;
  min-width: 44px;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #EA580C;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #1E40AF;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits {
  padding: 50px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  background-color: var(--white);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit-card:nth-child(1) .benefit-icon {
  color: var(--accent-orange);
}

.benefit-card:nth-child(2) .benefit-icon {
  color: var(--accent-green);
}

.benefit-card:nth-child(3) .benefit-icon {
  color: var(--secondary-blue);
}

.benefit-card h3 {
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

/* ============================================
   SURVEY SELECTOR
   ============================================ */
.survey-selector {
  background-color: var(--neutral-light);
  padding: 50px 0;
}

.survey-selector h2 {
  text-align: center;
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

.survey-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.survey-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 3px solid transparent;
  cursor: pointer;
}

.survey-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-orange);
}

.survey-card.featured {
  border-color: var(--accent-green);
  position: relative;
}

.survey-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--accent-green);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.survey-card h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.survey-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin: 1rem 0;
}

.survey-features {
  list-style: none;
  margin: 1.5rem 0;
}

.survey-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.survey-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.125rem;
}

/* ============================================
   DIRECTORY SEARCH
   ============================================ */
.directory-search {
  background-color: var(--white);
  padding: 50px 0;
}

.search-box {
  background-color: var(--neutral-light);
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 800px;
  margin: 2rem auto;
}

.search-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* ============================================
   EMAIL SIGNUP BANNER
   ============================================ */
.email-signup {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #EA580C 100%);
  color: var(--white);
  padding: 3rem 0;
}

.signup-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.signup-text h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.signup-text p {
  color: rgba(255, 255, 255, 0.9);
}

.signup-form {
  display: flex;
  gap: 1rem;
  flex: 1;
  max-width: 500px;
}

.signup-form input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.signup-form button {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.signup-form button:hover {
  background-color: #1E40AF;
}

/* ============================================
   TRUST INDICATORS
   ============================================ */
.trust-section {
  padding: 40px 0;
  background-color: var(--neutral-light);
  text-align: center;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.trust-icon {
  font-size: 3rem;
  color: var(--primary-blue);
}

.trust-badge p {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-gray);
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--neutral-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   CARDS & CONTENT BLOCKS
   ============================================ */
.card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-title {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   TABLES
   ============================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background-color: var(--primary-blue);
  color: var(--white);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--neutral-light);
}

tbody tr:hover {
  background-color: var(--neutral-light);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--neutral-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.badge-success {
  background-color: var(--accent-green);
  color: var(--white);
}

.badge-warning {
  background-color: var(--accent-orange);
  color: var(--white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
  .hero-content,
  .benefits-grid,
  .survey-options {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .main-nav {
    display: none;
  }
  
  .main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
  }
  
  .main-nav.active ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-nav.active li {
    border-bottom: 1px solid var(--neutral-light);
    padding: 1rem 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .search-form,
  .signup-form {
    flex-direction: column;
  }
  
  .signup-content {
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 40px 0;
  }
}

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

*:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================
   HUBSPOT FORM STYLING
   ============================================ */
.hbspt-form {
  max-width: 100%;
}

.hs-form {
  font-family: inherit !important;
}

.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form select,
.hs-form textarea {
  width: 100% !important;
  padding: 0.875rem !important;
  border: 2px solid #E5E7EB !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-family: inherit !important;
}

.hs-form input[type="submit"] {
  background-color: var(--accent-orange) !important;
  color: var(--white) !important;
  padding: 0.875rem 2rem !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.hs-form input[type="submit"]:hover {
  background-color: #EA580C !important;
}

/* ============================================
   MOTION PREFERENCE & ACCESSIBILITY
   ============================================ */

/* Motion Preference Toggle Button */
.motion-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: var(--white);
  border: 2px solid var(--primary-blue);
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.motion-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background-color: var(--primary-blue);
  color: var(--white);
}

.motion-toggle-icon {
  font-size: 1.2rem;
}

/* Reduced Motion Styles */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* User Toggle for Reduced Motion */
body.reduce-motion .hero-video,
body.reduce-motion .page-video {
  display: none;
}

body.reduce-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ============================================
   ENHANCED ANIMATIONS & TRANSITIONS
   ============================================ */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

body.reduce-motion html {
  scroll-behavior: auto;
}

/* Card hover effects */
.card:hover,
.surveyor-card:hover,
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  transition: all 0.3s ease;
}

body.reduce-motion .card:hover,
body.reduce-motion .surveyor-card:hover,
body.reduce-motion .benefit-card:hover {
  transform: none;
}

/* Fade in on scroll animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

body.reduce-motion .animate-on-scroll {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Pulse animation for CTAs */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

body.reduce-motion .pulse-cta {
  animation: none;
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

body.reduce-motion .shimmer {
  animation: none;
  background: #f0f0f0;
}

/* Scale on hover for interactive elements */
.scale-hover {
  transition: transform 0.2s ease;
}

.scale-hover:hover {
  transform: scale(1.05);
}

body.reduce-motion .scale-hover:hover {
  transform: none;
}

/* Slide in from sides */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

body.reduce-motion .slide-in-left,
body.reduce-motion .slide-in-right {
  animation: none;
  opacity: 1;
  transform: none;
}

/* Bounce animation for attention */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.bounce {
  animation: bounce 1s ease;
}

body.reduce-motion .bounce {
  animation: none;
}

/* Gradient animation for backgrounds */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

body.reduce-motion .gradient-animate {
  animation: none;
}

/* Rotate animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate-slow {
  animation: rotate 20s linear infinite;
}

body.reduce-motion .rotate-slow {
  animation: none;
}

/* ============================================
   PAGE VIDEO BACKGROUNDS (for other pages)
   ============================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 25%, #1E3A8A 50%, #3B82F6 75%, #1E3A8A 100%);
  background-size: 400% 400%;
  animation: gradientFlow 20s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 75%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 25%; }
  100% { background-position: 0% 50%; }
}

body.reduce-motion .page-hero {
  animation: none;
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
}

.page-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.page-video.loaded,
.hero-video.loaded {
  opacity: 1;
}

.page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.85);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

/* Video Loading Spinner */
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.video-loading-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Improved hero video styles */
.hero-video {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}
