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

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

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #6c42f6, #d8436b);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fc, #eaeef3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  color: #00ff7f;
  font-family: monospace;
}

.code-typing {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #00ff7f;
  width: 0;
  animation: typing 1s steps(40, end) forwards, blink 0.5s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 27ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.background-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background-animation div {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  animation: move 10s infinite ease-in-out;
  border-radius: 50%;
  opacity: 0.7;
}

.background-animation div i {
  font-size: 2rem;
  color: #00ff7f;
}

@keyframes move {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-100px) rotate(180deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

.background-animation div:nth-child(odd) {
  animation-duration: 8s;
  animation-delay: 1s;
}

.background-animation div:nth-child(even) {
  animation-duration: 12s;
  animation-delay: 2s;
}

.background-animation div:nth-child(3),
.background-animation div:nth-child(2) {
  width: 80px;
  height: 80px;
}

.container {
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1.2s ease-in-out;
  max-width: 450px;
  width: 90%;
}

.profile-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  margin: 0 auto 2rem auto; /* Centers horizontally and adds bottom margin */
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-container:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: #40F3F7;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-container:hover .profile-pic {
  transform: scale(1.05);
}


h2 {
  font-size: 2rem;
  margin: 0;
  color: #ffd700;
}

p {
  margin: 0.5rem 0 1.5rem;
  color: #ddd;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  flex: 1 1 calc(50% - 1rem);
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #fff;
  border-radius: 15px;
  color: #6c42f6;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.4s, background 0.4s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.btn i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.btn:hover {
  transform: scale(1.1) rotate(-5deg);
  background: #6c42f6;
  color: #fff;
}

footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #bbb;
}

footer i {
  color: red;
}

.fake-cursor {
  position: absolute;
  font-size: 1.5rem;
  color: #fff;
  z-index: 9999;
  transition: transform 0.4s ease;
}

.click-animation {
  animation: clickEffect 0.3s ease-in-out;
}

@keyframes clickEffect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
