@font-face {
    font-family: 'onderregular';
    src: url('onder-regular-webfont.woff2') format('woff2'),
         url('onder-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
body{
    font-family: 'Helvetica Neue';
    width: 100%;
    margin: 0px;
    padding: 0px;
    background-color: #FAFCF7;
}
main{
    display: flex;                  
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    padding-top: 70px;
    height: 100%;

}
h1{
    font-size: 1.8rem;
    margin: 0;
    padding: 0;
    font-family: "onderregular";
}
hr{
    width: 100%;
    height: 2px;
    border: none;
    background-color: black;
    margin: 0;
    padding: 0;
  }
  /* Container */
  .nav-bar {
     width: 100%;
   }
   
   /* Flex layout for even spacing */
   .nav-list {
     display: flex;
     justify-content: space-between;
     justify-items: center;
     align-items: center;
     list-style: none;
     margin: 10px;
     padding: 0;
   }
   
   /* Links */
   .nav-list a {
     text-decoration: none;
     font-family: 'Helvetica Neue';
     font-size: 16px;
     font-weight: 400;
     color: black;
     text-transform: uppercase;
     letter-spacing: 1px;
   }
   .nav-list a:hover{
     color: #FF71DA;;
   }
   .nav-list a.active{
     font-weight: 700;
     color: black;
     pointer-events: none;
   }
   
  .title{
     display: flex;
     flex-direction: row;
     justify-content: space-between;
     align-items: center;   
     font-family: 'Helvetica Neue';
     padding: 0px;
     margin: 0px;
     width: 100%;
  }
  .nav-container{
   background-color: #FAFCF7;
   position: fixed;
   z-index: 2;
   width: 100%;
   padding: 16px;
   margin: 0;
   box-sizing: border-box;
  }
  footer{
    width: 100%;
    height: 390px;
    padding: 0;
    margin: 0;
    background-color: #232222;
    font-family: "Montserrat";
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  footer h3{
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    padding: 20px;
  }
  footer h4{
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    padding: 0 0 14px 0;
  }
  footer a{
    color: #D8D6D4;
    font-size: 1rem;
    font-weight: 400;
    padding: 0;
    margin: 0;
    text-decoration: none;
  }
  .footer-grid {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  
  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .footer-column{
    display: flex;
    flex-direction: column;
  }
  .footer-column ul li {
    margin-bottom:0;
  }
  
  .footer-column a:hover {
    color: #FF71DA;
  }
  .sub-menu li{
    padding-left: 10px;
  }
  .container{
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 40px;
}
.fixed_content img{ 
    height: 100%;
    width: auto;
    object-fit: contain;
}
.fixed_content{
    display: flex;
    justify-content: center;
    height: 90vh;
    position: sticky;
    top: 90px;
    flex: 0 0 calc(40% - 20px);
    align-items: center;
}
.content{
    flex: 1 1 calc(60% - 20px);
    padding: 2rem;
    padding: 0;
    margin: 0;
}
.panel {
    min-height: 100vh; /* each panel fills the screen */
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: none;
    /* Added smooth scroll animations */
    opacity: 0.3;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation states for smooth scrolling */
.panel.active {
    opacity: 1;
    transform: translateY(0);
}

.panel.fade-out {
    opacity: 0.2;
    transform: translateY(-30px);
}

.about{
    display: flex;
    flex-direction: row;
    gap: 120px;
}
.part{
    width: 20rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.part h2{
    font-family: 'Oswald';
    font-size: 2.5rem;
    margin: 0;
    padding: 0;
}
.values{
    width: 30rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.values h2{
    font-family: 'Oswald';
    font-size: 2.5rem;
    margin: 0;
    padding: 0;
}
.part img{
    width: 100px; 
    height: auto;
    object-fit: contain;
}
.paragraphs{
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0;
    margin: 0;
}
.text{
    display: flex;
    flex-direction: column;
    gap: 64px;
}
.toolkit img{
    width: 550px;
    height: auto;
    object-fit: contain;
}
.flowers img{
    width: 70%;
    height: auto;
    object-fit: contain;
    padding-left: 50px;
}
.projects_container {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #111111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Added smooth scroll animations */
  box-sizing: border-box;
  overflow: hidden; /* Prevent any overflow */
}

.projects_content {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 100px;
  gap: 70px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.projects_content img {
  width: 50%;
  height: auto;
  object-fit: contain;
  padding-bottom: 40px;
  max-width: 450px;
  min-width: 200px; /* Prevent it from getting too small */
}

.projects_container.active {
  opacity: 1;
  transform: translateY(0);
}

.projects_container h2 {
  color: white;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 2.5rem;
  margin: 12px 0 20px 0;
  padding: 0 20px; /* Add horizontal padding for small screens */
}

.my-svg {
  font-family: "Open Sans", sans-serif;
  width: 70%; /* Reduced to ensure both elements fit */
  height: auto;
  max-width: 500px; /* Reduced max-width */
  display: block;
  margin: 0;
  flex-shrink: 1; /* Allow some shrinking if needed */
  min-width: 650px; /* Minimum width to maintain visibility */
}
.active:hover{
  fill: #FF71DA;
}
/* Tablet adjustments */
@media (max-width: 1024px) {
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .fixed_content {
    position: relative; /* remove sticky on tablet */
    flex: 1 1 100%;
    height: auto;
  }

  .fixed_content img {
    max-width: 80%;
    height: auto;
  }

  .content {
    flex: 1 1 100%;
    padding: 20px;
  }

  .about {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .toolkit img {
    width: 100%;
    max-width: 500px;
  }

  .flowers img {
    width: 90%;
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns instead of 3 */
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  main {
    padding-top: 90px; /* more breathing space below fixed nav */
  }

  .title {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  .part {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .part h2 {
    font-size: 2rem;
  }

  .paragraphs,
  .text {
    gap: 20px;
    padding: 0 10px;
  }

  .toolkit img {
    width: 90%;
  }

  .flowers img {
    width: 100%;
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr; /* stack in 1 column */
    gap: 20px;
  }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .nav-list a {
    font-size: 14px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .part h2 {
    font-size: 1.8rem;
  }

  footer h3 {
    font-size: 1.2rem;
  }

  footer h4 {
    font-size: 1rem;
  }

  footer a {
    font-size: 0.9rem;
  }
}