/* ============================================================
   HaggardTech Solutions — Hero Section CSS
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-navy-dark);
}

/* ── Background Image ── */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
  will-change: transform;
}

.hero-bg.loaded {
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

/* ── Gradient Overlays ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: 1;
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--color-navy-dark) 0%, transparent 100%);
  z-index: 2;
}

/* ── Grid Pattern ── */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ── Floating Particles ── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* ── Content ── */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 40px) var(--space-xl) var(--space-3xl);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  margin-bottom: var(--space-lg);
  animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.4); }
}

.hero-tag span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  max-width: 780px;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-headline .highlight {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease 0.8s both;
}

/* ── Trust Badges ── */
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
  animation: fadeInUp 0.8s ease 1.0s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trust-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
}

.trust-text span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

/* ── Scroll Indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease 1.4s both;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.40);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse-dot {
  width: 4px;
  height: 8px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  animation: scrollBounce 1.8s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.4; }
}

.scroll-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* ── Animations ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-content {
    padding: calc(var(--nav-height) + 24px) var(--space-md) var(--space-2xl);
  }

  .hero-trust { gap: var(--space-lg); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
