/* ============================================
   GAJ-DASTAK — Hero Section
   Premium Military-Grade Defense Theme
   Three.js thermal particle field
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(
    160deg,
    #0a1f0d 0%,
    #0d2b12 25%,
    #1a3a1f 50%,
    #15331a 75%,
    #0a1f0d 100%
  );
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Dark military green overlay with noise grain texture */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 31, 13, 0.78) 0%,
    rgba(13, 43, 18, 0.68) 30%,
    rgba(26, 58, 31, 0.72) 60%,
    rgba(10, 31, 13, 0.92) 100%
  );
  z-index: 1;
}

/* Noise / grain texture pseudo-element */
.hero__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

/* Subtle radial spotlight from top-left */
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 20% 30%,
    rgba(200, 169, 81, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
  padding-top: calc(var(--nav-height) + var(--space-3xl));
}

/* Eyebrow — amber glow */
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #C8A951;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 0.2s forwards;
  text-shadow:
    0 0 10px rgba(200, 169, 81, 0.5),
    0 0 30px rgba(200, 169, 81, 0.2);
}

/* Title — bold 3D text with amber + green depth shadows */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  color: #f0ede4;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 0.4s forwards;
  text-shadow:
    /* Amber highlight edge */
    1px 1px 0 rgba(200, 169, 81, 0.6),
    2px 2px 0 rgba(200, 169, 81, 0.4),
    /* Green depth layers */
    3px 3px 0 rgba(30, 86, 49, 0.7),
    4px 4px 0 rgba(21, 51, 26, 0.8),
    5px 5px 0 rgba(10, 31, 13, 0.9),
    6px 6px 0 rgba(10, 31, 13, 1),
    /* Soft ambient glow */
    0 0 20px rgba(200, 169, 81, 0.15),
    0 0 60px rgba(10, 31, 13, 0.4);
}

.hero__title span {
  background: linear-gradient(135deg, #C8A951, #e0c96e, #C8A951);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 2px 0 rgba(10, 31, 13, 0.8))
          drop-shadow(3px 3px 0 rgba(21, 51, 26, 0.6));
}

/* Subtitle — light for contrast on dark bg */
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(230, 235, 225, 0.92);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 0.6s forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(10, 31, 13, 0.5);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 0.8s forwards;
}

/* Badges — glow effect */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 1s forwards;
}

.hero__badges .badge,
.hero__badges [class*="badge"] {
  border: 1px solid rgba(200, 169, 81, 0.3);
  background: rgba(26, 58, 31, 0.6);
  color: rgba(220, 225, 215, 0.9);
  backdrop-filter: blur(4px);
  box-shadow:
    0 0 8px rgba(200, 169, 81, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero__badges .badge:hover,
.hero__badges [class*="badge"]:hover {
  border-color: rgba(200, 169, 81, 0.55);
  box-shadow:
    0 0 15px rgba(200, 169, 81, 0.2),
    0 0 30px rgba(200, 169, 81, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Scroll hint — visible on dark bg */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(200, 169, 81, 0.7);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out) 1.5s forwards;
  text-shadow: 0 0 8px rgba(200, 169, 81, 0.3);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(200, 169, 81, 0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   Keyframes
   ============================================ */

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

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
  .hero__content {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
  }

  .hero__title {
    text-shadow:
      1px 1px 0 rgba(200, 169, 81, 0.5),
      2px 2px 0 rgba(30, 86, 49, 0.6),
      3px 3px 0 rgba(10, 31, 13, 0.8),
      0 0 15px rgba(200, 169, 81, 0.1);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }
}
