body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f8fa;
  color: #333;
}

header {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

header h1 {
  font-size: 3rem;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

header p {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.buttons {
  margin-top: 1rem;
}

.button {
  text-decoration: none;
  color: white;
  background-color: #023e8a;
  padding: 0.75rem 1.25rem;
  margin: 0.5rem;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.button:hover {
  background-color: #0077b6;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.projects {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.projects h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

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

.project {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s, opacity 0.3s;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.95;
}

.project:hover {
  transform: translateY(-5px);
  opacity: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.project h3 {
  margin-top: 0;
  color: #0077b6;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: #00b4d8;
  text-decoration: none;
  font-weight: bold;
}

.project-link:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #f1f1f1;
  font-size: 0.9rem;
  color: #666;
}

footer .button {
  margin-top: 0.5rem;
}

/* Changelog box */
.changelog {
  margin-top: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #666;
  font-size: 0.9rem;
  text-align: left;
}

/* Hide by default */
.hidden {
  display: none;
}

/* Optional: nicer look in dark mode */
body.dark-mode .changelog {
  border-color: #aaa;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2.25rem;
  }

  header p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode header {
  background: linear-gradient(135deg, #1e1e1e, #333);
  color: #f1f1f1;
}

body.dark-mode .button {
  background-color: #264653;
  color: #e0e0e0;
}

body.dark-mode .button:hover {
  background-color: #2a9d8f;
}

body.dark-mode .project {
  background-color: #1e1e1e;
  color: #e0e0e0;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

body.dark-mode .project h3 {
  color: #2ec4b6;
}

body.dark-mode .project-link {
  color: #00d1d1;
}

body.dark-mode footer {
  background-color: #1e1e1e;
  color: #aaa;
}
.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: white;
  transition: transform 0.3s, color 0.3s;
}

.theme-toggle:hover {
  transform: scale(1.2);
  color: #ffd60a;
}
.about,
.blog,
.skills {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.about h2,
.blog h2,
.skills h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: auto;
  color: #333;
}

body.dark-mode .about p,
body.dark-mode .skills h2,
body.dark-mode .blog h2,
body.dark-mode .about h2 {
  color: #f1f1f1;
}

.skills ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  justify-items: center;
  box-sizing: border-box;
}

.skills li {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0, 116, 217, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  user-select: none;
  text-align: center;

  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

.skills li:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 116, 217, 0.5);
  background: linear-gradient(135deg, #0077b6, #00b4d8);
}

body.dark-mode .skills li {
  background: linear-gradient(135deg, #274157, #1e2a38);
  color: #90e0ef;
  box-shadow: 0 4px 8px rgba(40, 90, 130, 0.6);
}

body.dark-mode .skills li:hover {
  background: linear-gradient(135deg, #1e2a38, #274157);
  box-shadow: 0 6px 10px rgba(70, 120, 180, 0.8);
}

header {
  position: relative;
}
