html {
  scroll-behavior: smooth;
}

/* Text Alignment */
p,
h1,
h2,
h3,
ul {
  text-align: justify;
}

/* Sticky Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: auto;
  background-color: rgba(0, 0, 0, 0.35);
  /* Semi-transparent black */
  transition: all 0.3s ease-in-out;
  z-index: 1000;
  /* Ensure it's always on top */
  padding: 0.5rem 0;
  /* Use rem for scalable padding */
}

header.shrink {
  padding: 0.3rem 0;
}

section {
  scroll-margin-top: 5em;
}

nav ul li.current a {
  color: #3498db;
}

nav ul li.current i {
  stroke: #3498db;
}

nav ul {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

nav ul.active-menu {
  display: flex;
  /* Show when active */
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.6rem 1rem;
  transition: background-color 0.3s;
  white-space: nowrap;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

nav ul li {
  display: flex;
  align-items: center;
  /* Vertically aligns children */
}

nav a {
  color: white;
}

nav a.current {
  color: #3498db;
}

footer>p {
  justify-content: center;
  text-align: center;
}

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

.filled {
  fill: whitesmoke;
}

/* Mobile Menu Styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle .bar {
  background-color: #fff;
  height: 3px;
  width: 30px;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  font-size: 2vw;
  /* Scales with viewport */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding-top: 3.75rem;
  /* Space for the sticky header */
  white-space: nowrap;
}

/* Canvas for three.js animation */
#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  /* Ensure the canvas is behind your content */
}

/* Positioning the hero content */
.hero-content {
  position: relative;
  z-index: 1;
}

/* Responsive Design for Mobile Navigation */
@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 3.75rem;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
  }

  nav ul li {
    text-align: center;
    margin-bottom: 1rem;
  }

  nav ul li a {
    width: 100%;
    padding: 1rem 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    font-size: 3vw;
    /* Adjust font size for mobile */
  }
}