/* ===================================
   HERO SECTION STYLES
   ===================================*/

.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a1e5d 100%);
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  /* Account for fixed header */
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Enhanced Particle Background */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: var(--color-secondary);
  border-radius: 50%;
  opacity: 0.1;
  animation: particleFloat 15s infinite linear;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  top: 60%;
  left: 80%;
  animation-delay: -5s;
  animation-duration: 25s;
}

.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  top: 40%;
  left: 60%;
  animation-delay: -10s;
  animation-duration: 18s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  top: 80%;
  left: 20%;
  animation-delay: -15s;
  animation-duration: 22s;
}

.particle:nth-child(5) {
  width: 2px;
  height: 2px;
  top: 30%;
  left: 90%;
  animation-delay: -8s;
  animation-duration: 16s;
}

.particle:nth-child(6) {
  width: 4px;
  height: 4px;
  top: 70%;
  left: 40%;
  animation-delay: -12s;
  animation-duration: 24s;
}

.particle:nth-child(7) {
  width: 3px;
  height: 3px;
  top: 10%;
  left: 70%;
  animation-delay: -3s;
  animation-duration: 19s;
}

.particle:nth-child(8) {
  width: 5px;
  height: 5px;
  top: 90%;
  left: 50%;
  animation-delay: -18s;
  animation-duration: 21s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.1;
  }

  90% {
    opacity: 0.1;
  }

  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Hero Content */
.hero-content {
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: #FFFFFF !important;
  /* Always white text for dark hero background */
  line-height: 1.1;
  position: relative;
  opacity: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: rgba(248, 243, 245, 0.85);
  /* Slightly transparent light text */
}

/* Enhanced Typewriter Effect */
.typewriter-text {
  overflow: visible;
  white-space: normal;
  opacity: 1;
}

@keyframes fadeInTitle {
  to {
    opacity: 1;
  }
}

@keyframes typewriter {
  0% {
    width: 0;
  }

  99% {
    border-right: 3px solid var(--color-secondary);
  }

  100% {
    width: 100%;
    border-right: none;
  }
}

@keyframes blinkCaret {

  0%,
  50% {
    border-color: var(--color-secondary);
  }

  51%,
  100% {
    border-color: transparent;
  }
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-2xl);
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced CTA Button Styling */
.hero-buttons .btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-2xl);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.hero-buttons .btn-primary {
  background: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(30, 153, 255, 0.3);
}

.hero-buttons .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.hero-buttons .btn-primary:hover::before {
  left: 100%;
}

.hero-buttons .btn-primary:hover {
  background: #0d7ddd;
  border-color: #0d7ddd;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 153, 255, 0.4);
}

.hero-buttons .btn-outline-primary {
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  background-color: transparent;
}

.hero-buttons .btn-outline-primary:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 153, 255, 0.4);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.hero-buttons .btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Nexa Illustration */
.hero-illustration {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.nexa-container {
  position: relative;
  width: 300px;
  height: 300px;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.nexa-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 153, 255, 0.3) 0%, rgba(30, 153, 255, 0) 70%);
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.5;
  }
}

.nexa-illustration {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(26, 30, 93, 0.3));
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  background-color: var(--color-secondary);
  border-radius: 50%;
  opacity: 0.6;
}

.element-1 {
  width: 10px;
  height: 10px;
  top: 20%;
  left: -20px;
  animation: floatElement 8s ease-in-out infinite;
}

.element-2 {
  width: 15px;
  height: 15px;
  bottom: 30%;
  right: -25px;
  animation: floatElement 12s ease-in-out infinite reverse;
}

.element-3 {
  width: 8px;
  height: 8px;
  bottom: 10%;
  left: 30%;
  animation: floatElement 10s ease-in-out infinite 2s;
}

@keyframes floatElement {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(15px, -15px) rotate(90deg);
  }

  50% {
    transform: translate(0, -30px) rotate(180deg);
  }

  75% {
    transform: translate(-15px, -15px) rotate(270deg);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  opacity: 0.7;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.scroll-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.scroll-arrow {
  animation: bounce 2s infinite;
  color: var(--color-secondary);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.scroll-line {
  width: 2px;
  height: 30px;
  background-color: var(--color-secondary);
  margin-top: var(--spacing-xs);
  opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 60px;
    /* Adjust for smaller header on mobile */
  }

  .hero-content {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
  }

  .hero-buttons {
    justify-content: center;
  }

  .nexa-container {
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 767.98px) {
  .hero-section .row {
    flex-direction: column-reverse;
  }

  .hero-content {
    padding-top: var(--spacing-2xl);
  }

  .nexa-container {
    width: 180px;
    height: 180px;
  }

  .nexa-glow {
    width: 200px;
    height: 200px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Animation for theme switching */
.hero-section,
.hero-title,
.hero-subtitle,
.scroll-text,
.scroll-line {
  transition: background var(--transition-normal),
    color var(--transition-normal);
}/
* ===================================
   HERO TITLE THEME FIX
   ===================================*/

/* Ensure hero-title is always white on dark hero background */
.hero-section .hero-title,
.hero-section h1.hero-title,
#heroTitle {
  color: #FFFFFF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Override any theme-specific styles that might affect hero title */
[data-theme="light"] .hero-section .hero-title,
[data-theme="light"] .hero-section h1.hero-title,
[data-theme="light"] #heroTitle {
  color: #FFFFFF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .hero-section .hero-title,
[data-theme="dark"] .hero-section h1.hero-title,
[data-theme="dark"] #heroTitle {
  color: #FFFFFF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure hero subtitle is also properly styled */
.hero-section .hero-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .hero-section .hero-subtitle,
[data-theme="dark"] .hero-section .hero-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}