/* JPMorgan Chase Inspired Color Scheme */
:root {
  --jpm-primary: #003366;           /* JPM Dark Blue */
  --jpm-primary-dark: #002244;      /* Darker variant */
  --jpm-accent: #0073CF;            /* JPM Bright Blue */
  --jpm-accent-hover: #005CA3;      /* Hover state */
  
  --bg-primary: #F8F9FA;            /* Light gray background */
  --bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #F0F2F5 100%);
  --card-bg: #FFFFFF;
  
  --text-primary: #000000;          /* Black for main text */
  --text-secondary: #333333;        /* Dark gray */
  --text-muted: #666666;            /* Medium gray */
  
  --border-color: #D4D4D4;          /* Light gray borders */
  --border-light: #E8E8E8;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 15px 35px rgba(0, 51, 102, 0.1);
  
  --success-color: #28A745;
}

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

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

/* Subtle geometric pattern overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, transparent 48%, rgba(0, 51, 102, 0.01) 49%, rgba(0, 51, 102, 0.01) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(0, 51, 102, 0.01) 49%, rgba(0, 51, 102, 0.01) 51%, transparent 52%);
  background-size: 20px 20px;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

/* Card with professional styling */
.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 48px 36px 40px;
  box-shadow: 
    0 0 0 1px rgba(0, 51, 102, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.03),
    0 12px 24px rgba(0, 0, 0, 0.05),
    0 24px 48px rgba(0, 51, 102, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: cardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Professional accent line at top */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jpm-primary), var(--jpm-accent));
  opacity: 0;
  animation: slideIn 0.8s ease-out 0.3s forwards;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Avatar with JPM colors */
.avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, var(--jpm-primary), var(--jpm-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 
    0 2px 4px rgba(0, 51, 102, 0.15),
    0 8px 16px rgba(0, 51, 102, 0.15);
  animation: fadeInScale 0.5s ease-out 0.2s both;
  border: 3px solid var(--card-bg);
}

/* Professional ring around avatar */
.avatar::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  opacity: 0.5;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.initials {
  font-size: 32px;
  font-weight: 600;
  color: white;
  letter-spacing: 1.5px;
}

/* Typography */
.name {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

.title {
  font-size: 20px;
  font-weight: 500;
  color: var(--jpm-primary);
  margin-bottom: 12px;
  animation: fadeInUp 0.5s ease-out 0.35s both;
  letter-spacing: 0.2px;
}

.details {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
  animation: fadeInUp 0.5s ease-out 0.4s both;
}

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

/* Location with refined styling */
.location {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
  animation: fadeInUp 0.5s ease-out 0.45s both;
}

.location svg {
  opacity: 0.6;
  color: var(--jpm-accent);
}

/* Contact Section with JPM styling */
.contact-section {
  background: linear-gradient(135deg, #FAFBFC 0%, #F7F8FA 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid var(--border-light);
  animation: fadeInUp 0.5s ease-out 0.5s both;
  position: relative;
}

/* Professional accent on contact section */
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jpm-accent), transparent);
  opacity: 0.3;
}

.contact-grid {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle hover effect for contact items */
.contact-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--jpm-accent);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.contact-item:hover::before {
  transform: scaleY(1);
}

.contact-item:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--jpm-accent);
}

.contact-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.contact-label svg {
  color: var(--jpm-primary);
}

.contact-value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-value a:hover {
  color: var(--jpm-accent);
}

/* Phone item with Call/Text buttons */
.phone-item {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.phone-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.phone-icon {
  color: var(--jpm-primary);
  flex-shrink: 0;
}

.phone-number {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.phone-actions {
  display: flex;
  gap: 8px;
}

/* Call and Text button styling */
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 8px;
  background: #F8F9FA;
  border: 1.5px solid #D4D4D4;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.phone-link:hover {
  background: white;
  color: var(--jpm-primary);
  border-color: var(--jpm-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 51, 102, 0.15);
}

.phone-link svg {
  flex-shrink: 0;
  stroke: var(--text-muted);
  transition: stroke 0.2s ease;
}

.phone-link:hover svg {
  stroke: var(--jpm-primary);
}

/* Action Buttons with JPM styling */
.actions {
  display: grid;
  gap: 12px;
  animation: fadeInUp 0.5s ease-out 0.55s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  width: 100%;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

/* Primary button - JPM blue */
.btn-primary {
  background: var(--jpm-primary);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 51, 102, 0.2);
}

.btn-primary:hover {
  background: var(--jpm-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

/* Secondary button - outlined */
.btn-secondary {
  background: white;
  color: var(--jpm-primary);
  border: 2px solid var(--jpm-primary);
}

.btn-secondary:hover {
  background: var(--jpm-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

/* Tertiary button - subtle */
.btn-tertiary {
  background: #F5F7FA;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-tertiary:hover {
  background: white;
  border-color: var(--jpm-accent);
  color: var(--jpm-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Focus state */
.btn:focus-visible {
  outline: 2px solid var(--jpm-accent);
  outline-offset: 2px;
}

/* Button ripple effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn svg {
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .card::after {
    height: 2px;
  }

  .avatar {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
  }

  .initials {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .name {
    font-size: 26px;
  }

  .title {
    font-size: 18px;
  }

  .details {
    font-size: 14px;
  }

  .location {
    margin-bottom: 24px;
  }

  .contact-section {
    padding: 16px;
    margin-bottom: 24px;
  }

  .contact-item {
    padding: 12px 14px;
  }

  .phone-item {
    flex-direction: column;
    gap: 10px;
  }

  .phone-info {
    width: 100%;
    justify-content: center;
  }

  .phone-actions {
    width: 100%;
    justify-content: center;
  }

  .phone-link {
    flex: 1;
    justify-content: center;
  }

  .contact-item:not(.phone-item) {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact-item::before {
    display: none;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
  }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  body {
    padding: 12px;
  }

  .card {
    padding: 24px 32px;
  }

  .avatar {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
  }

  .initials {
    font-size: 24px;
  }

  .name {
    font-size: 24px;
  }

  .contact-section {
    margin-bottom: 20px;
    padding: 14px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .card::after {
    display: none;
  }

  .btn {
    border: 1px solid var(--jpm-primary);
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .card {
    opacity: 1;
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--text-primary);
  }

  .btn {
    border: 2px solid currentColor;
  }

  .contact-item {
    border: 2px solid var(--text-secondary);
  }
}