/* ============================================
   HERO — AllTech 2026
   Ultra-Premium Dark Mesh & Fluid Animations
   ============================================ */

/* ===== BACKGROUND (8k Quality Mesh Gradient) ===== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f1115;
  overflow: hidden;
  z-index: 1;
}

/* Base high-res noise overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: -100%;
  width: 300%;
  height: 300%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

/* Advanced Mesh Gradient Orbs */
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: mesh-float 20s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.mesh-orb-1 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(255,140,0,0.15) 0%, rgba(255,140,0,0) 70%);
  top: -10%; left: -10%;
  animation-delay: 0s;
}

.mesh-orb-2 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(51,59,62,0.4) 0%, rgba(51,59,62,0) 70%);
  bottom: -20%; right: -10%;
  animation-delay: -5s;
}

.mesh-orb-3 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(253,246,227,0.05) 0%, transparent 70%);
  top: 40%; left: 60%;
  animation-delay: -10s;
}

@keyframes mesh-float {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(5%, 5%) scale(1.05); }
  66%  { transform: translate(-2%, 8%) scale(0.95); }
  100% { transform: translate(-5%, -5%) scale(1.02); }
}

/* Subtle grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

/* ===== HERO CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1400px;
  padding: 0 var(--space-6);
}

/* Eyebrow - Larger and clearer */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  opacity: 0;
}

.eyebrow-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--brand-orange);
  border-radius: 2px;
}

.eyebrow-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-orange);
  text-shadow: 0 0 24px rgba(255,140,0,0.4);
}

/* Title - Splitting text for GSAP animation */
.hero-title {
  font-size: clamp(4.5rem, 15vw, 12rem);
  font-weight: var(--font-weight-black);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-6);
  color: var(--brand-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  filter: blur(12px);
  will-change: transform, opacity, filter;
}

.hero-title .char-accent {
  color: var(--brand-orange);
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(253,246,227,0.6);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-12);
  font-weight: var(--font-weight-light);
  max-width: 800px;
  margin-inline: auto;
  opacity: 0;
}

/* Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
}

.hero-btn {
  background: var(--brand-orange);
  color: var(--brand-dark-deep);
  border: none;
  padding: 18px 48px;
  font-size: var(--font-size-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-black);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(255,140,0,0.25);
  position: relative;
  overflow: hidden;
}

.hero-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.5s;
}

.hero-btn:hover {
  background: var(--brand-orange-light);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255,140,0,0.4);
}

.hero-btn:hover::after { left: 150%; }

.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--brand-cream);
  font-size: var(--font-size-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
  transition: all 0.4s ease;
  border: 1px solid rgba(253,246,227,0.15);
  padding: 18px 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
}

.btn-outline-hero:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(253,246,227,0.4);
  gap: 14px;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 10;
  opacity: 0;
  cursor: pointer;
}

.scroll-track {
  width: 2px;
  height: 64px;
  background: rgba(253,246,227,0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--brand-orange);
  border-radius: 2px;
  animation: scroll-thumb-move 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scroll-thumb-move {
  0%   { top: -100%; height: 30%; opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { top: 150%; height: 30%; opacity: 0; }
}

/* ===== NEW ADVANCED CURSOR ===== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-orange);
  box-shadow: 0 0 10px var(--brand-orange);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255,140,0,0.5);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  mix-blend-mode: screen;
}

.cursor-hover .cursor-dot {
  width: 60px;
  height: 60px;
  background: rgba(255,140,0,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,140,0,0.3);
}

.cursor-hover .cursor-ring {
  width: 80px;
  height: 80px;
  border-color: rgba(255,140,0,0);
}
