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

body {
  font-family: "Courier New", "Courier", monospace;
  animation: colorShift 60s ease infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

@keyframes colorShift {
  0% {
    background-color: #d4ffff;
  }
  25% {
    background-color: #ffd4f4;
  }
  50% {
    background-color: #d4ffd4;
  }
  75% {
    background-color: #ffffd4;
  }
  100% {
    background-color: #d4ffff;
  }
}

.business-card {
  background: white;
  padding: 60px 40px;
  border: 8px solid #000;
  border-radius: 0;
  box-shadow: 16px 16px 0 #000;
  text-align: center;
  max-width: 500px;
  width: 100%;
  position: relative;
  overflow: visible;
  animation: cardEntry 0.8s ease-out;
}

@keyframes cardEntry {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-container {
  margin-bottom: 30px;
}

.logo {
  width: 200px;
  height: auto;
  opacity: 0;
  animation: logoFadeIn 1s ease-out forwards;
  filter: grayscale(100%);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.company-name {
  font-size: 32px;
  font-weight: 400;
  color: #333;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.3s ease-out forwards;
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tagline {
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.5s ease-out forwards;
}

.tagline p {
  color: #000;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 400;
}

.location {
  font-size: 12px;
  color: #000;
}

.services {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.7s ease-out forwards;
  position: relative;
}

.separator-column {
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.service-item[data-service="graphic-design"] {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}
.service-item[data-service="web-apps"] {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}
.service-item[data-service="front-end"] {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
}
.service-item[data-service="back-end"] {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
}

.service-item {
  position: relative;
  display: inline-block;
}

.service {
  color: #000;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding: 8px 16px;
  background: #f0f0f0;
  border: 2px solid #000;
  cursor: pointer;
  display: inline-block;
  transition: all 0.1s ease;
  min-width: 120px;
}

/* Custom cursor for backend only */
.service-item[data-service="back-end"] .service:hover {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><text y="28" font-size="28">🍑</text></svg>')
      16 16,
    pointer;
}

.service:hover {
  background: #000;
  color: #fff;
}

.service-details {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: #fff;
  border: 4px solid #000;
  padding: 16px;
  width: max-content;
  min-width: 200px;
  max-width: 300px;
  z-index: 1000;
  display: none;
  box-shadow: 8px 8px 0 #000;
}

.service-item:hover .service-details,
.service-item:active .service-details {
  display: block;
}

.service-details p {
  margin: 0;
  padding: 4px 0;
  font-size: 11px;
  color: #000;
  white-space: nowrap;
}

.separator {
  color: #000;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.contact-link {
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  padding: 16px 32px;
  border: 4px solid #000;
  border-radius: 0;
  opacity: 0;
  animation: fadeInUp 0.8s 0.9s ease-out forwards;
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 8px 8px 0 #000;
  transition: all 0.1s ease;
}

.contact-link:active {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 #000;
}

@media (max-width: 600px) {
  .business-card {
    padding: 40px 30px;
  }

  .company-name {
    font-size: 24px;
  }

  .contact-link {
    font-size: 14px;
    padding: 10px 20px;
  }

  .services {
    gap: 10px;
    grid-template-columns: 1fr 20px 1fr;
  }

  .service {
    font-size: 10px;
    padding: 6px 8px;
  }

  .service-details {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: calc(100vw - 60px) !important;
    max-width: 350px !important;
    padding: 24px !important;
    text-align: left !important;
    height: auto !important;
    min-height: auto !important;
    box-shadow: 8px 8px 0 #000 !important;
    border: 4px solid #000 !important;
    background: #fff !important;
    z-index: 10000 !important;
  }

  .service-details p {
    white-space: normal !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    display: block !important;
    position: static !important;
    width: 100% !important;
  }
}

#tooltip-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
}
