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

/* BODY */
body {
  font-family: 'Share Tech Mono', 'VT323', monospace;
  background: black;
  color: #00ff41;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;
}

/* THEME: DARK MODE */
body.dark {
  background: white;
  color: black;
}

body.dark .matrix span {
  color: rgba(0, 0, 0, 0.8);
}

body.dark .card {
  background: #f4f4f4;
  border-color: black;
  box-shadow: 0 0 20px black;
}

body.dark .social-icons img {
  filter: invert(1);
}

/* LOADING ANIMATION */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #00ff41;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* MATRIX ANIMATION */
.matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: black;
  z-index: -1;
}

.matrix span {
  position: absolute;
  color: #00ff41;
  font-family: 'Courier New', Courier, monospace;
  font-size: calc(10px + 10 * var(--speed));
  animation: fall calc(4s + var(--speed)) linear infinite;
  opacity: 0.8;
}

@keyframes fall {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* CARD */
.card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.card {
  width: 90%;
  max-width: 400px;
  background: #001f0f;
  border: 2px solid #00ff41;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 20px #00ff41, 0 0 40px #00ff41;
  text-align: center;
  padding: 20px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 10px 0;
  border: 3px solid #00ff41;
  box-shadow: 0 0 15px #00ff41;
}

/* TEXT */
.info {
  text-align: center;
  padding: 10px 0;
}

.name {
  font-size: 1.5em;
  color: #00ff41;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #00ff41;
}

.job-title, .email, .phone {
  font-size: 1em;
  margin-bottom: 10px;
  color: #00ff41;
  opacity: 0.9;
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 15px;
}

.social-icons img {
  width: 25px;
  height: 25px;
  transition: transform 0.3s, filter 0.3s;
}

.social-icons img:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 10px #00ff41);
}

/* CONSOLE */
#console {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: #00ff41;
  padding: 10px;
  z-index: 999;
  font-family: 'Courier New', Courier, monospace;
}

.console-output {
  height: 150px;
  overflow-y: auto;
  font-size: 0.9em;
  padding: 5px;
}

#console-input {
  width: 100%;
  background: none;
  border: none;
  color: #00ff41;
  font-family: monospace;
  outline: none;
  font-size: 1em;
  padding: 5px;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .card {
    width: 95%;
    padding: 15px;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  .name {
    font-size: 1.3em;
  }

  .job-title, .email, .phone {
    font-size: 0.9em;
  }

  .social-icons img {
    width: 20px;
    height: 20px;
  }

  #console {
    font-size: 0.9em;
  }
}

