@charset "UTF-8";


:root {
  --typing-duration: 5s;
}
html {
  background-color: rgb(1, 17, 4);
  font-size: 14px;
  line-height: 1.3;
  color: rgb(231, 247, 103);
  font-family: 'Courier New', Courier, monospace;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  animation: fadein 2s ease;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(50, 212, 185, 0.15), transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: pulse-bg 4s infinite ease-in-out;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.electra-heart {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  margin-bottom: 40px;
  z-index: 2;
  animation: heartbeat 1.5s infinite ease-in-out;
}

.electra-heart img {
  width: 100px;
  height: auto;
  display: block;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgb(231, 247, 103));
  }
  25% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px rgb(231, 247, 103));
  }
  50% {
    transform: scale(0.9);
    filter: drop-shadow(0 0 10px rgb(50, 212, 185));
  }
  75% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgb(231, 247, 103));
  }
}

.typewriter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid rgb(231,247,103);
  font-size: 1.8em;
  font-weight: bold;
  color: rgb(255, 255, 255);
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgb(50,212,185), 0 0 15px rgb(241,248,187);
  animation: typing var(--typing-duration) steps(40, end), blink-caret 0.8s step-end infinite;
  text-align: center;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: rgb(231,247,103); }
}

/* ===========================
   LINKS
=========================== */
a {
  position: relative;
  transition: all 0.3s ease;
}

a:link { color: rgb(231, 247, 103); }
a:visited { color: rgb(30, 194, 96); }
a:hover { color: white; text-shadow: 0 0 10px rgb(231, 247, 103); }

a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgb(231,247,103), rgb(255, 255, 255));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.3s ease;
}

a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ===========================
   PARAGRAPHS
=========================== */
p {
  border: 1px outset rgb(231, 247, 103);
  width: 90%;
  margin: 20px auto;
  border-radius: 10px;
  background-color: rgba(0,0,0,0.2);
}

/* ===========================
   CONTAINER AND MAIN
=========================== */
.container { text-align: center; width: 90%; }
.main { color: rgb(255, 255, 255); }

/* ===========================
   PROJECT LIST
=========================== */
ul {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  text-align: center;
}

li { margin: 10px 0; }

ul a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgb(231,247,103);
  border-radius: 6px;
  text-decoration: none;
  color: rgb(231,247,103);
  transition: all 0.3s ease;
}

ul a:hover {
  background-color: rgb(50,212,185);
  color: #000;
  box-shadow: 0 0 15px rgb(231,247,103);
}

/* ===========================
   ASCII ART
=========================== */
.ascii-container {
  width: 90%;
  overflow-x: auto;
  margin: 20px auto;
  text-align: center;
}

.ascii-container pre {
  font-family: 'Courier New', Courier, monospace;
  white-space: pre;
  font-size: 0.9em;
  line-height: 1.2em;
  display: inline-block;
  transform-origin: top center;
}

/* ===========================
   BODY HOVER EFFECTS
=========================== */
body:hover {
  background: radial-gradient(circle at center, rgba(50,212,185,0.15), transparent 70%);
  animation: bgshift 3s infinite alternate ease-in-out;
}

@keyframes bgshift {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.3); }
}

/* ===========================
   PAGE FADE IN
=========================== */
@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 768px) {
  :root { --typing-duration: 7s; } /* slower typing for tablets */

  .typewriter { font-size: 1.4em; letter-spacing: 0.08em; }
  .electra-heart img { width: 80px; }
  ul a { padding: 5px 10px; font-size: 0.9em; }
  pre, .ascii-container pre { font-size: 0.75em; line-height: 1em; }
  .box0, .box1 { width: 90%; }
  p { width: 95%; font-size: 0.9em; }
}

@media (max-width: 480px) {
  :root { --typing-duration: 9s; } /* slower typing for phones */

  .typewriter { font-size: 1.2em; letter-spacing: 0.06em; }
  .electra-heart img { width: 70px; }
  ul a { padding: 4px 8px; font-size: 0.8em; }
  pre, .ascii-container pre { font-size: 0.6em; line-height: 0.9em; transform: scale(0.8); }
}
