/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 80vh;
  padding: 80px 0;
  background: radial-gradient(ellipse at 50% 103%, #fcfcfc 70%, #0d5028 137%);
  contain: paint;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
     Typography & Controls
     ========================================================================== */
.hero-section .display-3 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.9;
  max-width: 600px;
}

.hero-section .badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(26, 77, 46, 0.1);
  color: var(--primary-color);
}

.hero-section .btn-outline-dark {
  border: 2px solid var(--dark-grey);
  color: var(--dark-grey);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease,
    border-color 0.2s ease;
}

.hero-section .btn-outline-dark:hover {
  background: var(--dark-grey);
  color: var(--white);
  border-color: var(--dark-grey);
  transform: translateY(-1px);
}

.hero-section .border-top {
  border-color: rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
     Visual Element
     ========================================================================== */
.abstract-industrial-cube {
  position: relative;
  width: min(350px, 80vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(
    --industrial-gradient,
    linear-gradient(135deg, #1a4d2e, #2d5a3c)
  );
  border-radius: 60px;
  box-shadow: 0 30px 60px rgba(26, 77, 46, 0.2);
  animation: rotate-cube 15s linear infinite;
  will-change: transform;
}

.icon-floating {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  animation: rotate-counter 15s linear infinite;
  will-change: transform;
}

.icon-floating img {
  display: block;
  width: 85%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* ==========================================================================
     Animations
     ========================================================================== */
@keyframes rotate-cube {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate-counter {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

/* ==========================================================================
     Responsive - Tablet & Down
     ========================================================================== */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 60px 0;
    text-align: center;
    min-height: auto;
  }

  .hero-section .hero-content {
    margin-bottom: 60px;
  }

  .hero-section .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-section .d-flex.gap-3 {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-section .display-3 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .abstract-industrial-cube {
    width: min(260px, 70vw);
    border-radius: 40px;
  }

  .icon-floating img {
    width: 82%;
  }
}

/* ==========================================================================
     Responsive - Mobile
     ========================================================================== */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 40px 0;
  }

  .hero-section .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .hero-section .lead {
    font-size: 1rem;
    line-height: 1.8;
  }

  .hero-section .d-flex.gap-3 {
    flex-direction: column;
    gap: 12px !important;
  }

  .hero-section .btn {
    width: 100%;
  }

  .hero-section .row.g-4 {
    row-gap: 16px;
  }

  .hero-section .row.g-4 h3 {
    font-size: 1.15rem;
  }

  .hero-section .row.g-4 small {
    font-size: 0.72rem;
  }

  .abstract-industrial-cube {
    width: min(200px, 68vw);
    border-radius: 32px;
  }

  .icon-floating img {
    width: 80%;
  }
}

/* ==========================================================================
     Accessibility - Reduced Motion
     ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .abstract-industrial-cube,
  .icon-floating,
  .hero-section .btn-outline-dark {
    animation: none !important;
    transition: none !important;
  }
}
