html {
  scroll-behavior: smooth;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-75px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(75px);
  }
  to {
    opacity: 1;
    transform: translateX(3px);
  }
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #E4E4DE;
    font-family: Helvetica, sans-serif;
    opacity: 1;
    background-image:  radial-gradient(#C4C5BA 2px, transparent 2px), radial-gradient(#C4C5BA 2px, #E4E4DE 2px);
    background-size: 80px 80px;
    background-position: 0 0,40px 40px;
    background-color: #E4E4DE;
}

header {
    height: 80px;
    background: #C4C5BA;
    color: "#1B1B1B";
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Helvetica, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

h1 {   
    color: rgba(0,0,0);
    font-size: 50px;
}

#pendulums {
  display: block;
  width: 100%;
  height: 40vh;
  z-index: 0;
}

#pendulum-box {
  margin-bottom: 0;
}


#intro {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0px;
  padding: 20px 40px 0 40px;
}

#intro .content {
    transform: translateX(-150px);
}


#intro .content h1 {
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInRight 2.2s ease-in-out forwards;
}

#intro .content p {
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInLeft 2.2s ease-in-out forwards;
}

#intro .content h1 {
  animation-delay: 0.5s;
}

#intro .content p {
  animation-delay: 2.5s;
}


#intro-image img {
  width: 400px;            /* Adjust to fit your design */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* MOBILE SUPPORT */

@media (max-width: 768px) {
  #intro {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding-top: 0px;
  }

  #intro .content {
    transform: none;
  }

  #intro .content h1,
  #intro .content p {
    transform: none !important;
    animation: none !important;
    text-align: center;
    opacity: 1;  /* make sure it's visible */
  }

  #intro-image img {
    width: 80%;
    max-width: 300px;
  }
}

#about {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  width: 100%;
  overflow: visible;
}

#aboutSpringCanvas {
  display: block;
  width: 100vw;   /* wider than the viewport */
  max-width: none;
  height: 120px;
  touch-action: none;
  margin-left: 0vw; /* centers it visually if needed */
  margin-bottom: 0;
}


/* Enable hover only on visible painted parts of paths */
#about svg path {
  pointer-events: visiblePainted;
}

/* Base state of SVG */
#about svg {
  margin: 0 20px;
  width: 300px;
  height: auto;
  filter: drop-shadow(0px 0px 0px #858585);
  transition: filter 300ms ease-in-out, transform 300ms ease-in-out;
}

/* On hover of any path, style the SVG */
#about svg:hover {
  filter: drop-shadow(5px 5px 5px #858585);
  transform: translateY(-5px);
}


#about p{
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1.5em;
  margin-left: 5%;
  margin-right: 5%;
}


#workSpringCanvas {
  display: block;
  width: 100vw;   /* wider than the viewport */
  max-width: none;
  height: 120px;
  touch-action: none;
  margin-left: 0vw; /* centers it visually if needed */
  margin-bottom: 0;
}

#MyWork h1 {
  font-size: 30px;
  color: #000;
  text-align: center;
}

#MyWork iframe {
   width: 75%;
  height: 400px;
  margin-left: 12.5%;
  margin-top: 30px;
  margin-bottom: 30px;
}

#MyWork h3 {
  font-size: 20px;
  color: #000;
  text-align: center;
}