body {
  background-color: #000;
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  margin: 0;
  overflow-x: hidden;
  animation: fadeIn 1.5s ease-in;
  font-size: 12px;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; filter: brightness(0); }
  to { opacity: 1; filter: brightness(1); }
}

h1, h2, h3 {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff; 
  letter-spacing: 1px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: #00ffcc;
  text-decoration: none;
  margin: 0 10px;
  border: 1px solid #00ffff55;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  transition: 0.3s;
}

nav a:hover {
  background-color: #00ffff22;
  box-shadow: 0 0 10px #00ffff;
}

#about {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px #00ffffaa;
  border: 2px solid #00ffff;
}

#projects {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #111;
  border: 1px solid #00ffff33;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 10px #00ffff33;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffff;
}

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

.project-card a:hover {
  text-shadow: 0 0 10px #00ff99;
}

#contact {
  padding: 2rem;
  text-align: center;
}

#contact a {
  color: #00ff99;
  text-decoration: none;
}

#contact a:hover {
  text-shadow: 0 0 10px #00ff99;
}

footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #00ffff33;
  color: #00ffffaa;
}

#typed-text {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
  font-size: 1.2rem;
}

#typed-text::after {
  content: "_";
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

canvas#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #000;
}

.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;

  background: 
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 2px,
      transparent 4px
    );

  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
  
  animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
  0%, 100% { opacity: 0.98; }
  50% { opacity: 1; }
}

.crt-wrapper {
  transform: perspective(800px) rotateX(2deg);
  overflow: hidden;
}

#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', cursive;
  z-index: 10000;
  animation: fadeOut 1s ease forwards;
  animation-delay: 4s; 
}

.intro-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.press-start {
  font-size: 0.8rem;
  color: #00ffff;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

body.intro-active {
  overflow: hidden;
}