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

body {
  background-color: #0f0f0f;
  color: #e0e0e0;
  font-family: 'Courier New', monospace;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.logo {
  font-size: 1.8rem;
  color: #00ff99;
  text-shadow: 0 0 5px #00ff99;
}
.logo span {
  color: #ffffff;
}

nav a {
  color: #ccc;
  margin-left: 2rem;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
nav a:hover {
  color: #00ffcc;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.glitch {
  position: relative;
  color: #fff;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}
.glitch::before {
  animation: glitchTop 1s infinite linear alternate-reverse;
  top: -2px;
  color: #0ff;
}
.glitch::after {
  animation: glitchBottom 1s infinite linear alternate-reverse;
  top: 2px;
  color: #f0f;
}

@keyframes glitchTop {
  0% { clip: rect(0, 900px, 0, 0); }
  50% { clip: rect(0, 900px, 30px, 0); }
  100% { clip: rect(0, 900px, 0, 0); }
}
@keyframes glitchBottom {
  0% { clip: rect(0, 900px, 0, 0); }
  50% { clip: rect(10px, 900px, 50px, 0); }
  100% { clip: rect(0, 900px, 0, 0); }
}

.tagline {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.cta-btn {
  padding: 0.8rem 1.5rem;
  background: #00ff99;
  color: #000;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}
.cta-btn:hover {
  background: #00ffaa;
}
.secondary {
  background: transparent;
  border: 2px solid #00ff99;
  color: #00ff99;
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-weight: bold;
  text-align: center;
}
.secondary:hover {
  background: #00ff99;
  color: #000;
}

section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}

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

.project-card {
  background: #1c1c1c;
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px #00ffcc;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.glitch-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    #0f0f0f,
    #0f0f0f 1px,
    #101010 2px
  );
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}