/**
 * TINGLE DIGITAL - Hero Section Styles
 * Estilos para a seção Hero da Homepage
 * Light Theme - Nova Paleta 2025
 *
 * @version 2.0.0
 */

/* ============================================
 * HERO CONTAINER
 * ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--light-primary);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-xl);
  padding: var(--space-8);
  padding-top: calc(var(--space-24) + 80px); /* Account for header */
  padding-bottom: var(--space-24);
}

/* ============================================
 * MESH GRADIENT BACKGROUND - LIGHT THEME
 * ============================================ */

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-mesh-gradient {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: var(--gradient-mesh-light);
  animation: mesh-move 20s ease-in-out infinite;
  opacity: 1;
}

@keyframes mesh-move {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(2%, 2%) rotate(1deg);
  }
  50% {
    transform: translate(-1%, 3%) rotate(-1deg);
  }
  75% {
    transform: translate(1%, -2%) rotate(0.5deg);
  }
}

/* Particles Container */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

/* Animated Gradient Orbs - Light Theme */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--tingle-magenta);
  top: -10%;
  left: -10%;
  animation: orb-float-1 15s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--tingle-coral);
  top: 20%;
  right: -15%;
  animation: orb-float-2 18s ease-in-out infinite;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--tingle-amber);
  bottom: -10%;
  left: 30%;
  animation: orb-float-3 20s ease-in-out infinite;
}

.hero-orb-4 {
  width: 300px;
  height: 300px;
  background: var(--tingle-turquoise);
  bottom: 20%;
  right: 20%;
  animation: orb-float-4 12s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, 30px) scale(1.1); }
  50% { transform: translate(20px, 60px) scale(0.95); }
  75% { transform: translate(-30px, 40px) scale(1.05); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 50px) scale(1.1); }
  66% { transform: translate(30px, -30px) scale(0.9); }
}

@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.15); }
}

@keyframes orb-float-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-20px, -30px) scale(1.05); }
  50% { transform: translate(30px, 20px) scale(0.95); }
  75% { transform: translate(10px, -20px) scale(1.1); }
}

/* Light Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.5) 100%
  );
  z-index: 1;
}

/* ============================================
 * DECORATIVE BLOBS
 * ============================================ */

.hero-blobs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  opacity: 0.1;
}

.hero-blob svg {
  width: 100%;
  height: 100%;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  top: 5%;
  right: 5%;
  animation: blob-float 15s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: 5%;
  animation: blob-float 18s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 50%;
  animation: blob-float 12s ease-in-out infinite;
  animation-delay: -5s;
}

/* ============================================
 * HERO CONTENT
 * ============================================ */

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Tag/Badge */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: white;
  border: 1px solid rgba(50, 30, 12, 0.1);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-in 0.8s var(--ease-out) 0.2s forwards;
}

.hero-tag-icon {
  width: 8px;
  height: 8px;
  background: var(--tingle-coral);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--font-bold);
  color: var(--tingle-brown);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.hero-headline-line {
  display: block;
  overflow: hidden;
}

.hero-headline-text {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: hero-text-reveal 0.8s var(--ease-out) forwards;
}

.hero-headline-line:nth-child(1) .hero-headline-text {
  animation-delay: 0.3s;
}

.hero-headline-line:nth-child(2) .hero-headline-text {
  animation-delay: 0.5s;
}

.hero-headline-line:nth-child(3) .hero-headline-text {
  animation-delay: 0.7s;
}

@keyframes hero-text-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient Text */
.hero-headline-gradient {
  background: var(--gradient-tingle);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aurora 8s ease infinite;
}

/* Typed Text Container */
.hero-typed-wrapper {
  display: inline-block;
  min-width: 280px;
  text-align: left;
}

.hero-typed {
  color: var(--tingle-coral);
  position: relative;
}

.hero-typed::after {
  content: '|';
  position: absolute;
  right: -10px;
  color: var(--tingle-coral);
  animation: blink-cursor 0.7s infinite;
}

/* Subtitle */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-in 0.8s var(--ease-out) 0.9s forwards;
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
 * HERO CTAs
 * ============================================ */

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-in 0.8s var(--ease-out) 1.1s forwards;
}

.hero-cta {
  position: relative;
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.hero-cta-primary {
  background: var(--gradient-coral-amber);
  background-size: 200% 200%;
  color: white;
  box-shadow: var(--shadow-coral), 0 0 40px rgba(255, 112, 76, 0.2);
}

.hero-cta-primary:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: var(--shadow-coral), 0 0 60px rgba(255, 112, 76, 0.3);
}

.hero-cta-secondary {
  background: white;
  color: var(--tingle-coral);
  border: 2px solid var(--tingle-coral);
}

.hero-cta-secondary:hover {
  background: var(--tingle-coral);
  color: white;
}

.hero-cta .btn-icon {
  transition: transform var(--duration-normal) var(--ease-out);
}

.hero-cta:hover .btn-icon {
  transform: translateX(5px);
}

/* ============================================
 * FLOATING SHAPES (3D)
 * ============================================ */

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1000px;
}

.hero-shape {
  position: absolute;
  opacity: 0.4;
}

.hero-shape-cube {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 10%;
  transform-style: preserve-3d;
  animation: shape-rotate 20s linear infinite, float-slow 8s ease-in-out infinite;
}

.hero-shape-cube .face {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--tingle-magenta), var(--tingle-coral));
  opacity: 0.2;
  border: 1px solid rgba(50, 30, 12, 0.05);
}

.hero-shape-cube .face:nth-child(1) { transform: translateZ(30px); }
.hero-shape-cube .face:nth-child(2) { transform: rotateY(180deg) translateZ(30px); }
.hero-shape-cube .face:nth-child(3) { transform: rotateY(90deg) translateZ(30px); }
.hero-shape-cube .face:nth-child(4) { transform: rotateY(-90deg) translateZ(30px); }
.hero-shape-cube .face:nth-child(5) { transform: rotateX(90deg) translateZ(30px); }
.hero-shape-cube .face:nth-child(6) { transform: rotateX(-90deg) translateZ(30px); }

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

.hero-shape-sphere {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 15%;
  background: radial-gradient(circle at 30% 30%, var(--tingle-turquoise), transparent);
  border-radius: 50%;
  box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero-shape-pyramid {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid rgba(253, 176, 19, 0.2);
  top: 30%;
  right: 25%;
  animation: float-slow 10s ease-in-out infinite, shape-rotate 25s linear infinite;
  animation-delay: -3s;
}

.hero-shape-ring {
  width: 100px;
  height: 100px;
  bottom: 25%;
  left: 15%;
  border: 3px solid var(--tingle-green);
  border-radius: 50%;
  opacity: 0.2;
  animation: spin-slow 15s linear infinite, float 7s ease-in-out infinite;
}

.hero-shape-dots {
  width: 150px;
  height: 150px;
  top: 15%;
  right: 8%;
  background-image: radial-gradient(var(--tingle-coral) 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.15;
  animation: float-slow 12s ease-in-out infinite;
}

/* ============================================
 * SCROLL INDICATOR
 * ============================================ */

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  opacity: 0;
  animation: hero-fade-in 0.8s var(--ease-out) 1.5s forwards;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.hero-scroll-indicator:hover {
  opacity: 0.8;
}

.hero-scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-secondary);
  border-radius: 13px;
  position: relative;
}

.hero-scroll-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--tingle-coral);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(12px);
  }
}

.hero-scroll-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

.hero-scroll-arrow {
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-tertiary);
  stroke-width: 2;
  fill: none;
}

/* ============================================
 * PARTICLES CONTAINER
 * ============================================ */

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ============================================
 * RESPONSIVE - TABLET
 * ============================================ */

@media (max-width: 1024px) {
  .hero-inner {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .hero-orb-1 {
    width: 400px;
    height: 400px;
  }

  .hero-orb-2 {
    width: 350px;
    height: 350px;
  }

  .hero-shape-cube {
    width: 50px;
    height: 50px;
  }

  .hero-shape-sphere {
    width: 60px;
    height: 60px;
  }

  .hero-shape-dots {
    display: none;
  }
}

/* ============================================
 * RESPONSIVE - MOBILE
 * ============================================ */

@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
  }

  .hero-inner {
    padding-top: calc(var(--space-16) + 60px);
    padding-bottom: var(--space-20);
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .hero-headline {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .hero-typed-wrapper {
    display: block;
    min-width: auto;
    text-align: center;
  }

  .hero-subtitle {
    font-size: var(--text-lg);
    padding: 0 var(--space-2);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Simplify decorative elements on mobile */
  .hero-orb-1,
  .hero-orb-2 {
    width: 250px;
    height: 250px;
  }

  .hero-orb-3,
  .hero-orb-4 {
    display: none;
  }

  .hero-blob-2,
  .hero-blob-3 {
    display: none;
  }

  .hero-shapes {
    display: none;
  }

  .hero-scroll-indicator {
    bottom: var(--space-6);
  }
}

/* ============================================
 * RESPONSIVE - SMALL MOBILE
 * ============================================ */

@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-tag {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-cta {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }
}

/* ============================================
 * REDUCED MOTION
 * ============================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-mesh-gradient,
  .hero-orb,
  .hero-blob,
  .hero-shape,
  .hero-scroll-mouse::before,
  .hero-scroll-arrow {
    animation: none !important;
  }

  .hero-headline-text,
  .hero-tag,
  .hero-subtitle,
  .hero-cta-group,
  .hero-scroll-indicator {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-typed::after {
    animation: none;
  }
}

/* ============================================
 * LANDSCAPE MODE ON MOBILE
 * ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-16) 0;
  }

  .hero-inner {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .hero-scroll-indicator {
    display: none;
  }
}

/* Hero Secondary CTAs - Mobile Only */
.hero-ctas-secondary {
	display: none !important;
}

@media (max-width: 1024px) {
	.hero-ctas-secondary {
		display: flex !important;
		flex-direction: column;
		gap: var(--space-3, 12px);
		justify-content: center;
		align-items: center;
		margin-top: var(--space-4, 16px);
		width: 100%;
	}
	
	.hero-ctas-secondary .btn {
		width: 100%;
		max-width: 300px;
		justify-content: center;
	}
}

/* Mobile Hero Fixes */
@media (max-width: 1024px) {
	.hero-ctas-secondary {
		margin-top: var(--space-6, 24px) !important;
	}
	
	.hero-scroll-indicator {
		position: relative !important;
		margin-top: var(--space-8, 32px) !important;
		bottom: auto !important;
	}
	
	.hero-content {
		padding-bottom: var(--space-4, 16px);
	}
	
	.hero {
		min-height: auto;
		padding-bottom: var(--space-8, 32px);
	}
}
