/* ====================
   Background video
==================== */
.bg-video,
.bg-overlay {
  position: fixed;
  top: 8rem;
  left: 0;
  width: 100vw;
  height: calc(100vh - 8rem);
}

/* GPU hint WITHOUT will-change (avoids memory bloat) */
.bg-video {
  transform: translateZ(0);
}

.bg-video {
  object-fit: cover;
  object-position: center top;
  z-index: -2;
}

.bg-overlay {
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* ====================
   Header
==================== */
.landing-wrap {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 40rem;
}

.landing-heading {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 40rem;
  background: #00000092;
  overflow: hidden;

  display: grid;
   grid-template-columns: minmax(280px, 520px) 1fr;
  grid-template-rows: auto 1fr;   /* top bar row + content row */
  align-items: start;
 

  -webkit-clip-path: url(#curve-diagonal);
  clip-path: url(#curve-diagonal);

  /* Keep, but this is already fairly cheap */
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.25));
}

/* left button group */
.header-left-buttons {
  display: flex;
  margin-left: 1rem;
}

.top-btn {
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 16px;
}

.top-btn:hover {
  color: rgba(233, 255, 255, 1);
  text-shadow:
    0 0 10px rgba(125, 249, 255, 0.7),
    0 0 22px rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
}

/* logo */
.header-top .logo {
  height: 6rem;
  width: auto;
  display: block;
  margin: 0 auto;
  transform: translateX(-3.4rem);
}

/* icons row */
.header-top .icon-group {
  position: static;
  display: flex;
  gap: 2rem;
}

.header-top{
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 10;
}

/* heading video */
.heading-video {
  position: relative;      /* was absolute */
  grid-column: 1;          /* left column */
  grid-row: 2;             /* same row as text */
  height: 100%;
  width: 100%;
  max-width: none;
  z-index: 1;
  pointer-events: none;
}


.heading-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;

  transform: translateZ(0);

  -webkit-mask-image: linear-gradient(to right, #000 40%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to right, #000 40%, #000 70%, transparent 100%);
}

/* header text */
.header-text{
  grid-column: 2;
  grid-row: 2;
  position: relative;
  z-index: 5;

  margin: 0;
  margin-top: 2rem;
  padding: 0 2rem;

  max-width: 60rem;
  text-align: left;
}

.h1-2{
  white-space: nowrap;
  overflow: visible;
  margin-left: 0;
  font-size: clamp(1.6rem, 3.2vw, 3.5rem);
}

.h1-2,
.p2 {
  text-align: left;
  margin: 0;
}

.landing-wrap .landing-heading .header-text {
  position: relative;
  z-index: 5;
}

/* header curve border svg */
.neon-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

/* BIG FPS win: 5 drop-shadows → 2 */
.neon-border path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: rgba(233, 255, 255, 1);
  stroke-width: 5;

  filter:
    drop-shadow(0 0 6px rgba(125, 249, 255, 0.75))
    drop-shadow(0 0 18px rgba(0, 229, 255, 0.55));
}

/* ====================
   Page Content
==================== */
.page-content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem;
}

/* content 1 */
.content-container1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 6rem 2rem;

  background: #00000092;
  border-radius: 4rem;
}

/* content 2 */
.content-container2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "image text";
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 6rem 2rem;

  background: #00000092;
  border-radius: 4rem;
}

.container2-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-area: text;
}

.container2-image {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-area: image;
}

.container1-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container1-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* content 3 */
.content-container3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto 6rem;
  padding: 6rem 2rem;
  border-radius: 4rem;
}

.services-card1,
.services-card2,
.services-card3 {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 34rem;
  padding: 3.5rem 2.5rem;
  border-radius: 2rem;
  background: rgba(0, 0, 0, 0.6);
}

.services-card1 .cta-btn,
.services-card2 .cta-btn,
.services-card3 .cta-btn{
  position: absolute;
  margin: 0;
  bottom: 2rem;
  right: 2rem;
  align-self: flex-end;
}

/* =================
   Footer
================= */
.footer-wrap {
  position: relative;
  width: 100%;
  height: 40rem;
}

.footer-heading {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  background: #000000;
  overflow: hidden;

  -webkit-clip-path: url(#curve-diagonal-footer);
  clip-path: url(#curve-diagonal-footer);

  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.25));
  z-index: 1;
}

.footer-bottom {
  position: absolute;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  left: 0;
  right: 0;
  bottom: 0;
}

.footer-icons {
  position: relative;
  display: flex;
  margin-left: 0;
  gap: 2rem;
}

.footer-neon-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;

  transform: rotate(180deg);
  transform-origin: center;
}

/* BIG FPS win: 5 drop-shadows → 2 */
.footer-neon-border path {
  fill: none;
  stroke: rgba(233, 255, 255, 1);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;

  filter:
    drop-shadow(0 0 6px rgba(125, 249, 255, 0.75))
    drop-shadow(0 0 18px rgba(0, 229, 255, 0.55));
}
