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

body {
  font-family: "Hack Regular";
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between; /* Align navbar items to the edges */
  align-items: center;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  padding: 10px 0; /* Padding to make navbar larger */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
}

/* Navbar links */
.nav-links a {
  font-size: 1.2rem; /* Increase the font size */
  text-decoration: none;
  color: rgb(0, 0, 0);
  padding: 10px 0;
  transition: font-weight 0.3s ease;
  text-align: center;
  display: block;
  width: 100%;
}

/* Adjust the .nav-links to stretch to the entire width */
.nav-links {
  list-style: none;
  display: flex;
  justify-content: space-between; /* Spread menu items to the edges */
  margin: 0;
  padding: 0;
  width: 100%; /* Full width to reach the edges */
  padding: 0 20px;
  font-family: "BodyFont", "Arial", sans-serif;
}

/* Navbar links */
.nav-links a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 1.2rem;
  padding: 10px 0; /* Vertical padding for better click area */
  transition: font-weight 0.3s ease;
  text-align: center;
  display: block;
  width: 100%;
}

/* Hover effect: switch to bold */
.nav-links a:hover {
  font-family: "MenuFont", "Arial", sans-serif; /* Use the heaviest weight on hover */
}

/* Persistent highlight of active link using a class */
.nav-links a.active {
  font-family: "MenuFont", "Arial", sans-serif; /* Keep text bold for active links */
}

/* Mobile Menu and Other Styles */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 40px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: rgb(0, 0, 0);
  transition: all 0.3s ease;
}

/* Main Content */
main {
  padding-top: 60px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    right: 0;
    top: 60px;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: flex;
  }
}

#selected-projects {
  padding: 20px;
}

#selected-projects h2 {
  text-align: center;
  margin-bottom: 20px;
}

#selected-projects p {
  text-align: center;
  margin-bottom: 30px;
}

/* Grid Container */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}

/* Individual Project Card */
.project-card {
  text-align: center;
}

.project-card a {
  text-decoration: none;
  color: inherit;
}

.project-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
}

.project-card p {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

#aru {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#aru p {
  position: relative;
  z-index: 2;
  font-size: 1.5rem;
  color: white;
}

#pulse-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #ff7676, #ff0000);
  animation: pulse 1s infinite ease-in-out;
  z-index: 1;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Load custom fonts */
@font-face {
  font-family: "MenuFont";
  src: url("Hack-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "BodyFont";
  src: url("fonts/Hack-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

h2 {
  font-family: "MenuFont", "Arial", sans-serif; /* Fallback to Arial if MenuFont isn't available */
}

/* General paragraph text */
p {
  font-family: "BodyFont", "Arial", sans-serif; /* Fallback to Arial if BodyFont isn't available */
}

/* ===================== Gradient Colors for All Links ===================== */
a {
  text-decoration: underline;
}
