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

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

.floating-text {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-word {
  position: absolute;
  color: rgba(41, 128, 185, 0.25);
  font-weight: bold;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  animation: floating linear infinite;
  text-shadow: 0 0 1px rgba(41, 128, 185, 0.1);
}

@keyframes floating {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-20vh) rotate(5deg);
    opacity: 0;
  }
}

.container {
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 1;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.08);
}

.avatar-container {
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.avatar-container::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: linear-gradient(45deg, #3498db, #1abc9c, #9b59b6, #f1c40f);
  z-index: -1;
  opacity: 0.7;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.avatar:hover {
  transform: scale(1.1) rotate(5deg);
}

h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #2c3e50;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #3498db, transparent);
  bottom: -10px;
  left: 25%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  padding: 16px;
  border-radius: 12px;
  background-color: rgba(248, 249, 250, 0.8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
  background-color: rgba(233, 236, 239, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-label {
  font-weight: 600;
  color: #495057;
  margin-right: 8px;
}

.contact-info a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 2px 4px;
}

.contact-info a:hover {
  color: #2980b9;
}

.contact-info a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #3498db;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.contact-info a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(52, 152, 219, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-message {
  font-weight: 500;
}


.back-button-container {
  margin-top: 30px;
  text-align: center;
  position: relative;
}

.back-button {
  display: inline-block;
  background: linear-gradient(135deg, #4CAF50, #2196F3);
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 15px rgba(33, 150, 243, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.5px;
}

.back-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2196F3, #4CAF50);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  border-radius: 30px;
}

.back-button:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(33, 150, 243, 0.4);
  color: white;
}

.back-button:hover:before {
  opacity: 1;
}

.back-button:active {
  transform: translateY(2px);
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
  }
}