@import "afont.css";

    :root {
      --bg-main: #ffffff;
      --bg-light: #f6f7f8;
      --bg-header: #404040;
      --bg-footer: #404040;
      --text-main: #1f2933;
      --text-muted: #6b7280;
      --algreen:#7bc240;
      --accent: #7bc240;
      --border-color: #e5e7eb;
      --max-width: 1100px;
    }

    * { box-sizing: border-box; }

    html, body {
      height: 100%;
      margin: 0;
    }

    body {
      margin: 0;
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text-main);
      background: var(--bg-main);
      line-height: 1.6;

      overflow: hidden;
    }

    #page-scroll {
      height: 100vh;
      overflow-y: auto;
    }


    a { color: inherit; text-decoration: none; }

    .container {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 2rem;
    }

    section { padding: 3rem 0; }

    h1, h2, h3 {
      font-weight: 500;
      line-height: 1.2;
      margin-top: 0;
    }

    h2 { font-size: 2rem; margin-bottom: 1.5rem; }

    p { xmax-width: 65ch; color: var(--text-muted); }

    /* ---------- Header ---------- */

    main {
      min-height: 100vh;
    }
    main h1 {     
      padding-top: 10px;
    }

    header {
      position: fixed;
      top: 0;
      width: 100%;
      background: var(--bg-header);
      border-bottom: 1px solid #e5e7eb;
      transform: translateY(-100%);
      transition: transform 0.3s ease;
      z-index: 100;
    }

    header.visible {
      transform: translateY(0);
    }

    footer {
      background: var(--bg-footer);
      width:100%;
    }

   .projects-section {
   }

    .nav {
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .logo img {
      height: 40px;
      xfilter: brightness(0) invert(1) brightness(0.8)
              drop-shadow(0.5px 0px 0px #ddd) 
              drop-shadow(-0.5px 0px 0px #ddd);              
      transition: filter 0.3s ease;   
    }

    .logo img:hover {
      filter: none; 
    }


    .nav-links {
      display: flex;
      gap: 2rem;
      font-size: 0.95rem;
    }

    .user-links,
    .nav-links a {
      color: #ddd;
      font-weight: bold;
    }

    .user-links:hover,
    .nav-links a:hover {
      color: var(--algreen);
    }

    .nav-links a[selected] {
      text-decoration: underline;
      font-weight: bold;
    }


    /* ---------- Hero ---------- */

    .hero {
      padding: 7rem 0 8rem;
      background: linear-gradient(
        to bottom,
        #d3ebbf, /*#c4e4aa,*/
        #ffffff 30%
      );
      border-bottom: 1px solid #f0f1f3;
    }

    .hero-logo {
      margin-bottom: 3rem;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .hero-logo.shrink {
      opacity: 0;
      transform: scale(0.85);
    }

    .hero-logo img {
      height: 130px;
    }

    .hero h1 {
      font-size: 3rem;
      max-width: 22ch;
      margin-bottom: 1.5rem;
    }

    .hero p {
      font-size: 1.1rem;
      margin-bottom: 2.5rem;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
    }

    .btn {
      padding: 0.75rem 1.5rem;
      border-radius: 6px;
      font-size: 0.95rem;
      font-weight: 500;
      border: 1px solid transparent;
    }

    .btn-primary {
      background: var(--accent);
      color: white;
    }

    .btn-secondary {
      border-color: #d1d5db;
      background: transparent;
    }

    .btn-secondary:hover {
      background: #f3f4f6;
    }

    /* ---------- Features ---------- */
    .features {
      background: var(--bg-light);
    }

    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 3rem;
    }

    .feature h3 {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }

    /* ---------- How it works ---------- */
    .workflow {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 2rem;
      margin-top: 3rem;
    }

    .step {
      padding: 1.5rem;
      border-left: 3px solid var(--accent);
      background: #fafafa;
    }

    .step span {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

/* ---------- Audience ---------- */
    .audience ul {
      list-style: none;
      padding: 0;
      margin-top: 2rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
    }

    .audience li {
      padding: 1rem;
      background: #fafafa;
      border: 1px solid #e5e7eb;
    }

/* ---------- Footer ---------- */

.hp-footer {
    width: 100%;
    background: var(--bg-footer);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-shrink: 0; /* Prevents shrinking */
}
.hp-footer-title {
  margin:0;
  font-size: 14px;
  padding: 12px 0px;
}
.hp-footer-item {
  padding-left: 10px;
  font-size:  0.95rem;
}
.hp-column {
    width: 20%; /* Each column takes roughly 1/3 of the footer */
}


/* ///////////////////////////////////////////////////////////////////////*/

.controls-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.xcontrols-bar {
  padding: 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}


/* Container positioning */
.action-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

/* The three dots button */
.menu-dots-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.menu-dots-btn:hover {
  background-color: var(--bg-light);
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* The hidden menu box */
.dropdown-content {
  display: none; /* Hidden by default */
  position: absolute;
  right: 0;
  top: 110%;
  background-color: white;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
  z-index: 100;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* Menu items */
.dropdown-content a {
  color: var(--text-main);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: #f9f9f9;
  color: var(--accent);
}

.dropdown-content a .icon {
  margin-right: 10px;
  font-weight: bold;
}

/* Class to show the menu via JS */
.show {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

  .search-input {
    flex-grow: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
  }

      .search-input:focus { border-color: var(--accent); }

      .filters { display: flex; gap: 0.5rem; }
      .filter-btn {
        padding: 0.5rem 1rem;
        border-radius: 6px;
        border: 1px solid var(--border-color);
        background: white;
        cursor: pointer;
        font-size: 0.85rem;
      }
      .filter-btn.active { background: var(--bg-light); border-color: var(--text-main); font-weight: 500; }

.filter-btn.active {
  background: #e9f5df;
  border-color: var(--accent);
  color: var(--text-main);
}



      .project-list-container {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
      }


      table {
        width: 100%;
        border-collapse: collapse;
        text-align: left;
        font-size: 0.9rem;
      }

      th { padding: 1rem; font-weight: 500; border-bottom: 1px solid var(--border-color); }
      td { padding: 1.2rem 1rem; border-bottom: 1px solid var(--border-color); vertical-align: top; }
      tr:last-child td { border-bottom: none; }
      tbody tr:hover { background: #fafafa; }
      table tr td:nth-child(4) {text-align: right}
      
      thead {
        xbackground: linear-gradient(
          to bottom,
          #E5F3D9,
          #ffffff
        );
        background:#F2F9EC;
      }


      .project-title { font-weight: 600; color: var(--text-main); display: block; margin-bottom: 0.2rem; cursor: pointer}
      .project-desc { color: var(--text-muted); font-size: 0.85rem; display: block; max-width: 400px; }
      
      /* Tags & Badges */
      .tag-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
      .tag {
        background: #edf2f7;
        color: #4a5568;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
      }

      .status-badge {
        font-size: 0.75rem;
        padding: 2px 6px;
        border-radius: 4px;
        background: #fee2e2;
        color: #b91c1c;
      }

      .owner-info { display: flex; align-items: center; gap: 8px; }
      .avatar-sm { width: 24px; height: 24px; background: #e5e7eb; border-radius: 50%; }

      .actico {padding: 0 5px;}

      .dividabletd {
        max-width: 200px;
        word-break: break-word;
        overflow-wrap: anywhere;
        white-space: normal;
      }

.search-container {
    position: relative;
    display: flex;
    flex: 1;
}

.search-input {
    padding-right: 40px; /* Space for the X button */
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    filter: blur(0.4px);
    opacity: 0.5;
    font-size: 1.2rem;
    transition: all 0.2s;
    z-index: 10;
}

.clear-btn:hover {
    filter: blur(0);
    opacity: 1;
}

mark.highlight {
    background-color: #7bc24044; /* Light ALGator green */
    color: inherit;
    border-radius: 2px;
    font-weight: 600;
} 

th.sort-asc::after { content: " ↑"; font-size: 0.8rem; color: var(--accent); }
th.sort-desc::after { content: " ↓"; font-size: 0.8rem; color: var(--accent); }


.navBarEl {
    font-size: 16px;
    font-family: Arial, sans-serif; 
    background-color: var(--navbar_background);
    color: var(--navbar_fontcolor);
    transition: color 0.3s ease, text-decoration 0.3s ease, text-underline-offset 0.3s ease;
    padding: 0px 15px;
    cursor: pointer;
    margin-top: 1px;
}



/* FAQ page */
.faq-container {
  width: 95%;
  margin: 30px auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}
.faq-item {
  border: 1px solid #ddd;
  padding: 15px 0;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 6px;
  padding-left: 5px;
}
.faq-item:hover {
  background-color: #eef7ed;
}
.faq-title {
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-title::after {
  content: ''; /* Down arrow */
  font-size: 0.8em;
  transition: transform 0.3s;
}
.faq-item.open .faq-title::after {
  transform: rotate(-180deg); /* Rotate the arrow when open */
}
.faq-answer {
  display: none;
  padding: 10px 10px 0px 20px;
  color: #555;
  font-size: 1em;
  line-height: 1.5;
  border-top: 1px solid #eee;
  text-align: justify;
}
.faq-item.open .faq-answer {
  display: block;
}



/* Screenshots */
.ss-gallery {
    display: flex;
    flex-wrap: wrap;
}
.ss-thumbnail {
    width: 25vw;
    margin: 10px;
    cursor: pointer;
    border: 2px solid #ccc;
    transition: transform 0.3s;
}
.ss-thumbnail:hover {
    transform: scale(1.1);
}
.ss-thumbnail-container {
    align-content: center;
    position: relative;
    display: inline-block;
    margin: 10px;
}
.ss-thumbnail-containerplus {
    position: relative;
    display: inline-block;
}
.ss-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}
.ss-modal-content {
    margin: auto;
    display: block;
    width: 80%;
}
.ss-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.ss-close:hover,
.ss-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.ss-zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 1);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    pointer-events: none; /* So clicking the icon still clicks the image */
}



/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-institution {
    align-self: flex-start;
  }
}
@media (max-width: 700px) {
  .hero h1 { font-size: 2.3rem; }
  .hero-logo img { height: 90px; }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}