/* ===================================
   DYNAMIC HERO SECTION
   =================================== */

/* Hero Section Layout */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0066FF 0%, #00D4FF 50%, #6C5CE7 100%);
}

/* Animated Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Gradient Mesh Animation */
.gradient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(108, 92, 231, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 212, 255, 0.2) 0%, transparent 50%);
  animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
  }
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
}

.floating-element-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.floating-element-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: -2s;
  animation-duration: 10s;
}

.floating-element-3 {
  width: 60px;
  height: 60px;
  top: 30%;
  right: 25%;
  animation-delay: -4s;
  animation-duration: 7s;
}

.floating-element-4 {
  width: 100px;
  height: 100px;
  bottom: 25%;
  left: 20%;
  animation-delay: -1s;
  animation-duration: 9s;
}

.floating-element-5 {
  width: 40px;
  height: 40px;
  top: 15%;
  left: 60%;
  animation-delay: -3s;
  animation-duration: 6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) translateX(-15px) rotate(180deg);
  }
  75% {
    transform: translateY(-30px) translateX(5px) rotate(270deg);
  }
}

/* Hero Container */
.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4, 2rem);
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6, 3rem);
}

/* Hero Typography */
.hero-title {
  font-family: var(--font-family-primary, 'Inter', sans-serif);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: var(--font-weight-extrabold, 800);
  line-height: var(--line-height-tight, 1.25);
  color: var(--color-white, #FFFFFF);
  margin-bottom: var(--space-4, 2rem);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 1s ease-out forwards;
}

.hero-title-line-1 {
  animation-delay: 0.2s;
}

.hero-title-line-2 {
  animation-delay: 0.4s;
}

.hero-emphasis {
  background: linear-gradient(135deg, #FF6B35 0%, #FF9500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-emphasis::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #FF6B35 0%, #FF9500 100%);
  border-radius: var(--radius-full, 9999px);
  transform: scaleX(0);
  animation: scaleIn 0.8s ease-out 0.8s forwards;
}

.hero-subtitle {
  font-family: var(--font-family-primary, 'Inter', sans-serif);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: var(--font-weight-semibold, 600);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6, 3rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle-text {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 1s ease-out 0.6s forwards;
}

/* Hero Roles */
.hero-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2, 1rem);
  font-family: var(--font-family-secondary, 'Source Sans Pro', sans-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--font-weight-medium, 500);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8, 4rem);
}

.hero-role {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease-out forwards;
  transition: all var(--transition-fast, 0.15s ease-out);
  cursor: pointer;
  padding: var(--space-1, 0.5rem) var(--space-2, 1rem);
  border-radius: var(--radius-base, 0.5rem);
}

.hero-role:hover {
  color: var(--color-white, #FFFFFF);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-divider {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
  color: rgba(255, 255, 255, 0.5);
}

/* Staggered Animation Delays */
.hero-role[data-delay="0"] { animation-delay: 1s; }
.hero-role[data-delay="100"] { animation-delay: 1.1s; }
.hero-role[data-delay="200"] { animation-delay: 1.2s; }
.hero-role[data-delay="300"] { animation-delay: 1.3s; }
.hero-role[data-delay="400"] { animation-delay: 1.4s; }
.hero-role[data-delay="500"] { animation-delay: 1.5s; }

.hero-divider:nth-child(2) { animation-delay: 1.05s; }
.hero-divider:nth-child(4) { animation-delay: 1.15s; }
.hero-divider:nth-child(6) { animation-delay: 1.25s; }
.hero-divider:nth-child(8) { animation-delay: 1.35s; }
.hero-divider:nth-child(10) { animation-delay: 1.45s; }
.hero-divider:nth-child(12) { animation-delay: 1.55s; }

/* Hero Call to Action */
.hero-cta {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 1s ease-out 1.8s forwards;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 1rem);
  padding: var(--space-3, 1.5rem) var(--space-6, 3rem);
  font-family: var(--font-family-primary, 'Inter', sans-serif);
  font-size: var(--font-size-lg, 1.25rem);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-white, #FFFFFF);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  transition: all var(--transition-base, 0.2s ease-out);
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  transition: left var(--transition-slow, 0.3s ease-out);
  z-index: -1;
}

.hero-btn:hover::before {
  left: 0;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-btn i {
  transition: transform var(--transition-base, 0.2s ease-out);
}

.hero-btn:hover i {
  transform: translateY(3px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-6, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2, 1rem);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-family-secondary, 'Source Sans Pro', sans-serif);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 1s ease-out 2.5s forwards;
  cursor: pointer;
}

.scroll-indicator-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, transparent 100%);
  border-radius: var(--radius-full, 9999px);
  position: relative;
  overflow: hidden;
}

.scroll-indicator-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full, 9999px);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator-text {
  margin-top: var(--space-2, 1rem);
}

/* Keyframe Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes scrollPulse {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Mouse Movement Interactive Elements */
.floating-element.mouse-interactive {
  transition: transform 0.3s ease-out;
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
  .hero {
    min-height: 500px;
    padding: var(--space-4, 2rem) 0;
  }
  
  .hero-container {
    padding: 0 var(--space-2, 1rem);
  }
  
  .hero-roles {
    flex-direction: column;
    gap: var(--space-1, 0.5rem);
  }
  
  .hero-divider {
    display: none;
  }
  
  .hero-btn {
    padding: var(--space-2, 1rem) var(--space-4, 2rem);
    font-size: var(--font-size-base, 1rem);
  }
  
  .floating-element {
    display: none;
  }
  
  .hero-scroll-indicator {
    bottom: var(--space-4, 2rem);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 4rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }
  
  .hero-roles {
    font-size: var(--font-size-sm, 0.875rem);
  }
}

/* Adjust body padding to account for hero section */
body {
  padding-top: 0;
}

/* Ensure navigation stays on top of hero */
.main-nav {
  z-index: 1030;
}