body {
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.65;
  color: #2d3748;
  background: #edf2f7;
  margin: 0;
  padding: 25px;
}

.cv-container {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border: 1px solid #cbd5e0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border-radius: 8px;
}

header {
  border-bottom: 2px solid #2d3748;
  padding-bottom: 20px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.header-info h1 {
  margin: 0 0 6px 0;
  font-size: 28px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header-info p {
  margin: 4px 0;
  font-size: 15px;
}

.contact-info {
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.contact-row {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.contact-row span {
  text-align: right;
}

section {
  margin-bottom: 25px;
}

h2 {
  font-size: 16px;
  text-transform: uppercase;
  border-bottom: 1.5px solid #2d3748;
  padding-bottom: 5px;
  margin-bottom: 14px;
  color: #1a202c;
  font-weight: 700;
  letter-spacing: 0.5px;
}

p, li {
  font-size: 15px;
}

.indent-text {
  text-align: justify;
  text-justify: inter-word;
  text-indent: 2em;
}

ul {
  margin: 6px 0 12px 0;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15.5px;
  color: #1a202c;
  margin-bottom: 4px;
}

.item-sub {
  font-style: italic;
  font-size: 15px;
  color: #4a5568;
  margin-bottom: 6px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: #f7fafc;
  color: #2d3748;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.view-detail-btn {
  background: none;
  border: none;
  color: #2b6cb0;
  cursor: pointer;
  padding: 0;
  font-size: 15px;
  text-decoration: underline;
  font-family: inherit;
  margin-left: 5px;
}

.view-detail-btn:hover {
  color: #1a365d;
}

/* Modal Popup */
.modal { 
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0, 0, 0, 0.85); 
  backdrop-filter: blur(5px); 
  overflow-y: auto; 
}

.modal-body { 
  margin: 40px auto; 
  width: 90%; 
  max-width: 900px; 
  min-height: 85vh; 
  position: relative; 
  display: flex; 
  flex-direction: column; 
}

.no-download-overlay { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: 10001; 
  background: transparent; 
}

.modal-content { 
  width: 100%; 
  border-radius: 6px; 
  border: 2px solid #fff; 
  background: #fff; 
  object-fit: contain; 
  pointer-events: none; 
}

.close-modal { 
  position: fixed; 
  top: 20px; 
  right: 30px; 
  color: #fff; 
  font-size: 40px; 
  cursor: pointer; 
  z-index: 10002; 
  pointer-events: auto; 
}

#caption { 
  text-align: center; 
  color: #fff; 
  font-weight: bold; 
  margin-top: 10px; 
  font-size: 15px; 
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .cv-container {
    padding: 20px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .contact-info {
    text-align: left;
    width: 100%;
  }

  .contact-row {
    justify-content: flex-start;
  }

  .contact-row span {
    text-align: left;
  }

  .item-header {
    flex-direction: column;
    align-items: flex-start;
  }
}