/* Reset & Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
}

/* Language Toggle - Top Center */
.lang-toggle {
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
}


.lang-toggle a {
  color: #333;
  text-decoration: none;
  margin: 0 5px;
}

.lang-toggle a:hover {
  text-decoration: underline;
}

/* Top-Right Navigation */
.top-right-nav {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 100;
}

.top-right-nav a {
  margin-left: 15px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.top-right-nav a:hover {
  color: #007ACC;
}

/* Main Layout */
.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
  padding: 20px;
}

/* Profile Image */
.profile-pic {
  width: 500px;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Text Below Image */
.intro-text {
  text-align: center;
  margin-top: 20px;
  max-width: 600px;
}

.intro-text h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.intro-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
}

.section {
  max-width: 800px;
  margin: 80px auto 60px;
  padding: 0 20px;
}

.section h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.section ul {
  list-style: none;
  padding-left: 0;
}

.section ul li {
  margin-bottom: 10px;
  font-size: 1.1em;
  line-height: 1.6;
}

.section p {
  font-size: 1.1em;
  line-height: 1.6;
}

footer {
  text-align: center;
  border-top: 1px solid #ccc;
  padding-top: 40px;
  margin-top: 80px;
  font-size: 0.95em;
}

footer a {
  color: #007ACC;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.hobby-item {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hobby-img {
  width: 300px;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hobby-text {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.6;
}

.edu-item {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1.05em;
}

.edu-title {
  font-weight: bold;
}

.edu-detail {
  color: #555;
}

.edu-date {
  text-align: right;
  color: #777;
  font-style: italic;
}

.edu-sub {
  display: block;
  font-size: 0.95em;
  color: #888;
  margin-top: 4px;
}

.exp-item {
  margin-bottom: 30px;
}

.exp-role {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.exp-summary {
  color: #333;
  margin-bottom: 8px;
  font-size: 1.05em;
}

.exp-org-desc {
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
  font-style: italic;
}

.pub-item {
  margin-bottom: 30px;
}

.pub-title {
  font-size: 1.1em;
  margin-bottom: 5px;
  line-height: 1.5;
}

.pub-authors {
  color: #333;
  font-size: 1.05em;
  margin-bottom: 6px;
}

.pub-venue {
  color: #666;
  font-size: 0.95em;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 12px;
}

.pub-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pub-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.88em;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
}

.pub-btn-project {
  background: transparent;
  color: #0969da;
  border: 2px solid #0969da;
}

.pub-btn-project:hover {
  background: #0969da;
  color: #fff;
}

.pub-btn-arxiv {
  background: #b31b1b;
  color: #fff;
}

.pub-btn-arxiv:hover {
  background: #8a1515;
}

.pub-btn-github {
  background: #24292e;
  color: #fff;
}

.pub-btn-github:hover {
  background: #444d56;
}

.traits-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.trait-box {
  flex: 1 1 300px;
  min-width: 250px;
}

.trait-box h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.dot-list {
  list-style: none;
  padding-left: 0;
}

.dot-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 1.05em;
  line-height: 1.6;
}

.dot-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #333;
  font-size: 1.2em;
  line-height: 1;
}

video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-desc {
  font-size: 1.05em;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#main-info .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

#main-info .info-item {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 16px;
}

.links-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 200px;
  padding: 30px 20px;
  border-radius: 12px;
  background: #f5f5f5;
  border: 2px solid #eee;
  text-decoration: none;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
}

.link-card:hover {
  border-color: #007ACC;
  background: #f0f7ff;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.12);
}

.link-card-icon {
  font-size: 2.2em;
  margin-bottom: 10px;
}

.link-card-label {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 6px;
}

.link-card-url {
  font-size: 0.88em;
  color: #007ACC;
}

#goal .goal-description {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.8;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
