/* ========= Root Variables ========= */
:root {
  --primary-color: #000;
  --accent-neon: rgb(184, 255, 255);
  --accent-mesh: rgb(52, 255, 245);
  --header-color: rgb(100, 255, 255);
  --text-color: rgb(216, 251, 251);
  --hover-speed: 0.3s;
  --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --thumbnail-aspect: 16 / 9;
  --menu-hover-color: #fff;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to top, #579cc8, #000);
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  color: var(--text-color);
  overflow-x: hidden;
  position: relative;
}

header.h1 {
  transition: transform 0.2s ease-in-out;
}

@font-face {
  font-family: 'Orbitron';
  src: url('/fonts/orbitron/Orbitron-Regular.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}

/* ========= Three.js Canvas ========= */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  opacity: 0;
  transition: opacity 100ms ease-in-out;
}

/* ========= Header & Navigation ========= */
header {
  font-family: 'Orbitron', sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 1rem 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100vw;
}

header h1 {
  font-size: 2rem;
  margin: 0;
}

header a {
  text-decoration: none;
  color: var(--accent-neon);
  cursor: pointer;
}

/* Container for the back button */
#back-button-container {
  position: absolute;
  top: 1rem;
  /* Starting position, will be adjusted on scroll */
  left: 1rem;
  z-index: 1001;
}

/* Back button styles (mostly unchanged, but now relative to container) */
#back-button {
  position: relative;
  /* Changed from absolute to relative */
  border-color: rgba(184, 255, 255);
  background: #0000003d;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--accent-neon);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  font-size: 1.5rem;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  background: rgba(184, 255, 255, 0.2);
  opacity: 0;
  /* Start hidden */
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  /* Horizontal animation */
  transform: translateX(-100%);
  pointer-events: none;
  /* Prevent clicks when hidden */
}

#back-button.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  /* Slide in from left */
}

#back-button:hover {
  background: rgba(184, 255, 255, 0.5);
}

#back-button.pressed {
  background: rgba(184, 255, 255, 0.5);
}

/* ========= Vertical Menu Panel ========= */
#vertical-menu {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  width: 100vw;
  height: 100vh;
  padding: 0.6rem;
  overflow: hidden;
  overflow-y: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-in;
  background: rgba(0, 0, 0, 0.2);
}

/* When hidden, fade out the menu links (portrait only) */
#vertical-menu.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease-out;
}

/* Menu Panel Header */
#menu-header {
  width: 100%;
}

#menu-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--accent-neon);
  margin: 0;
}

/* ========= Menu Links ========= */
#menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
  text-align: center;
}

/* Each menu link spans 80vw */
#menu-links a {
  display: block;
  width: 20rem;
  padding: 0.5rem 1rem;
  color: var(--accent-neon);
  cursor: pointer;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  transition: background var(--hover-speed) var(--transition-ease),
    color var(--hover-speed) var(--transition-ease),
    opacity 0.25s ease;
  text-shadow: 0 0 5px var(--accent-neon);
  border-radius: 5px;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {

  /* Apply hover styles only for devices that can truly hover (mice) */
  #menu-links a:hover {
    background-color: rgba(184, 255, 255, 0.1);
    color: var(--menu-hover-color);
    text-shadow: 0 0 10px var(--menu-hover-color);
    backdrop-filter: blur(5px);
    /* Applies a Gaussian blur to the background */
    -webkit-backdrop-filter: blur(5px);
    /* Ensures Safari compatibility */
    box-shadow: 0px -1px 2px #dbf7fdc7;
  }
}

#menu-links a.pressed {
  background-color: rgba(184, 255, 255, 0.1);
  color: var(--menu-hover-color);
  text-shadow: 0 0 10px var(--menu-hover-color);
  backdrop-filter: blur(5px);
  /* Applies a Gaussian blur to the background */
  -webkit-backdrop-filter: blur(5px);
  /* Ensures Safari compatibility */
  box-shadow: 0px -1px 2px #dbf7fdc7;
}

#menu-links a:active {
  background-color: transparent;
  color: var(--accent-neon);
  /* Default color */
  text-shadow: 0 0 5px var(--accent-neon);
  /* Default shadow */
  backdrop-filter: none;
}

/* ========= Copyrght Footer ========= */
#footer {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  text-align: center;
  z-index: 1000;
}

/* ========= Page Overlay (Container) ========= */
/* Move the overlay so that it only covers the area below the (fixed) page title.*/
#page-container {
  position: fixed;
  line-height: 2;
  top: 80px;
  /* Reserve top space for the title */
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0b0f177f;
  backdrop-filter: blur(10px);
  /* Applies a Gaussian blur to the background */
  -webkit-backdrop-filter: blur(10px);
  /* Ensures Safari compatibility */
  z-index: 940;
  opacity: 0;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  transform: translateY(100%);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: 0px -2px 2px #89b2b77a;
}

#page-container.active {
  opacity: 1;
  transform: translateY(0);
}

/* Inner structure for the overlay */
#page-container .page-title-wrapper {
  padding: 1rem;
}

#page-container .page-title-wrapper h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin: 0;
  text-align: center;
  color: var(--header-color);
}

/* Make the title “stick” at the top of the screen */
.page-title-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 945;
  padding: 1rem;
  text-align: center;
}

#page-container .overlay-content {
  margin: 0 auto;
  padding: 0;
  /* Optional: adds some spacing around your content */
  box-sizing: border-box;
}

#page-container .page-scroll {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  margin: 60px auto 0 auto;
  height: calc(100vh - 60px);
  /* Adjust if title/header height changes */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* For smoother scrolling on iOS */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  padding-bottom: 100px;
}

#page-container.project-detail-active .page-scroll {
  perspective: 1px;
  max-width: 100vw;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  margin: 0 auto 0 auto;
  border-radius: 10px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#page-container .page-scroll::-webkit-scrollbar {
  display: none;
}

.page-scroll {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.page-scroll.fade {
  opacity: 0 !important;
  pointer-events: none;
  /* Prevent interactions during transition */
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  ;
  transform: translateY(100%);
}

#page-container.active {
  opacity: 1 !important;
  /* Force full opacity for container */
}

/* ========= Category Grid CSS ========= */
/* Category Grid Container */
#category-grid {
  opacity: 1;
  display: grid;
  gap: 1.5rem;
  padding: 1rem;
  max-width: 80vw;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
}

@media (max-width: 1050px) {
  #category-grid {
    max-width: 90vw;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }

  #page-container .page-scroll .project-grid {
    max-width: 900px;
  }
}

@media (max-width: 700px) {
  #category-grid {
    max-width: 100vw;
    grid-template-columns: 1fr;
  }
}

/* category Tile (Item) */
.category-item {
  position: relative;
  aspect-ratio: var(--thumbnail-aspect);
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform var(--hover-speed) var(--transition-ease),
    box-shadow var(--hover-speed);
  background: #000;
  box-shadow: 4px 4px 4px #0000008e;
}

/* Always-visible category title overlay */
.category-item::before {
  content: attr(data-title);
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.33);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-neon);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  text-align: center;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease-in-out;
}

.category-item img {
  width: 100%;
  height: 100%;
  /* Ensures the image fills the container */
  object-fit: cover;
  /* Crops the image as needed */
  display: block;
  transition: transform var(--hover-speed) var(--transition-ease);
}

/* Fade out the inset title when hovering */
.category-item:hover::before {
  opacity: 0;
}

.category-item:focus {
  outline: 2px solid var(--accent-neon);
}

/* category Summary Overlay */
.category-summary {
  font-family: 'Roboto', sans-serif;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.66S);
  color: var(--accent-neon);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--hover-speed) var(--transition-ease);
}

/* Hover & Focus Effects */
.category-item:hover img {
  transform: scale(1.1);
}

.category-item:hover .category-summary,
.category-item:focus .category-summary {
  opacity: 1;
  backdrop-filter: blur(5px);
  /* Applies a Gaussian blur to the background */
  -webkit-backdrop-filter: blur(5px);
  /* Ensures Safari compatibility */
}

/* Summary Text Styling */
.category-summary h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.category-summary p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  margin-bottom: 0rem;
}

/* ========= Project Grid CSS ========= */
/* Project Grid Container */
#project-grid {
  opacity: 1;
  display: grid;
  gap: 1.5rem;
  /* Spacing between tiles */
  padding: 1rem;
  max-width: 80vw;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
}

@media (max-width: 1050px) {
  #project-grid {
    max-width: 90vw;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }

  #page-container .page-scroll .project-grid {
    max-width: 900px;
  }
}

@media (max-width: 700px) {
  #project-grid {
    max-width: 100vw;
    grid-template-columns: 1fr;
  }
}

/* Project Tile (Item) */
.project-item {
  position: relative;
  aspect-ratio: var(--thumbnail-aspect);
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform var(--hover-speed) var(--transition-ease),
    box-shadow var(--hover-speed);
  background: #000;
  /* Fallback background */
  box-shadow: 4px 4px 4px #0000008e;
}

/* Always-visible project title overlay */
.project-item::before {
  content: attr(data-title);
  position: absolute;
  bottom: 0.5em;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.33);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--accent-neon);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease-in-out;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--hover-speed) var(--transition-ease);
}

/* Fade out the inset title when hovering */
.project-item:hover::before {
  opacity: 0;
}

.project-item:focus {
  outline: 2px solid var(--accent-neon);
}

/* Project Summary Overlay */
.project-summary {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, #00000085, #00000000);
  color: var(--accent-neon);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--hover-speed) var(--transition-ease);
}

/* Hover & Focus Effects */
.project-item:hover img {
  transform: scale(1.1);
}

.project-item:hover .project-summary,
.project-item:focus .project-summary {
  opacity: 1;
  backdrop-filter: blur(5px);
  /* Applies a Gaussian blur to the background */
  -webkit-backdrop-filter: blur(5px);
  /* Ensures Safari compatibility */
}

/* Summary Text Styling */
.project-summary h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-summary p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pre-transition {
  opacity: 0;
  pointer-events: none;
  /* ensures it stays hidden */
}

/* ========= Project Detail Page Styling ========= */
.project-detail-content {
  padding-bottom: 100px;
}

.project-detail-content h1 {
  color: var(--header-color);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.75);
}

.project-detail-content h2 {
  color: var(--header-color);
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.75);
}

.project-detail-content h3 {
  color: var(--header-color);
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.75);
}

.project-detail-content p {
  margin-bottom: 10px;
}

.project-detail-content ul {
  margin-left: 40px;
  margin-bottom: 10px;
}

.project-detail-content img,
.project-detail-content video,
.project-detail-content embed {
  width: 100%;
  max-width: 700px;
  margin: 1.5em auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-detail-content h4 {
  color: var(--header-color);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ========= Page Template Styles ========= */

.about-content {
  width: 80vw;
  padding-top: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-content ul {
  margin-left: 40px;
  margin-bottom: 10px;
}

.about-content h2 {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1rem;
  color: var(--header-color);
}

@media (max-width: 1050px) {
  .about-content {
    width: 90vw;
  }
}

@media (max-width: 768px) {
  .about-content {
    width: 95vw;
  }
}

.contact-content {
  width: 80vw;
  padding-top: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h2 {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1rem;
  color: var(--header-color);
}

.contact-content p {
  margin-bottom: 1rem;
}

@media (max-width: 1050px) {
  .contact-content {
    width: 90vw;
  }
}

@media (max-width: 768px) {
  .contact-content {
    width: 95vw;
  }
}

/* Project Banner Styles */
.project-banner {
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 2rem;
  position: relative;
  width: 100vw;
  height: 36vw;
  overflow: hidden;
  perspective: 1px;
  /* Enables depth for child elements */
}

@media (max-width: 1050px) {
  .project-banner {
    height: 45vw;
  }
}

@media (max-width: 768px) {
  .project-banner {
    height: 60vw;
  }
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  transform: translateZ(-1px) scale(2);
  /* Base transform */
}

.project-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 800px) {
  .project-content {
    max-width: 96%;
    /* Use a percentage on smaller screens */
    padding: 0.5rem;
  }
}

.banner-overlay {
  font-family: 'Orbitron', sans-serif;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, #0000008c, #0000002e, #00000000, #00000000, #00000000, #00000000, #00000000);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.banner-overlay h2 {
  color: var(--accent-neon);
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0);
}

@media (max-width: 1050px) {
  .banner-overlay h2 {
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0);
  }
}

@media (max-width: 1050px) {
  .banner-overlay h2 {
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0);
  }
}

.overlay-footer {
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  padding: 2em 1em;
  font-size: 0.7rem;
  opacity: 0.9;
  color: var(--text-color);
  border-top: 1px solid rgba(137, 178, 183, 0.2);
  margin-top: 2em;
}

.overlay-footer .container {
  max-width: 800px;
  margin: 0 auto;
}

.loading-spinner.dots-cycling {
  display: flex;
  /* Align dots in a row */
  justify-content: center;
  align-items: center;
  width: 70px;
  /* Adjust overall width */
  height: 50px;
  /* Adjust overall height if needed for alignment */
  margin: 100px auto;
  /* Or your preferred centering */
}

.loading-spinner.dots-cycling div {
  width: 12px;
  /* Size of each dot */
  height: 12px;
  /* Size of each dot */
  margin: 0 4px;
  /* Spacing between dots */
  background-color: var(--accent-neon);
  /* Your neon color */
  border-radius: 50%;
  animation: dots-cycling-animation 1.4s infinite ease-in-out both;
}

.loading-spinner.dots-cycling div:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-spinner.dots-cycling div:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes dots-cycling-animation {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1.0);
    opacity: 1;
  }
}

.contact-info-group {
  margin-bottom: 1.5rem;
  /* Space between email and phone groups */
}

.contact-info-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
  /* Or your preferred label styling */
  color: var(--text-color);
  /* Or a slightly brighter variant */
}

.copyable-text-area {
  display: flex;
  align-items: center;
  background-color: #1a1f2c;
  /* Dark background for the "text box" */
  border: 1px solid rgba(137, 178, 183, 0.3);
  /* Subtle border, your accent family */
  border-radius: 6px;
  padding: 0;
  /* Padding will be on input and button */
  position: relative;
  /* For the feedback message */
}

.copyable-text-area input[type="text"] {
  flex-grow: 1;
  /* Input takes up available space */
  padding: 0.6em 0.8em;
  border: none;
  background-color: transparent;
  /* Inherits from parent */
  color: var(--accent-neon);
  /* Light, readable text color */
  font-family: 'Roboto', sans-serif;
  /* Or your preferred readable font */
  font-size: 0.95rem;
  outline: none;
  /* Remove default focus outline if button handles focus */
  width: 100%;
  /* Ensure it tries to fill */
  cursor: default;
  /* Show default cursor as it's readonly */
}

.copy-button {
  background-color: transparent;
  border: none;
  padding: 0.6em 0.8em;
  /* Match input padding for alignment */
  cursor: pointer;
  color: var(--accent-neon);
  /* Icon color */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  border-left: 1px solid rgba(137, 178, 183, 0.3);
  /* Separator line */
}

.copy-button:hover,
.copy-button:focus {
  background-color: rgba(137, 178, 183, 0.1);
  /* Subtle hover/focus */
  outline: none;
}

.copy-icon {
  width: 18px;
  /* Adjust icon size */
  height: 18px;
}

.copy-feedback {
  position: absolute;
  top: 50%;
  right: 45px;
  /* Position it to the left of the copy button */
  transform: translateY(-50%);
  background-color: var(--accent-neon);
  color: var(--primary-color);
  /* Dark text on neon background */
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  pointer-events: none;
}

.copy-feedback.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.contact-preference {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.3rem;
}

.contact-value-link {
  color: var(--accent-neon);
  /* Match your link color or input text color */
  text-decoration: none;
  font-weight: normal;
  /* If you want it to look like the rest of the label */
}

.contact-value-link:hover {
  text-decoration: underline;
}

/* Add this to your style.css or relevant stylesheet */
.project-screenshot {
  width: 150px;
  /* Adjust this value to your desired smaller width */
  height: auto;
  /* Ensures the image maintains its aspect ratio */
  display: block;
  /* Optional: if you want to center it or control margins like a block */
  margin-left: 0;
  /* Or 'auto' if you want to center it with display:block */
  margin-right: 0;
  /* Or 'auto' if you want to center it with display:block */
}

div.project-detail-content img.project-screenshot {
  width: 400px;
  height: auto;
  display: block;
  margin: 1em auto;
}

.project-detail-content a:hover,
.project-detail-content a:focus,
.about-content a:hover,
.about-content a:focus,
.contact-content a #emailLink:hover,
.contact-content a #emailLink:focus,
.contact-content a #telNum:hover,
.contact-content a #telNum:focus {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--accent-neon);
  text-shadow: 0 0 5px var(--accent-neon);
}

.project-detail-content a:visited {
  color: #99dddd;
}