:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #0d1117;
  --card-bg: #121923;
  --card-border: #2c3745;
  --text: #eef3f8;
  --muted: #b7c2cf;
  --button-bg: #124f96;
  --button-hover: #0f447f;
  --button-text: #ffffff;
  --icon-bg: #1a2431;
  --icon-border: #324154;
  --toggle-bg: #1b2532;
  --toggle-text: #eef3f8;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] {
  color-scheme: light;
  --page-bg: #ffffff;
  --card-bg: #ffffff;
  --card-border: #1d1d1d;
  --text: #101114;
  --muted: #3d3d42;
  --button-bg: #0f4d97;
  --button-hover: #0c417f;
  --button-text: #ffffff;
  --icon-bg: #ffffff;
  --icon-border: #d8dde5;
  --toggle-bg: #f3f6fa;
  --toggle-text: #152131;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  padding: 10px 14px;
  border: 1px solid var(--icon-border);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--toggle-text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 20px 36px;
}

.profile-card {
  width: min(100%, 540px);
  padding: 34px 28px 38px;
  border: 1.5px solid var(--card-border);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.image-wrap {
  width: 148px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-copy {
  margin-top: 22px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.45rem);
  line-height: 1.1;
  font-weight: 800;
}

.role,
.company {
  margin: 8px 0 0;
}

.role {
  font-size: 1.1rem;
  font-weight: 500;
}

.company {
  font-size: 1rem;
  color: var(--muted);
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.social-link {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--icon-border);
  background: var(--icon-bg);
  color: #1a1d24;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

:root[data-theme="dark"] .social-link {
  color: #eef3f8;
  box-shadow: none;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-link.whatsapp {
  color: #25d366;
}

.social-link.linkedin {
  color: #0a66c2;
}

.social-link.instagram {
  color: #e1306c;
}

.link-buttons {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  text-align: center;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(15, 77, 151, 0.2);
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.action-button:hover {
  transform: translateY(-1px);
  background: var(--button-hover);
}

@media (max-width: 600px) {
  .page-shell {
    padding: 72px 14px 24px;
  }

  .profile-card {
    padding: 28px 18px 30px;
    border-radius: 16px;
  }

  .image-wrap {
    width: 132px;
  }

  h1 {
    font-size: 1.95rem;
  }

  .social-links {
    gap: 12px;
  }

  .social-link {
    width: 42px;
    height: 42px;
  }

  .action-button {
    min-height: 46px;
    font-size: 0.94rem;
  }
}
