/* ================================================================
   HERO.CSS — Artifex  |  Premium Creative Agency Hero
   - Full-width immersive composition (no white card / border)
   - Deep navy/royal blue base + purple/magenta atmospheric glow
   - Seamless transparent navigation sitting directly over video
   - Bold centered typography & clean hierarchy
   - Interactive floating 3D objects with scroll & mouse parallax
   - All classes isolated with hx-* prefix
   ================================================================ */

html {
  scroll-behavior: smooth;
}

/* ------------------------------------------------------------------
   HERO SECTION WRAPPER & CONTAINER
   ------------------------------------------------------------------ */
.hx-hero-section {
  position: relative;
  width: 100%;
  min-height: 92vh;
  height: clamp(720px, 94vh, 980px);
  background-color: #030818;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* ------------------------------------------------------------------
   1. BACKGROUND VIDEO LAYER
   ------------------------------------------------------------------ */
.hx-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hx-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.55;
  filter: contrast(1.1) brightness(0.95);
}

/* ------------------------------------------------------------------
   2. ATMOSPHERIC GRADIENTS & GLOW OVERLAYS
   ------------------------------------------------------------------ */
.hx-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    /* Top-to-bottom dark navy readability blend */
    linear-gradient(180deg,
      rgba(3, 8, 24, 0.8) 0%,
      rgba(3, 8, 24, 0.42) 35%,
      rgba(3, 8, 24, 0.42) 65%,
      rgba(3, 8, 24, 0.88) 100%
    ),
    /* Rich purple / magenta ambient glow on right */
    radial-gradient(ellipse 70% 55% at 82% 38%,
      rgba(138, 43, 226, 0.26) 0%,
      rgba(168, 85, 247, 0.12) 45%,
      transparent 72%
    ),
    /* Cyan / royal blue ambient lighting on lower left */
    radial-gradient(ellipse 65% 50% at 18% 68%,
      rgba(0, 210, 255, 0.2) 0%,
      rgba(30, 100, 220, 0.12) 48%,
      transparent 70%
    ),
    /* Deep blue atmospheric core */
    radial-gradient(circle at 50% 50%,
      rgba(15, 30, 75, 0.3) 0%,
      transparent 75%
    );
}

/* ------------------------------------------------------------------
   3. SUBTLE TECHNICAL GRID OVERLAY
   ------------------------------------------------------------------ */
.hx-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    url('h6_net.png'),
    linear-gradient(to right, rgba(0, 210, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
  background-size:
    880px 880px,
    64px 64px,
    64px 64px;
  background-position:
    center center,
    center center,
    center center;
  background-repeat:
    no-repeat,
    repeat,
    repeat;
  mix-blend-mode: screen;
}

/* ------------------------------------------------------------------
   4. FLOATING 3D OBJECTS
   Existing assets: h6_deco-1.png (cube) & h6_deco-2.png (star)
   ------------------------------------------------------------------ */
.hx-3d-wrap {
  position: absolute;
  z-index: 12;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* LEFT OBJECT: 3D Iridescent Cube */
.hx-3d-left {
  left: 6%;
  top: 26%;
  width: clamp(140px, 16vw, 240px);
}

.hx-3d-left img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 25px 45px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 35px rgba(138, 43, 226, 0.35));
  animation: hxFloatLeft 7s ease-in-out infinite;
}

/* RIGHT OBJECT: 3D Iridescent Star */
.hx-3d-right {
  right: 7%;
  bottom: 16%;
  width: clamp(130px, 15vw, 225px);
}

.hx-3d-right img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 25px 45px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 35px rgba(0, 210, 255, 0.38));
  animation: hxFloatRight 8s ease-in-out infinite;
}

/* Natural idle breathing float */
@keyframes hxFloatLeft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}

@keyframes hxFloatRight {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(-2.5deg); }
}

/* ------------------------------------------------------------------
   5. HEADER / NAVIGATION (Seamless Transparent Overlay)
   ------------------------------------------------------------------ */
.hx-header {
  position: relative;
  z-index: 50;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 52px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Logo */
.hx-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hx-logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.hx-logo img {
  height: 53px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Center Desktop Nav */
.hx-nav-wrap {
  display: flex;
  align-items: center;
}

.hx-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hx-nav li {
  margin: 0;
  padding: 0;
}

.hx-nav a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 8px 2px;
  position: relative;
  transition: color 0.22s ease;
  display: inline-block;
}

.hx-nav a:hover {
  color: #00d2ff;
}

/* Active indicator for Home link */
.hx-nav a.is-active {
  color: #ffffff;
  font-weight: 600;
}

.hx-nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00d2ff;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
}

/* Header Right Actions */
.hx-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hx-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #030818;
  background: #00d2ff;
  text-decoration: none;
  padding: 11px 26px;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.3);
}

.hx-nav-cta:hover {
  background: #33dcff;
  box-shadow: 0 6px 26px rgba(0, 210, 255, 0.55);
  transform: translateY(-2px);
}

.hx-nav-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.hx-nav-cta:hover svg {
  transform: translateX(4px);
}

/* Mobile Toggle Button */
.hx-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #ffffff;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.hx-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hx-mobile-toggle svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Mobile Dropdown Menu */
.hx-mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 20px;
  right: 20px;
  background: rgba(4, 10, 28, 0.95);
  border: 1px solid rgba(0, 210, 255, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 18px;
  padding: 20px 24px;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: hxFadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hx-mobile-menu.hx-open {
  display: flex;
}

.hx-mobile-menu a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.hx-mobile-menu a:hover,
.hx-mobile-menu a.is-active {
  background: rgba(0, 210, 255, 0.12);
  color: #00d2ff;
}

/* ------------------------------------------------------------------
   6. MAIN HERO CONTENT (Centered Hierarchy)
   ------------------------------------------------------------------ */
.hx-hero-content {
  position: relative;
  z-index: 25;
  width: 100%;
  max-width: 980px;
  margin: auto auto;
  padding: 24px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Trust Badge Pill */
.hx-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.hx-trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 10px #00d2ff;
  animation: hxPulse 2s ease-in-out infinite;
}

@keyframes hxPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.78); }
}

/* Main Headline */
.hx-hero-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2.7rem, 5.8vw, 4.9rem);
  line-height: 1.09;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 0 0 22px 0;
  max-width: 860px;
  text-shadow:
    0 4px 30px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(0, 210, 255, 0.08);
  user-select: none;
}

/* Supporting Tagline */
.hx-hero-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 400;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.76);
  max-width: 660px;
  margin: 0 0 36px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* CTA Buttons Row */
.hx-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hx-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #030818;
  background: #00d2ff;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 100px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 25px rgba(0, 210, 255, 0.35);
  white-space: nowrap;
}

.hx-btn-primary:hover {
  background: #33dcff;
  box-shadow: 0 8px 32px rgba(0, 210, 255, 0.6);
  transform: translateY(-2px);
}

.hx-btn-primary svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.hx-btn-primary:hover svg {
  transform: translateX(4px);
}

.hx-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.26);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.hx-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hx-btn-secondary svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.hx-btn-secondary:hover svg {
  transform: translateX(4px);
}

/* ------------------------------------------------------------------
   7. BOTTOM HERO DETAILS & SCROLL INDICATOR
   ------------------------------------------------------------------ */
.hx-hero-bottom {
  position: relative;
  z-index: 25;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 52px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
}

/* Center Scroll to Explore */
.hx-scroll-explore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  user-select: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.hx-scroll-explore:hover {
  opacity: 1;
  transform: translateY(2px);
}

.hx-scroll-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.hx-scroll-explore:hover .hx-scroll-text {
  color: #00d2ff;
}

.hx-mouse-icon {
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.25s ease;
}

.hx-scroll-explore:hover .hx-mouse-icon {
  border-color: #00d2ff;
}

.hx-mouse-wheel {
  width: 3px;
  height: 6px;
  background: #00d2ff;
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: hxWheelDrop 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes hxWheelDrop {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  25%  { opacity: 1; }
  65%  { opacity: 1; transform: translate(-50%, 8px); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ------------------------------------------------------------------
   8. ENTRANCE ANIMATIONS (Staggered Load Sequence)
   ------------------------------------------------------------------ */
@keyframes hxFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hxScaleIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hx-anim-badge    { animation: hxFadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hx-anim-title    { animation: hxFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both; }
.hx-anim-tagline  { animation: hxFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.hx-anim-cta      { animation: hxFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both; }
.hx-anim-3d-left  { animation: hxScaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.hx-anim-3d-right { animation: hxScaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both; }
.hx-anim-bottom   { animation: hxFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }

/* ------------------------------------------------------------------
   9. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------------ */

/* Laptop / Medium Desktop (≤ 1280px) */
@media (max-width: 1280px) {
  .hx-header {
    padding: 28px 36px 14px;
  }

  .hx-hero-bottom {
    padding: 12px 36px 24px;
  }

  .hx-3d-left {
    left: 4%;
    top: 24%;
    width: clamp(130px, 14vw, 190px);
  }

  .hx-3d-right {
    right: 4%;
    bottom: 14%;
    width: clamp(120px, 13vw, 180px);
  }
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .hx-header {
    padding: 24px 28px 12px;
  }

  .hx-nav {
    gap: 24px;
  }

  .hx-nav a {
    font-size: 0.875rem;
  }

  .hx-hero-headline {
    font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  }

  .hx-hero-bottom {
    padding: 12px 28px 20px;
  }

  .hx-3d-left {
    left: 2%;
    top: 22%;
    width: 140px;
    opacity: 0.9;
  }

  .hx-3d-right {
    right: 2%;
    bottom: 12%;
    width: 130px;
    opacity: 0.9;
  }
}

/* Tablet & Mobile Nav breakpoint (≤ 880px) */
@media (max-width: 880px) {
  .hx-nav-wrap {
    display: none;
  }

  .hx-mobile-toggle {
    display: block;
  }
}

/* Mobile Devices (≤ 768px) */
@media (max-width: 768px) {
  .hx-hero-section {
    min-height: 100vh;
    height: auto;
    padding-bottom: 20px;
  }

  .hx-header {
    padding: 20px 20px 10px;
  }

  .hx-logo img {
    height: 44px;
  }

  .hx-header .hx-nav-cta {
    display: none !important;
  }

  .hx-hero-content {
    padding: 40px 20px 30px;
    margin: 20px auto;
  }

  .hx-trust-badge {
    margin-bottom: 18px;
    padding: 6px 14px;
    font-size: 0.75rem;
  }

  .hx-hero-headline {
    font-size: clamp(2rem, 7.8vw, 2.75rem);
    line-height: 1.14;
    margin-bottom: 18px;
  }

  .hx-hero-tagline {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 90%;
  }

  .hx-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 12px;
  }

  .hx-btn-primary,
  .hx-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 24px;
    font-size: 0.9rem;
  }

  /* 3D Objects Mobile Framing - moved inward to frame the headline without covering text */
  .hx-3d-left {
    left: 8%;
    top: 18%;
    width: 105px;
    opacity: 0.9;
  }

  .hx-3d-right {
    right: 8%;
    bottom: 22%;
    width: 100px;
    opacity: 0.9;
  }

  .hx-hero-bottom {
    padding: 10px 20px 24px;
  }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .hx-hero-headline {
    font-size: clamp(1.8rem, 8.5vw, 2.35rem);
  }

  .hx-3d-left {
    left: 7%;
    top: 18%;
    width: 88px;
  }

  .hx-3d-right {
    right: 7%;
    bottom: 22%;
    width: 82px;
  }
}
