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

:root {
  --primary-color: #00ff00;
  --text-color: #eee;
  --background-color: #000;
  --border-color: #fafafa;
}

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

body {
  display: flex;
  background: var(--background-color);
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-family: "Poppins", Arial, sans-serif;
}

.container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 90%;
  height: 100%; /* Ensure it takes full height for vertical centering */
}

.container h2 {
  color: transparent;
  font-size: clamp(2em, 5vw + 1rem, 8em); /* Responsive font size */
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.container h2:nth-child(1) {
  -webkit-text-stroke: 2px var(--border-color);
}

.container h2:nth-child(2) {
  color: var(--primary-color);
  animation: animate 4s ease-in-out infinite;
  will-change: clip-path;
}

@keyframes animate {
  0%, 100% {
    clip-path: polygon(
      0% 45%,
      16% 44%,
      33% 50%,
      54% 60%,
      70% 61%,
      84% 59%,
      100% 52%,
      100% 100%,
      0% 100%
    );
  }

  50% {
    clip-path: polygon(
      0% 60%,
      15% 65%,
      34% 66%,
      51% 62%,
      67% 50%,
      84% 45%,
      100% 46%,
      100% 100%,
      0% 100%
    );
  }
}

.contact,
.contact a {
  color: var(--primary-color);
  transition: color 0.3s;
}

.contact {
  text-align: center;
  padding: 0.5rem 1rem; /* Adjusted padding */
  font-size: clamp(0.875rem, 2vw + 0.5rem, 1rem); /* Responsive font size */
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  width: auto;
  max-width: 100%;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--background-color);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.contact a {
  text-decoration: none;
  font-weight: bold;
}

.contact a:hover,
.contact a:focus {
  text-decoration: underline;
}

.tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--background-color);
  color: #fff;
  padding: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  white-space: nowrap;
  font-size: clamp(0.75rem, 1.5vw + 0.25rem, 0.875rem); /* Responsive font size */
  z-index: 10;
  margin-bottom: 0.5rem;
}

.contact:hover .tooltip {
  display: block;
}

@media (max-width: 768px) {
  .container h2 {
    font-size: 5em; /* Adjusted for tablets and smaller screens */
  }
}

@media (max-width: 480px) {
  .container h2 {
    font-size: 3em; /* Further adjusted for smaller mobile devices */
  }
}
