/* hero.css */

/* ── Gradient text utility ── */
.gradient-text {
  background: linear-gradient(135deg, #7C5C3E 0%, #E5483B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════
   HERO WRAPPER
══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 2rem 4rem;
}

/* ══════════════════════════════
   ANIMATED BACKGROUND
══════════════════════════════ */

/* Grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,92,62, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,62, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  animation: orbFloat linear infinite;
  will-change: transform;
}

.hero-orb--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #7C5C3E, transparent 70%);
  top: -120px;
  left: -100px;
  animation-duration: 18s;
  animation-name: orbFloat1;
}

.hero-orb--2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #E5483B, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-duration: 22s;
  animation-name: orbFloat2;
}

.hero-orb--3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #7C5C3E, transparent 70%);
  top: 50%;
  right: 15%;
  opacity: 0.2;
  animation-duration: 26s;
  animation-name: orbFloat3;
}

@keyframes orbFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(60px, 40px) scale(1.08); }
  66%  { transform: translate(20px, 80px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-50px, -30px) scale(1.1); }
  66%  { transform: translate(-80px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbFloat3 {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-40px, 60px); }
  100% { transform: translate(0, 0); }
}

/* CSS Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFade linear infinite;
  will-change: transform, opacity;
}

/* Purple particles */
.particle:nth-child(1)  { width:4px; height:4px; background:#7C5C3E; left:10%; top:20%; animation-duration:8s;  animation-delay:0s; }
.particle:nth-child(2)  { width:3px; height:3px; background:#7C5C3E; left:25%; top:65%; animation-duration:11s; animation-delay:2s; }
.particle:nth-child(3)  { width:5px; height:5px; background:#7C5C3E; left:40%; top:10%; animation-duration:9s;  animation-delay:1s; }
.particle:nth-child(4)  { width:3px; height:3px; background:#7C5C3E; left:70%; top:80%; animation-duration:13s; animation-delay:3s; }
.particle:nth-child(5)  { width:4px; height:4px; background:#7C5C3E; left:85%; top:30%; animation-duration:10s; animation-delay:0.5s; }
/* Cyan particles */
.particle:nth-child(6)  { width:4px; height:4px; background:#E5483B; left:15%; top:75%; animation-duration:12s; animation-delay:1.5s; }
.particle:nth-child(7)  { width:3px; height:3px; background:#E5483B; left:55%; top:45%; animation-duration:7s;  animation-delay:4s; }
.particle:nth-child(8)  { width:5px; height:5px; background:#E5483B; left:78%; top:15%; animation-duration:14s; animation-delay:0s; }
.particle:nth-child(9)  { width:3px; height:3px; background:#E5483B; left:92%; top:55%; animation-duration:9s;  animation-delay:2.5s; }
.particle:nth-child(10) { width:4px; height:4px; background:#E5483B; left:35%; top:88%; animation-duration:11s; animation-delay:3.5s; }
/* Extra white sparks */
.particle:nth-child(11) { width:2px; height:2px; background:#fff;    left:60%; top:25%; animation-duration:6s;  animation-delay:1s; }
.particle:nth-child(12) { width:2px; height:2px; background:#fff;    left:5%;  top:50%; animation-duration:8s;  animation-delay:5s; }

@keyframes particleFade {
  0%   { opacity: 0;    transform: translateY(0)   scale(1); }
  20%  { opacity: 0.8; }
  80%  { opacity: 0.6; }
  100% { opacity: 0;    transform: translateY(-80px) scale(0.5); }
}

/* ══════════════════════════════
   HERO CONTENT
══════════════════════════════ */
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124,92,62, 0.12);
  border: 1px solid rgba(124,92,62, 0.3);
  color: #A87850;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  animation: fadeSlideDown 0.7s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #E5483B;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,59,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(229,72,59,0); }
}

/* Heading */
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  animation: fadeSlideUp 0.8s ease 0.15s both;
}

.hero__title .line-2 {
  display: block;
  background: linear-gradient(135deg, #7C5C3E 0%, #E5483B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite, fadeSlideUp 0.8s ease 0.15s both;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Sub-heading */
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
  animation: fadeSlideUp 0.8s ease 0.3s both;
}

/* CTA row */
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideUp 0.8s ease 0.45s both;
}

.hero__ctas .btn {
  font-size: 1rem;
  padding: 0.8rem 1.8rem;
}

.btn-glow {
  background: linear-gradient(135deg, #7C5C3E, #E5483B);
  color: #fff;
  border-radius: var(--radius-btn);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #C73C30, #A87850);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-glow:hover::before { opacity: 1; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(124,92,62,0.45); }

.btn-glow span { position: relative; z-index: 1; }

/* Stats row */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
  animation: fadeSlideUp 0.8s ease 0.6s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat__num {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7C5C3E, #E5483B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* ══════════════════════════════
   ENTRANCE ANIMATIONS
══════════════════════════════ */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ══════════════════════════════
   SCROLL CUE
══════════════════════════════ */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: fadeSlideUp 1s ease 1s both;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease infinite;
}

@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 600px) {
  .hero { padding: 6rem 1.2rem 3rem; min-height: 100svh; }
  .hero__inner { gap: 1.2rem; }
  .hero__title { font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: -0.5px; }
  .hero__sub { font-size: 0.95rem; }
  .hero__stats { gap: 1.2rem; }
  .stat-divider { display: none; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; text-align: center; }
  .hero__ctas .btn-outline { color: #ffffff !important; border-color: #ffffff; }
  .hero__badge { font-size: 0.72rem; text-align: center; }
}
