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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e0e0e0;
  background: #1a1a1d;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

a { color: #4a8eff; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: #fff;
  border-bottom: 2px solid #4a8eff;
  display: inline-block;
  padding-bottom: 8px;
}

h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

p { margin-bottom: 16px; color: #aaa; }

ul { margin-bottom: 16px; padding-left: 20px; color: #aaa; }

.app-name-label {
  font-size: 0.9em;
  font-weight: bold;
  color: #4a8eff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.app-card {
  background: #242428;
  border: 1px solid #2d2d33;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease-in-out;
}

.app-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  border-color: #3e3e46;
}

.app-card:hover img {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.app-card img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #333; /* 아이콘이 없을 때의 기본 배경색 */
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.app-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.app-info h3 {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-info p {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-links {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
}

.app-links a {
  color: #4a8eff;
  text-decoration: none;
  opacity: 0.7;
}

.app-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.app-links span {
  color: #333;
}

.play-store-link,
.app-store-link {
  flex-shrink: 0;
  color: #e0e0e0;
  opacity: 0.4;
  transition: all 0.2s;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-store-link:hover,
.app-store-link:hover {
  opacity: 1;
  color: #4a8eff;
  background: rgba(74, 142, 255, 0.1);
  transform: scale(1.1);
}


.grayscale {
  filter: grayscale(100%);
  opacity: 0.5;
}

.resume-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #242428;
  color: #4a8eff;
  border: 1px solid #2d2d33;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
}

.resume-btn:hover {
  background: #2d2d33;
  border-color: #3e3e46;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Resume subpage specific styles */
.resume-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #2d2d33;
  padding-bottom: 16px;
}

.lang-switch {
  font-size: 0.95rem;
  color: #444;
}

.lang-link {
  color: #777;
  padding: 2px 6px;
  border-radius: 4px;
}

.lang-link.active {
  color: #4a8eff;
  font-weight: 600;
  background: rgba(74, 142, 255, 0.1);
}

.resume-profile {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2d2d33;
}

.profile-info h1 {
  font-size: 2.2rem;
  margin-bottom: 4px;
  border: none;
  padding-bottom: 0;
  display: block;
}

.profile-info .role {
  font-size: 1.15rem;
  color: #a0a8b8;
  margin-bottom: 12px;
}

.profile-info .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 8px;
}

.profile-info .meta a {
  color: #aaa;
}

.profile-info .meta a:hover {
  color: #4a8eff;
}

.profile-info .updated {
  font-size: 0.8rem;
  color: #555;
}

.resume-section {
  margin-bottom: 48px;
}

.resume-section h2 {
  font-size: 1.5rem;
  color: #e0e0e0;
  border-bottom: 2px solid #4a8eff;
  display: inline-block;
  padding-bottom: 4px;
  margin-top: 0;
  margin-bottom: 20px;
}

.resume-section p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
  word-break: keep-all;
}

.resume-quote {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.5;
  word-break: keep-all;
}

.skills-category {
  margin-bottom: 20px;
}

.skills-category h3 {
  font-size: 1rem;
  color: #a0a8b8;
  margin-bottom: 8px;
  font-weight: 600;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-green {
  background: #152d1f;
  color: #4ade80;
  border: 1px solid #1f532f;
}

.badge-grey {
  background: #242428;
  color: #a0a8b8;
  border: 1px solid #2d2d33;
}

.badge-orange {
  background: #3e2211;
  color: #fb923c;
  border: 1px solid #633112;
}

.skills-legend {
  font-size: 0.8rem;
  color: #666;
  margin-top: 12px;
  line-height: 1.6;
}

.resume-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  background: #242428;
  border: 1px solid #2d2d33;
  border-radius: 12px;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.header-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.company-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.separator {
  color: #555;
  margin: 0 4px;
}

.job-title {
  font-size: 1.05rem;
  color: #a0a8b8;
  font-weight: 500;
}

.item-date {
  font-size: 0.9rem;
  color: #777;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.meta-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.project-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: #777;
}

.project-subtitle {
  font-size: 1.05rem;
  color: #a0a8b8;
}

.item-content {
  width: 100%;
}

.item-content h4 {
  font-size: 1.05rem;
  color: #4a8eff;
  margin-bottom: 12px;
}

.item-content ul + h4 {
  margin-top: 20px;
}

.item-content ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.item-content li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.7;
}

.item-content li:last-child {
  margin-bottom: 0;
}

.item-content li ul {
  margin-top: 8px;
  list-style-type: circle;
}

.item-content li li {
  font-size: 0.85rem;
  color: #888;
}

.edu-item {
  display: flex;
  justify-content: space-between;
  background: #242428;
  border: 1px solid #2d2d33;
  border-radius: 12px;
  padding: 20px;
  align-items: center;
}

.edu-info h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
}

.edu-info p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #a0a8b8;
}

.edu-date {
  font-size: 0.9rem;
  color: #777;
}

@media (max-width: 768px) {
  .resume-profile {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .resume-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .edu-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

footer {
  text-align: center;
  padding: 40px 20px;
  color: #555;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
