body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: url("../assets/Violet\ Landscape\ Background.jpeg") no-repeat center center fixed;
  background-size: cover;
  color: white; /* makes all text white */
}

/* Ensure links are also visible */
a {
  color: white;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2); /* darkness level */
  z-index: -1; /* behind content */
}


header {
  background: rgba(20, 19, 19, 0.9);
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.site-title {
  font-size: 1.2em;
  font-weight: bold;
}

.navtop {
  display: flex;
  align-items: center;
  justify-content: space-between; /* distribute left, center, right */
  padding: 15px;
}

/* Left (brand) and right (contact) sections */
.nav-left, .nav-right {
  flex: 1;
}

/* Center links */
.nav-links {
  display: flex;
  gap: 15px;
  justify-content: center; /* center nav links */
  flex: 2; /* occupy more space to stay centered */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-links li a:hover {
  background: #444;
}

/* Left: brand aligns left */
.nav-left {
  text-align: left;
}

/* Right: contact aligns right */
.nav-right {
  text-align: right;
}

.nav-right a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.nav-right a:hover {
  text-decoration: underline;
}


main {
  padding: 20px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.profile-pic {
  width: 150px;
  border-radius: 50%;
  margin-top: 10px;
}

/* Projects */
.gallery {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.project-thumb {
  width: 120px;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s;
}

.project-thumb:hover {
  transform: scale(1.1);
}

#project-display img {
  width: 250px;
  margin-top: 10px;
}

/* Contact form */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

form input, form textarea {
  padding: 10px;
  border-radius: 5px;
  border: none;
}

form button {
  padding: 10px;
  background: #444;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

form button:hover {
  background: #666;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  background: #222;
  padding: 20px;
  border-radius: 8px;
}

.modal-content img {
  width: 250px;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}
footer {
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  margin-top: 40px; /* space above footer */
}
/* Mobile / Tablet Nav Bar */
@media screen and (max-width: 768px) {
  .navtop {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-left, .nav-right {
    text-align: center;
    flex: none;
    margin: 5px 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    flex: none;
    margin: 5px 0;
  }

  .nav-links li a {
    padding: 8px;
  }
}
