/* Força navbar branca sempre na página About */
.navbar {
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(26,111,196,.10);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* Links sempre escuros */
.navbar .nav-item a,
.navbar .nav-item-active a {
    color: var(--slate) !important;
}

.lang-link {
    color: var(--ink) !important;
}

.navbar .nav-item a:hover {
    color: var(--blue);
    background: var(--sky);
}

.navbar .nav-item-active a {
    color: var(--blue) !important;
}

/* Hamburger sempre escuro */
.hamburger span {
    background: var(--ink) !important;
}

/* Logo sem filtro branco */
.navbar .logo img {
    filter: none !important;
}


/**** PROJETCTS  *****/
.projects-section {
  padding: 80px 0;
  background: #ffffff;
}

.projects-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      padding: 0px 80px;
}

@media (max-width: 1200px) {
      .projects-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .projects-grid {
        grid-template-columns: 1fr;
      }
    }

.projects-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.project-card p{
    padding-top: 40px;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000000;
    flex: 1;
}

.project-card h4{
    padding-top: 20px;
    font-weight: 600;
    font-size: 1.15rem;
    color: #000000;
}

.project-header {
  /* display: flex;
  justify-content: space-between;
  align-items: center;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 15px; */

  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.project-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
  flex: 1;
}

.project-logo {
    order: -1;  
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

/*.category {
  display: inline-block;
  border: 1px solid rgb(191, 191, 191);
  border-radius: 6px;
  color: #000000;
  padding: 4px 10px;
  font-size: 0.8rem;
  margin: 10px auto;
}*/

.status {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.status.in-development {
  background: #e0e7ff;
  color: #1d4ed8;
}

.status.testing-phase {
  background: #fee2e2;
  color: #b91c1c;
}

.project-info {
  padding-top: 25px;
  display: flex;
  gap: 80px;
  font-size: 1rem;
  font-weight: 350;
  color: #7e838b;
  margin: 12px 0;
}

.project-info i {
  margin-right: 6px;
}

.objectives {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px 0;
}

.objectives li {
  margin: 6px 0;
  font-size: 0.95rem;
  font-weight: 350;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #343434;
}

.objectives i{
    color: #337df6;
}


.learn-more {
  margin-top: auto;
  background: #f9fafb;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  color: #111827;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.learn-more:hover {
  transform: translateY(-4px); /* levanta o card */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Efeito no cartão */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px); /* levanta o card */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Título dentro do card */
.project-card h3 {
  transition: color 0.3s ease;
}

.project-card:hover h3 {
  color: #2563eb; /* azul no hover */
}


.project-card:hover .learn-more {
  background-color: #2563eb; /* fundo azul */
  color: #fff; /* texto branco */
}

.join_projects-section{
    background: #f8fafc;
    padding: 0px 20px;
    padding-top: 70px;
    display: flex;
    justify-content: center;
    align-content: center;
}

.join_projects-header{
    text-align: center;
    margin-bottom: 80px;
}

.join_projects-header h2 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.join_projects-header p {
    font-size: 1.3rem;
    font-weight: 450;
    color: #5a6c7d;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {

  .join_projects-header h2 {
    font-size: 2rem;
  }

  .join_projects-header p {
      font-size: 1.1rem;
  }
}

.get_involved-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 30px;
    color: #ffffff;
    /*background: #2563eb;*/
    background: linear-gradient(156deg, #1336d2 0%, #2563eb 100%);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.get_involved-btn:hover {
    transform: translateY(-3px);
    /*background: #1d4ed8;*/
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Estilos do Pop-up */
        .popup-overlay {
            padding-top: 80px;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(4px);
        }

        .popup-overlay.active {
            display: flex;
        }

        .popup-content {
            background: white;
            border-radius: 16px;
            max-width: 700px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: popupSlideIn 0.3s ease-out;
        }

        @keyframes popupSlideIn {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .popup-header {
            padding: 32px 32px 16px;
            text-align: center;
            border-bottom: 1px solid #f0f0f0;
        }

        .popup-header h3 {
            font-size: 1.8rem;
            margin: 0 0 16px 0;
            color: #1a1a1a;
            font-weight: 700;
        }

        .popup-header p {
            color: #666;
            margin: 0;
            font-size: 1.1rem;
            line-height: 1.5;
        }

        .popup-body {
            padding: 24px 32px;
        }

        .steps-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .steps-list li {
            display: flex;
            align-items: flex-start;
            margin-bottom: 16px;
            padding: 16px;
            background: #f8faff;
            border-radius: 8px;
            border-left: 4px solid #667eea;
        }

        .step-number {
            background: #667eea;
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 14px;
            margin-right: 16px;
            flex-shrink: 0;
        }

        .step-content {
            flex: 1;
        }

        .step-title {
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 4px;
        }

        .step-description {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.4;
        }

        .popup-footer {
            padding: 16px 32px 32px;
            text-align: center;
            border-top: 1px solid #f0f0f0;
        }

        .email-btn {
            background: linear-gradient(156deg, #1336d2 0%, #2563eb 100%);
            color: white;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            display: inline-block;
            margin-right: 12px;
        }

        .email-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

        .close-btn {
            background: #f5f5f5;
            color: #666;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            display: inline-block;
            cursor: pointer;
            border: none;
        }

        .close-btn:hover {
            background: #e5e5e5;
        }

        .popup-close-x {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.3s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .popup-close-x:hover {
            background: #f0f0f0;
            color: #666;
        }

        @media (max-width: 768px) {
            .popup-content {
                margin: 20px;
                width: calc(100% - 40px);
            }
            
            .popup-header,
            .popup-body,
            .popup-footer {
                padding-left: 20px;
                padding-right: 20px;
            }
        }