/* ============================================
   hero.css — Hero / Landing Section Styles
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 60px;
  position: relative;
  overflow: hidden;
}

/* ---- Background Blobs ---- */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.blob1 {
  width: 550px;
  height: 550px;
  background: var(--accent);
  opacity: 0.07;
  top: -120px;
  left: -120px;
}

.blob2 {
  width: 450px;
  height: 450px;
  background: var(--accent2);
  opacity: 0.07;
  bottom: -100px;
  right: -100px;
}

/* ---- Hero Grid Layout ---- */
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

/* ---- Left: Name + DEVOPS ---- */
.hero-left {
  position: relative;
  z-index: 2;
}

.hero-name {
  font-family: 'Space Mono', monospace;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 400;
  color: var(--fg2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.hero-title-left {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(74px, 9.5vw, 136px);
  line-height: 0.88;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ---- Center: Photo ---- */
.hero-photo-wrap {
  position: relative;
  z-index: 3;
  width: clamp(220px, 22vw, 305px);
  height: clamp(280px, 28vw, 390px);
  flex-shrink: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  object-position: top center;
  display: block;
  box-shadow: var(--shadow-lg);
}

/* Placeholder when no photo uploaded yet */
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg2);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--fg2);
  font-size: 13px;
  border: 2px dashed var(--border);
}

.hero-photo-placeholder img {
  width: 52px;
  height: 52px;
  opacity: 0.3;
}

/* ---- Floating Hi Badge ---- */
/* Badge circle — bobs up and down */
.hero-hi-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: default;
  animation: badge-bob 2.5s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.4);
  z-index: 4;
  overflow: hidden;
}

[data-theme="dark"] .hero-hi-badge {
  box-shadow: 0 8px 32px rgba(160, 240, 96, 0.3);
}

/* The emoji hand waves independently inside the badge */
.hero-hi-badge .wave-hand {
  display: inline-block;
  transform-origin: 70% 80%; /* pivot at wrist */
  animation: wave-hand 1.6s ease-in-out infinite;
}

/* Badge gently bobs */
@keyframes badge-bob {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-8px); }
}

/* Hand waves realistically — like a real GIF */
@keyframes wave-hand {
  0%   { transform: rotate(  0deg); }
  10%  { transform: rotate(-20deg); }
  20%  { transform: rotate( 12deg); }
  30%  { transform: rotate(-20deg); }
  40%  { transform: rotate( 12deg); }
  50%  { transform: rotate( -8deg); }
  60%  { transform: rotate(  4deg); }
  70%  { transform: rotate( -4deg); }
  80%  { transform: rotate(  2deg); }
  100% { transform: rotate(  0deg); }
}

/* ---- Right: ENGINEER + desc ---- */
.hero-right {
  text-align: right;
  position: relative;
  z-index: 2;
}

.hero-title-right {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(74px, 9.5vw, 136px);
  line-height: 0.88;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.hero-desc {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--fg2);
  max-width: 210px;
  margin-left: auto;
}

/* ---- Scroll Hint ---- */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg2);
  opacity: 0.6;
  animation: fade-up 1s ease 1.5s forwards;
  opacity: 0;
}

.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--fg2);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 0.6; transform: translateX(-50%) translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero {
    padding: 100px 20px 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    justify-items: center;
  }

  .hero-photo-wrap {
    order: -1;
    width: 200px;
    height: 260px;
  }

  .hero-right {
    text-align: center;
  }

  .hero-desc {
    margin: 14px auto 0;
  }

  .hero-hi-badge {
    bottom: -14px;
    left: -14px;
    width: 58px;
    height: 58px;
  }
}
