@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Press+Start+2P&display=swap');


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

:root {
  --p1-green: #00ff27;
  --dark: #1d1818;
}

body {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
  font-size: 14px;
  background: var(--dark);
  color: var(--p1-green);
}

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

.bg-custom-dark {
  background: var(--dark);
  opacity: 0.9;
}

.press-start-2p-regular {
  font-family: "Press Start 2P", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* welcome text animation */
.span-container {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 320px;
  text-align: left;
  opacity: 1;
  transition: opacity 2s ease;
}

.cursor {
  opacity: 0;
  transition: 0.2s;
}

.cursor.active {
  opacity: 1;
}

.span-container.fade-out {
  opacity: 0; 
}

/* menu  */
.menu {
  display: none;
}

.menu-item:hover {
  font-weight: 500;
  transition: font-weight 0.3s ease;
  cursor: pointer;
}

.menu-item.active {
  border: 1px dashed;
  border-bottom: none;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  position: relative;
  font-weight: 500;
  transition: all 0.3s ease;
}

.menu-item.active::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--dark);
}
/* *******************/

[data-pagename] {
  display: none;
}

[data-pagename].active {
  display: block;
}

/* bio section link hover animation */
.border-custom-p1-green {
  border: 1px dashed var(--p1-green);
  border-bottom: none;
}

.link--anime-underline {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.link--anime-underline::after {
  content: '';
  position: absolute;
  bottom: -6px; 
  left: 0;
  width: 0;
  height: 1px; 
  background-color: transparent; 
  border-bottom: var(--p1-green) 1px solid;
  transition: all 0.3s ease;
}

.link--anime-underline:hover::after {
  width: 100%; 
}

/* projects section */
.project-item {
  transition: transform 0.3s ease;
}
.project-item:hover {
  transform: translateY(-3px);
}


/* *******************/
footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.meteor-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0; 
  transition: opacity 0.5s ease; 
}

.meteor-container.active {
  opacity: 1;
}

.meteor {
  position: absolute;
  background-color: var(--p1-green, #00ff00);
  border-radius: 50%;
  opacity: 0.7;
  box-shadow: 0 0 6px 2px var(--p1-green, #00ff00);
  will-change: left, top, width, height, opacity;
}
