/* =============================================
   HERO.CSS — Hero Section Styles
   Dharshini S — Futuristic Portfolio
   ============================================= */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 110px 0 60px;
  position: relative;
  overflow: hidden;
}

/* --- Background Grid --- */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,212,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 40%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 40%, black 20%, transparent 90%);
  pointer-events: none;
  z-index: 1;
}

/* --- Ambient Glow Orbs --- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,166,147,0.12) 0%, transparent 70%);
  top: -120px; right: -150px;
  animation: orb-drift 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,245,212,0.07) 0%, transparent 70%);
  bottom: -60px; left: -80px;
  animation: orb-drift 12s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(0,201,167,0.1) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation: orb-drift 7s ease-in-out infinite 2s;
}
@keyframes orb-drift {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-35px) scale(1.06); }
}

/* --- Main Grid --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* --- Left: Content --- */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--green-neon);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-eyebrow-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--green-neon), transparent);
  box-shadow: 0 0 6px var(--green-neon);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-neon);
  box-shadow: 0 0 12px var(--green-neon);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 26px;
  color: var(--text-primary);
}
.hero-heading .hero-highlight {
  display: block;
  background: linear-gradient(135deg, var(--green-neon) 0%, var(--green-bright) 40%, #4dd9c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.hero-heading .hero-dim {
  color: var(--text-secondary);
  font-weight: 800;
}

.hero-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-subtext strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- CTA Buttons --- */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

/* --- Stats Row --- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat { text-align: left; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green-neon), var(--green-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
}
.hero-stat-num i,
.hero-stat-num svg {
  width: 1.9rem;
  height: 1.9rem;
  stroke: var(--green-neon);
  stroke-width: 2px;
  -webkit-text-fill-color: initial;
  background: none;
  background-clip: initial;
  display: inline-block;
  vertical-align: bottom;
}
.hero-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 5px;
  display: block;
}
.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* --- Right: Visual Column --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Avatar frame */
.avatar-wrapper {
  position: relative;
  width: 360px;
  height: 440px;
}

.avatar-glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: 30px;
  background: conic-gradient(
    from 0deg,
    var(--green-neon),
    var(--green-mid),
    transparent 40%,
    transparent 60%,
    var(--green-mid),
    var(--green-neon)
  );
  animation: ring-spin 8s linear infinite;
  opacity: 0.7;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.avatar-frame {
  position: absolute;
  inset: 3px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(0,166,147,0.12) 0%, rgba(7,18,28,0.95) 100%);
  border: 1px solid var(--border-card);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
.avatar-frame:hover img { transform: scale(1.04); }

/* Avatar glow puddle */
.avatar-puddle {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(0,245,212,0.22) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 1;
}

/* HUD corner decorations */
.avatar-hud {
  position: absolute;
  width: 20px; height: 20px;
  pointer-events: none;
  z-index: 4;
}
.avatar-hud.tl { top: -2px; left: -2px;
  border-top: 2px solid var(--green-neon);
  border-left: 2px solid var(--green-neon); }
.avatar-hud.tr { top: -2px; right: -2px;
  border-top: 2px solid var(--green-neon);
  border-right: 2px solid var(--green-neon); }
.avatar-hud.bl { bottom: -2px; left: -2px;
  border-bottom: 2px solid var(--green-neon);
  border-left: 2px solid var(--green-neon); }
.avatar-hud.br { bottom: -2px; right: -2px;
  border-bottom: 2px solid var(--green-neon);
  border-right: 2px solid var(--green-neon); }

/* Status badge */
.hero-status-badge {
  position: absolute;
  bottom: 24px;
  left: -28px;
  background: rgba(7,18,28,0.92);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 12px 18px;
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  animation: badge-float 4s ease-in-out infinite;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-neon);
  box-shadow: 0 0 12px var(--green-neon);
  animation: badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--green-neon); }
  50%       { box-shadow: 0 0 20px var(--green-neon), 0 0 40px rgba(0,245,212,0.3); }
}
.badge-text strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green-neon);
  line-height: 1;
}
.badge-text span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: 2px;
  display: block;
}

/* Experience badge top right */
.hero-exp-badge {
  position: absolute;
  top: 20px;
  right: -32px;
  background: rgba(7,18,28,0.9);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(16px);
  text-align: center;
  z-index: 10;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  animation: badge-float 5s ease-in-out infinite 1s;
}
.hero-exp-badge .exp-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green-neon);
  line-height: 1;
  display: block;
}
.hero-exp-badge .exp-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-top: 3px;
}

/* --- Floating Skill Bubbles --- */
.skill-bubble {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green-neon);
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(0,245,212,0.07);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  animation: bubble-float var(--dur, 4s) ease-in-out var(--dly, 0s) infinite;
}
@keyframes bubble-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%       { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
.sb-html { top: 4%;  left: -56px; --dur: 3.5s; --dly: 0s;   --rot: -3deg; }
.sb-css  { top: 18%; right: -62px; --dur: 4.2s; --dly: 0.6s; --rot: 3deg; }
.sb-js   { top: 50%; left: -68px; --dur: 4s;   --dly: 1.1s; --rot: -2deg; }
.sb-py   { top: 70%; right: -58px; --dur: 3.8s; --dly: 1.5s; --rot: 4deg; }
.sb-fig  { bottom: 10%; left: 8px; --dur: 4.6s; --dly: 0.8s; --rot: -5deg; }
.sb-ai   { top: 36%; right: -72px; --dur: 3.3s; --dly: 0.2s; --rot: 2deg; }
.sb-ux   { bottom: 28%; left: -60px; --dur: 5s; --dly: 1.3s; --rot: -3deg; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  z-index: 5;
  animation: scroll-bounce 2.5s ease-in-out infinite;
}
.scroll-indicator i { color: var(--green-neon); }
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%       { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-visual { order: -1; }
  .hero-eyebrow, .hero-ctas, .hero-stats { justify-content: center; }
  .hero-subtext { margin: 0 auto 40px; }
  .avatar-wrapper { width: 300px; height: 380px; }
  .hero-status-badge { left: -10px; }
  .hero-exp-badge { right: -10px; }
}
@media (max-width: 600px) {
  .hero-heading { font-size: 1.8rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .skill-bubble { display: none; }
  .avatar-wrapper { width: 240px; height: 300px; }
  .hero-status-badge, .hero-exp-badge { display: none; }
}
