.profile-page {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--chat-bg-dark), var(--chat-surface-2));
  color: var(--chat-text-primary);
  min-height: 100vh;
  padding: 24px 16px 48px;
}

.section {
  max-width: 960px;
  margin: 0 auto 24px auto;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--chat-text-light);
}

.section-body {
  color: var(--chat-text-secondary);
  line-height: 1.6;
}

.hero {
  max-width: 960px;
  margin: 0 auto 24px auto;
  padding: 24px 20px;
  background: radial-gradient(circle at top left, var(--chat-accent-blue) 0, transparent 55%),
              var(--chat-surface-2);
  border-radius: 16px;
  box-shadow: var(--chat-shadow-medium);
}

.hero-name {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--chat-text-light);
}

.hero-tagline {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--chat-text-secondary);
}

.hero-subtagline {
  font-size: 0.95rem;
  color: var(--chat-text-secondary);
}

.hero-actions {
  margin-top: 16px;
}

.btn-primary {
  background-color: var(--chat-accent-blue);
  color: var(--chat-text-light);
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--chat-shadow-light);
  transition: var(--chat-transition);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--chat-shadow-medium);
}

.card {
  background: var(--chat-surface-2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--chat-shadow-light);
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--chat-text-light);
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--chat-text-secondary);
}

.card-meta {
  font-size: 0.85rem;
  color: var(--chat-text-secondary);
  white-space: nowrap;
}

.coursework-heading {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--chat-text-secondary);
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(13, 110, 253, 0.32);
  border: 1px solid var(--chat-accent-blue);
  font-size: 0.8rem;
  color: var(--chat-text-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.skill-list,
.bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.skill-list li,
.bullet-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--chat-text-secondary);
}

.skill-list li::before,
.bullet-list li::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  color: var(--chat-accent-blue);
}

.contact-form {
  max-width: 960px;
  margin-top: 8px;
  background: var(--chat-surface-2);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--chat-shadow-light);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--chat-text-secondary);
}

.form-group input,
.form-group textarea {
  background-color: var(--chat-surface-1);
  border: 1px solid var(--chat-border-medium);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
  color: var(--chat-text-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--chat-text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--chat-accent-blue);
  box-shadow: 0 0 0 1px var(--chat-accent-blue);
}

.form-actions {
  margin-top: 10px;
}

.contact-status {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--chat-text-secondary);
}

/* Toggle switch base styles (for future checkboxes if added) */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--chat-border-medium);
  transition: var(--chat-transition);
  border-radius: 22px;
}

.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--chat-text-light);
  transition: var(--chat-transition);
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background-color: var(--chat-accent-blue);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(18px);
}

@media (min-width: 640px) {
  .profile-page {
    padding: 32px 24px 56px;
  }

  .hero-name {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    flex-direction: row;
  }
}
