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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.6;
  padding: 20px;
  max-width: 960px;
  margin: auto;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 1.2rem;
  color: #7f8c8d;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgb(0 0 0 / 0.1);
  padding: 25px 30px;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.15);
}

h2 {
  margin-bottom: 20px;
  color: #34495e;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
}

ul {
  list-style: none;
}

ul li {
  padding: 6px 0;
  font-size: 1.1rem;
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Skill Bars */

.skill-bar {
  margin-bottom: 15px;
}

.skill-bar span {
  font-weight: 600;
  display: inline-block;
  margin-bottom: 5px;
  color: #2c3e50;
}

.bar {
  background: #dcdde1;
  border-radius: 10px;
  height: 20px;
  width: 100%;
  overflow: hidden;
}

.fill {
  background: #3498db;
  height: 100%;
  border-radius: 10px 0 0 10px;
  transition: width 1s ease-in-out;
}

/* Achievement Items */

.achievement-item {
  margin-bottom: 25px;
}

.achievement-item h3 {
  color: #2980b9;
  margin-bottom: 6px;
}

.achievement-item p {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #555;
}

.achievement-item img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.1);
  user-select: none;
}

/* Tables */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

thead tr {
  background: #3498db;
  color: white;
}

thead tr th {
  padding: 10px 12px;
  text-align: left;
}

tbody tr:nth-child(even) {
  background: #f1f6fb;
}

tbody tr:hover {
  background: #d6eaff;
}

tbody tr td {
  padding: 10px 12px;
  font-size: 1rem;
}

/* Footer */

footer {
  text-align: center;
  padding: 15px 0;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-top: 40px;
  user-select: none;
}

#best-project .project-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 700px) {
  #best-project .project-showcase {
    flex-direction: row;
    align-items: center;
  }
}

.project-showcase img {
  max-width: 100%;
  width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
}

.project-info {
  flex: 1;
}

.project-info h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.project-info p {
  margin-bottom: 12px;
  color: #555;
}

.project-info ul {
  list-style: none;
  padding-left: 0;
}

.project-info ul li {
  margin-bottom: 6px;
  font-size: 1rem;
}

body {
  background-color: #f9f9f9;
  color: #222;
  transition: background-color 0.3s, color 0.3s;
}

.card {
  background-color: #fff;
  color: #222;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #eee;
}

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

#dark-mode-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}