/* Hero Section Styles - Renamed to avoid conflicts */

/* Hero Banner */
.nxm-hero-banner {
  height: 100vh;
  position: relative;
  overflow: visible;
  background-color: #000000 !important;
}

.nxm-hero-banner .nxm-container {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.nxm-hero-banner .nxm-banner-content {
  width: 100%;
  padding-bottom: 0;
  padding-top: 60px;
  position: relative;
  z-index: 10;
  color: white !important;
}

@media screen and (max-width: 992px) {
  .nxm-hero-banner .nxm-banner-content {
    padding-bottom: 0;
    padding-top: 40px;
  }
}

/* Mobile-specific adjustments to push content down */
@media screen and (max-width: 768px) {
  .nxm-hero-banner .nxm-container {
    align-items: flex-end; /* Align content to bottom */
    padding-bottom: 60px; /* Add bottom padding for spacing from edge */
  }
  
  .nxm-hero-banner .nxm-banner-content {
    padding-top: 0; /* Remove top padding */
  }
}

@media screen and (max-width: 480px) {
  .nxm-hero-banner .nxm-container {
    padding-bottom: 40px; /* Less bottom padding for very small screens */
  }
}

/* Background Elements */
.nxm-dark-bg {
  position: relative;
  background-color: #000000 !important;
}

.nxm-dark-bg:before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  pointer-events: none;
  z-index: 1;
  backdrop-filter: invert(100%);
}

.nxm-dark-bg .nxm-invert-fix {
  height: 100%;
  position: relative;
  pointer-events: none;
  z-index: 2;
}

.nxm-dark-bg .nxm-invert-fix .nxm-container {
  pointer-events: all;
  z-index: 25;
  position: relative;
}

.nxm-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
  z-index: 1;
}

/* Animation Frame */
.nxm-animation-frame {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  animation: none; /* static per reference */
  pointer-events: none;
  z-index: 30; /* above nxm-container (25) */
  background-color: transparent !important;
}

/* Animation Elements */
.nxm-animation {
  position: absolute;
  display: inline-block !important;
  width: 300px;
  height: 300px;
  opacity: 1 !important;
  pointer-events: none;
  z-index: 30; /* above nxm-container */
  background-color: transparent !important;
  visibility: visible !important;
  overflow: visible;
}

.nxm-animation svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 5;
  visibility: visible !important;
  opacity: 1 !important;
}

.nxm-animation svg path {
  visibility: visible !important;
  opacity: 1 !important;
  stroke: rgba(255,255,255,0.8) !important;
  stroke-width: 2 !important;
  fill: none !important;
  z-index: 5;
}

/* Position Classes (desktop reference layout) */
.nxm-position-1 {
  top: -20px;       /* move toward center */
  right: 160px;
  z-index: 2;
}

.nxm-position-2 {
  top: -40px;       /* move toward center-left */
  left: 60px;
  z-index: 2;
}

.nxm-position-3 {
  bottom: -20px;    /* vertical stays similar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

@media screen and (max-width: 1400px) {
  .nxm-position-2,
  .nxm-position-3 {
    display: none;
  }
}

/* Mobile layout: keep a single centered rotating shape */
@media screen and (max-width: 991px) {
  .nxm-position-2,
  .nxm-position-3 { display: none !important; }
  .nxm-position-1 {
    top: 40px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Circle Text */
.nxm-circle-text {
  position: absolute;
  right: 0;
  bottom: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 140px;
}

/* Hide scroll circle per new design */
.nxm-circle-text { display: none !important; }

.nxm-circle-text .nxm-ct-svg {
  transform: scale(2);
  width: 140px;
  height: 140px;
}

.nxm-circle-text .nxm-ct-svg text {
  fill: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
}

.nxm-circle-text .nxm-button {
  position: absolute;
}

.nxm-circle-text .nxm-icon-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #c5a559; /* gold */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nxm-circle-text .nxm-icon-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(1.1);
}

.nxm-circle-text .nxm-arrow-down {
  width: 30px;
  height: 65px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.nxm-circle-text:hover svg text {
  fill: rgb(255, 255, 255);
}

@media screen and (max-width: 992px) {
  .nxm-circle-text {
    display: none;
  }
}

/* Typography */
.nxm-hero-title {
  font-family: "Outfit", sans-serif;
  color: rgb(255, 255, 255) !important;
  font-weight: 500;
  line-height: 120%;
  margin-bottom: 60px;
  font-size: 86px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.nxm-hero-title .nxm-thin {
  font-weight: 100;
}

.nxm-hero-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 60px;
  font-size: 18px;
  line-height: 170%;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.nxm-muted {
  color: rgba(255, 255, 255, 0.9);
}

.nxm-light-soft {
  color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.nxm-button {
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  border: none;
  letter-spacing: 2px;
  font-size: 12px;
  background-color: #c5a559 !important; /* gold */
  color: rgb(0, 0, 0) !important;
  border-radius: 70px;
  padding: 0 80px 0 28px; /* desktop defaults */
  height: 70px;
  text-transform: uppercase;
  font-weight: 500;
  transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
  text-decoration: none;
  margin-right: 30px;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap; /* prevent wrap under icon */
}

/* Right circular arrow inside gold button */
.nxm-button:after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 55%;
  background-repeat: no-repeat;
  background-position: center;
}

@media screen and (max-width: 768px) {
  .nxm-button {
    height: 60px;
    padding: 0 180px 0 24px; /* much more room for "WHAT WE DO" */
    letter-spacing: 1px; /* slightly tighter to fit */
  }
  .nxm-button:after {
    width: 36px;
    height: 36px;
    right: 12px;
    background-position: 56% center; /* more left padding inside circle */
  }
}

.nxm-button:hover {
  background-color: #b89549;
  transform: scale(1.05);
}

.nxm-link {
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 70px;
  padding: 0 32px;
  height: 70px;
}

.nxm-link:hover {
  color: rgb(255, 255, 255);
}

.nxm-link svg {
  margin-left: 15px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 10px;
  background-color: #c5a559; /* gold circle */
  transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
}

.nxm-link svg path {
  fill: rgb(255, 255, 255);
}

.nxm-link:hover svg {
  transform: scale(1.15);
}

.nxm-link.nxm-arrow-place svg {
  transform: rotate(90deg);
}

.nxm-link.nxm-arrow-place:hover svg {
  transform: scale(1.15) rotate(90deg);
}

/* Button Spacing */
.nxm-btn-space {
  margin-bottom: 30px;
}

/* Responsive */
@media screen and (max-width: 1400px) {
  .nxm-hero-title {
    font-size: 74px;
  }
}

@media screen and (max-width: 1200px) {
  .nxm-hero-title {
    font-size: 72px;
  }
}

@media screen and (max-width: 992px) {
  .nxm-hero-title {
    font-size: 58px;
  }
  
  .nxm-hero-subtitle {
    font-size: 16px;
  }
}

@media screen and (max-width: 768px) {
  .nxm-hero-title {
    font-size: 40px; /* Reduced from 48px to find better balance */
  }
  
  .nxm-hero-subtitle {
    font-size: 16px; /* Reduced from 18px to find better balance */
  }
  
  .nxm-button {
    height: 50px;
    padding: 0 60px 0 20px !important; /* arrow closer to text */
    font-size: 11px; /* Reduced from 12px to find better balance */
  }
  
  .nxm-link {
    height: 50px;
    padding: 0 24px;
    font-size: 11px; /* Reduced from 12px to find better balance */
  }
}

/* Animations */
/* Keyframes */
@keyframes nxm-jump {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes nxm-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes nxm-fade-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.nxm-mb-60 {
  margin-bottom: 60px;
}

.nxm-mb-30 {
  margin-bottom: 30px;
}

.nxm-up {
  opacity: 0;
  transform: translateY(30px);
  animation: nxm-fade-up 0.8s ease forwards;
}

/* Container */
.nxm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Force black background only on containers, not descendants */
.nxm-hero-banner,
.nxm-dark-bg {
  background-color: #000000 !important;
}

.nxm-hero-banner {
  background: #000000 !important;
}

.nxm-dark-bg {
  background: #000000 !important;
}

/* Override any existing body/html styles */
body .nxm-hero-banner,
html .nxm-hero-banner {
  background: #000000 !important;
}

body .nxm-dark-bg,
html .nxm-dark-bg {
  background: #000000 !important;
}

/* Row and Column Layout */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-7,
.col-lg-5 {
  padding: 0 15px;
}

.col-md-7 {
  width: 58.333333%;
}

.col-lg-5 {
  width: 41.666667%;
}

@media screen and (max-width: 992px) {
  .col-md-7,
  .col-lg-5 {
    width: 100%;
  }
}

/* Hidden Elements */
.nxm-hidden-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.nxm-hidden-elements .nxm-dodecahedron,
.nxm-hidden-elements .nxm-lines,
.nxm-hidden-elements .nxm-arrow {
  position: absolute;
  pointer-events: none;
}

/* Dodecahedron 3D Structure */
.nxm-dodecahedron {
  position: relative;
  left: 100px;
  top: 40px;
  width: 100px;
  height: 223px;
  transform-style: preserve-3d;
  /* animation removed on clones via inline style in JS */
  z-index: 5;
}

@keyframes nxm-rotate-3d {
  from {
    transform: rotateX(0deg) rotateY(360deg) rotateZ(360deg);
  }
  to {
    transform: rotateX(360deg) rotateY(0deg) rotateZ(-360deg);
  }
}

.nxm-pentagon {
  position: absolute;
  width: 100px;
  z-index: 5;
}

.nxm-pentagon:nth-child(1) {
  transform: rotateY(0.2turn) translateZ(69px) rotateX(26.5deg);
}

.nxm-pentagon:nth-child(6) {
  bottom: 0;
  transform: rotateY(0.2turn) translateZ(-69px) rotateX(206.5deg);
}

.nxm-pentagon:nth-child(2) {
  transform: rotateY(0.4turn) translateZ(69px) rotateX(26.5deg);
}

.nxm-pentagon:nth-child(7) {
  bottom: 0;
  transform: rotateY(0.4turn) translateZ(-69px) rotateX(206.5deg);
}

.nxm-pentagon:nth-child(3) {
  transform: rotateY(0.6turn) translateZ(69px) rotateX(26.5deg);
}

.nxm-pentagon:nth-child(8) {
  bottom: 0;
  transform: rotateY(0.6turn) translateZ(-69px) rotateX(206.5deg);
}

.nxm-pentagon:nth-child(4) {
  transform: rotateY(0.8turn) translateZ(69px) rotateX(26.5deg);
}

.nxm-pentagon:nth-child(9) {
  bottom: 0;
  transform: rotateY(0.8turn) translateZ(-69px) rotateX(206.5deg);
}

.nxm-pentagon:nth-child(5) {
  transform: rotateY(1turn) translateZ(69px) rotateX(26.5deg);
}

.nxm-pentagon:nth-child(10) {
  bottom: 0;
  transform: rotateY(1turn) translateZ(-69px) rotateX(206.5deg);
}

.nxm-pentagon:nth-child(11) {
  transform: translateZ(69px) rotateX(-90deg);
}

.nxm-pentagon:nth-child(12) {
  bottom: 0;
  transform: translateZ(-69px) rotateX(90deg);
}

.nxm-pentagon div {
  position: absolute;
  width: 100px;
  height: 69px;
  transform-origin: bottom;
  border-top: 1px solid rgba(255, 255, 255, 0.18); /* subtle wireframe like reference */
  z-index: 5;
}

.nxm-pentagon div:nth-child(1) {
  transform: rotate(0.2turn);
}

.nxm-pentagon div:nth-child(2) {
  transform: rotate(0.4turn);
}

.nxm-pentagon div:nth-child(3) {
  transform: rotate(0.6turn);
}

.nxm-pentagon div:nth-child(4) {
  transform: rotate(0.8turn);
}

.nxm-pentagon div:nth-child(5) {
  transform: rotate(1turn);
}

/* Arrow Icon */
.nxm-arrow {
  position: absolute;
  right: 0;
  bottom: 90px;
  width: 24px;
  height: 24px;
  fill: rgba(255, 255, 255, 0.8);
  z-index: 5;
  display: none !important; /* remove stuck arrow */
}

/* Ensure decorative layer stays transparent when above content */
.nxm-animation-frame,
.nxm-animation,
.nxm-animation * {
  background: transparent !important;
}
