:root {
  --black-color: #030303;
  --white-color: #fff;
  --red-color: #ff0000;
  --grey-color: #888;
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  cursor: none;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--black-color);
  color: var(--white-color);
  font-size: 16px;
  line-height: 1.3;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  outline: none;
}

a {
  text-decoration: none;
  color: var(--white-color);
}

ul, ol {
  list-style: none;
}

h1 { font-size: 160px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--red-color); }
h2 { font-size: 34px; font-weight: 600; }
button { outline: none; border: none; cursor: none; }

.mouse-effect {
  opacity: 0;
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 100000;
  mix-blend-mode: difference;
}
.circle {
  position: absolute;
  background-color: var(--red-color);
  width: 8px;
  height: 8px;
  left: 0px; top: 0px;
  border-radius: 100%;
  pointer-events: none;
}
.circle-follow {
  position: absolute;
  border: 1px solid var(--red-color);
  width: 40px;
  height: 40px;
  left: 0px; top: 0px;
  border-radius: 100%;
  pointer-events: none;
}

.ham-btn { background: transparent; border: none; }
.ham-btn i { font-size: 24px; color: var(--red-color); }

.main-txt {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: -2px;
  z-index: -1;
  transition: opacity 0.5s ease-in-out;
  color: var(--red-color);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 20px rgba(255,0,0,0.5);
  pointer-events: none;
}

.hide-text {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
}
.header-inner .navbar-brand {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-inner nav ul {
  display: flex;
  gap: 80px;
  align-items: center;
}
.header-inner nav ul a {
  font-weight: 500;
  font-size: 0.8rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey-color);
  transition: color 0.3s;
}
.header-inner nav ul a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-color);
  transition: all 0.5s;
}
.header-inner nav ul a:hover { color: var(--white-color); }
.header-inner nav ul a:hover::after { width: 100%; }

.rotated-text {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translate(45%, -600%) rotate(90deg);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--grey-color);
}

.banner-inner {
  padding: 0px 40px;
  min-height: calc(100dvh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
  height: 100%;
  max-width: 55%;
  margin-left: 8%; /* Center-Left aligned taking up right space for cubes */
  pointer-events: none;
}
.banner-inner * { pointer-events: auto; }

.banner-inner .top-desc h5 { font-size: 18px; font-weight: 600; color: var(--white-color); margin-bottom: 4px; }
.banner-inner .top-desc h6 { font-size: 14px; font-weight: 400; color: var(--grey-color); margin-bottom: 8px; }
.banner-inner .top-desc span { display: inline-block; width: 30px; height: 3px; background: var(--red-color); border-radius: 5px; }

.banner-inner .bottom-desc {
  position: static;
}

.banner-inner .bottom-desc .left-desc {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 50;
  pointer-events: auto;
}
.banner-inner .bottom-desc .left-desc h1 { margin-bottom: 10px; }
.banner-inner .bottom-desc .left-desc .desc-inner h5 { font-size: 16px; font-weight: 500; }
.banner-inner .bottom-desc .left-desc .desc-inner h6 { font-size: 14px; font-weight: 400; color: var(--grey-color); }

.banner-inner .bottom-desc .middle-desc {
  display: none; 
}

.banner-inner .bottom-desc .right-desc {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 50;
  pointer-events: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.banner-inner .bottom-desc .right-desc h1 {
  margin-bottom: 20px;
  position: relative;
  text-align: right;
  padding-right: 0;
}
.banner-inner .bottom-desc .right-desc h1::after {
  content: ""; position: absolute; top: 50%; right: -20px; width: 30%; height: 4px;
  background: var(--red-color);
  transform: translate(100%, 0%);
}
.banner-inner .bottom-desc .right-desc .desc-inner {
  display: flex; gap: 30px; align-items: center; justify-content: flex-end;
}
.banner-inner .bottom-desc .right-desc .desc-inner span {
  text-transform: uppercase; font-size: 12px; letter-spacing: 2px; color: var(--grey-color);
}
.banner-inner .bottom-desc .right-desc .desc-inner ul { display: flex; gap: 12px; }
.banner-inner .bottom-desc .right-desc .desc-inner ul li a {
  color: var(--grey-color); transition: color 0.3s;
}
.banner-inner .bottom-desc .right-desc .desc-inner ul li a:hover {
  color: var(--red-color);
}

/* 3D Red Pixels Extravaganza Styles */
.pixel-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  width: 100%;
  max-width: 580px;
  height: 280px;
  margin-top: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  perspective: 800px;
}
.pixel-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1499px) { h1 { font-size: 120px; } }
@media (max-width: 1199px) { .mouse-effect { display: none; } }
@media (max-width: 991px) { 
  h1 { font-size: 80px; }
  .header-inner nav ul { display: none; }
}
@media (max-width: 767px) {
  .banner-inner .bottom-desc .middle-desc { display: none; }
  .main-txt { font-size: 50px; }
}

/* View Transitions for proper Morphing */
::view-transition-group(root) {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.top-desc h5 { view-transition-name: morph-top-h5; width: fit-content; }
.top-desc h6 { view-transition-name: morph-top-h6; width: fit-content; }
.top-desc span { view-transition-name: morph-top-span; }

.bottom-desc .left-desc h1 { view-transition-name: morph-left-h1; width: fit-content; }
.bottom-desc .left-desc .desc-inner { view-transition-name: morph-left-desc; width: fit-content; }

.bottom-desc .middle-desc { view-transition-name: morph-middle-desc; }

.bottom-desc .right-desc h1 { view-transition-name: morph-right-h1; width: fit-content; margin-left: auto; }
.bottom-desc .right-desc .desc-inner { view-transition-name: morph-right-desc; width: fit-content; }

#pages-container {
  position: relative;
  z-index: 10;
}

::view-transition-new(eq-1),
::view-transition-new(eq-2),
::view-transition-new(eq-3) {
  animation: cardEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
::view-transition-old(eq-1),
::view-transition-old(eq-2),
::view-transition-old(eq-3) {
  animation: cardExit 0.3s ease forwards;
}

::view-transition-new(eq-1) { animation-delay: 0.0s; }
::view-transition-new(eq-2) { animation-delay: 0.1s; }
::view-transition-new(eq-3) { animation-delay: 0.2s; }

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardExit {
  to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}
