* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cormorant Garamond", serif;
}

/* Section title */
h2 {
  margin: 1rem;
  font-size: 2rem;
  text-align: center;
}

/* Canvas and Overlay */
.canvas-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#canvas1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay Container */
.overlay {
  position: absolute;
  bottom: 35vh;
  right: 10%; /* Changed from left to right positioning */
  transform: none; /* Remove the translateX since we're using right alignment */
  width: auto; /* Changed from 100% to auto to prevent full-width */
  color: white;
  text-align: right; /* Changed from center to right */
  z-index: 1;
}

/* Prevent text wrapping for all paragraphs in overlay */
.overlay p {
  white-space: nowrap;
}

/* Primary Text */
.overlay p:first-child {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  text-shadow: 2px 2px 3px white;
  margin-bottom: 0.5rem;
}

/* Secondary Text */
.overlay p:last-child {
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-shadow: 2px 1px 3px rgba(255, 255, 255, 0.3);
}

.category {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  color: white;
  font-size: 24px;
  text-align: center;
}

.backgroundImage {
  width: 100%;
  filter: brightness(30%);
}

body {
  background: black;
}

/* Header and Navigation */
.header {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 2vh;
  padding-bottom: 1vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.navBar {
  display: flex;
  flex: 1;
  justify-content: space-around;
  align-items: center;
  z-index: 1;
}

.logo {
  font-size: 2rem;
  color: #2affff;
  text-decoration: none;
  font-weight: 500;
}

.navBar a {
  font-size: clamp(1.125rem, 2vw, 1.8rem);
  font-weight: 300;
  /* font-style: italic; */
  color: white;
  text-shadow: 2px 3px 2px rgba(42, 255, 255, 0.5);
  text-decoration: none;
  margin-left: 2.5rem;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.navBar a:hover {
  color: #2affff;
  text-shadow: 3px 3px 4px #2affff;
}

.icons {
  position: absolute;
  right: 3%;
  cursor: pointer;
}

.icons img {
  width: 24px;
  height: 24px;
}

/* Projects Section */
#projects {
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  color: white;
  padding-left: 4vw;
  padding-right: 4vw;
}

/* Add this new CSS */
#projects {
  padding: 4rem 2rem;
  background: black;
  color: white;
}

/* @keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
} */

#projects h2 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 300;
  color: white;
  /* animation: titleFadeIn 3s ease-out forwards; */
  text-shadow: 2px 3px 2px rgba(42, 255, 255, 0.5);
}

.project-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.project-category {
  margin-bottom: 4rem;
}

/* h3 are "UX Research & Design" "Development" */
.project-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: white;
  font-weight: 300;
}

.project-card {
  display: block;
  background: rgba(42, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.project-card:hover {
  background: rgba(42, 255, 255, 0.1);
  transform: translateY(-2px);
}

.project-content h4 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #2affff;
}

.project-content p {
  font-size: 1.1rem;
  color: #ffffff99;
  margin-bottom: 1rem;
}

.project-link {
  color: #2affff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.project-card:hover .project-link {
  color: white;
}

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

  .project-card {
    padding: 1.5rem;
  }

  .project-content h4 {
    font-size: 1.2rem;
  }
}

.project-item:visited {
  color: white;
}

.project-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.footer {
  font-size: 1em;
  font-weight: 600;
  color: white;
  font-style: italic;
  text-align: center;
  margin-bottom: 2vh;
  margin-top: 4vh;
}

/* Responsive Design */
@media (min-width: 992px) {
  .icons {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .icons {
    display: none;
  }
}

@media (max-width: 768px) {
  #menuIcon {
    display: block;
  }

  #closeIcon {
    display: none;
  }

  #closeIcon.active {
    display: block;
  }

  #menuIcon.active {
    display: none;
  }

  .navBar {
    display: none;
  }

  .navBar.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    /* background: rgba(0, 0, 0, 0.5); */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  }

  .navBar.active a {
    display: block;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  .overlay {
    bottom: 40vh;
    right: 5%;
    line-height: 0.6em;
  }

  .overlay p:first-child {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  }
  .overlay p:last-child {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1em;
  }

  .project-item {
    font-size: clamp(1rem, 3vh, 1.5rem);
  }

  .project-item:visited {
    color: white;
  }
}
