* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow-x: hidden;
}

.site-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.background-shapes {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  top: 0;
  left: 0;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float-shapes 20s infinite ease-in-out;
}

.shape:nth-child(1) {
  width: 300px;
  height: 300px;
  background: #fff;
  border-radius: 50%;
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 50%;
  bottom: -100px;
  right: -100px;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 150px;
  height: 150px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  right: 10%;
  animation-delay: 4s;
}

.error-code {
  font-size: 10rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

.error-title, .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.error-message, .page-message {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.icon-container {
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.link-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  position: relative;
}

.link-icon svg {
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.btn-home, .btn-custom {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  margin: 0.5rem;
}

.btn-home:hover, .btn-custom:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #fff;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float-shapes {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(50px, 50px) rotate(90deg); }
  50% { transform: translate(0, 100px) rotate(180deg); }
  75% { transform: translate(-50px, 50px) rotate(270deg); }
}

@media (max-width: 768px) {
  .error-code {
    font-size: 6rem;
  }

  .error-title, .page-title {
    font-size: 1.75rem;
  }

  .error-message, .page-message {
    font-size: 1rem;
  }

  .link-icon {
    width: 80px;
    height: 80px;
  }
}