/* Modern, Clean Design inspired by RollingDex */
:root {
  --navy: #1e3a8a;
  --gold: #eab308;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --border: rgba(0,0,0,0.1);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

  /* Icon colors from screenshot */
  --phone-bg: #dcfce7;
  --phone-color: #16a34a;
  --sms-bg: #e0f2fe;
  --sms-color: #0284c7;
  --email-bg: #ede9fe;
  --email-color: #7c3aed;
}

[data-theme="dark"] {
  --navy: #3b82f6;
  --gold: #facc15;
  --text-dark: #f8fafc;
  --text-light: #9ca3af;
  --bg-color: #020617;
  --card-bg: #0f172a;
  --border: rgba(255,255,255,0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  
  --phone-bg: #064e3b;
  --phone-color: #34d399;
  --sms-bg: #0c4a6e;
  --sms-color: #38bdf8;
  --email-bg: #4c1d95;
  --email-color: #a78bfa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  /* subtle top background styling to match the website header area */
  background-image: linear-gradient(180deg, var(--card-bg) 0%, var(--bg-color) 300px);
}

/* Optional header area mimicking the awards */
.brand-header {
  width: 100%;
  max-width: 800px;
  height: 100px;
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-header img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.card-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 70px 40px 40px 40px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: fadeUp 0.6s ease-out;
  margin-bottom: 30px;
}

/* Overlapping Avatar */
.profile-avatar {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--card-bg); /* fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 4px solid var(--card-bg);
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1.display-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111827;
}

/* Name and Title on same line */
.title-line {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.title-line .job-title {
  font-weight: 400;
  color: var(--text-light);
}

/* Location Pin */
.location {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.location svg {
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

/* Biography / Blurb */
.blurb {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Contact Action Buttons (Circular Icons) */
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s;
}

.action-btn svg {
  width: 20px;
  height: 20px;
}

.action-btn:hover {
  transform: scale(1.1);
}

.btn-phone {
  background-color: var(--phone-bg);
  color: var(--phone-color);
}

.btn-sms {
  background-color: var(--sms-bg);
  color: var(--sms-color);
}

.btn-email {
  background-color: var(--email-bg);
  color: var(--email-color);
}

/* Secondary Link Cards */
.link-cards {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.link-card {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 15px;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--navy);
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

.link-card-img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 15px;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.link-card-content {
  flex-grow: 1;
}

.link-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.link-card-subtitle {
  font-size: 12px;
  color: var(--text-light);
}

.link-card-arrow {
  color: #d1d5db;
  font-size: 18px;
}

/* Specific Office Color Tweaks if desired */
body.kbs .blurb { color: var(--gold); }
body.servicing .blurb { color: var(--navy); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255,255,255,0.1);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

.theme-toggle:active {
    transform: scale(0.95);
}
