/* === Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === CSS Variables === */
:root {
  /* Colors */
  --primary-color: #3CB371;
  --text-dark: #000;
  --text-medium: #333;
  --text-light: #666;
  --text-copied: #9CA3AF;
  --border-color: #e9ecef;
  --bg-white: #fff;
  
  /* Layout */
  --container-max-width: 1000px;
  --section-spacing: 100px;
  --content-padding: 20px;
  --profile-gap: 2rem;
  --profile-margin-bottom: 5rem;
  
  /* Typography Scale */
  --font-size-name: 3.5rem;
  --font-size-h2: 2.5rem;
  --font-size-description: 1.8rem;
  --font-size-company: 1.6rem;
  --font-size-body: 1.05rem;
  --font-size-small: 0.95rem;
  --font-size-subtitle: 1.2rem;
  
  /* Spacing */
  --main-padding: 4rem;
  --experience-gap: 4rem;
  --column-gap: 100px;
  --row-gap: 1.25rem;
  
  /* Profile Image */
  --profile-image-size: 200px;
  --profile-image-border: 3px;
  --profile-image-mobile: 100px;
  --profile-image-small: 80px;
}

/* === Layout Components === */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.main {
  padding: var(--main-padding) 0;
  flex: 1;
}

.main .container {
  padding: 0;
  animation: fadeInUp 0.6s ease-out;
}

section {
  margin-bottom: var(--section-spacing);
}

/* === Typography Utilities === */
.name {
  font-size: var(--font-size-name);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-align: left;
  letter-spacing: -0.02em;
}

.dot {
  color: var(--primary-color);
}

.emphasis {
  color: var(--primary-color);
  text-decoration: underline;
}

.copied {
  color: var(--text-copied);
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
  text-align: left;
  letter-spacing: -0.02em;
}

/* === Profile Section === */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--profile-gap);
  margin-bottom: var(--profile-margin-bottom);
}

.profile-header .name {
  order: 1;
}

.profile-header .profile-image {
  order: 2;
}

.profile-image {
  width: var(--profile-image-size);
  height: var(--profile-image-size);
  border-radius: 50%;
  object-fit: cover;
  border: var(--profile-image-border) solid var(--border-color);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.intro {
  text-align: left;
  margin-bottom: var(--profile-margin-bottom);
}

.description {
  font-size: var(--font-size-description);
  color: var(--text-light);
  text-align: left;
  font-weight: 300;
  letter-spacing: 0.01em;
  padding-inline-end: 200px;
}

/* === Experience Section === */
.experience .experience-list {
  display: flex;
  flex-direction: column;
  gap: var(--experience-gap);
}

.experience .experience-group {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--column-gap);
  row-gap: var(--row-gap);
  align-items: start;
}

.experience .experience-item {
  display: contents;
}

.experience .exp-col1 {
  grid-column: 1;
}

.experience .exp-col2 {
  grid-column: 2;
}

.experience .experience-item--continuation .exp-col1 {
  display: none;
}

/* Experience Typography */
.experience .exp-col1 .company_name {
  font-size: var(--font-size-company);
  font-weight: 700;
  color: var(--text-dark);
}

.experience .exp-col1 .job,
.experience .exp-col1 .tenure {
  font-size: var(--font-size-small);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.7;
}

.experience .exp-col1 .job {
  margin-top: 0.4rem;
}

.experience .exp-col1 .tenure {
  margin-top: 0.25rem;
}

.experience .exp-col2 .team_name {
  font-size: var(--font-size-company);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.experience .exp-col2 .description_title,
.experience .exp-col2 .my_role_title,
.experience .exp-col2 .stack_title {
  font-size: var(--font-size-subtitle);
  font-weight: 700;
  color: #111;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.experience .exp-col2 .description_info,
.experience .exp-col2 .my_role_info,
.experience .exp-col2 .stack_info {
  font-size: var(--font-size-body);
  font-weight: 400;
  color: #444;
  line-height: 1.8;
}

/* Experience HR Styling */
.experience .experience-group hr {
  grid-column: 1 / -1;
  width: 100%;
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* === List Styling === */
li::marker {
  color: var(--primary-color);
}

li {
  text-indent: -1.35em;
  padding-left: 1.35em;
}

/* === Common Section Styles === */
.other-experience,
.skills,
.other-activities {
  margin-bottom: var(--section-spacing);
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.content-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-item {
  display: block;
}

.content-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* === Text Type Styles === */
.main-title {
  font-size: var(--font-size-h2);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
  text-align: left;
  letter-spacing: -0.02em;
}

.sub-title {
  font-size: var(--font-size-company);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.role-with-time-text {
  font-size: var(--font-size-body);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.6;
}

.role-with-time-text strong {
  font-weight: 600;
}

.explanation-text {
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.6;
}

.description-text {
  font-size: var(--font-size-body);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.8;
}

/* === Separator Styles === */
.content-group hr {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* === Link Styles === */
.other-activities a {
  text-decoration: none;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
    text-align: center;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .profile-header .name,
  .profile-header .profile-image {
    order: 0;
  }

  .profile-image {
    width: var(--profile-image-mobile);
    height: var(--profile-image-mobile);
  }

  .name {
    font-size: 2.5rem;
    text-align: center;
  }

  .description {
    padding-inline-end: 0;
    text-align: center;
  }

  .experience .experience-group {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }

  .experience .exp-col2 {
    grid-column: 1;
  }

  .main-title,
  h2 {
    font-size: 2rem;
    text-align: center;
  }

  .sub-title {
    font-size: 1.4rem;
    text-align: center;
  }

  .explanation-text,
  .role-with-time-text {
    text-align: center;
  }

  .description-text {
    font-size: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .name {
    font-size: 2rem;
  }

  .profile-image {
    width: var(--profile-image-small);
    height: var(--profile-image-small);
  }
}

/* === Print Styles === */
@media print {
  @page {
    margin: 1cm;
    size: A4;
  }
  
  * {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
    animation: none !important;
    transition: none !important;
  }
  
  body {
    font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--bg-white) !important;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  
  .main .container {
    animation: none;
  }
  
  .profile-image:hover {
    transform: none;
    box-shadow: none;
  }
  
  .profile-header {
    page-break-inside: avoid;
  }
}