section {
    min-height:100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

#silkscreen-regular {
    font-family: "Silkscreen", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
#silkscreen-bold {
    font-family: "Silkscreen", sans-serif;
    font-weight: 700;
    font-style: normal;
  }

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Slight transparency */
    z-index: 1000;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

nav ul li a:hover {
    text-decoration: underline;
}

#projects {
    background-color: rgba(245, 245, 220, 0.85); /* Soft beige with transparency */
}

#skills {
    background-color: rgba(23, 45, 19, 0.85);
    color: white;
    text-align: center;
    justify-self: center;
    overflow-y: auto;
}

#contact {
    color: white;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    scroll-behavior: smooth;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

/* Particle system background */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Send to background */
    pointer-events: none; /* Prevent interaction with the canvas */
}

@keyframes aurora {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; } /* Midpoint at 50% */
    100% { background-position: 0 50%; }  /* Return to the start */
}

.northern-lights {
    background: linear-gradient(120deg, rgba(0, 255, 123, 0.5), rgba(123, 200, 255, 0.5), rgba(255, 50, 200, 0.5));
    background-size: 400% 400%;
    animation: aurora 8s ease-in-out infinite;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    justify-self: self;
}


.modern-form {
    background: transparent;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 400px;
    width: 100%;
    place-self: center;
    -webkit-text-fill-color: white;
}

.form-input,
.form-textarea {
    width: 100%; 
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc; 
    border-radius: 4px;
    transition: border-color 0.3s; 
    font-size: 16px;
    background: transparent;
    max-width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #6bb77b;
    outline: none;
}

.form-textarea {
    resize: vertical; 
    min-height: 100px;
}

.form-button {
    background-color: #6bb77b; 
    color: #fff; 
    border: none; 
    border-radius: 4px; 
    padding: 10px 15px; 
    font-size: 16px; 
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-button:hover {
    background-color: #d76f30;
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: row;
    }
    .modern-form {
        max-width: fit-content;
    }
    .bio {
        font-size: 14px;
    }
    .skill-pill {
        font-size: 13px;
        padding: 6px 10px;
        min-width: auto;
        max-width: 100%;
        word-break: break-word;
      }
    
      .skills-grid {
        gap: 6px;
        padding: 10px;
      }
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Bio Section on Desktop */
.bio {
    flex: 1;
    text-align: left;
}


.bio-header {
    text-align: center;
}

.bio,
.bio-header,
.bio p {
    color: white;
}

#about {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 200px;
    z-index: 10;
  }

/* Graphic / Headshot container */
.graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Headshot Image Styling */
.graphic img {
    width: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 28px;
    }
    h3 {
        font-size: 18px;
    }
    .bio {
        font-size: 14px;
        padding: 10px;
    }
}

h1 {
    font-family: 'Silkscreen', sans-serif;
    font-size: 70px;
    margin-bottom: 10px;
}

h2 {
    font-family: 'Silkscreen', sans-serif;
    font-size: 40px;
    font-weight: 400;
    margin-top: 1.5em;
}

h3 {
    font-family: 'Silkscreen', sans-serif;
    font-size: 24px;
    margin-bottom: 30px;
}

p {
    font-size: 18px;
    line-height: 1.6;
}

.project-card {
    background-color: #fff;
    padding: 20px;
    margin: 15px auto;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left;
}

.project-card a {
    margin-right: 10px;
    color: #6bb77b;
    text-decoration: none;
}
.project-card a:hover {
    color: #d76f30;
    text-decoration: underline;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
}

.skill-pill {
    background-color: #6bb77b;
    color: white;
    font-size: 16px;
    padding: 10px 16px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

.skill-pill:hover {
    background-color: #d76f30;
    cursor: default;
}
  
/* About container mobile fix */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px 20px;
  }

  .bio {
    text-align: center;
    padding: 0 10px;
    font-size: 16px;
  }

  .bio-header h1 {
    font-size: 32px;
  }

  .bio-header h3 {
    font-size: 18px;
  }

  .graphic {
    margin-top: 20px;
  }

  .graphic img {
    width: 160px;
    max-width: 80vw;
    height: auto;
    margin-bottom: 20px;
  }

  #about {
    padding-top: 50px;
  }

  
}

@media (min-width: 769px) {
    .about-container {
      align-items: center;
      padding: 60px 40px;
    }
  
    .bio {
      text-align: left;
      padding-right: 30px;
    }
  
    .bio-header {
      text-align: left;
      margin-bottom: 20px;
    }
  
    .bio-header h1 {
      font-size: 72px;
      margin-bottom: 10px;
    }
  
    .bio-header h3 {
      font-size: 20px;
      font-weight: 100;
      margin-bottom: 20px;
    }
  
    .graphic img {
      width: 280px;
      border-radius: 12px;
      margin-top: 10px;
    }
}
/* Animation base class */
.fade-in-section {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease-out;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease-out;
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.bounce-in {
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  text-align: center;
  align-items: center;
  margin: 0 auto;
}
.bounce-in.visible {
  opacity: 1;
  transform: scale(1);
  text-align: center;
  align-items: center;
  margin: 0 auto;
}

.slide-up {
  opacity: 0;
  transform: translateY(80px);
  transition: all 1s ease-out;
}
.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in-section,
  .fade-left,
  .bounce-in,
  .slide-up {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 380px) {
    .skill-pill {
      font-size: 12px;
      padding: 6px 10px;
    }
  
    .skills-grid {
      gap: 8px;
      padding: 10px;
    }
  }

  @media (max-width: 600px) {
    .skill-pill {
        font-size: 14px;
        padding: 8px 12px;
    }
    .skills-grid {
        gap: 8px;
        padding: 10px;
    }
    .modern-form {
        padding: 10px;
      }
    
      .form-input,
      .form-textarea {
        font-size: 14px;
      }
}

@media (max-height: 600px) {
    section {
      min-height: auto;
      padding-top: 100px;
      padding-bottom: 100px;
    }
  }