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

:root {
  --primary-color: #00ff00;
  --secondary-color: #ffffff;
  --accent-color: #ff0080;
  --text-color: #ffffff;
  --card-bg: rgba(0, 0, 0, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 30px rgba(0, 255, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #001100 0%, #000000 100%);
  perspective: 1000px;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
    padding: 1rem 0;
  }
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 25px;
  max-width: 420px;
  margin: 2rem auto;
  text-align: center;
  border: 2px solid var(--glass-border);
  color: var(--text-color);
  box-shadow: var(--shadow-glow), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  transform: rotateX(5deg);
  transition: var(--transition);
  animation: cardEntrance 1s ease-out;
  overflow: hidden;
}

@media (max-width: 768px) {
  .card {
    position: static;
    transform: none;
    margin: 1rem;
    min-height: auto;
  }
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 0, 0.05), transparent);
  transform: rotate(-45deg);
  animation: shimmer 3s linear infinite;
  pointer-events: none;
}

.card:hover {
  transform: rotateX(0deg) scale(1.02);
  box-shadow: var(--shadow-glow), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 30px 60px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .card:hover {
    transform: scale(1.01);
  }
}

.profile-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  object-fit: cover;
  box-shadow: 0 0 30px var(--primary-color), 
              inset 0 0 20px rgba(0, 255, 0, 0.1);
  transition: var(--transition);
  animation: profilePulse 2s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}

.profile-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: rotate 3s linear infinite;
  z-index: 1;
}

.profile-img:hover {
  transform: scale(1.1) rotateY(180deg);
  box-shadow: 0 0 50px var(--primary-color), 
              inset 0 0 30px rgba(0, 255, 0, 0.2);
}

.glitch {
  position: relative;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--primary-color);
  width: 0;
  animation: typing 3s steps(20) forwards, blink 0.75s step-end infinite;
  text-shadow: 0 0 10px var(--primary-color);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch::before {
  animation: glitch1 0.5s infinite;
  color: var(--secondary-color);
  z-index: -1;
}

.glitch::after {
  animation: glitch2 0.5s infinite;
  color: var(--accent-color);
  z-index: -2;
}

.card-header p {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.company-info {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.company-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.3rem;
}

.company-tagline {
  font-size: 0.85rem;
  color: #aaa;
  font-style: italic;
}

.info {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.7s forwards;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  margin: 1rem 0;
  padding: 0.8rem 1.2rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.contact-item:hover {
  background: rgba(0, 255, 0, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.contact-item i {
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.contact-item span {
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-item.location {
  cursor: default;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.9s forwards;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.divider-text {
  margin: 0 1rem;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.social.horizontal {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.1s forwards;
}

.social-item {
  color: var(--text-color);
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem 0.6rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  min-width: 80px;
}

.social-item i {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.social-item span {
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
}

.social-item.instagram:hover {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  border-color: #E1306C;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

.social-item.whatsapp:hover {
  background: linear-gradient(45deg, #25D366, #128C7E);
  border-color: #25D366;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.social-item.linkedin:hover {
  background: linear-gradient(45deg, #0077B5, #00A0DC);
  border-color: #0077B5;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.3s forwards;
}

.btn-primary,
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.btn-primary i,
.btn-secondary i {
  margin-right: 0.5rem;
}

.qr-section {
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.5s forwards;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: #666;
  transition: var(--transition);
}

.qr-placeholder:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.7;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader {
  text-align: center;
  color: var(--primary-color);
}

.loader-text {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(0, 255, 0, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  animation: loading 2s ease-in-out infinite;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: var(--primary-color);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 1000;
  border: 1px solid var(--primary-color);
}

[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

/* Keyframe Animations */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: rotateX(20deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotateX(5deg) scale(1);
  }
}

@media (max-width: 768px) {
  @keyframes cardEntrance {
    from {
      opacity: 0;
      transform: translateY(30px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(-45deg); }
  100% { transform: translateX(300%) rotate(-45deg); }
}

@keyframes profilePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes typing {
  to { width: 100%; }
}

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

@keyframes glitch1 {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.8; transform: translateX(2px); }
}

@keyframes glitch2 {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.8; transform: translateX(-2px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(20px) rotate(240deg); }
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 1rem 0;
  }
  
  .card {
    margin: 1rem;
    padding: 2rem 1.5rem;
    max-width: calc(100% - 2rem);
    min-height: auto;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  .glitch {
    font-size: 1.6rem;
  }

  .company-info {
    margin-bottom: 1.5rem;
  }

  .contact-item {
    margin: 0.8rem 0;
    padding: 0.7rem 1rem;
  }

  .social.horizontal {
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .social-item {
    min-width: 75px;
    padding: 0.7rem 0.5rem;
  }

  .social-item i {
    font-size: 1.6rem;
  }

  .action-buttons {
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 1rem 1.5rem;
  }

  .qr-section {
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .card {
    margin: 0.5rem;
    padding: 1.5rem 1rem;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .glitch {
    font-size: 1.4rem;
  }

  .social-item {
    min-width: 70px;
    padding: 0.6rem 0.4rem;
  }

  .social-item i {
    font-size: 1.4rem;
  }

  .contact-item {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}
