/* GLOBAL STYLES */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #050505; 
  color: #e0e0e0; 
  font-family: 'VT323', monospace;
  font-size: 20px;
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
}

h1, h2 {
  color: #00ff99;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #cccccc;
  opacity: 0.8;
}

/* TERMINAL */
.terminal {
  background: #000;
  border: 1px solid #00ff99;
  padding: 1rem;
  margin: 2rem 0;
  color: #7fff7f;
}

#terminal-output p {
  margin: 0.2rem 0;
}

.terminal-input {
  display: flex;
  margin-top: 0.5rem;
}

.prompt {
  margin-right: 0.5rem;
  color: #00ff99; 
}

input#command {
  background: transparent;
  border: none;
  color: #7fff7f; 
  font-family: inherit;
  font-size: inherit;
  outline: none;
  width: 100%;
}

.cmd {
  color: #00ff99; 
}

/* SECTIONS */
section {
  margin-top: 3rem;
}

/* PROJECT GRID */
ul.grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
}

.project {
  margin-bottom: 2rem;
  border: 1px solid #00ff99;
  padding: 1rem;
  background: #000;
}

.project a::before {
  content: "$ git clone ";
  opacity: 0.6;
}

.project a {
  color: #00ffaa;
  text-decoration: none;
}

.project a:hover {
  text-decoration: underline;
}

.tags {
  color: #cccccc;
  display: block;
  margin-top: 0.5rem;
  font-size: 16px;
  opacity: 0.7;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* MEDIA */
.media {
  margin-top: 1rem;
}

.media img {
  max-width: 100%;
  border: 1px solid #00ff99;
}

.media-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.media-row img {
  width: 200px;
  border: 1px solid #00ff99;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-photo img {
  width: 160px;
  image-rendering: pixelated;
  border: 2px solid #00ff99;
  background: #000;
  padding: 4px;
}

/* MOBILE FALLBACK */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-photo img {
    width: 140px;
  }

  .about-gallery img {
    width: 140px;
  }
}

/* ID CARD */
.id-card img {
  width: 140px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 6px auto;
  image-rendering: pixelated;
  border: 1px solid #00ff99;
  filter: contrast(1.1) brightness(1.05);
}

.id-header,
.id-footer {
  text-align: center;
  border-bottom: 1px solid #00ff99;
  padding: 4px 0;
  color: #00ff99;
}

.id-footer {
  border-top: 1px solid #00ff99;
  border-bottom: none;
  margin-top: 4px;
}

/* ABOUT GALLERY */
.about-gallery {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.about-gallery img {
  width: 180px;
  height: auto;
  border: 1px solid #00ff99;
  image-rendering: pixelated;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.about-gallery img:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* MEDIA SMALL */
.media.small img {
  width: 280px;
  max-width: 100%;
  display: block;
  margin: 1rem 0;
  border: 1px solid #00ff99;
  image-rendering: pixelated;
  opacity: 0.85;
}

/* CRT SCANLINES */
.crt {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.15),
      rgba(0,0,0,0.15) 1px,
      transparent 1px,
      transparent 2px
    );
  z-index: 999;
}

/* FOOTER */
footer {
  margin-top: 4rem;
  opacity: 0.7;
}

/* CONTACT SECTION */
#contact {
  margin-top: 3rem;
}

#contact h2 {
  margin-bottom: 0.5rem;
  color: #00ff99;
}

#contact pre {
  background: #000;
  border: 2px solid #00ff99;
  padding: 1rem;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #7fff7f; 
  overflow-x: auto;
  border-radius: 4px;
}

#contact pre a {
  color: #00ffaa;
  text-decoration: underline;
}

#contact pre a:hover {
  color: #ffffff;
}
