/* hero.css: Styles for the hero section */

.hero {
  height: 100vh;
  background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('https://images.unsplash.com/photo-1465101046530-73398c7f28ca?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated background elements */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, rgba(44, 62, 80, 0.03) 20%, rgba(44, 62, 80, 0.03) 80%, transparent 80%, transparent), 
              radial-gradient(circle, transparent 20%, rgba(44, 62, 80, 0.03) 20%, rgba(44, 62, 80, 0.03) 80%, transparent 80%, transparent) 50px 50px;
  background-size: 100px 100px;
  animation: backgroundAnimation 15s linear infinite;
  opacity: 0.07;
}

@keyframes backgroundAnimation {
  0% {
    background-position: 0 0, 50px 50px;
  }

  100% {
    background-position: 100px 100px, 150px 150px;
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-background-text {
  position: absolute;
  font-size: 8vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.012);
  white-space: nowrap;
  z-index: 1;
  user-select: none;
  animation: none;
  pointer-events: none;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  background: rgba(44, 62, 80, 0.7);
  border-radius: 8px;
  padding: 0.2em 0.7em;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.7rem;
  margin-bottom: 14px;
  animation: fadeInUp 1s ease;
  opacity: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  background: rgba(44, 62, 80, 0.7);
  border-radius: 8px;
  padding: 0.2em 0.7em;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-tagline {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--secondary-color);
  font-weight: 500;
  animation: fadeIn 2s ease;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  background: rgba(44, 62, 80, 0.7);
  border-radius: 8px;
  padding: 0.2em 0.7em;
  display: inline-block;
}

.hero-skills {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 15px;
}

.hero-skill {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  animation: fadeInUp 1.5s ease;
  transition: all 0.3s ease;
}

.hero-skill:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

.hero-btns {
  animation: fadeIn 2s ease;
  margin-bottom: 50px;
}

.hero-btns .btn {
  margin: 0 10px;
  position: relative;
  overflow: hidden;
}

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

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1.5s ease, bounce 2s ease infinite;
  z-index: 2;
}

.scroll-indicator p {
  margin-bottom: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 50%;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: translate(-50%, -50%) rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}
