  /* General Styling */

  .shippori-mincho-regular {
      font-family: "Klee One", cursive;
      font-weight: 400;
      font-style: normal;
  }
  .debug .container,
  .debug .container-hero,
  .debug .container-bundle,
  .debug .container-buttons,
  .debug .container-menu,
  .debug .container-nav ul,
  .debug .container-projects ul {
      border: 2px solid red;
  }

  html, body {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      height: 100%;
  }

  body {
    margin: 0;
    background: #e5e5e5;
    font-family: "Klee One", system-ui, sans-serif;
  }

  #bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;           
    pointer-events: none;  
  }

  .last-updated {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #777;
  }

  .container-nav,
  #profile,
  footer {
    position: relative;
    z-index: 1;
  }

  body {
      margin: 0;
      background: radial-gradient(circle at top, #ffffff 0%, #ffffff 60%, #f8f8f8 100%);
      font-family: "Klee One", cursive;
      animation: fadeInPage ease 3s;
      animation-fill-mode: forwards;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      min-height: 100vh;       
  }

  section {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
  }





  .container-hero {
      height: 80vh;
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
  }

  .container-bundle h1{
      margin: 0;
      padding: 0;
      font-size: 1.3em;;
  }

  .container-bundle h2{
      margin: 0;
      padding: 0;
      font-size: 1em;
  }

  .container-bundle{
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-color: #F8F9FA;
      white-space: nowrap;
      height: auto;
      width: auto;
      padding: 1rem 1.3rem;
      border-radius: 12px;
  }

  .container-buttons{
      display: flex;
      gap: 2vw;
      justify-content: center;;
  }

  .container-nav ul{
      list-style-type: none;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2vw;
      margin: 0;
      padding: 0;
  }

  .container-nav {
      height: 8vh;              
      display: flex;
      justify-content: center;
      align-items: center;       
      background-color: #F8F9FA;
      font-size: 15pt;
      flex: 0 0 auto;            
  }

  .container-menu{
      height: auto;
      width: auto;
      display: flex;
      align-items: center;
      flex-direction: column;;
      gap: 0.5rem;
  }

  .project {
      height: 10vh;
      width: 100%;
      background-color: #F8F9FA;
      font-size: 40pt;
  }

  .container-projects ul{
      list-style-type: none;
      display: flex;
      flex-direction: column;

      min-height: 10vh;
      width: 100%;
      margin: 0;
      padding: 0;
      gap: 1vh
  }

  html {
      scroll-behavior: smooth;
  }

  p{
      color:rgb(85, 85, 85);
  }


  /* Desktop Nav */

  a {
      color: black;
      text-decoration: none;
      text-decoration-color: white;
  }

  a:hover{
      color: grey;
      text-decoration: underline;
      text-underline-offset: 0.5rem;
      text-decoration-color: rgb(181,181,181);
  }


  .menu-links {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh; 
      background-color: white; 
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      transition: transform 0.3s ease-in-out;
      transform: translateY(-100%); 
      z-index: 10000; 
  }


  .menu-links a {
      display: block;
      text-align: center;
      font-size: 1.5rem;
      color: black;
      text-decoration: none;
      transition: all 0.3s ease-in-out;
  }

  .menu-links li {
      list-style: none;
  }

  .container-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.container-buttons button {
  display: inline-flex;              
  align-items: center;
  justify-content: center;

  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  background-color: #F8F9FA;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1;                    
  cursor: pointer;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}


.container-buttons button:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.container-buttons button:focus-visible {
  outline: 2px solid #bbb;
  outline-offset: 2px;
}

  /* Sections */


  /* Profile Section */
  #profile{
      position: relative;
  }


  /* Icon */
  .icon{
      cursor: pointer;
      height: 3rem;
      transition: transform 0.3s ease;
  }

  .icon:hover{
      transform: scale(1.1);
  }

  /* About Section */

  /* About layout */
  #about {
    position: relative;
    padding: 3rem 1.5rem;
    align-items: center; /* section is already a flex container */
  }

  .about-layout {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .about-header {
    text-align: center;
    margin-bottom: 0.25rem;
  }

  .title {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0 0 0.25rem 0;
  }

  .about-header p {
    margin: 0.1rem 0;
  }

  /* Timeline */
  .timeline-title {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
  }

  .timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .timeline-date {
    width: 150px;          
    flex: 0 0 150px;       
    text-align: right;
    font-size: 0.8rem;
    color: #9a9a9a;
    padding-top: 0.3rem;

    display: flex;
    flex-direction: column;
    gap: 0.1rem;

    opacity: 0;
    transform: translateX(-12px);
    animation: timelineDateIn 0.5s ease-out forwards;
  }


  .timeline-range {
    line-height: 1.1;
  }

  .timeline-duration {
    font-size: 0.7rem;
    color: #b0b0b0;
  }


  .timeline-panel {
    background-color: #F8F9FA;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;

    opacity: 0;
    transform: translateY(8px);
    animation: panelFadeIn 0.5s ease-out forwards;
  }

  .timeline-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  }

  @media (max-width: 600px) {
    #about {
      padding: 2rem 1rem;        /
    }

    .about-layout {
      width: 100%;
      max-width: 800px;
      margin: 0 auto;           
      gap: 1.5rem;              
    }
  }

  #about a,
  #about a:hover {
    text-decoration: none;
    text-underline-offset: 0;
  }

  #about a:hover {
    color: grey;
  }

  .timeline-role {
    margin: 0 0 0.1rem 0;
    font-size: 0.95rem;
  }

  .timeline-company {
    margin: 0 0 0.4rem 0;
    font-size: 0.85rem;
    color: #555;
  }

  .timeline-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
  }



  /* Projects Section */

  #projects{
      position: relative;
  }


  /* Language Transition */
  .fade-out-content {
      animation: fadeOutContent ease 0.5s;
      animation-fill-mode: forwards;
      pointer-events: none;
  }

  .fade-in-content {
      animation: fadeInContent ease 0.5s;
      animation-fill-mode: forwards;
  }

  .fade-in-content::-webkit-scrollbar {
    display: none;
  }

  .fade-out-content::-webkit-scrollbar {
    display: none;
  }

  .spark {
      position: absolute;
      width: 30px;
      height: 8px;
      border-radius: 3px;
      background-color: black;
      transform: none;
    }


  @media (max-width: 600px) {
  #about {
      padding: 2rem 1rem;
    }

  .about-layout {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    gap: 1.5rem;
  }

  .timeline-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .timeline-date {
    display: none;
  }

  .timeline-item::after {
    display: none;
  }

  .timeline-panel {
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
    margin: 0;              
  }
}


  /* PROJECTS */

  /* Projects layout */
  #projects {
    position: relative;
    padding: 3rem 1.5rem;
    align-items: center; /* section is already a flex container */
  }

  .projects-layout {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .projects-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #777;
  }

  .projects-placeholder-text {
    margin: 0.35rem auto 0;
    max-width: 680px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #666;
  }

  .projects-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .project-item {
    margin: 0;
  }

  .project-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .project-card {
    background-color: #F8F9FA;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;

    opacity: 0;
    transform: translateY(8px);
    animation: panelFadeIn 0.5s ease-out forwards;
  }

  .project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  }

  .project-title {
    margin: 0 0 0.1rem 0;
    font-size: 0.98rem;
  }

  .project-title-link {
    margin-left: 0.35rem;
    font-size: 0.9em;
  }

  .project-meta {
    margin: 0 0 0.4rem 0;
    font-size: 0.8rem;
    color: #555;
  }

  .project-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
  }

  @media (max-width: 600px) {
    #projects {
      padding: 2rem 1rem;
    }
  }

  .projects-more {
    margin: 0.5rem auto 0;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #ddd;
    background-color: #F8F9FA;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition:
      background-color 0.15s ease,
      box-shadow 0.15s ease,
      transform 0.15s ease;
  }

  .projects-more:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  }

  .projects-more:focus-visible {
    outline: 2px solid #bbb;
    outline-offset: 2px;
  }

  /* CONTACT */

  #contact {
    position: relative;
    padding: 3rem 1.5rem;
    align-items: center; 
  }

  .contact-layout {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

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

  .contact-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #777;
  }

  .contact-card {
    background-color: #F8F9FA;
    border-radius: 12px;
    padding: 1rem 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(8px);
    animation: panelFadeIn 0.5s ease-out forwards;
  }

  .contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  }


  @media (max-width: 600px) {
    #contact {
      padding: 2rem 1rem;
    }

    .contact-card {
      margin: 0 0.25rem; 
    }
  }

  @keyframes timelineDateIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-list .timeline-item:nth-child(1) .timeline-panel { animation-delay: 0.15s; }
.timeline-list .timeline-item:nth-child(2) .timeline-panel { animation-delay: 0.30s; }
.timeline-list .timeline-item:nth-child(3) .timeline-panel { animation-delay: 0.45s; }
.timeline-list .timeline-item:nth-child(4) .timeline-panel { animation-delay: 0.60s; }
.timeline-list .timeline-item:nth-child(5) .timeline-panel { animation-delay: 0.75s; }

.timeline-list .timeline-item:nth-child(1) .timeline-date { animation-delay: 0.05s; }
.timeline-list .timeline-item:nth-child(2) .timeline-date { animation-delay: 0.20s; }
.timeline-list .timeline-item:nth-child(3) .timeline-date { animation-delay: 0.35s; }
.timeline-list .timeline-item:nth-child(4) .timeline-date { animation-delay: 0.50s; }
.timeline-list .timeline-item:nth-child(5) .timeline-date { animation-delay: 0.65s; }

.projects-list .project-item:nth-child(1) .project-card { animation-delay: 0.20s; }
.projects-list .project-item:nth-child(2) .project-card { animation-delay: 0.35s; }
.projects-list .project-item:nth-child(3) .project-card { animation-delay: 0.50s; }
.projects-list .project-item:nth-child(4) .project-card { animation-delay: 0.65s; }
.projects-list .project-item:nth-child(5) .project-card { animation-delay: 0.80s; }

#contact .contact-card { animation-delay: 0.15s;}

