/* Reset and base */
* {
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000000;
  color: #eee;
  overflow-y: auto;
  position: relative;
}
/* Galaxy background canvas */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
  background-color: transparent;
}
/* Header */
header {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
header h1 {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
  color: #eee;
  text-shadow: 0 0 5px #66ccff;
}
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #eee;
  font-weight: 600;
  transition: color 0.3s ease;
  text-shadow: 0 0 3px #66ccff;
}
nav a:hover {
  color: #66ccff;
}
/* Main content */
main {
  max-width: 960px;
  margin: 40px auto 60px;
  padding: 0 20px;
}
/* Welcome section */
.welcome {
  text-align: center;
  margin-bottom: 50px;
  color: #eee;
}
.welcome h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.welcome p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #ccc;
}
.btn-primary {
  background-color: #28a745;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  background-color: #218838;
}
/* Projects section */
.projects {
  margin-bottom: 50px;
}
.projects h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #eee;
  text-align: center;
}
.project-list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.project-card {
  background-color: #1a1a40;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  width: calc(33.333% - 13.33px);
  color: #eee;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.project-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 1px solid #333;
}
.project-card-content {
  padding: 15px 20px;
  flex-grow: 1;
}
.project-card-content h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
}
.project-card-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #ccc;
}
/* Contact button */
.contact-btn {
  display: block;
  margin: 0 auto 40px;
  background-color: #007bff;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  text-align: center;
  width: 160px;
}
/* GitHub Code style buttons */
.btn-shared {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f6f8fa;
  color: #24292f;
  padding: 8px 16px;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin: 0 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04);
}
.btn-shared:hover {
  background-color: #f3f4f6;
  border-color: #c7d2da;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.btn-shared img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.button-container {
  text-align: center;
  margin-bottom: 40px;
}
.scroll-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2s ease, transform 2s ease;
}
.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Footer */
footer {
  text-align: center;
  padding: 15px 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #aaa;
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  text-shadow: 0 0 3px #66ccff;
}
/* Responsive */
@media (max-width: 768px) {
  .project-list {
    flex-direction: column;
  }
  .project-card {
    width: 100%;
  }
  .btn-shared {
    margin: 4px;
    font-size: 12px;
    padding: 6px 12px;
  }
  .btn-shared img {
    width: 16px;
    height: 16px;
  }
}
