/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #4a4a4a;
  overflow-x: hidden;
}

/* Background with gradient and floating shapes */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d0e6f9 0%, #b2e0a1 35%, #f6d8a8 70%, #e8f4fd 100%);
  z-index: -1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: #b2e0a1;
  top: 10%;
  left: 10%;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: #f6d8a8;
  top: 60%;
  right: 15%;
  animation-delay: -2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: #d0e6f9;
  bottom: 20%;
  left: 20%;
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Added QR code container and modal styles */
.qr-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.qr-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(178, 224, 161, 0.5);
  color: #4a4a4a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qr-icon:hover {
  background: rgba(178, 224, 161, 0.1);
  transform: scale(1.05);
}

.qr-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.qr-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.qr-modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  margin: 15% auto;
  padding: 2rem;
  border: 1px solid rgba(178, 224, 161, 0.5);
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.qr-close {
  color: #6b7280;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 1rem;
  top: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.qr-close:hover {
  color: #4a4a4a;
}

.qr-modal-content h3 {
  margin-bottom: 1rem;
  color: #4a4a4a;
  font-size: 1.25rem;
}

#qrCodeContainer {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.qr-modal-content p {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Container and card styles */
.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.business-card {
  width: 100%;
  max-width: 384px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(178, 224, 161, 0.5);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2rem;
  text-align: center;
}

/* Company header */
.company-header {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* Profile section */
.profile-section {
  margin-bottom: 1.5rem;
}

.profile-picture {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  position: relative;
}

.profile-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #b2e0a1, #f6d8a8);
  border: 4px solid rgba(246, 216, 168, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #4a4a4a;
}

/* Added styling for actual profile image */
.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(246, 216, 168, 0.5);
}

.name-title {
  margin-bottom: 1rem;
}

.name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4a4a4a;
  margin-bottom: 0.25rem;
  text-wrap: balance;
}

.title {
  font-size: 1.125rem;
  color: #6b7280;
  font-weight: 500;
}

/* Contact information */
.contact-info {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Action icons */
.action-icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.phone-icon {
  background: rgba(178, 224, 161, 0.1);
  color: #b2e0a1;
}

.phone-icon:hover {
  background: rgba(178, 224, 161, 0.2);
}

.location-icon {
  background: rgba(246, 216, 168, 0.1);
  color: #4a4a4a;
}

.location-icon:hover {
  background: rgba(246, 216, 168, 0.2);
}

.whatsapp-icon {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.whatsapp-icon:hover {
  background: rgba(34, 197, 94, 0.2);
}

.email-icon {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.email-icon:hover {
  background: rgba(107, 114, 128, 0.2);
}

.website-icon {
  background: rgba(246, 216, 168, 0.1);
  color: #4a4a4a;
}

.website-icon:hover {
  background: rgba(246, 216, 168, 0.2);
}

/* Company details */
.company-details {
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}

.company-name {
  font-weight: bold;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
}

.address {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}

.btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

.btn-primary {
  background: #b2e0a1;
  color: #4a4a4a;
}

.btn-primary:hover {
  background: rgba(178, 224, 161, 0.9);
}

.btn-outline {
  background: transparent;
  color: #4a4a4a;
  border: 1px solid rgba(178, 224, 161, 0.5);
}

.btn-outline:hover {
  background: rgba(178, 224, 161, 0.1);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Social media */
.social-media {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(178, 224, 161, 0.5);
}

.social-icon {
  color: #6b7280;
  transition: color 0.2s ease;
  text-decoration: none;
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.social-icon.facebook:hover {
  color: #1877f2;
}

.social-icon.youtube:hover {
  color: #ff0000;
}

.social-icon.twitter:hover {
  color: #1da1f2;
}

.social-icon.instagram:hover {
  color: #e4405f;
}

.social-icon.linkedin:hover {
  color: #0077b5;
}

/* Responsive design */
@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }

  .business-card {
    padding: 1.5rem;
  }

  .action-icons {
    gap: 0.5rem;
  }

  .action-icon {
    width: 44px;
    height: 44px;
  }

  .social-media {
    gap: 0.75rem;
  }

  /* Added responsive styles for QR modal */
  .qr-modal-content {
    margin: 20% auto;
    padding: 1.5rem;
    width: 95%;
  }

  .qr-container {
    top: 0.5rem;
    right: 0.5rem;
  }

  .qr-icon {
    width: 44px;
    height: 44px;
  }
}
