/* =============================================
   Hero Section
   ============================================= */

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

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.08); }
}

/* Hero wrapper */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay on top of video */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  z-index: 1;
}

/* Animated fallback (shown when video not loaded) */
.hero-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #0a0a0a 0%,
    #0d1a12 25%,
    #0a1a0f 50%,
    #060d0a 75%,
    #0a0a0a 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

.hero-fallback::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 204, 102, 0.15) 0%,
    transparent 70%
  );
  animation: glowPulse 8s ease-in-out infinite;
}

/* Hide fallback once video is loaded */
.hero-video-loaded .hero-fallback {
  display: none;
}

/* Hero content wrapper */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
}

/* Portrait column */
.hero-portrait {
  flex: 0 0 40%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait img {
  position: relative;
  z-index: 1;
  max-height: 80vh;
  width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
}

/* Glow behind portrait */
.hero-portrait-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 204, 102, 0.15) 0%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite;
}

/* Bio column */
.hero-bio {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 2rem;
}

/* Tagline */
.hero-tagline {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* Main heading */
.hero-bio h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
}

/* Scrollable bio text */
.hero-text {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.hero-text::-webkit-scrollbar {
  width: 4px;
}

.hero-text::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 2px;
}

.hero-text::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.6;
}

.hero-text::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}

/* Social icons row */
.hero-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 5;
}

.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.hero-social a svg {
  pointer-events: none;
}

.hero-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* CTA button */
.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
  align-self: flex-start;
}

.hero-cta:hover {
  background: #00e673;
  color: #000;
  transform: translateY(-1px);
}

.hero-cta:active {
  transform: translateY(0);
}
