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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.download-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #2d3748;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
}

.download-btn:hover {
  background: #1a202c;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.slide {
  width: 1920px;
  height: 1080px;
  max-width: 90vw;
  max-height: calc(90vw * 9 / 16);
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  padding: 80px;
  gap: 80px;
  position: relative;
}

/* Color variables */
:root {
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --bg-light: #f8f8f8;
  --border-light: #e0e0e0;
}

.left-section {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #2d3748;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 120px;
  font-weight: 300;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  font-size: 42px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.5px;
}

.right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 35px;
}

.info-item {
  display: flex;
  align-items: flex-start;
}

.info-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 140px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 3px;
}

.info-content {
  font-size: 22px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.social-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.social-link {
  text-decoration: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.social-icon {
  width: 24px;
  height: 24px;
}

.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.interest-tag {
  background: var(--bg-light);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 18px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.interest-tag:first-child {
  background: #2d3748;
  color: white;
  border-color: #2d3748;
}

.interest-tag:hover:not(:first-child) {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.roles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-item {
  color: var(--text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-item::before {
  content: "•";
  color: var(--text-primary);
  font-weight: bold;
}

.role-link {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.role-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Print styles for PDF export */
@media print {
  .download-btn {
    display: none;
  }

  body {
    background: white;
    padding: 0;
    margin: 0;
  }

  .slide {
    width: 100%;
    height: 100vh;
    max-width: none;
    max-height: none;
    box-shadow: none;
    margin: 0;
    padding: 60px;
    break-inside: avoid;
  }

  .profile-image {
    width: 250px;
    height: 250px;
    font-size: 100px;
  }

  .name {
    font-size: 36px;
  }

  .info-label {
    font-size: 16px;
  }

  .info-content {
    font-size: 18px;
  }

  .interest-tag {
    font-size: 16px;
  }

  .role-item {
    font-size: 16px;
  }

  .social-icon {
    width: 20px;
    height: 20px;
  }
}

/* PC recommendation message styles */
.pc-recommendation {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px;
  text-align: center;
  z-index: 10000;
  font-size: 14px;
  line-height: 1.4;
}

.pc-recommendation-content {
  max-width: 600px;
  margin: 0 auto;
}

.pc-recommendation button {
  background: #2d3748;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  font-size: 12px;
}

.pc-recommendation button:hover {
  background: #1a202c;
}

/* Tablet responsive design */
@media (max-width: 1200px) and (min-width: 769px) {
  .slide {
    padding: 60px;
    gap: 60px;
  }

  .profile-image {
    width: 250px;
    height: 250px;
    font-size: 100px;
  }

  .name {
    font-size: 36px;
  }

  .info-label {
    font-size: 16px;
    min-width: 120px;
  }

  .info-content {
    font-size: 20px;
  }

  .interest-tag {
    font-size: 16px;
  }

  .role-item {
    font-size: 18px;
  }
}

/* Smartphone responsive design (with PC recommendation message) */
@media (max-width: 768px) {
  .pc-recommendation {
    display: block;
  }

  body {
    padding-top: 80px; /* Reserve space for the message */
  }

  .slide {
    /* Display full screen width while maintaining aspect ratio */
    width: 100vw;
    height: calc(100vw * 9 / 16);
    max-width: 100vw;
    max-height: calc(100vw * 9 / 16);
    padding: 20px;
    gap: 20px;
    font-size: 12px; /* Reduce base font size */
  }

  /* Change layout to vertical direction */
  .slide {
    flex-direction: column;
    align-items: center;
  }

  .left-section {
    gap: 15px;
  }

  .profile-image {
    width: 120px;
    height: 120px;
    font-size: 50px;
  }

  .name {
    font-size: 18px;
  }

  .right-section {
    gap: 15px;
    width: 100%;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .info-label {
    font-size: 12px;
    min-width: auto;
  }

  .info-content {
    font-size: 14px;
  }

  .interest-tag {
    font-size: 12px;
    padding: 4px 8px;
  }

  .role-item {
    font-size: 12px;
  }

  .social-links {
    gap: 15px;
    flex-wrap: wrap;
  }

  .social-icon {
    width: 16px;
    height: 16px;
  }

  .download-btn {
    top: 90px; /* Position below PC recommendation message */
    font-size: 12px;
    padding: 8px 12px;
  }
}
