/* Hero Section */
.hero {
  background: var(--primary-blue);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

/* Technical Blueprint Pattern Background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size:
    50px 50px,
    50px 50px,
    10px 10px,
    10px 10px;
  background-position:
    -1px -1px,
    -1px -1px,
    -1px -1px,
    -1px -1px;
  opacity: 0.6;
  z-index: 0;
}

/* Technical circles decoration */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInLeft 1s ease-out;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  color: var(--primary-red);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.btn-primary:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(207, 0, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

.hero-showcase {
  position: relative;
  animation: fadeInRight 1s ease-out;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Optional: Image background overlay for hero */
.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, transparent 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  perspective: 1000px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  animation: fadeIn 0.6s ease-out backwards;
}

.product-card:nth-child(1) {
  animation-delay: 0.1s;
}

.product-card:nth-child(2) {
  animation-delay: 0.2s;
}

.product-card:nth-child(3) {
  animation-delay: 0.3s;
}

.product-card:nth-child(4) {
  animation-delay: 0.4s;
}

.product-card:nth-child(5) {
  animation-delay: 0.5s;
}

.product-card:nth-child(6) {
  animation-delay: 0.6s;
}

.product-card:nth-child(7) {
  animation-delay: 0.7s;
}

.product-card:nth-child(8) {
  animation-delay: 0.8s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.product-info {
  padding: 12px;
  text-align: center;
}

.product-info h4 {
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
}

.product-info .add-to-cart-btn {
  width: 100%;
  padding: 8px 12px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.product-info .add-to-cart-btn:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(207, 0, 0, 0.3);
}

.product-info .add-to-cart-btn:active {
  transform: translateY(0);
}

.product-info .add-to-cart-btn i {
  font-size: 11px;
}

.product-info p {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 14px;
}

/* Categories Section */
.categories-section {
  padding: 80px 20px;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 40px;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
}

.categories-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.category-card {
  position: relative;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  transition: all 0.4s;
}

.category-card:hover::before {
  background: linear-gradient(180deg, rgba(207, 0, 0, 0.3) 0%, rgba(46, 52, 142, 0.9) 100%);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card h3 {
  position: absolute;
  bottom: 25px;
  left: 25px;
  color: white;
  font-size: 24px;
  font-weight: 600;
  z-index: 1;
}

/* Benefits Section */
.benefits-section {
  padding: 80px 20px;
  background: var(--light-gray);
}

.benefits-grid {
  max-width: 1400px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card i {
  font-size: 50px;
  color: var(--primary-red);
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.benefit-card p {
  color: var(--text-light);
  line-height: 1.8;
}