/* Pro-Align Homepage - Modern Industrial Aesthetic */
/* Hunter Official Brand Colors */
:root {
  --hunter-red: #C00C00;
  --hunter-red-hover: #a00a00;
  --hunter-black: #0D111A;
  --hunter-text: #1F2533;
  --hunter-gray: #f8f9fa;
  --hunter-white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--slate-800);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Typography Enhancements */
.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
}

/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@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);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(255, 107, 53, 0.3),
      0 0 40px rgba(255, 107, 53, 0.1),
      inset 0 0 20px rgba(255, 107, 53, 0.1);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(255, 107, 53, 0.6),
      0 0 80px rgba(255, 107, 53, 0.2),
      inset 0 0 30px rgba(255, 107, 53, 0.2);
  }
}

@keyframes industrialScan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

@keyframes moneyBleed {
  0%, 100% {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: scale(1.02);
  }
}

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

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes countUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animation Classes */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-pulseGlow {
  animation: pulseGlow 2s infinite;
}

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

.animate-countUp {
  animation: countUp 0.5s ease-out forwards;
}

.animate-industrialScan {
  animation: industrialScan 3s ease-in-out infinite;
}

.animate-moneyBleed {
  animation: moneyBleed 2s ease-in-out infinite;
}

.animate-metalShine {
  animation: metalShine 3s ease-in-out infinite;
}

/* Hero Section Enhancements with Industrial Aesthetic */
.hero-section {
  position: relative;
  background: 
    linear-gradient(135deg, var(--primary-dark) 0%, var(--slate-800) 30%, var(--steel-blue) 70%, var(--primary-dark) 100%);
  min-height: 100vh;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 50px,
      rgba(255, 107, 53, 0.02) 50px,
      rgba(255, 107, 53, 0.02) 52px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 50px,
      rgba(44, 62, 80, 0.02) 50px,
      rgba(44, 62, 80, 0.02) 52px
    );
  pointer-events: none;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(44, 62, 80, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Button Enhancements */
.btn-primary {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  position: relative;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-secondary:hover::after {
  opacity: 1;
}

/* Advanced 3D Transform Effects with Industrial Flair */
.transform-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.card-3d:hover {
  transform: translateY(-15px) rotateX(8deg) rotateY(5deg) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 107, 53, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-3d:hover::before {
  left: 100%;
}

/* Industrial Metal Texture */
.industrial-texture {
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(44, 62, 80, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%);
  position: relative;
}

.industrial-texture::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 107, 53, 0.03) 2px,
      rgba(255, 107, 53, 0.03) 4px
    );
  pointer-events: none;
}

/* Glassmorphism Effects */
.glass {
  backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.125);
}

.glass-dark {
  backdrop-filter: blur(16px) saturate(180%);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Clip Paths for Section Dividers */
.clip-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.clip-wave {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 95%);
}

.clip-arrow {
  clip-path: polygon(0 0, 100% 0, 85% 50%, 100% 100%, 0 100%);
}

/* Interactive Elements */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Mobile-First Responsive Design */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding: 0 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Advanced Grid Layouts */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: min-content;
  gap: 2rem;
}

.masonry-item {
  break-inside: avoid;
  page-break-inside: avoid;
}

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

::-webkit-scrollbar-track {
  background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
  background: var(--hunter-orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-hover);
}

/* Focus States for Accessibility */
*:focus {
  outline: 2px solid var(--hunter-orange);
  outline-offset: 2px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--hunter-orange);
  border-color: transparent;
}

/* Custom Form Styles */
.form-input {
  appearance: none;
  background: white;
  border: 2px solid var(--slate-200);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--hunter-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input:invalid {
  border-color: #ef4444;
}

.form-input:valid {
  border-color: #10b981;
}

/* Utility Classes */
.bg-gradient-orange {
  background: linear-gradient(135deg, var(--hunter-orange) 0%, var(--orange-hover) 100%);
}

.bg-gradient-slate {
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%);
}

.text-gradient-orange {
  background: linear-gradient(135deg, var(--hunter-orange) 0%, var(--orange-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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