* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;

  position: relative;
}

main.container {
  flex: 1;
}

body {
  display: flex;
  flex-direction: column;
}

.canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

/* Canvas */
#backgroundCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

header {
  position: relative;
  padding: 120px 24px 60px;
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
  /* helps clip extra canvas if needed */
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1rem;
  color: white;
}

.header-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.header-content p {
  gap: 10;
  max-width: 700px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #f5f5f5;
}

.about-section {
    padding: 60px 24px;
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #000;
}

.close-nav {
  background: none;
  border: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #F5F5F5;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #98FF98;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
}

.logo:hover {
  color: #bfa3e5;
}

.download-cv {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #F5F5F5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #F5F5F5;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
}

.download-cv:hover {
  width: fit-content;
  height: auto;
  box-shadow: 3px 3px 0px #bfa3e5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: #F5F5F5;
  border-radius: 5px;
  border: 1px solid black;
  color: #111111 !important;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-cv:active {
  box-shadow: 3px 3px 0px black;
  background: #bfa3e5;
  border: 1px solid #7C57AD;
}

.work-gallery {
  background-color: #121212;
  padding: 60px 24px;
}

.work-gallery2 {
  background-color: #0a0a0a;
  padding: 60px 24px;
}

.work-gallery3 {
  background-color: #111;
  padding: 60px 24px;
}

.work-gallery h1 {
  font-size: 28px;
  color: #ffffff;
  text-align: left;
  padding-left: 12px;
  margin-top: 60px;
  font-family: 'Poppins', sans-serif;
}

.work-gallery2 h1 {
  font-size: 28px;
  color: #ffffff;
  text-align: left;
  padding-left: 12px;
  margin-top: 60px;
  font-family: 'Poppins', sans-serif;
}

.work-gallery3 h1 {
  font-size: 28px;
  color: #ffffff;
  text-align: left;
  padding-left: 12px;
  margin-top: 60px;
  font-family: 'Poppins', sans-serif;
}

.work-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px auto 0;
  gap: 30px;
  margin-top: 30px;
}


.work-card-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 16px;
}

.work-card-link:hover {
  transform: translateY(-10px);
}

.work-card {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 340px;
  background-color: #1f1f1f;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 16px;
  transition: transform 0.3s ease, border-radius 0.3s ease;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
  justify-content: flex-start;
}


/* Laser outline border */
.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  /* Match card default */

  pointer-events: none;
  z-index: 2;

  background-repeat: no-repeat;
  background-image:
    linear-gradient(to right, #bfa3e5, #bfa3e5),
    linear-gradient(to bottom, #bfa3e5, #bfa3e5),
    linear-gradient(to left, #bfa3e5, #bfa3e5),
    linear-gradient(to top, #bfa3e5, #bfa3e5);
  background-size: 0% 1px, 1px 0%, 0% 1px, 1px 0%;
  background-position: top left, top right, bottom right, bottom left;

  opacity: 0;
  transition: opacity 0.2s ease-in-out, border-radius 0.3s ease;
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(191, 163, 229, 0.6);
  border-radius: 0;
  /* sharp corners on hover */
}

.work-card:hover::before {
  opacity: 1;
  border-radius: 0px;
  /* Sharp corners ONLY on hover */
  animation: traceLaserBorder 1s linear forwards;
  filter: drop-shadow(0 0 6px #bfa3e5);
}


@keyframes traceLaserBorder {
  0% {
    background-size: 0% 1px, 1px 0%, 0% 1px, 1px 0%;
  }

  25% {
    background-size: 100% 1px, 1px 0%, 0% 1px, 1px 0%;
  }

  50% {
    background-size: 100% 1px, 1px 100%, 0% 1px, 1px 0%;
  }

  75% {
    background-size: 100% 1px, 1px 100%, 100% 1px, 1px 0%;
  }

  100% {
    background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
  }
}

.work-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  /* ensures the image fills the space nicely */
  border-radius: 12px;
  margin-bottom: 20px;
}

.work-card h3 {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 10px 0;
}

.work-card p {
  color: #cccccc;
  font-size: 16px;
  margin-bottom: 20px;
}

.view-project {
  font-weight: 600;
  font-size: 16px;
  text-decoration: underline;
  color: #bfa3e5;
  transition: color 0.3s ease;
}

.view-project:hover {
  color: #ffffff;
}

.project-tag {
  display: flex;
  padding: 5px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 21px;
  background: #BFA3E5;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: black;
  width: fit-content;
}

.project-tag.school {
  background: #A3D9FF;
}

.project-tag.work {
  background: #98FF98;
}

.heart-icon {
  font-family: 'Material Icons';
  font-size: 18px;
  color: black;
  line-height: 1;
}

.footer {
  background-color: black;
  color: #666666;
  padding: 42px 24px 80px;
  display: flex;
  justify-content: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: white;
}

.footer-description {
  margin-top: 8px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #666666;
  line-height: 1.6;
  max-width: 250px;
}

.footer-links h4 {
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
}

.footer-links ul li a {
  font-size: 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #F5F5F5;
  text-decoration: none;
  transition: color 0.3s ease;
}


.footer-links a:hover {
  color: #98FF98;
}

.quick-links h4 {
  color: white;
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links ul li {
  margin-bottom: 16px;
}

.quick-links ul li:last-child {
  margin-bottom: 0;
}

.quick-links ul li a {
  color: #666666;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.quick-links ul li a:hover {
  color: #98FF98;
}

.contact-info h4 {
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-info a {
  font-size: 16px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  color: #666666;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.contact-info a:hover {
  color: #98FF98;
}

.contact-info .material-icons {
  font-size: 24px;
  color: #D9D9D9;
  display: inline-block;
  vertical-align: middle;
}

.email-link {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #666666;
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.3s;
}

.email-link:hover {
  color: #98FF98;
}

.material-icons {
  font-size: 20px;
  margin-right: 8px;
  color: #ffffff;
}

#mobileNav {
  display: none;
}

#mobileNav.active {
  display: block;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* <- the dim */
  display: none;
  z-index: 2000;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}


.mobile-nav__list {

  padding: 2rem;
  list-style: none;
}


.mobile-nav__list li {
  margin-bottom: 1rem;
}

.mobile-nav__list li a {
  color: #f5f5f5;
  font-size: 1.2rem;
  text-decoration: none;
  display: block;
  padding: 0.75rem 0;
}

.mobile-nav__list li a:hover {
  color: #aaa;
}


.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  max-width: 300px;
  background: #1c1c1c;
  color: white;
  z-index: 1001;
  padding: 2rem;
  transition: left 0.3s ease;
}

.mobile-nav-overlay.active .mobile-nav {
  left: 0;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

@media (max-width: 768px) {
  header {
    padding-top: 8vh;
    padding-bottom: 2vh;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 24px;
    overflow: visible;
  }

  .navbar {
    height: 56px;
    padding: 0 16px;
  }

  .logo-container {
    margin: 0 auto;
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links ul {
    text-align: center;
  }

  .mobile-nav-overlay.active {
    display: block;
  }

  .mobile-nav {
    background: #1c1c1c;
    width: 80%;
    height: 100%;
    padding: 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideIn 0.3s ease forwards;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 1);
    color: white;
    transition: left 0.3s ease;
    z-index: 1001;
    display: none;
    flex-direction: column;
  }

  .hamburger {
    display: flex;
  }



  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav.active~.hamburger {
    display: none;
  }

  .mobile-nav.active {
    left: 0;
  }

  .mobile-nav.active~.header__content .hamburger {
    display: none;
  }

  .mobile-nav__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
  }

  .logo--centered {
    margin: 0 auto;
    font-weight: bold;
    font-size: 1.5rem;
  }

  .mobile-nav__close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
  }

  .header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

}