body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  font-size:18px;
  background-color: #06070E; /* Ultra dark midnight blue */
  color: #757a9c; /* Muted soft blue-gray text */
  line-height: 1.6;
  padding: 2rem;
  text-align: center;
  transition: background-color 0.3s ease;
}

h1,
h2 {
  color: #949ac9; /* Muted blue-gray */
  margin-bottom: 0.5rem;
  text-shadow: 0 0 2px #2f3357bb; /* very subtle blue glow */
}

h3 {
  color: #7b7ea1; /* Darker muted blue */
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: #9fa4c2;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #3c436a;
  transition: width 0.3s ease;
  border-radius: 2px;
}

a:hover {
  color: #646b9e;
}

a:hover::after {
  width: 100%;
}

.intro,
.project {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: left;
}

.project {
  background: #0a0c21; /* Very dark card background */
  border-radius: 12px;
  box-shadow:
    0 0 5px 0 rgba(60, 67, 106, 0.15),
    0 4px 8px -3px rgba(0, 0, 0, 0.95);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  user-select: none;
}

.project:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 0 14px 3px #3c436acc,
    0 9px 18px -5px rgba(0, 0, 0, 0.98);
  z-index: 10;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  table-layout: fixed;
}

td {
  vertical-align: top;
  padding: 0.75rem 1rem;
}

.project img {
  width: 320px;
  height: 240px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(60, 67, 106, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 10px #3c436acc;
}

.screenshot {
  width: 320px;
  height: 240px;
  background-color: #0e1135;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b6087;
  font-size: 0.9rem;
  border-radius: 8px;
  box-shadow: 0 0 4px #3c436299;
  user-select: none;
}

.github-link {
  margin-top: 1rem;
  font-size: 1.6rem;
  text-align: center;
}

.github-link a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.github-link a:hover {
  color: #767db2;
}

.github-link i {
  margin-right: 0.4rem;
  vertical-align: middle;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto 3rem auto;
  text-align: left;
  font-size: 1rem;
  color: #757a9c; /* Same muted text color */
  font-family: 'Lato', Arial, sans-serif;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #6a6f96; /* Slightly lighter for labels */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background-color: #0a0c21; /* Same dark card background */
  border: 1.5px solid #3c436a; /* Muted blue-gray border */
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1.2rem;
  color: #757a9c; /* Text color */
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #505780; /* Slightly darker placeholder */
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #646b9e;
  box-shadow: 0 0 5px 1px #646b9ecc;
  outline: none;
  background-color: #12152f;
  color: #a2a8d6;
}

.contact-form button {
  background-color: #3c436a;
  color: #e0e3ff;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin-top: 0.5rem;
}

.contact-form button:hover,
.contact-form button:focus {
  background-color: #646b9e;
  box-shadow: 0 0 8px 2px #646b9ecc;
  outline: none;
}

.comments-section {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  font-family: 'Lato', Arial, sans-serif;
  color: #757a9c;
  text-align: left;
}

.comments-section h2 {
  color: #6a6f96;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.8rem;
  user-select: none;
}

.comments-list,
.replies-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.replies-list {
  margin-top: 1rem;
  margin-left: 3rem;
  border-left: 2px solid #3c436a;
  padding-left: 1.5rem;
}

.comment {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3c436a, #646b9e);
  color: #e0e3ff;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  text-transform: uppercase;
  box-shadow: 0 0 4px #3c436a88;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #54587a;
  user-select: none;
}

.comment-author {
  font-weight: 700;
}

.comment time {
  font-style: italic;
  opacity: 0.7;
}

.comment p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #757a9c;
}

.comment-empty,
.comment-error {
  padding: 1rem;
  color: #ccc;
  font-style: italic;
}


/* Responsive tweaks */
@media (max-width: 480px) {
  .comment {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .replies-list {
    margin-left: 1.5rem;
    padding-left: 1rem;
  }
  
  .avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}


@media (max-width: 768px) {
  table,
  tr,
  td {
    display: block;
    width: 100%;
  }

  td {
    padding: 0.5rem 0;
  }

  .project img,
  .screenshot {
    width: 100%;
    height: auto;
  }

  .project {
    padding: 1rem 1.2rem;
  }
}
