/* 
  ==========================================
  Natalia Moncada Digital Business Card - Styles
  ==========================================
*/
:root {
  --brand-color: #0070D7;
  --bg-color: #0f172a; /* Slightly darker than 122436 for depth */
  --corporate-navy: #122436;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --accent-glow: rgba(0, 112, 215, 0.4);
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  --shadow-lg: 0 15px 35px rgba(0,0,0,0.5);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding: 20px 10px;
}

/* Back background glow (Glassmorphism effect) */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

/* Card Root */
.card-root {
  width: 100%;
  max-width: 400px;
  background: var(--corporate-navy);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

/* Corporate Template Content */
.corporate-template {
  display: flex;
  flex-direction: column;
  padding-bottom: 30px;
}

.top-section {
  padding: 40px 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-img {
  max-width: 220px;
  height: auto;
  margin-bottom: 15px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.profile-container {
    position: relative;
    margin-bottom: 25px;
}

.profile-container::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--brand-color);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

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

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  background: #fff;
}

.name {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.title {
  font-family: 'Outfit', sans-serif;
  color: var(--brand-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.tagline {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  max-width: 90%;
}

/* Social Buttons Grid */
.buttons-grid-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 10px 24px 35px;
}

.btn-rounded-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-rounded-outline:hover {
  background: var(--brand-color);
  border-color: var(--brand-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 15px var(--accent-glow);
}

/* Action Buttons */
.action-buttons-single {
  padding: 0 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-save-contact {
  width: 100%;
  background: #ffffff;
  color: var(--corporate-navy);
  border: none;
  border-radius: 18px;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}

.btn-save-contact:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

.btn-share-contact {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 16px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-share-contact:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}

/* Scan to Connect */
.qr-cta-wrapper {
  padding: 0 30px;
}

.btn-scan-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  border-radius: var(--border-radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-scan-connect:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #fff;
  color: #333;
  padding: 14px 28px;
  border-radius: var(--border-radius-full);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

/* Mobile Adjustments */
@media (max-width: 480px) {
  .card-root {
    max-width: 100%;
    border-radius: 0;
    min-height: 100vh;
  }
  body {
    padding: 0;
  }
}
