
body {
  background: #F2F2F2;
  margin: 0;
  overflow-x: hidden; 
  font-family: 'Space Grotesk';
  font-style: normal;
  height: 2000px; 
}
h1 {
  text-align: center;
  margin-bottom: 30px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: transparent;
  position: relative;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 20px;
  color: black;
  text-decoration: none;
}

.nav-tabs {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-tab {
  font-size: 16px;
  text-decoration: none;
  color: black;
  position: relative;
  transition: color 0.3s;
}

.nav-tab.active,
.nav-tab:hover {
  color: #5f5dff;
}

.nav-tab::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background-color: #5f5dff;
  transition: width 0.3s;
}

.nav-tab:hover::after,
.nav-tab.active::after {
  width: 100%;
}


.burger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger-toggle span {
  width: 25px;
  height: 3px;
  background: #000;
  display: block;
}


.fullscreen-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background: #2f333e;
  width: 100%;
  height: 100%;
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fullscreen-menu.active {
  display: flex;
}

.fullscreen-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.fullscreen-menu a {
  color: white;
  text-decoration: none;
  font-size: 22px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.fullscreen-menu a:hover,
.fullscreen-menu a.active {
  color: #5f5dff;
}

.fullscreen-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: #5f5dff;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}


.filter-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  position: relative;
}

.dropdown-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.filter-toggle {
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
  border: none;
  background: none;
  font-size: 20px;
  color: #000;
  font-family: 'Space Grotesk';
  font-style: normal;

}

.filter-toggle::after {
  content: ' ▾';
  transition: transform 0.3s;
}

.filter-toggle.open::after {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: #F2F2F2;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  display: none;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  min-width: max-content;
}

.dropdown.open {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border: 1px solid #ccc;
  background-color: #F2F2F2;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  min-width: 80px;
  text-align: center;
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: bold;


}

.tag.active {
  background-color: #5f5dff;
  color: white;
  border-color: #5f5dff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px 120px; 
  margin-top: 100px;
  padding: 0 20px;
}
.image-item {
  display: flex;
  align-items: center;
  justify-content: center;
  display: flex ;
}
.image-item img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}
.image-item img:hover {
  transform: scale(1.04);
}
.hidden {
  display: none;
}
.results-count {
  text-align: center;
  font-weight: bold;
  margin-top: 15px;
  color: #444;
}

.results-count #filtersText {
  display: block;
  font-weight: normal;
  margin-top: 4px;
  font-size: 14px;
  color: #333;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: white;
  border-radius: 10px;
  max-width: 800px;
  width: 95%;
  padding: 20px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}

.modal-content img {
  max-width: 300px;
  border-radius: 10px;
  align-self: center;
  height: auto;
}

.modal-details {
  max-width: 400px;
}

.modal-details h2 {
  margin-top: 0;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.true-grid-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 60px 0;
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 20px;
}

.text-block {
  display: block;
  text-align: left;
}

.text-block.center {
  grid-column: 4 / span 6;
}
.text-block.center img {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
}

.text-block.left {
  grid-column: 2 / span 5;
}

.text-block.right {
  grid-column: 7 / span 5;
}

.text-block h1, .text-block h2 {
  margin-bottom: 10px;
}

.text-block p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  font-family: "Manrope", sans-serif;
}

.story-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  background-color: #5f5dff;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(95, 93, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.story-button .icon {
  transition: transform 0.3s ease;
}

.story-button:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(95, 93, 255, 0.5);
}

.story-button:hover .icon {
  transform: translateX(4px);
}
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #5f5dff;
  color: white;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, opacity 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}


.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #5f5dff;
  color: white;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, opacity 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

a.animated-link:not(.logo) {
  position: relative;
  color: #5f5dff;
  text-decoration: none;
}

a.animated-link:not(.logo)::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #5f5dff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

a.animated-link:not(.logo):hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}


footer.footer {
  background: #2f333e;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 160px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

footer .media_logo,
footer .extra {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

footer .media_logo li,
footer .extra li {
  list-style: none;
  margin: 0;
}

footer .media_logo li a {
  font-size: 2rem;
  color: #dfe3f3;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}

footer .media_logo li a:hover {
  transform: scale(1.2);
  color: #5f5dff;
}

footer .extra li a {
  font-size: 1.1rem;
  color: #dfe3f3;
  text-decoration: none;
  transition: color 0.3s;
}

footer .extra li a:hover {
  color: #5f5dff;
}

footer p {
  color: #dfe3f3;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.4;
  margin: 0;
}



.page-container {
  max-width: 100%;
  overflow-x: hidden;
}
.content {
  padding: 120px;
  padding-top: 30px;
}


@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    align-items: center;
  }

  .modal-content img {
    width: 100%;
    max-width: 100%;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 70px;
    padding: 0 10px;
    margin-top: 80px;
  }
  
    .filter-bar {
      flex-direction: column;
      align-items: center;
      gap: 30px;
      margin-bottom: 30px;
    }
  
    .dropdown-wrapper {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .filter-toggle {
      width: 80%;
      text-align: center;
      padding: 12px;
      font-size: 18px;
    }
  
    .dropdown.open {
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
  
    .dropdown .tag {
      width: 100%;
      text-align: center;
      padding: 14px;
      font-size: 16px;
    }

    .nav-tabs {
      display: none;
    }
  
    .burger-toggle {
      display: flex;
    }
  
    body.menu-open {
      overflow: hidden;
    }
    .text-block.center,
    .text-block.left,
    .text-block.right {
      grid-column: 1 / -1;
    }
    .content {
      padding: 30px;
    }
 
    .text-block.center img {
      max-width: 100%;
    }  
    
    .true-grid-layout {
      margin: 30px;
      padding: 0px;
  }

}
