:root {
  --bg-color: #030014;
  --surface: rgba(18, 16, 28, 0.5);
  --surface-border: rgba(255, 255, 255, 0.06);
  --primary: #7C3AED;      /* Violet */
  --secondary: #3B82F6;    /* Blue */
  --accent: #EC4899;       /* Pink */
  --text-main: #FFFFFF;
  --text-muted: #9CA3AF;
}

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

body, html {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 4.5rem; /* Space for the fixed nav */
  padding-bottom: 2rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Particle Background Canvas */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  background: var(--bg-color);
  pointer-events: none;
}

/* Card Container */
.card-container {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  z-index: 10;
  perspective: 1200px;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 
              inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

/* Subtle internal glow matching the brand */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: radial-gradient(circle at 50% -20%, rgba(124, 58, 237, 0.15), transparent 70%);
  pointer-events: none;
}

/* Profile Section */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

.avatar-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated Gradient Border for Avatar */
.avatar-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px; 
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: bg-pan 4s linear infinite;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes bg-pan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-info h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to bottom, #FFFFFF, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-info p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}
.profile-info strong {
  color: #E2E8F0;
  font-weight: 600;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-border), transparent);
  width: 100%;
}

/* Buttons and Actions */
.actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 2;
}

.btn {
  text-decoration: none;
  font-family: inherit;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Base Halo effect */
.btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.btn:hover::before { width: 300px; height: 300px; }
.btn:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn:active { transform: translateY(0); }

.btn > * { position: relative; z-index: 1; pointer-events: none; }

.btn-text {
  flex-grow: 1;
  text-align: center;
  margin-right: 2.75rem; /* balances the icon width to achieve perfect centering */
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08); /* slightly stronger shape to match user's mockup */
}

.icon { font-size: 1.4rem; transition: color 0.3s ease; }
.icon-right { margin-left: auto; color: var(--text-muted); font-size: 1.25rem; transition: color 0.3s, transform 0.3s; }

/* Primary specific styling */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5B21B6);
  border: 1px solid rgba(124, 58, 237, 0.5);
  box-shadow: 0 8px 24px -6px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  box-shadow: 0 12px 32px -6px rgba(124, 58, 237, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  border-color: rgba(167, 139, 250, 0.6);
}

.btn-primary::before { background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 60%); }
.btn-primary .btn-icon { background: rgba(0, 0, 0, 0.15); }
.btn-primary .icon-right { color: #fff; }
.btn-primary:hover .icon-right { transform: translateY(2px); }

/* Agent Button specific */
.btn-agent:hover .icon-right { transform: translateX(3px); color: var(--text-main); }
.btn-agent:hover .icon { color: var(--text-main); }

/* Animated Glowing Border Wrapper */
.glowing-wrapper {
  position: relative;
  border-radius: 19px; 
  padding: 2px; /* Thickness of the moving light */
  overflow: hidden;
  display: flex;
}

.glowing-wrapper::before {
  content: '';
  position: absolute;
  top: -100%; left: -100%; right: -100%; bottom: -100%;
  background: conic-gradient(from 0deg, transparent 60%, var(--primary) 85%, var(--accent) 100%);
  animation: spinHaloEdge 3.5s linear infinite;
  z-index: 0;
}

.glowing-wrapper .btn-agent {
  position: relative;
  background: #0f0d18 !important; /* solid very dark bg to mask the inner gradient */
  border: none !important;
  border-radius: 17px;
  z-index: 1;
  width: 100%;
}

/* Animated Glowing Border Wrapper - Green WhatsApp */
.glowing-wrapper-green {
  grid-column: 1 / -1; /* spans full width of the grid */
  position: relative;
  border-radius: 19px; 
  padding: 2px;
  overflow: hidden;
  display: flex;
}

.glowing-wrapper-green::before {
  content: '';
  position: absolute;
  top: -200%; left: -200%; right: -200%; bottom: -200%;
  background: conic-gradient(from 0deg, transparent 60%, rgba(37, 211, 102, 1) 85%, rgba(66, 255, 138, 1) 100%);
  animation: spinHaloEdge 3.5s linear infinite;
  z-index: 0;
}

.glowing-wrapper-green .btn-wp-full {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #0f0d18 !important;
  border: none !important;
  border-radius: 17px;
  z-index: 1;
  width: 100%;
  padding: 1.25rem 1rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.3s ease;
}

.glowing-wrapper-green .btn-wp-full:hover {
  background: rgba(22, 20, 32, 0.95) !important;
}

.glowing-wrapper-green .btn-wp-full .icon {
  font-size: 1.75rem;
  color: #25D366;
}

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

.btn-secondary {
  background: #111016; /* very dark gray mapping */
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}
.btn-secondary:hover {
  background: #1a1820;
  border-color: rgba(255,255,255,0.12);
}
.btn-secondary .btn-icon {
  background: rgba(255, 255, 255, 0.05);
}

/* Collapsible Section styles */
.expandable-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.btn-toggle {
  width: 100%;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  border-radius: 16px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

#toggleIcon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#toggleIcon.rotate {
  transform: rotate(-180deg);
}

/* Social Grid Links - inside accordion */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  z-index: 2;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.social-grid.open {
  max-height: 400px;
  opacity: 1;
}

.btn-sm {
  padding: 1rem;
  border-radius: 16px;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}

.btn-sm::before { background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); }
.btn-sm .icon { font-size: 1.75rem; color: var(--text-muted); }
.btn-sm span { font-size: 0.85rem; font-weight: 500; }

/* Brand Colors on Hover */
.btn-fb:hover { border-color: rgba(24, 119, 242, 0.5); box-shadow: 0 0 20px rgba(24, 119, 242, 0.15); }
.btn-fb:hover .icon { color: #1877F2; }

.btn-ig:hover { border-color: rgba(228, 64, 95, 0.5); box-shadow: 0 0 20px rgba(228, 64, 95, 0.15); }
.btn-ig:hover .icon { color: #E4405F; }

.btn-wp:hover { border-color: rgba(37, 211, 102, 0.5); box-shadow: 0 0 20px rgba(37, 211, 102, 0.15); }
.btn-wp:hover .icon { color: #25D366; }

.btn-gbp:hover { border-color: rgba(66, 133, 244, 0.5); box-shadow: 0 0 20px rgba(66, 133, 244, 0.15); }
.btn-gbp:hover .icon { color: #4285F4; }

.btn-web:hover { border-color: rgba(124, 58, 237, 0.5); box-shadow: 0 0 20px rgba(124, 58, 237, 0.15); }
.btn-web:hover .icon { color: var(--primary); }

.btn-cal:hover { border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 0 20px rgba(245, 158, 11, 0.15); }
.btn-cal:hover .icon { color: #F59E0B; }

.footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-note .copyright {
  font-size: 0.7rem;
  opacity: 0.5;
}

/* --- New UI Elements from Mockup --- */
/* Top Nav */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(18, 16, 28, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo-box {
  width: 2.2rem; height: 2.2rem;
  background: var(--surface);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.nav-logo-box img { width: 100%; height: 100%; object-fit: cover; }
.nav-title {
  font-weight: 800;
  letter-spacing: 0.15em;
  font-size: 1.05rem;
  color: var(--text-main);
}
.nav-share {
  background: transparent;
  color: var(--primary);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nav-share:hover { opacity: 0.8; }

/* Status Indicator */
.status-indicator {
  position: absolute;
  bottom: 0px; right: 8px;
  width: 20px; height: 20px;
  background-color: #22c55e;
  border: 3px solid var(--bg-color);
  border-radius: 50%;
  z-index: 5;
}

/* Quote Card */
.quote-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}
