:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--primary-color);
}

header h1 {
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.subtitle {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.contact-info a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: var(--primary-color);
}

.language-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.language-btn {
  padding: 8px 16px;
  background-color: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s;
}

.language-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.language-btn:last-child {
  border-radius: 0 4px 4px 0;
}

.language-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.resume-content {
  display: none;
}

.resume-content.active {
  display: block;
}

/* Added specific styles for markdown elements */
.resume-content h2 {
  margin-top: 28px;
  margin-bottom: 16px;
  color: var(--secondary-color);
  padding-bottom: 5px;
  border-bottom: 2px solid var(--primary-color);
}

.resume-content h4 {
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--secondary-color);
  font-weight: 600;
}

.resume-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.resume-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px 0;
  overflow-x: auto;
  display: block;
}

.resume-content table th {
  background-color: var(--light-bg);
  color: var(--secondary-color);
  font-weight: 600;
  padding: 12px 15px;
  text-align: left;
  border-bottom: 2px solid var(--primary-color);
}

.resume-content table td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.resume-content table tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.resume-content table a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.resume-content table a:hover {
  text-decoration: underline;
}

.resume-content ul,
.resume-content ol {
  margin: 1em 0 1em 2em;
  padding-left: 1.5em;
  max-width: 100%;
  word-break: break-word;
  box-sizing: border-box;
}

.resume-content li {
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.loading {
  text-align: center;
  padding: 20px;
  color: var(--secondary-color);
}

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

.resume-section h2 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--primary-color);
}

.job-item, .education-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.job-title, .institution {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.company, .date {
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.description ul {
  padding-left: 20px;
  margin-top: 10px;
}

.description li {
  margin-bottom: 5px;
}

.skills-section h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.skill-tag {
  background-color: var(--light-bg);
  color: var(--secondary-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.download-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #2980b9;
}

footer {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Responsive styling */
@media (max-width: 600px) {
  .contact-info {
    flex-direction: column;
  }

  .skills-list {
    gap: 5px;
  }

  .skill-tag {
    font-size: 0.8rem;
  }

  .resume-content table {
    font-size: 0.9rem;
  }

  .resume-content table th,
  .resume-content table td {
    padding: 8px 10px;
  }
}
