/* ==========================================================================
   hero.css — Dark professional hero: top nav + 2-col (text | portrait)
   Source: alex-wbs.framer.website — video frames 1-5
   Inspired by: large editorial hero with dark theme + huge serif name
   ========================================================================== */

.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 0;
}

/* ── TOP NAV: logo (left) + menu + CTA (right) ── */
.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
}

.hero-nav__logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hero-nav__menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  transition: opacity 0.2s var(--ease);
  position: relative;
}

.hero-nav__menu a:not(.hero-nav__cta):hover {
  opacity: 0.65;
}

.hero-nav__cta {
  background: var(--white) !important;
  color: var(--black) !important;
  padding: 11px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease) !important;
}

.hero-nav__cta:hover {
  background: var(--red) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* ── LEFT COLUMN: subtitle + huge Alex + meta ── */
.hero__left {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  min-height: 100vh;
}

.hero__subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--sans);
  margin-bottom: 28px;
}

.hero__dot {
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(223, 6, 42, 0.18);
  animation: hero-pulse 2.2s var(--ease) infinite;
  flex-shrink: 0;
}

@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(223, 6, 42, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(223, 6, 42, 0.04); }
}

.hero__name {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-size: clamp(140px, 22vw, 340px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--white);
  margin: 0 0 56px;
  display: block;
}

.hero__name-line {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__meta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--sans);
}

.hero__meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero__stars {
  color: var(--red);
  letter-spacing: 2px;
  font-size: 14px;
}

/* ── RIGHT COLUMN: large portrait + tech stack + scroll indicator ── */
.hero__right {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  overflow: hidden;
}

.hero__portrait {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.02) saturate(1.05);
  /* Subtle gradient overlay to fade left edge into the dark bg */
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
}

/* Right side overlay: vertical "PRO TECH STACK" + 4 icons */
.hero__stack {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
}

.hero__stack-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--sans);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__stack-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__stack-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero__stack-icon:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.hero__stack-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Scroll indicator (subtle, bottom-right) */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  right: 36px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--sans);
}

.hero__scroll-dot {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  animation: hero-scroll-pulse 2s var(--ease) infinite;
}

@keyframes hero-scroll-pulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(4px); opacity: 0.4; }
}

/* ══════════════════════════════════════════════════════════════════════
   Mobile / responsive
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-nav { padding: 20px 24px; }
  .hero-nav__menu { gap: 22px; }
  .hero-nav__menu a:not(.hero-nav__cta) { display: none; }
  .hero__left { padding: 100px 24px 40px; min-height: auto; }
  .hero__right { min-height: 70vh; }
  .hero__portrait img { mask-image: linear-gradient(180deg, transparent 0%, #000 12%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%); }
  .hero__stack { right: 14px; gap: 12px; }
  .hero__stack-icon { width: 36px; height: 36px; }
  .hero__scroll { right: 20px; bottom: 20px; }
}

@media (max-width: 640px) {
  .hero-nav { padding: 16px 18px; }
  .hero-nav__logo { font-size: 17px; }
  .hero-nav__cta { padding: 9px 18px; font-size: 13px; }
  .hero__left { padding: 90px 20px 32px; }
  .hero__name { font-size: clamp(96px, 28vw, 180px); margin-bottom: 32px; }
  .hero__subtitle { font-size: 11px; letter-spacing: 0.18em; }
  .hero__right { min-height: 60vh; }
  .hero__stack-label { font-size: 10px; letter-spacing: 0.25em; }
  .hero__meta-value { font-size: 13px; }
}

