/* Terminal Linux Style CSS */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap');

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

body {
  background-color: #0c0c0c;
  color: #00ff00;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
}

/* Terminal cursor effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 0, 0.03) 2px,
      rgba(0, 255, 0, 0.03) 4px
    );
  pointer-events: none;
  z-index: -1;
}

#wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

/* Terminal prompt style */
#wrapper::before {
  content: '[user@jmdz-terminal ~]$ cat profile.txt';
  display: block;
  color: #00ff00;
  margin-bottom: 30px;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  animation: typing 2s steps(30, end) 0s 1 normal both;
}

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

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 2px solid #00ff00;
  box-shadow: 
    0 0 20px rgba(0, 255, 0, 0.3),
    inset 0 0 20px rgba(0, 255, 0, 0.1);
  display: block;
  margin: 0 auto 30px;
  filter: contrast(1.2) brightness(1.1);
  transition: all 0.3s ease;
}

.avatar:hover {
  box-shadow: 
    0 0 30px rgba(0, 255, 0, 0.5),
    inset 0 0 20px rgba(0, 255, 0, 0.2);
  transform: scale(1.05);
}

h1 {
  text-align: center;
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 40px;
  color: #00ff00;
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
  letter-spacing: 2px;
  position: relative;
}

/* Blinking cursor after h1 */
h1::after {
  content: '_';
  animation: blink 1s infinite;
  color: #00ff00;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

#subwrapper {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid #00ff00;
  border-radius: 6px;
  padding: 30px;
  box-shadow: 
    0 0 20px rgba(0, 255, 0, 0.2),
    inset 0 0 20px rgba(0, 255, 0, 0.05);
  backdrop-filter: blur(5px);
}

p {
  margin-bottom: 20px;
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

a {
  color: #00ffff;
  text-decoration: none;
  border-bottom: 1px dotted #00ffff;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

a:hover {
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  background-color: rgba(0, 255, 255, 0.1);
  padding: 2px 4px;
  border-radius: 3px;
}

a:active {
  color: #ff0000;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

/* Terminal-style bullet points */
li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #00ff00;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

#copy {
  font-size: 0.9em;
  color: #00aa00;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 0;
  opacity: 0.8;
  border-top: 1px dotted #00aa00;
  padding-top: 20px;
}

/* Terminal scan lines effect */
#wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0, 255, 0, 0.05) 1px,
      rgba(0, 255, 0, 0.05) 2px
    );
  pointer-events: none;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}

/* Selection styling */
::selection {
  background-color: rgba(0, 255, 0, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background-color: rgba(0, 255, 0, 0.3);
  color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    font-size: 12px;
    padding: 10px;
  }
  
  #wrapper {
    padding: 20px 10px;
  }
  
  #subwrapper {
    padding: 20px;
  }
  
  h1 {
    font-size: 1.8em;
    letter-spacing: 1px;
  }
  
  .avatar {
    width: 100px;
    height: 100px;
  }
  
  #wrapper::before {
    font-size: 0.9em;
  }
}