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

body {
  font-family: 'DM Sans', sans-serif;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* Hero gradient */
.gradient-hero {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #641c1c 100%);
}

/* Geometric pattern overlay */
.pattern-overlay {
  background-image:
    linear-gradient(30deg, rgba(220,38,38,0.03) 12%, transparent 12.5%, transparent 87%, rgba(220,38,38,0.03) 87.5%),
    linear-gradient(150deg, rgba(220,38,38,0.03) 12%, transparent 12.5%, transparent 87%, rgba(220,38,38,0.03) 87.5%),
    linear-gradient(30deg, rgba(220,38,38,0.03) 12%, transparent 12.5%, transparent 87%, rgba(220,38,38,0.03) 87.5%),
    linear-gradient(150deg, rgba(150, 45, 45, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(220,38,38,0.03) 87.5%);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* Card hover effects */
.equipment-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.equipment-card:hover {
  transform: translateY(-8px);
}

.service-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15);
}

.machine-card {
  transition: all 0.3s ease;
}
.machine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Primary button */
.btn-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(220, 38, 38, 0.4);
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav link underline effect */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #dc2626;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Glass stat cards */
.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Floating animation */
.animate-float {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Diagonal slice on hero */
.diagonal-slice {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
@media (max-width: 768px) {
  .diagonal-slice {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }
}

/* Bounce animation for scroll indicator */
.animate-bounce {
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8,0,1,1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}

/* Pulse animation */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* Icon hover in service cards */
.service-card:hover .service-icon {
  transform: scale(1.1);
}
.service-icon {
  transition: transform 0.3s ease;
}

/* Contact link hover */
.contact-link:hover .contact-icon {
  background-color: #dc2626;
}
.contact-link:hover .contact-icon svg {
  stroke: white;
}
.contact-icon {
  transition: background-color 0.3s ease;
}
.contact-icon svg {
  transition: stroke 0.3s ease;
}

/* Form focus states */
.form-input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Featured card rotation */
.featured-card {
  transition: transform 0.5s ease;
}
.featured-card:hover {
  transform: rotate(0deg) !important;
}