/* reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
body {
	line-height: 1;
}

/* Font */

@font-face {
  font-family: "Neon Zone";
  src: url("../fonts/NeonZone.woff2") format("woff2"),
       url("../fonts/NeonZone.woff") format("woff");
  font-weight: normal;
}

/* Custom Styles */

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("./images/background.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  font-family: "Neon Zone", sans-serif;
}

.background-characters {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: contain;
  object-position: bottom center;
  animation: charactersAnim 15s ease-in-out infinite;
}

.logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: auto;
  pointer-events: none;
}

.neko {
  position: absolute;
  bottom: 0;
  left: 47%;
  transform: translateX(-50%);
  height: 78%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}


/* Animations */

@keyframes float {
  0%, 100% {
    transform: translateX(-51%) translateY(0);
  }
  50% {
    transform: translateX(-51%) translateY(10px);
  }
}

@keyframes charactersAnim {
  0%, 100% {
    transform: scale(1.03);
  }
  50% {
    transform: scale(1);
  }
}

/* Matrix Text */


.matrix-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  z-index: 2; /* Ensure it stays above the rain effect */
}

.matrix-text {
  position: absolute;
  display: block;
  bottom: 100px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 5vw;
  color: cyan;
  font-family: "Neon Zone", sans-serif;
  text-shadow: 0 0 10px cyan, 0 0 20px cyan, 0 0 30px cyan;
  z-index: 2;
}

.matrix-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: glitch 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-2px, -2px);
  color: cyan;
  text-shadow: 0 0 5px cyan, 0 0 15px cyan;
}

.rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 255, 0.1) 0,
    rgba(0, 0, 255, 0.2) 2px,
    transparent 4px
  );
  animation: rain 30s linear infinite;
  z-index: 1;
  opacity: 0.3;
}


/* Responsive Design */

@media (max-width: 768px) {
  .logo {
    top: 10%;
  }
  .matrix-text {
    font-size: 10vw;
    top: 25%;
  }
}

@media (min-aspect-ratio: 25/10) {
  .background-characters {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    object-fit: cover;
    object-position: bottom center;
  }  
}

/* Animation for the rain effect */
@keyframes rain {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* Glitch effect for the text */
@keyframes glitch {
  0%, 100% {
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(0);
  }
  33% {
    clip-path: polygon(0 0, 100% 0, 100% 15%, 0 15%);
    transform: translate(-5px, -5px);
  }
  66% {
    clip-path: polygon(0 85%, 100% 85%, 100% 100%, 0 100%);
    transform: translate(5px, 5px);
  }
}

