@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Space+Mono&display=swap");

:root {
  --primary-color: #00ffff;
  --secondary-color: #ff00ff;
  --background-color: #000;
  --text-color: #fff;
}

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

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
}

nav ul {
  display: flex;
  justify-content: flex-end;
  list-style-type: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

main {
  padding-top: 80px;
}

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

h1,
h2 {
  font-family: "Space Mono", monospace;
  margin-bottom: 1rem;
}

.glitch {
  font-size: 5rem;
  position: relative;
  color: var(--text-color);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--primary-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--secondary-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
  }
  20% {
    clip: rect(62px, 9999px, 82px, 0);
  }
  40% {
    clip: rect(35px, 9999px, 78px, 0);
  }
  60% {
    clip: rect(93px, 9999px, 11px, 0);
  }
  80% {
    clip: rect(41px, 9999px, 24px, 0);
  }
  100% {
    clip: rect(59px, 9999px, 71px, 0);
  }
}

.subtitle {
  font-size: 1.5rem;
  margin-top: 1rem;
}

.project-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.project {
  flex: 0 0 auto;
  width: 300px;
  margin-right: 2rem;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.project:hover {
  transform: scale(1.05);
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--background-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--secondary-color);
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
}

input,
textarea {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

button {
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--background-color);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--secondary-color);
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  .glitch {
    font-size: 3rem;
  }
}
