/* Reset & Global Styles */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #111;
  overflow-x: hidden;
}

/*  Navbar & Logo */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e1e0e0;
  color: #fff;
  padding: 0rem 2rem;
  position: relative;
  z-index: 1000;
  margin-bottom: 2rem;
}

a.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  gap: 0.4rem;
}

.logo-image {
  height: 50px;
  width: auto;
  margin-right: 10px;
  /*border-radius: 1rem;*/
}

.logo-primary {
  color: #000099;
}

.logo-secondary {
  color: #00CCFF;
}

/* .logo-primary:hover {
  text-decoration: underline;
  color: #000099;
}

.logo-secondary:hover {
  text-decoration: underline;
  color: #00ccff;
} */

/*  Navigation Menu */
.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.menu li a.active,
.menu li a:hover {
  color: red;
}

/*  Social Toggle & Icons */

.project-social .social-icons {
  display: none;
  align-items: center;
  gap: 0.4rem;
  /*margin-right: 0.5rem;*/
}

.project-social .social-icons img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.project-social .social-icons img:hover {
  transform: scale(1.1);
}

.project-social .social-icon-wrapper {
  position: relative;
  display: inline-block;
  
}

.project-social .social-icon-wrapper img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
}

.project-social .share-icon {
  position: absolute;
  top: -10px;
  right: -6px;
  /*width: 0px;
  height: 0px;*/
  display: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.project-social .social-icon-wrapper:hover .share-icon {
  display: block;
  opacity: 1;
  width: 20px;
  height: 20px;
}

#project-social social-icons {
  display: none;
}

#project-social social-icons.visible {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/*  Fade animation */
@keyframes fadeInIcons {
  from {
    opacity: 0;
    transform: translateX(5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*  Container & Layout */
.container {
  padding: 2rem;
}

main.container {
  flex: 1 0 auto;
  padding-bottom: 6rem;
  position: relative;
  box-sizing: border-box;
}

/*  Project List */
#project-list {
  margin-bottom: 40px;
  position: absolute;
  left: auto;
  right: auto;
  width: 100%;
  bottom: 0;
  padding-bottom: 5rem;
  box-sizing: border-box;
}

/*  Project Group Layouts */
.horizontal-group-wrapper-static {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-end;
  margin: 0 2rem 2rem 2rem;
  /*padding: 10rem 0;*/
  overflow: visible;
  position: relative;
  box-sizing: border-box;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

.horizontal-group-wrapper-static.dense-layout {
  gap: 1.2rem;
}

.horizontal-group-wrapper-static.dense-layout .project-card {
  width: 40px;
  height: 40px;
}

.group-block-static {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.group-stack-static {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  max-height: calc(100vh - 16rem); 
  align-items: center;
  gap: 5px;
  align-content: center;     
  justify-content: flex-end;  
}

.group-stack-static.dense-layout .project-card {
  width: 40px;
  height: 40px;
}

.group-stack-static.dense-layout .project-code-label {
  font-size: 0.6rem;
}

.group-label-bottom-static {
  margin-top: 0.2rem;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
}

/*  Project Cards */
.project-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  /*transition: transform 0.3s ease;*/
  display: inline-block;
  margin-bottom: 0.7rem;
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
}

.project-card-wrapper a {
  text-decoration: none;
  color: inherit;
}

.project-card-wrapper a:hover {
  text-decoration: none;
}

.project-card-wrapper:hover .project-title {
  opacity: 1;
  transform: translateY(0);
}

.project-card {
  width: 60px;
  height: 60px;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  border-radius: 4px;
  position: relative;
  background-color: #fff;
  box-shadow: 0 0 0 1px #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(2.5) translate(10%, -10%);
  transform-origin: center center;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.project-title {
  margin-top: 0.5rem;
  background: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  display: none;
  z-index: 9999;
}

.project-card:hover .project-title {
  display: block;
  /*bottom: -24px;*/
}

.project-tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  color: #000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10000;
}

.project-code-label {
  margin-top: 0rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: flex-start;
  color: #111;
  background: none;
  pointer-events: none;
}

/* Shrinking card sizes based on group density */
.group-stack-static.shrink-1 .project-card {
  width: 50px;
  height: 50px;
}

.group-stack-static.shrink-2 .project-card {
  width: 45px;
  height: 45px;
}

.group-stack-static.shrink-3 .project-card {
  width: 40px;
  height: 40px;
}

.group-stack-static.shrink-4 .project-card {
  width: 35px;
  height: 35px;
}

.group-stack-static.shrink-1 .project-code-label,
.group-stack-static.shrink-2 .project-code-label,
.group-stack-static.shrink-3 .project-code-label,
.group-stack-static.shrink-4 .project-code-label {
  font-size: 0.6rem;
}


/*  Filters Bar */
.filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;        
  padding: 1rem 2rem;
  background: white;
  z-index: 1;
  /*position: relative; */     
  position: absolute;
  /*eft: auto;
  right: auto;*/
  width: 100%;
  bottom: 0;
  padding-bottom: 2rem;
  box-sizing: border-box;
}

.filters-left,
.filters-right {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filters-left a,
.filters-right button {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #000;
  text-decoration: none; 
}

.filters-left a:hover,
.filters-right button:hover {
  color: red;
  text-decoration: none; 
}

.filters-center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-button {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: #000;
  border: none;
  font-weight: bold;
  font-size: 0.9rem;
  font-family: inherit;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.filter-button.active,
.filter-button:hover {
  color: red;
}

/*  Footer */
.footer {
  text-align: center;
  padding: 0rem;
  font-size: 0.9rem;
  background-color: #f2f2f2;
  color: #333;
  margin-top: 0rem;
  margin-bottom: 0rem;
  flex-shrink: 0;
}

.footer p {
  margin: 2px;
  font-size: 0.9rem;
  color: #666;
}

.footer p a {
  color: #0073e6; 
  text-decoration: none; 
  font-weight: 500; 
}

.footer p a:hover {
  text-decoration: underline; 
  color: #005bb5; 
}

.footer-links {
  margin-top: 0.3rem;
}

.footer-links a {
  color: #0073e6;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/*  Responsive */
@media (max-width: 768px) {
  .filters-bar {
    flex-direction: column;
    align-items: center;
  }

  .filters-left,
  .filters-center,
  .filters-right {
    justify-content: center;
  }
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0px;
  margin-bottom: 10px;
  gap: 20px;
}

.project-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-social img {
  width: 28px;
  height: 28px;
  cursor: pointer;
  border-radius: 6px;
}

.project-social .share-icon {
  display: none;
  margin-left: 6px;
}

.project-social .social-icon-wrapper:hover .share-icon {
  display: inline-block;
}

.project-actions {
  display: flex;
  gap: 10px;
}

.project-actions button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.project-actions button:hover {
  background: #f2f2f2;
}



