body {
  background-color: #0D1B2A;
  color: #E0E1DD;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.top-nav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  background-color: #1B263B;
  padding: 0.5rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.30);
  z-index: 10;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 0;
}

.menu-toggle .bar {
  width: 28px;
  height: 3px;
  background-color: #E0E1DD;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  width: 190px;
  padding: 0.85rem;
  background-color: rgba(27, 38, 59, 0.98);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  z-index: 15;
}

.nav-menu.open {
  display: flex;
}

.nav-menu a {
  color: #0077B6;
  text-decoration: none;
  padding: 0.85rem 1rem;
  border: 1px solid #0077B6;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
  display: block;
  text-align: center;
}

.nav-menu a:hover {
  background-color: #0077B6;
  color: #E0E1DD;
}

.top-links {
  position: absolute;
  top: 5rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: rgba(27, 38, 59, 0.95);
  padding: 0.75rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.30);
  z-index: 9;
}

.top-links a {
  color: #E0E1DD;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.top-links a:hover {
  color: #0077B6;
  text-decoration: underline;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.profile-card {
  position: relative;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.image-wrapper {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto;
}

.profile-image {
  width: 500px;
  height: 500px;
  object-fit: cover;
  border-radius: 18px;
  border: 6px solid #E0E1DD;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  background-color: #0D1B2A;
  position: relative;
  top: 0;
}

.text-card {
  background-color: #1B263B;
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  margin-top: 1.8rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

h1 {
  color: #E0E1DD;
  margin-bottom: 1rem;
}

p {
  color: #E0E1DD;
  font-size: 1.2rem;
}

footer {
  background-color: #1B263B;
  text-align: center;
  padding: 1rem;
  color: #E0E1DD;
}

.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.about-section h1 {
  color: #E0E1DD;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.card {
  background-color: #1B263B;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: #E0E1DD;
}

.card h2 {
  color: #E0E1DD;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.card p, .card ul {
  color: #E0E1DD;
  line-height: 1.6;
}

.card ul {
  padding-left: 1.5rem;
}

.card li {
  margin-bottom: 0.5rem;
}

.about-card {
  max-width: 800px;
  width: 100%;
  line-height: 1.7;
}

.about-card h1 {
  color: #E0E1DD;
  font-size: 2.4rem;
}

.about-card p {
  color: #E0E1DD;
  font-size: 1.15rem;
}

.projects-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

.projects-section h1 {
  color: #E0E1DD;
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
}

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

.project-card {
  background-color: #1B263B;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 119, 182, 0.2);
}

.project-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #0D1B2A;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h2 {
  color: #E0E1DD;
  margin-bottom: 0.75rem;
  margin-top: 0;
  font-size: 1.5rem;
}

.project-content p {
  color: #E0E1DD;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

@media (max-width: 768px) {
  .projects-section {
    padding: 1rem;
  }

  .projects-section h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-image {
    height: 200px;
  }

  .project-content {
    padding: 1.25rem;
  }
}

.links-toggle {
  color: #E0E1DD;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.links-content {
  margin-top: 0.5rem;
}

.links-content a {
  color: #E0E1DD;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.links-content a:hover {
  text-decoration: underline;
}
canvas {
  background-color: #0D1B2A;
  border: 5px solid #FFB703; /* brighter border */
  border-radius: 12px;
  max-width: 100%;
  box-shadow: 0 0 15px #0077B6; /* glow effect */
}