:root {
  --nord0: #2E3440;
  --nord1: #3B4252;
  --nord2: #434C5E;
  --nord3: #4C566A;
  --text-primary: #ECEFF4;
  --text-secondary: #D8DEE9;
  --accent: #88C0D0;
}

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

body {
  background-color: var(--nord0);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  background-color: var(--nord1);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.language-container {
  width: 64px;
}

.language-switch {
  display: inline-block;
  transition: transform 0.3s ease;
}

.language-switch:hover {
  transform: scale(1.1);
}

.flag-icon {
  border-radius: 4px;
}

h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  margin: 0;
}

h2 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
  padding: 0.5rem;
  border-radius: 4px;
}

.contact-links a:hover {
  color: var(--text-primary);
  background-color: var(--nord2);
}

.section {
  background-color: var(--nord1);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skills-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.skills-category {
  background-color: var(--nord2);
  border-radius: 6px;
  padding: 1.5rem;
}

.skills-category h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--nord3);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background-color: var(--accent);
  color: var(--nord0);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: inline-block;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  font-weight: 500;
}

.skill-tag:hover {
  transform: translateY(-2px);
}

.skill-tag.next-semester {
  background-color: var(--nord2);
  color: var(--text-secondary);
  border: 1px solid var(--nord3);
}

.skill-tag.self-learning {
  background-color: var(--nord2);
  color: var(--text-secondary);
  border: 1px dashed var(--accent);
}

.education-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--nord2);
  border-radius: 6px;
}

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

.education-item p {
  margin-bottom: 0.5rem;
}

.education-item p:last-child {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.projects-container {
  display: grid;
  gap: 2rem;
}

.project {
  background-color: var(--nord2);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.project:hover {
  transform: translateY(-2px);
}

.project h3 {
  margin-bottom: 1rem;
}

.project p {
  margin-bottom: 1rem;
}

.project ul {
  margin-bottom: 1rem;
}

.project-links {
  margin-top: 1.5rem;
}

.portfolio-link {
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.portfolio-link:hover {
  color: var(--text-primary);
  background-color: var(--nord2);
}

ul {
  list-style-position: inside;
}

ul li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  header {
    padding: 1rem;
  }

  .header-top {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .skills-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skills-category {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 1rem;
  }

  .contact-links a {
    width: 100%;
    justify-content: center;
  }
}
