/* ============================================================
   HERO COMPOSITION SYSTEM — Rebuilt Center Hero Component System
   Scale Target: Large 960px x 480px composition at 1600x900 viewport
   Visual Reference: media_1789912118975.png
   Behavioral Reference: adasilv2.framer.website
   FROZEN: Header, Logo, Resume, Let's Talk, Bottom Nav, Background
   ============================================================ */

.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 900px;
  background-color: #f7f7f5;   /* Frozen background */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   HEROCANVAS — Single Parent Composition Container
   Footprint: 980px width x 480px height (Centered in viewport)
 ═══════════════════════════════════════════════════════════ */
.hero-composition {
  position: relative;
  width: 1060px;
  height: 480px;
  margin: 0 auto;
}

/* ── 1. PORTFOLIO PILL (Above Headline) ───────────────────── */
.portfolio-pill-wrap {
  position: absolute;
  left: 530px;
  transform: translateX(-50%);
  top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 24px;
  border: 1.6px solid rgba(0, 0, 0, 0.18);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.75);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #161515;
  white-space: nowrap;
  z-index: 10;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.portfolio-pill-wrap:hover {
  border-color: #161515;
  transform: translateX(-50%) translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.portfolio-pill-star {
  font-size: 13px;
  color: #161515;
}

/* ── 2. DECORATIVE STARS (CONTINUOUS IDLE ANIMATION) ──────── */
.deco-star--sm {
  position: absolute;
  left: 695px;
  top: 22px;
  z-index: 8;
  pointer-events: none;
}

.deco-star--sm svg {
  width: 20px;
  height: 20px;
  fill: #161515;
  animation: floatStarSm 3.8s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatStarSm {
  0%, 100% {
    transform: rotate(-4deg) scale(0.95);
  }
  50% {
    transform: rotate(4deg) scale(1.05);
  }
}

.deco-star--lg {
  position: absolute;
  left: 775px;
  top: -15px;
  z-index: 8;
  pointer-events: none;
}

.deco-star--lg svg {
  width: 36px;
  height: 36px;
  stroke: #161515;
  stroke-width: 2.2;
  fill: none;
  animation: floatStarLg 5.2s ease-in-out infinite 0.8s;
  will-change: transform;
}

@keyframes floatStarLg {
  0%, 100% {
    transform: rotate(3deg) translateY(-2px);
  }
  50% {
    transform: rotate(-3deg) translateY(2px);
  }
}

.deco-star--outline-bl {
  position: absolute;
  left: 115px;
  top: 440px;
  z-index: 8;
  pointer-events: none;
}

.deco-star--outline-bl svg {
  width: 30px;
  height: 30px;
  stroke: #161515;
  stroke-width: 2.2;
  fill: none;
  animation: floatStarBl 4.5s ease-in-out infinite 1.4s;
  will-change: transform;
}

@keyframes floatStarBl {
  0%, 100% {
    transform: rotate(-3deg) scale(1.02);
  }
  50% {
    transform: rotate(3deg) scale(0.97);
  }
}

/* ── 3. MAIN HEADLINE (Font size 76px, Centered Composition) ── */
.hero-headline-wrap {
  position: absolute;
  left: 530px;
  transform: translateX(-50%);
  top: 90px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0px;
  z-index: 10;
  width: max-content;
}

.hl-line {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 76px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #161515;
  white-space: nowrap;
  text-align: center;
}

/* ── 4. JOY INTERACTION COMPONENT ─────────────────────────── */
.hl-line--joy {
  position: relative;
  margin-top: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.beauty-selection-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  cursor: pointer;
  animation: floatJoy 4.2s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatJoy {
  0%, 100% {
    transform: translate3d(0px, 0px, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(2px, -5px, 0) rotate(-0.5deg);
  }
  50% {
    transform: translate3d(0px, 0px, 0) rotate(0deg);
  }
  75% {
    transform: translate3d(-1px, 3px, 0) rotate(0.5deg);
  }
}

.beauty-text {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #161515;
}

/* Blue Selection Box - compact optical fit around joy */
.sel-box {
  position: absolute;
  top: 6px;
  bottom: -6px;
  left: -16px;
  right: -16px;
  border: 2.5px solid rgb(74, 119, 255);
  background-color: rgba(74, 119, 255, 0.12);
  pointer-events: none;
  z-index: 2;
  border-radius: 2px;
  transition: box-shadow 0.2s ease;
}

.beauty-selection-wrap:hover .sel-box {
  box-shadow: 0 4px 16px rgba(74, 119, 255, 0.3);
}

/* 4 Corner Handles */
.sel-h {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #ffffff;
  border: 2px solid rgb(74, 119, 255);
  border-radius: 1px;
}
.sel-h--tl { top: -5px; left: -5px; }
.sel-h--tr { top: -5px; right: -5px; }
.sel-h--bl { bottom: -5px; left: -5px; }
.sel-h--br { bottom: -5px; right: -5px; }

/* Unified Selection Overlay (Figma Blue Cursor + Sanju Label) */
.joy-selection-overlay {
  position: absolute;
  left: calc(100% + 10px);
  top: calc(100% + 6px);
  pointer-events: none;
  z-index: 20;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.beauty-selection-wrap:hover .joy-selection-overlay {
  transform: translate(2px, 2px) scale(1.04);
}

.joy-cursor-wrap {
  position: relative;
  width: 37.56px;
  height: 37.56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.joy-cursor-wrap svg {
  width: 37.56px;
  height: 37.56px;
  display: block;
}

.sanju-pill {
  position: absolute;
  left: 22px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  background: rgb(74, 119, 255);
  color: #ffffff;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(74, 119, 255, 0.35);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ── 5. COMMAND CARD (⌘) (CONTINUOUS IDLE ANIMATION) ──────── */
.command-card-wrap {
  position: absolute;
  left: 80px;
  top: -10px;
  width: 115px;
  height: 115px;
  background: #242424;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(12deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  z-index: 15;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.command-card-wrap:hover {
  transform: rotate(12deg) scale(1.08) translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.command-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatCommandCard 5s ease-in-out infinite;
  will-change: transform;
}

.cmd-symbol {
  font-size: 52px;
  color: #ffffff;
  line-height: 1;
  display: inline-block;
}

@keyframes floatCommandCard {
  0%, 100% {
    transform: rotate(0deg) translateY(0px);
  }
  50% {
    transform: rotate(-3.5deg) translateY(-4px);
  }
}

/* ── 6. Z CARD (CONTINUOUS IDLE ANIMATION) ────────────────── */
.z-card-wrap {
  position: absolute;
  left: 15px;
  top: 75px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.94);
  border: 3.2px solid #cecece;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  z-index: 14;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.z-card-wrap:hover {
  transform: rotate(-12deg) scale(1.08) translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.15);
}

.z-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatZCard 4.4s ease-in-out infinite 0.7s;
  will-change: transform;
}

.z-symbol {
  font-family: 'DM Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #161515;
  line-height: 1;
  display: inline-block;
}

@keyframes floatZCard {
  0%, 100% {
    transform: rotate(0deg) translateY(0px);
  }
  50% {
    transform: rotate(3deg) translateY(3px);
  }
}

/* ── 7. HERO ILLUSTRATION / UPLOADED AVATAR ────────────────── */
.hero-illustration-wrap {
  position: absolute;
  left: 25px;
  top: 200px;
  width: 280px;
  height: 250px;
  z-index: 13;
  cursor: pointer;
}

.hero-avatar-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.25s ease-out;
}

.hero-illustration-wrap:hover .hero-avatar-container {
  transform: translateY(-5px) rotate(-1deg) scale(1.01);
}

.hero-avatar-img {
  width: 230px;
  height: auto;
  max-height: 215px;
  object-fit: contain;
  margin-bottom: 8px;
  z-index: 2;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.08));
}

.avatar-ground-ellipse {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 45px;
  z-index: 1;
  pointer-events: none;
}

/* Avatar Hover Editorial Annotation */
.avatar-hover-annotation {
  position: absolute;
  bottom: -28px;
  left: calc(50% + 35px);
  transform: translateY(4px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 25;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
  max-width: 180px;
  width: max-content;
}

.hero-illustration-wrap:hover .avatar-hover-annotation {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

.avatar-hover-annotation span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.3;
  color: #242424;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ── 8. DESIGN TOOLBAR COMPONENT SYSTEM ───────────────────── */
.design-toolbar-wrap {
  position: absolute;
  left: 900px;
  top: 45px;
  width: 145px;
  height: 260px;
  background: #242424;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, 1fr);
  padding: 20px 16px;
  gap: 10px;
  z-index: 15;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
  transform: rotate(2deg);
  will-change: transform;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  overflow: visible;
}

/* Entire Toolbar Subtle Tilt on Level 1 Hover (~2.5deg tilt) */
.design-toolbar-wrap.is-hovered {
  transform: rotate(4.5deg) translateY(-3px);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.32);
}

/* ─────────────────────────────────────────────────────────────
   LEVEL 1: GENERAL TOOLSET INVITATION (<PressMeHint />)
   Contains "Press me" label + dotted/dashed designer-style SVG arrow
   ───────────────────────────────────────────────────────────── */
.press-me-hint-wrap {
  position: absolute;
  left: -125px;
  top: -28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px) scale(0.95);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

/* Show Press Me hint when hovering the toolset container */
.design-toolbar-wrap.is-hovered:not(.has-active-tool) .press-me-hint-wrap {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.press-me-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #161515;
  background: #ffffff;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.dotted-designer-arrow {
  width: 65px;
  height: 35px;
  margin-top: 2px;
  margin-left: 20px;
  overflow: visible;
}

/* ToolButton Component Container */
.tool-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: background 0.15s ease-out, transform 0.14s ease-out;
  -webkit-tap-highlight-color: transparent;
}

.tool-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Tactile Button Press (4px - 8px downward movement on click/press) */
.tool-button:active,
.tool-button.is-pressed {
  transform: translateY(6px) !important;
  background: rgba(255, 255, 255, 0.22) !important;
}

/* Active Selected Tool Tile */
.tool-button.is-active {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.tool-button:focus-visible {
  box-shadow: 0 0 0 2px #4a77ff;
}

/* Icon Container & SVG Standard Sizing */
.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.tool-icon svg,
.tool-icon img,
.tool-icon-img {
  width: auto;
  height: auto;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.12s ease-out;
}

/* ─────────────────────────────────────────────────────────────
   STATE A: HOVER HINT ("Press me!")
   Minimal Notion / Figma style tiny floating badge
   ───────────────────────────────────────────────────────────── */
.hover-hint {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: #ffffff;
  color: #161515;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
  z-index: 100;
}

.hover-hint::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.tool-button.show-hover-hint .hover-hint {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   STATE B: CLICKED CONTEXTUAL TOOLTIP
   Minimal Notion / Figma contextual message card
   ───────────────────────────────────────────────────────────── */
.click-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #ffffff;
  color: #161515;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  z-index: 110;
}

.click-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.tool-button.show-click-tooltip .click-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ── 9. BOTTOM NAVIGATION ────────────────────────────────── */
.bottom-nav-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  top: auto;
  right: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 6px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1.2px solid rgba(0, 0, 0, 0.14);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.bottom-nav-wrap.nav-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

.nav-item-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn {
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: #f4f4f2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.nav-btn:hover {
  background: #e2e2df;
  transform: translateY(-2px);
}

.nav-btn svg {
  width: 18px;
  height: 18px;
  fill: #161515;
}

.nav-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #161515;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 110;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #161515 transparent transparent transparent;
}

.nav-item-wrap:hover .nav-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive Hero Adjustments ────────────────────────── */
@media (max-width: 1140px) {
  .hero-section {
    min-height: auto;
    height: auto;
    padding-top: 140px;
    padding-bottom: 80px;
    box-sizing: border-box;
  }
  .hero-composition {
    transform: scale(calc((100vw - 40px) / 1060));
    transform-origin: center center;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  .hero-composition {
    transform: scale(calc((100vw - 20px) / 1060));
    transform-origin: center center;
  }
}
