:root {
  /* Theme Colors */
  --primary-color: #667eea;
  --secondary-color: #ff6b1a;
  --accent-color: #f8f9fa;
  --text-primary: #333;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --white: #ffffff;
  --border-color: #d1d5db;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --line-height: 1.6;

  /* Spacing */
  --border-radius: 6px;
  --border-radius-large: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: var(--font-family);
  line-height: var(--line-height);
  color: var(--text-primary);
  background-color: #f5f7fa;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  background-color: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius-large);
  overflow: hidden;
}

/* Header */
.header {
  background: var(
    --primary-gradient,
    linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%
    )
  );
  color: white;
  padding: 40px;
}

.header-content {
  text-align: center;
}

.header-main {
  margin-bottom: 20px;
}

.header-left {
  flex: 1;
}

.header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-family);
}

.header .subtitle {
  font-size: 20px;
  margin-bottom: 24px;
  font-family: var(--font-family);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
}

.contact-item i {
  width: 16px;
  height: 16px;
}

.contact-item a {
  color: white;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.header-right {
  margin-left: 20px;
}

.profile-image {
  width: 128px;
  height: 128px;
  border-radius: var(--border-radius-large);
  border: 4px solid white;
  object-fit: cover;
}

/* Main Content */
.main-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 40px;
}

.left-column {
  /* Main content area */
}

.right-column {
  /* Sidebar area */
}

.section {
  margin-bottom: 40px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 700;
  border-bottom: 4px solid var(--primary-color);
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-family: var(--font-family);
}

.section-content {
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
}

/* Skills */
.skill-category {
  margin-bottom: 24px;
}

.skill-category:last-child {
  margin-bottom: 0;
}

.skill-category-title {
  margin-bottom: 12px;
  font-weight: 600;
  font-family: var(--font-family);
}

.skill-category-title.orange {
  color: var(--secondary-color);
}

.skill-category-title.default {
  color: var(--text-secondary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font-family);
}

/* Experience */
.experience-item {
  margin-bottom: 8px;
}

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

.job-title {
  color: var(--text-secondary);
  font-weight: normal;
  font-size: 16px;
  font-family: var(--font-family);
}

.company {
  color: var(--text-secondary);
  font-weight: normal;
  font-size: 15px;
  font-family: var(--font-family);
}

.meta-info {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

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

.meta-item i {
  width: 12px;
  height: 12px;
}

.responsibilities {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 20px;
  color: var(--text-secondary);
}

.responsibilities li {
  margin-bottom: 4px;
  padding-left: 0;
}

/* Education */
.education-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.education-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.education-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.education-right {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.education-title {
  color: var(--text-secondary);
  font-weight: normal;
  font-size: 16px;
  font-family: var(--font-family);
}

.institution {
  color: var(--text-secondary);
  font-weight: normal;
  font-size: 15px;
  font-family: var(--font-family);
}

.education-duration {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
}

.education-location {
  color: var(--text-secondary);
  font-size: 14px;
}

.gpa-info {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Domain and Client Lists */
.domain-list,
.client-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.domain-item,
.client-item {
  color: var(--text-secondary);
  padding: 4px 0;
  font-family: var(--font-family);
}

.client-highlight {
  font-weight: 600;
  color: var(--secondary-color);
}

/* Experience Line Layout */
.experience-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.experience-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.experience-right {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.duration {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
}

.location {
  color: var(--text-secondary);
  font-size: 14px;
  margin-left: auto;
}

.separator {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 14px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .experience-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .experience-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
  }

  .separator {
    display: none;
  }

  .job-title {
    font-size: 15px;
    font-weight: 600;
  }

  .company {
    font-size: 14px;
    color: var(--secondary-color);
  }

  .duration,
  .location {
    font-size: 13px;
  }
}

/* Control Buttons */
.control-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 1000;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: none;
  border-radius: var(--border-radius);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-decoration: none;
  width: fit-content;
  font-family: var(--font-family);
}

.btn i {
  margin-right: 8px;
}

.btn-download,
.btn-theme,
.btn-font,
.btn-create,
.btn-tutorial {
  background-color: var(--primary-color);
}

.btn-download:hover,
.btn-theme:hover,
.btn-font:hover,
.btn-create:hover,
.btn-tutorial:hover {
  opacity: 0.9;
  filter: brightness(0.95);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Theme and Font Selectors */
.theme-selector,
.font-selector {
  position: fixed;
  top: 170px;
  right: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 15px;
  z-index: 1000;
  display: none;
  min-width: 160px;
}

.font-selector {
  min-width: 140px;
}

.theme-selector.active,
.font-selector.active {
  display: block;
}

.theme-colors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.theme-color {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.theme-color:hover {
  transform: scale(1.1);
}

.theme-color.active {
  border-color: var(--text-primary);
  transform: scale(1.1);
}

.theme-label,
.font-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-family: var(--font-family);
}

.font-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.font-option {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 14px;
  text-align: center;
  font-family: var(--font-family);
}

.font-option:hover {
  background: var(--accent-color);
}

.font-option.active {
  border-color: var(--primary-color);
  background: var(--accent-color);
}

/* Print Styles */
@media print {
  .control-buttons,
  .theme-selector,
  .font-selector {
    display: none !important;
  }

  body {
    margin: 0;
  }

  .container {
    max-width: 100%;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 36px;
  }

  .control-buttons {
    position: static;
    margin: 20px;
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .header h1 {
    font-size: 28px;
  }

  .header .subtitle {
    font-size: 18px;
  }

  .profile-image {
    width: 96px;
    height: 96px;
  }

  .main-content {
    padding: 20px;
  }

  .control-buttons {
    flex-direction: column;
  }

  .experience-item {
    margin-bottom: 16px;
    padding: 12px;
    background-color: #f9fafb;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--secondary-color);
  }

  .job-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .company {
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 4px;
  }

  .duration {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .location {
    font-size: 12px;
    margin-left: 0;
    text-align: left;
  }
}
