/* ==========================================================================
   HERO SECTION STYLES (hero.css)
   ========================================================================== */

#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  padding-top: var(--navbar-height);
}
#particles-js {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding-block: 60px;
}
.hero-content { display: flex; flex-direction: column; gap: 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--radius-full);
  background: var(--accent-glow-sm); border: 1px solid var(--border-color);
  font-size: 0.82rem; font-weight: 600; color: var(--accent-primary);
  width: fit-content;
  animation: fadeInDown 0.6s ease both;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}
.hero-heading {
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.15;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-heading .name { display: block; }
.hero-heading .role-wrapper {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  min-height: 1.3em;
}
.hero-desc {
  font-size: 1.05rem; color: var(--text-muted); max-width: 480px; line-height: 1.8;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-socials {
  display: flex; align-items: center; gap: 10px;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-socials span { font-size: 0.82rem; color: var(--text-muted); margin-right: 4px; }
.social-link {
  width: 38px; height: 38px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  color: var(--text-muted); font-size: 1rem;
  transition: all var(--transition-base);
}
.social-link:hover {
  background: var(--accent-glow-sm); border-color: var(--accent-primary);
  color: var(--accent-primary); transform: translateY(-3px) scale(1.05);
}

/* ── Profile Visual (Modern Executive Portrait Card — No Circles) ── */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  animation: fadeInRight 0.8s ease 0.2s both;
}
.profile-ring-wrapper,
.profile-frame-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-frame-glow {
  position: absolute;
  width: 320px;
  height: 400px;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.35) 0%, rgba(108, 99, 255, 0.2) 60%, transparent 100%);
  filter: blur(24px);
  opacity: 0.8;
  pointer-events: none;
}

.profile-img-wrapper,
.profile-card-frame {
  position: relative;
  width: 310px;
  height: 390px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 210, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.profile-img-wrapper:hover,
.profile-card-frame:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.7);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 210, 255, 0.25);
}

.profile-img-wrapper img,
.profile-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.5s ease;
}

.profile-img-wrapper:hover img,
.profile-card-frame:hover img {
  transform: scale(1.03);
}

.profile-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  font-size: 7rem; color: var(--accent-primary);
  opacity: 0.5;
}

/* Floating badges */
.float-badge {
  position: absolute;
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 10px 16px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-primary);
  animation: floatBadge 3s ease-in-out infinite;
  z-index: 2;
  white-space: nowrap;
}
.float-badge-1 { top: 20px; left: -24px; animation-delay: 0s; }
.float-badge-2 { bottom: 30px; right: -24px; animation-delay: 1.5s; }
.float-badge .fb-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1; }
.float-badge .fb-content { display: flex; flex-direction: column; gap: 1px; }
.float-badge .fb-title { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); line-height: 1.25; }
.float-badge .fb-subtitle { font-size: 0.75rem; color: var(--text-muted); line-height: 1.2; }

/* ── Float badge logo ─────────────────────────────────────── */
.fb-logo {
  width: 28px; height: 28px;
  border-radius: 6px; object-fit: cover;
  flex-shrink: 0;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 0.75rem;
  animation: bounce 2s ease infinite;
  z-index: 1;
}
.scroll-indicator svg { width: 20px; height: 20px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Animations */
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp   { from { opacity:0; transform:translateY(24px);  } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInRight{ from { opacity:0; transform:translateX(32px);  } to { opacity:1; transform:translateX(0); } }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { max-width: 100%; }
  .hero-cta, .hero-socials { justify-content: center; }
  .hero-visual { order: -1; }
  .profile-frame-glow { width: 260px; height: 330px; }
  .profile-img-wrapper, .profile-card-frame { width: 250px; height: 320px; border-radius: 18px; }
  
  /* Compact floating badges for tablet so they don't cover portrait */
  .float-badge {
    padding: 6px 12px;
    gap: 8px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
  }
  .float-badge-1 { top: -12px; left: -14px; }
  .float-badge-2 { bottom: -12px; right: -14px; }
  .float-badge .fb-icon { font-size: 1.05rem; }
  .fb-logo { width: 22px; height: 22px; border-radius: 5px; }
  .float-badge .fb-title { font-size: 0.72rem; font-weight: 700; }
  .float-badge .fb-subtitle { font-size: 0.64rem; }
}

@media (max-width: 480px) {
  .profile-frame-glow { width: 220px; height: 280px; }
  .profile-img-wrapper, .profile-card-frame { width: 210px; height: 270px; border-radius: 16px; }
  .profile-placeholder { font-size: 5rem; }
  
  /* Even smaller and outer-aligned for mobile so the photo is completely clear */
  .float-badge {
    padding: 4px 8px;
    gap: 6px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
  .float-badge-1 { top: -14px; left: -10px; }
  .float-badge-2 { bottom: -14px; right: -10px; }
  .float-badge .fb-icon { font-size: 0.88rem; }
  .fb-logo { width: 18px; height: 18px; border-radius: 4px; }
  .float-badge .fb-title { font-size: 0.62rem; font-weight: 700; }
  .float-badge .fb-subtitle { font-size: 0.54rem; }
}
