/* ============================================
   VCARD - Digital Contact Card
   Futuristic Tech & AI Edition
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Futuristic Tech Palette */
  --bg-dark: #080d1a;
  --card-bg: rgba(15, 23, 42, 0.78);
  --card-bg-solid: #0f172a;
  --surface-item: rgba(30, 41, 59, 0.6);
  --surface-item-hover: rgba(51, 65, 85, 0.8);

  /* Neon Accents */
  --neon-cyan: #00f2fe;
  --neon-blue: #38bdf8;
  --neon-purple: #818cf8;
  --neon-violet: #a855f7;
  --neon-pink: #ec4899;

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #00f2fe 0%, #4facfe 40%, #00c6ff 100%);
  --gradient-glow: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-btn: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(129, 140, 248, 0.15) 100%);
  --gradient-btn-hover: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #818cf8 100%);
  --gradient-title: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-accent: #38bdf8;

  /* Borders & Glows */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(56, 189, 248, 0.25);
  --border-neon-hover: rgba(56, 189, 248, 0.6);
  --glow-cyan: 0 0 20px rgba(0, 242, 254, 0.35);
  --glow-blue: 0 0 20px rgba(56, 189, 248, 0.35);
  --glow-purple: 0 0 25px rgba(129, 140, 248, 0.3);
  --glow-card: 0 25px 60px -15px rgba(0, 242, 254, 0.18), 0 0 40px -10px rgba(129, 140, 248, 0.15);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);

  /* Dimensions */
  --card-padding: 28px;
  --banner-height: 210px;
  --avatar-size: 132px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Animated ambient particle grid in background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* --- Futuristic Card Container --- */
.vcard {
  width: 100%;
  max-width: 460px;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-neon);
  box-shadow: var(--glow-card);
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: cardEntrance 0.9s var(--ease-out) both;
}

/* Futuristic glowing animated top rim line */
.vcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-glow);
  z-index: 20;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Banner --- */
.vcard__banner {
  position: relative;
  height: var(--banner-height);
  overflow: hidden;
}

.vcard__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) contrast(1.1);
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

.vcard:hover .vcard__banner-img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.15);
}

.vcard__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 13, 26, 0.1) 0%,
    rgba(8, 13, 26, 0.6) 60%,
    var(--card-bg-solid) 100%
  );
  pointer-events: none;
}

/* --- Avatar with Futuristic Hologram Glow Ring --- */
.vcard__avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: calc(var(--avatar-size) / -2);
  z-index: 10;
  animation: avatarPop 0.7s var(--ease-spring) 0.2s both;
}

@keyframes avatarPop {
  from {
    opacity: 0;
    transform: scale(0.4) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.vcard__avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  border: 4px solid #0f172a;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.5), 0 0 30px rgba(0, 242, 254, 0.4);
  object-fit: cover;
  display: block;
  transition: var(--transition-base);
  background: #0f172a;
}

.vcard__avatar-wrapper:hover .vcard__avatar {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.8), 0 0 40px rgba(0, 242, 254, 0.6);
}

/* Glowing Online Status Indicator */
.vcard__status {
  position: absolute;
  bottom: 8px;
  right: calc(50% - var(--avatar-size) / 2 + 10px);
  width: 20px;
  height: 20px;
  background: #10b981;
  border: 3px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  z-index: 11;
}

.vcard__status::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* --- Action Bar --- */
.vcard__actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 var(--card-padding);
  margin-top: 20px;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.3s both;
}

.vcard__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--gradient-btn);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.vcard__action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.vcard__action-btn i,
.vcard__action-btn span {
  position: relative;
  z-index: 1;
}

.vcard__action-btn i {
  font-size: 1.05rem;
  color: var(--neon-cyan);
  transition: color var(--transition-fast);
}

.vcard__action-btn:hover {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.vcard__action-btn:hover::before {
  opacity: 1;
}

.vcard__action-btn:hover i,
.vcard__action-btn:hover span {
  color: #0f172a;
}

.vcard__action-btn:active {
  transform: translateY(0) scale(0.98);
}

/* --- Profile Info --- */
.vcard__info {
  padding: 24px var(--card-padding) 8px;
  text-align: center;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.4s both;
}

.vcard__name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 6px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

.vcard__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.vcard__company {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-purple);
  background: rgba(129, 140, 248, 0.12);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(129, 140, 248, 0.25);
  margin-bottom: 14px;
}

.vcard__company::before {
  content: '⚡';
  font-size: 0.8rem;
}

.vcard__bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto;
  font-weight: 400;
}

/* --- Quick Actions (Futuristic Floating Orbs) --- */
.vcard__quick-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px var(--card-padding);
  flex-wrap: wrap;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.5s both;
}

.vcard__quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  outline: none;
}

.vcard__quick-action-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-neon);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition-base);
  position: relative;
}

.vcard__quick-action:hover .vcard__quick-action-icon {
  transform: translateY(-5px) scale(1.1);
  background: var(--gradient-glow);
  color: #0f172a;
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

.vcard__quick-action-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.vcard__quick-action:hover .vcard__quick-action-label {
  color: var(--neon-cyan);
}

/* WhatsApp Specific Glow */
.vcard__quick-action--whatsapp:hover .vcard__quick-action-icon {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.5);
}

/* --- Futuristic Neon Divider --- */
.vcard__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.3) 50%, transparent 100%);
  margin: 0 var(--card-padding);
}

/* --- Contact Details (Glass Cards) --- */
.vcard__details {
  padding: 20px var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.6s both;
}

.vcard__detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-item);
  border: 1px solid var(--border-glass);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.vcard__detail:hover {
  background: var(--surface-item-hover);
  border-color: var(--border-neon-hover);
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(56, 189, 248, 0.15);
}

.vcard__detail-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  transition: var(--transition-base);
}

.vcard__detail:hover .vcard__detail-icon {
  background: var(--gradient-glow);
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.vcard__detail-content {
  flex: 1;
  min-width: 0;
}

.vcard__detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.vcard__detail-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcard__detail-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.4;
  transition: var(--transition-fast);
}

.vcard__detail:hover .vcard__detail-arrow {
  opacity: 1;
  color: var(--neon-cyan);
  transform: translateX(3px);
}

/* --- Video Section --- */
.vcard__video-section {
  padding: 20px var(--card-padding);
  animation: fadeSlideUp 0.6s var(--ease-out) 0.65s both;
}

.vcard__section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vcard__section-title i {
  color: var(--neon-cyan);
}

.vcard__video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-neon);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.2);
  background: #000;
  transition: var(--transition-base);
}

.vcard__video-container:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), var(--glow-cyan);
}

.vcard__video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Social Links --- */
.vcard__socials {
  padding: 12px var(--card-padding) 20px;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.7s both;
}

.vcard__socials-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-left: 4px;
}

.vcard__socials-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vcard__social-link {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  background: var(--surface-item);
  border: 1px solid var(--border-glass);
  text-decoration: none;
  transition: var(--transition-base);
}

.vcard__social-link:hover {
  transform: translateY(-4px);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.vcard__social-link--linkedin:hover { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 0 20px rgba(10, 102, 194, 0.5); }
.vcard__social-link--instagram:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366); border-color: transparent; box-shadow: 0 0 20px rgba(220, 39, 67, 0.5); }
.vcard__social-link--facebook:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 0 20px rgba(24, 119, 242, 0.5); }
.vcard__social-link--twitter:hover { background: #38bdf8; color: #0f172a; border-color: #38bdf8; box-shadow: 0 0 20px rgba(56, 189, 248, 0.5); }

/* --- QR Code Section (Cyber Hologram Style) --- */
.vcard__qr-section {
  padding: 24px var(--card-padding) 28px;
  text-align: center;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.8s both;
}

.vcard__qr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  border-radius: var(--radius-xl);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-neon);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-base);
}

.vcard__qr-card:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.vcard__qr-code {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  padding: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.vcard__qr-code canvas,
.vcard__qr-code img {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.vcard__qr-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.vcard__qr-text i {
  margin-right: 6px;
  color: var(--neon-cyan);
}

/* --- Footer --- */
.vcard__footer {
  padding: 18px var(--card-padding);
  text-align: center;
  border-top: 1px solid var(--border-glass);
  background: rgba(8, 13, 26, 0.4);
}

.vcard__footer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.vcard__footer-text a {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.vcard__footer-text a:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* --- Toast Notification --- */
.vcard-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 28px;
  background: #0f172a;
  border: 1px solid var(--neon-cyan);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.3);
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s var(--ease-spring);
  pointer-events: none;
  white-space: nowrap;
}

.vcard-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vcard-toast i {
  margin-right: 8px;
  color: var(--neon-cyan);
}

/* --- Share Modal --- */
.vcard-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  padding: 24px;
}

.vcard-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.vcard-modal {
  width: 100%;
  max-width: 400px;
  background: #0f172a;
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-2xl);
  padding: 28px;
  box-shadow: var(--glow-card);
  transform: translateY(40px);
  transition: transform 0.4s var(--ease-spring);
}

.vcard-modal-overlay.show .vcard-modal {
  transform: translateY(0);
}

.vcard-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.vcard-modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.vcard-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--surface-item);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.vcard-modal__close:hover {
  background: var(--surface-item-hover);
  color: white;
}

.vcard-modal__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vcard-modal__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--surface-item);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-fast);
  width: 100%;
  text-align: left;
}

.vcard-modal__option:hover {
  background: var(--surface-item-hover);
  border-color: var(--border-neon-hover);
  transform: translateX(4px);
}

.vcard-modal__option i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: var(--neon-cyan);
}

.vcard-modal__option--whatsapp i { color: #25d366; }

/* Shared Animations */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 520px) {
  body {
    padding: 0;
    align-items: flex-start;
  }

  .vcard {
    max-width: 100%;
    border-radius: 0;
    border: none;
    min-height: 100vh;
  }

  :root {
    --card-padding: 22px;
    --banner-height: 190px;
    --avatar-size: 118px;
  }
}
