/*=============================================================
  HOME PAGE REDESIGN — scoped to index.html only.
  Does not modify styles.css / movies.css so All Projects,
  the project pages, and Resume are completely unaffected.
  Direction: Dark Cinematic + Premium Studio.
=============================================================*/

.hp {
  --hp-bg: #0a0b0d;
  --hp-surface: #121417;
  --hp-surface-2: #181b1f;
  --hp-border: rgba(255,255,255,0.08);
  --hp-text: #f3f4f6;
  --hp-text-dim: #9aa1ab;
  --hp-blue: #4f8cff;
  --hp-blue-dim: #3a6cd9;
  --hp-radius: 14px;
  --hp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  background: var(--hp-bg);
  color: var(--hp-text);
  font-family: var(--hp-font);
  -webkit-font-smoothing: antialiased;
}

.hp * { box-sizing: border-box; }

.hp-container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.hp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.hp-header--solid {
  background: rgba(10,11,13,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hp-border);
}

.hp-nav {
  width: min(1180px, 92%);
  margin-inline: auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-nav__logo {
  color: var(--hp-text);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  text-decoration: none;
}

.hp-nav__list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}

.hp-nav__link {
  color: var(--hp-text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .2s ease;
}
.hp-nav__link:hover,
.hp-nav__link.active-link { color: var(--hp-text); }
.hp-nav__link.active-link { color: var(--hp-blue); }

@media (max-width: 900px) {
  .nav__menu {
    position: fixed;
    background: rgba(10,11,13,0.97);
    backdrop-filter: blur(16px);
    top: 0; right: -100%;
    width: 78%;
    height: 100%;
    padding: 5rem 2rem 2rem;
    transition: right .35s ease;
  }
  .nav__menu.show-menu { right: 0; }
  .hp-nav__list { flex-direction: column; gap: 1.5rem; }
  .nav__toggle, .nav__close { color: var(--hp-text); font-size: 1.4rem; cursor: pointer; }
  .nav__close { position: absolute; top: 1.5rem; right: 1.5rem; }
}
@media (min-width: 901px) {
  .nav__toggle, .nav__close { display: none; }
}

/* ---------- Hero ---------- */
.hp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}

.hp-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hp-hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hp-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,0.55) 0%, rgba(10,11,13,0.55) 35%, rgba(10,11,13,0.92) 100%),
    radial-gradient(60% 50% at 50% 35%, rgba(79,140,255,0.10), transparent);
}

.hp-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  padding: 0 1.5rem;
}

.hp-hero__eyebrow {
  color: var(--hp-blue);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.hp-hero__eyebrow span { color: var(--hp-text); }

.hp-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hp-hero__subtitle {
  color: var(--hp-text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hp-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hp-hero__social {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}
.hp-hero__social a {
  color: var(--hp-text-dim);
  font-size: 1.3rem;
  transition: color .2s ease, transform .2s ease;
}
.hp-hero__social a:hover { color: var(--hp-blue); transform: translateY(-2px); }

.hp-hero__scrollcue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--hp-text-dim);
  font-size: 1.4rem;
  animation: hp-bounce 2.2s ease-in-out infinite;
  z-index: 1;
}
@keyframes hp-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Buttons ---------- */
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.hp-btn--primary {
  background: var(--hp-blue);
  color: #0a0b0d;
}
.hp-btn--primary:hover { background: #6ba0ff; transform: translateY(-1px); }

.hp-btn--ghost {
  color: var(--hp-text);
  border-color: var(--hp-border);
  background: rgba(255,255,255,0.03);
}
.hp-btn--ghost:hover { border-color: var(--hp-blue); color: var(--hp-blue); transform: translateY(-1px); }

/* ---------- Section shared ---------- */
.hp-main section { padding: 5.5rem 0; }

.hp-section__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.hp-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hp-link {
  color: var(--hp-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hp-link:hover { text-decoration: underline; }

/* ---------- Selected work ---------- */
.hp-selected { background: var(--hp-bg); }

.hp-card {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,140,255,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(79,140,255,0.08);
}

.hp-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; }
.hp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hp-card:hover .hp-card__media img { transform: scale(1.04); }

.hp-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.hp-card__tag {
  color: var(--hp-blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hp-card__title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.hp-card__desc { color: var(--hp-text-dim); font-size: 0.9rem; line-height: 1.5; margin: 0; flex: 1; }

.hp-card__action {
  color: var(--hp-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.hp-card__action:hover { color: var(--hp-blue); }

/* ---------- About ---------- */
.hp-about { background: var(--hp-surface-2); }

.hp-about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .hp-about__grid { grid-template-columns: 1fr; }
}

.hp-about__desc {
  color: var(--hp-text-dim);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.hp-about__skills-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--hp-blue);
  margin: 0 0 1rem;
}

.hp-chip-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hp-chip-list li {
  padding: 0.5rem 1rem;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--hp-text-dim);
}

/* ---------- Resume CTA band ---------- */
.hp-resume-cta {
  background: linear-gradient(135deg, rgba(79,140,255,0.08), transparent 60%), var(--hp-bg);
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
}
.hp-resume-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hp-resume-cta__desc { color: var(--hp-text-dim); max-width: 460px; }
.hp-resume-cta__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.hp-contact { background: var(--hp-surface-2); }

.hp-contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}
@media (max-width: 900px) {
  .hp-contact__grid { grid-template-columns: 1fr; }
}

.hp-contact__form { display: flex; flex-direction: column; gap: 1rem; }

.hp-input {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--hp-text);
  font-family: inherit;
  font-size: 0.95rem;
}
.hp-input::placeholder { color: var(--hp-text-dim); }
.hp-input:focus { outline: none; border-color: var(--hp-blue); }
.hp-textarea { min-height: 120px; resize: vertical; }

.hp-contact__status { font-size: 0.85rem; color: var(--hp-blue); min-height: 1em; }

.hp-contact__info { display: flex; flex-direction: column; gap: 1rem; }
.hp-contact__row {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--hp-text-dim);
  font-style: normal;
  font-size: 0.95rem;
}
.hp-contact__row i { color: var(--hp-blue); font-size: 1.1rem; }

.hp-contact__social { display: flex; gap: 1rem; margin-top: 0.75rem; }
.hp-contact__social a { color: var(--hp-text-dim); font-size: 1.25rem; }
.hp-contact__social a:hover { color: var(--hp-blue); }

/* ---------- Footer ---------- */
.hp-footer {
  background: var(--hp-bg);
  border-top: 1px solid var(--hp-border);
  padding: 2.5rem 0;
}
.hp-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.hp-footer__logo { color: var(--hp-text); font-weight: 800; letter-spacing: 0.08em; text-decoration: none; }
.hp-footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.hp-footer__links a { color: var(--hp-text-dim); text-decoration: none; font-size: 0.88rem; }
.hp-footer__links a:hover { color: var(--hp-text); }
.hp-footer__social { display: flex; gap: 1rem; }
.hp-footer__social a { color: var(--hp-text-dim); font-size: 1.1rem; }
.hp-footer__social a:hover { color: var(--hp-blue); }
.hp-footer__copy { color: var(--hp-text-dim); font-size: 0.8rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hp-hero__scrollcue { animation: none; }
  .hp-card, .hp-card__media img, .hp-btn { transition: none; }
}

/* ---------- Scroll reveal (JS-driven, one-time) ---------- */
.hp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.hp-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Eyebrow label ---------- */
.hp-eyebrow {
  color: var(--hp-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

/* ---------- Capability strip ---------- */
.hp-strip {
  padding: 1.6rem 0 !important;
  background: var(--hp-surface);
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
  overflow: hidden;
}
.hp-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  row-gap: 0.75rem;
}
.hp-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--hp-text-dim);
  font-size: 0.85rem;
  white-space: nowrap;
}
.hp-strip__item i { color: var(--hp-blue); }

/* ---------- Hero spotlight (cursor-reactive glow) ---------- */
.hp-hero__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%),
    rgba(79,140,255,0.16), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}
.hp-hero:hover .hp-hero__spotlight { opacity: 1; }

/* ---------- Magnetic buttons ---------- */
.hp-btn[data-magnetic] {
  transition: transform .15s ease-out, background .2s ease, border-color .2s ease;
  will-change: transform;
}

/* ---------- Asymmetric selected-work grid ---------- */
.hp-selected__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.hp-selected__duo {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
}
.hp-card--feature .hp-card__media { aspect-ratio: auto; height: 60%; }
.hp-card--feature { display: flex; flex-direction: column; }
@media (max-width: 960px) {
  .hp-selected__grid { grid-template-columns: 1fr; }
  .hp-selected__duo { grid-template-rows: auto; }
  .hp-card--feature .hp-card__media { aspect-ratio: 16/9; height: auto; }
}

/* ---------- Card tilt (JS sets --rx/--ry/--mx/--my) ---------- */
.hp-card[data-tilt] {
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(0);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
}
.hp-card[data-tilt]:hover { transition: transform .05s linear, border-color .25s ease, box-shadow .25s ease; }
.hp-card[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(79,140,255,0.14), transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
}
.hp-card[data-tilt]:hover::after { opacity: 1; }

/* ---------- Custom cursor accent (desktop pointer only) ---------- */
.hp-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border: 1.5px solid var(--hp-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .18s ease, height .18s ease, background .18s ease, opacity .2s ease;
  opacity: 0;
  mix-blend-mode: difference;
}
.hp-cursor.hp-cursor--active { opacity: 1; }
.hp-cursor.hp-cursor--hover {
  width: 44px; height: 44px;
  background: rgba(79,140,255,0.25);
}
@media (hover: none), (pointer: coarse) {
  .hp-cursor { display: none; }
}

