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

:root {
  --yellow: #ffcc00;
  --yellow-dark: #ffaa00;
  --yellow-light: #ffdd33;
  --black: #000000;
  --black-light: #0a0a0a;
  --black-lighter: #1a1a1a;
  --white: #ffffff;
  --gray: #cccccc;
}

body {
  font-family: 'Courier New', monospace;
  background: var(--black);
  color: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* Pixelated font effect */
.pixel-text {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--black);
  border-bottom: 3px solid var(--yellow);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 4px 0 var(--black);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pixel-bounce 2s ease-in-out infinite;
  box-shadow: 
    4px 4px 0 var(--black),
    8px 8px 0 var(--yellow-dark);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  color: var(--black);
}

.logo-icon.small {
  width: 30px;
  height: 30px;
}

.logo-icon.small svg {
  width: 18px;
  height: 18px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--yellow);
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-link {
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid var(--yellow);
  background: var(--black);
  color: var(--yellow);
  transition: all 0.1s linear;
  box-shadow: 
    4px 4px 0 var(--yellow-dark),
    8px 8px 0 var(--black);
  position: relative;
}

.nav-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 
    2px 2px 0 var(--yellow-dark),
    4px 4px 0 var(--black);
}

.nav-link:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.login-btn {
  background: var(--yellow);
  color: var(--black);
}

.register-btn {
  background: var(--black);
  color: var(--yellow);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 800px;
  animation: fade-in-up 1s ease-out;
}

.hero-title-wrapper {
  margin-bottom: 30px;
}

.hero-title {
  font-size: 72px;
  line-height: 1.2;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title-line {
  display: block;
  animation: pixel-slide 0.8s ease-out;
}

.title-line:nth-child(2) {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.title-underline {
  width: 200px;
  height: 8px;
  background: var(--yellow);
  margin: 20px auto;
  box-shadow: 
    4px 4px 0 var(--black),
    8px 8px 0 var(--yellow-dark);
  animation: pixel-expand 1s ease-out 0.5s both;
}

.hero-subtitle {
  font-size: 24px;
  color: var(--yellow-light);
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
  border: 4px solid var(--black);
  cursor: pointer;
  transition: all 0.1s linear;
  font-family: 'Courier New', monospace;
  display: inline-block;
  position: relative;
}

.pixel-button {
  box-shadow: 
    6px 6px 0 var(--black),
    12px 12px 0 var(--yellow-dark);
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover {
  transform: translate(3px, 3px);
  box-shadow: 
    3px 3px 0 var(--black),
    6px 6px 0 var(--yellow-dark);
}

.btn-primary:active {
  transform: translate(6px, 6px);
  box-shadow: none;
}

.btn-secondary {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--yellow);
}

.btn-secondary:hover {
  transform: translate(3px, 3px);
  box-shadow: 
    3px 3px 0 var(--yellow-dark),
    6px 6px 0 var(--black);
}

.btn-secondary:active {
  transform: translate(6px, 6px);
  box-shadow: none;
}

.btn-large {
  padding: 20px 50px;
  font-size: 20px;
}

/* Pixel Grid Background */
.pixel-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--yellow) 1px, transparent 1px),
    linear-gradient(90deg, var(--yellow) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.1;
  animation: grid-move 20s linear infinite;
  z-index: 1;
}

/* Floating Pixels */
.floating-pixels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.pixel {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--yellow);
  border: 2px solid var(--black);
  box-shadow: 
    2px 2px 0 var(--black),
    4px 4px 0 var(--yellow-dark);
}

.pixel-1 {
  top: 10%;
  left: 10%;
  animation: float-pixel 6s ease-in-out infinite;
}

.pixel-2 {
  top: 20%;
  right: 15%;
  animation: float-pixel 8s ease-in-out infinite 1s;
}

.pixel-3 {
  top: 50%;
  left: 5%;
  animation: float-pixel 7s ease-in-out infinite 2s;
}

.pixel-4 {
  top: 60%;
  right: 10%;
  animation: float-pixel 9s ease-in-out infinite 0.5s;
}

.pixel-5 {
  top: 30%;
  left: 20%;
  animation: float-pixel 6.5s ease-in-out infinite 1.5s;
}

.pixel-6 {
  top: 70%;
  right: 25%;
  animation: float-pixel 8.5s ease-in-out infinite 2.5s;
}

.pixel-7 {
  top: 40%;
  left: 50%;
  animation: float-pixel 7.5s ease-in-out infinite 1s;
}

.pixel-8 {
  top: 80%;
  right: 5%;
  animation: float-pixel 6.8s ease-in-out infinite 3s;
}

/* Features Section */
.features {
  padding: 100px 20px;
  background: var(--black-light);
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 60px;
  color: var(--yellow);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pixel-card {
  background: var(--black);
  border: 4px solid var(--yellow);
  padding: 30px;
  position: relative;
  box-shadow: 
    8px 8px 0 var(--yellow-dark),
    16px 16px 0 var(--black-light);
  transition: all 0.2s linear;
}

.pixel-card:hover {
  transform: translate(4px, 4px);
  box-shadow: 
    4px 4px 0 var(--yellow-dark),
    8px 8px 0 var(--black-light);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--yellow);
  border: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 
    4px 4px 0 var(--black),
    8px 8px 0 var(--yellow-dark);
  animation: pixel-pulse 2s ease-in-out infinite;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--black);
}

.feature-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--yellow);
}

.feature-description {
  color: var(--gray);
  line-height: 1.9;
  font-size: 17px;
}

/* CTA Section */
.cta {
  padding: 100px 20px;
  background: var(--black);
  position: relative;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--yellow);
}

.cta-description {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* Footer */
.footer {
  padding: 50px 20px 30px;
  background: var(--black-light);
  border-top: 3px solid var(--yellow);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  padding: 5px 10px;
  border: 2px solid transparent;
}

.footer-link:hover {
  border-color: var(--yellow);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 204, 0, 0.2);
  color: var(--gray);
}

/* Animations */
@keyframes pixel-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pixel-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes pixel-slide {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pixel-expand {
  from {
    width: 0;
  }
  to {
    width: 200px;
  }
}

@keyframes float-pixel {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(90deg);
  }
  50% {
    transform: translateY(-60px) translateX(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-30px) translateX(-20px) rotate(270deg);
  }
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(40px, 40px);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 36px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-link {
    padding: 8px 15px;
    font-size: 14px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 16px;
  }

  .btn-large {
    padding: 15px 40px;
    font-size: 18px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .cta-title {
    font-size: 32px;
  }

  .logo-text {
    font-size: 18px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 12px;
  }
}

