:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --bg-color: #f4f4f4;
  --text-color: #333;
  --card-bg: #fff;
  --card-border: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kantumruy Pro", sans-serif;
}

body {
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.5s, color 0.5s;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

nav {
  background: var(--card-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  font-size: 24px;
  color: var(--primary-color);
}

#languageButton img {
  width: 24px;
  height: auto;
}
/* #aboutText{
  text-align: justify;
} */

main {
  flex-grow: 1;
  padding: 2rem 0;
}

.section {
  margin-bottom: 2rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

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

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

.project button {
  margin: 10px 0;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.5s;
}

.project button:hover {
  background: #2980b9;
}

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

.skill {
  margin: 0 2px;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.contact-links a {
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 1rem;
  transition: color 0.5s;
}

.contact-links a:hover {
  color: var(--secondary-color);
}

h1,
h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

footer {
  background: var(--card-bg);
  color: var(--text-color);
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
}

.dark-mode {
  --bg-color: #2c3e50;
  --text-color: #ecf0f1;
  --card-bg: #34495e;
  --card-border: #4a6278;
}

@media screen and (max-width: 768px) {
  .projects {
    grid-template-columns: 1fr;
  }
}

nav {
  background: var(--card-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  font-size: 24px;
  color: var(--primary-color);
  margin: 0;
}

.tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tools button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 18px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

#languageButton {
  padding: 0;
}

#languageButton img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
