:root {
  --bg-color: #05070a;
  /* Fundo neutro quase preto */
  --text-color: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.07);
  /* Menos translúcido */
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --primary-gradient: linear-gradient(135deg, #001222 0%, #00a9e0 100%);
  /* Gradiente mais sóbrio */
  /* Datalin Brand Colors */
  --datalin-blue-dark: #002855;
  --datalin-blue-light: #00A9E0;
  
  --datalin-btn-bg: rgba(0, 40, 85, 0.6);
  --datalin-btn-border: rgba(0, 169, 224, 0.4);
  --datalin-btn-hover-bg: rgba(0, 169, 224, 0.2);

  --blob-1-color: rgba(0, 169, 224, 0.3);
  /* Azul claro Datalin com baixa opacidade */
  --blob-2-color: rgba(0, 40, 85, 0.4);
  /* Azul escuro Datalin com baixa opacidade */
  --blob-3-color: rgba(0, 119, 182, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  /* Remove body padding for fluid feel */
}

/* Background Blobs Animation */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: drift 20s infinite alternate;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--blob-1-color);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--blob-2-color);
  bottom: 10%;
  right: 10%;
  animation-delay: -5s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: var(--blob-3-color);
  top: 40%;
  left: 40%;
  animation-delay: -10s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

/* Glassmorphism Container */
.glass-container {
  width: 100%;
  /* max-width removed for container-fluid */
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid var(--glass-border);
  border-radius: 0;
  box-shadow: var(--glass-shadow);
  padding: 2rem 2%;
  /* Responsive horizontal padding */
  z-index: 1;
  min-height: 100vh;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #00a9e0);
  /* Destaque azul claro */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.github-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: var(--datalin-btn-bg);
  border: 1px solid var(--datalin-btn-border);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  min-height: 42px; /* Standardize height */
}

.github-btn:hover {
  background: var(--datalin-btn-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 169, 224, 0.3);
  border-color: var(--datalin-blue-light);
}

/* Layout Containers */
.grid-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(to right, #fff, #00a9e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.subcategories-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.subcategory-group {
    flex: 1;
}

.subcategory-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.nav-group-scroll {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-btn {
    padding: 0.6rem 1.2rem;
    background: var(--datalin-btn-bg);
    border: 1px solid var(--datalin-btn-border);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px; /* Standardize height */
}

.nav-btn:hover {
    background: var(--datalin-btn-hover-bg);
    color: #fff;
    transform: translateY(-2px);
    border-color: var(--datalin-blue-light);
    box-shadow: 0 4px 15px rgba(0, 169, 224, 0.3);
    box-shadow: 0 4px 15px rgba(0, 169, 224, 0.3);
}

.nav-instruction {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    margin-top: -1rem; /* Pull closer to nav buttons */
}

/* Tabs Container */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    /* Space for scrollbar if needed on mobile */
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.tab-btn.active {
    color: #fff;
    border-bottom-color: #00a9e0;
}

/* Static Content in Modal */
.static-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #ddd;
}

.static-content strong {
    color: #fff;
}


/* Card Styling */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card .tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.8rem;
  color: #fff;
  align-self: flex-start;
}

/* Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.glass-modal {
  background: rgba(20, 20, 25, 0.95);
  /* Darker background for readability */
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  color: #ddd;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.close-btn:hover {
  color: #fff;
}

/* Copy Button */
.copy-btn {
    display: block;
    margin: 0 auto 1.5rem auto;
    background: rgba(0, 169, 224, 0.15);
    border: 1px solid rgba(0, 169, 224, 0.3);
    color: #00a9e0;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.copy-btn:hover {
    background: rgba(0, 169, 224, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 169, 224, 0.2);
}

.copy-btn.copied {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

/* Markdown Content Styling */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.markdown-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.markdown-body pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.markdown-body code {
  font-family: "Courier New", Courier, monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.markdown-body ul,
.markdown-body ol {
  margin-left: 20px;
  margin-bottom: 1rem;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.markdown-body a {
  color: #667eea;
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.5);
}

footer a {
  color: #fff;
  text-decoration: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Default state for mobile dropdown (hidden on desktop) */
.mobile-category-container {
    display: none;
}

/* Responsive Design */
@media (min-width: 1024px) {
    .glass-container {
        padding: 1.5rem 5%;
    }

    header {
        margin-bottom: 1.5rem;
    }

    header h1 {
        font-size: 2.8rem;
    }

    .intro-section {
        margin-bottom: 2rem;
        gap: 1rem;
    }

    .intro-card {
        padding: 1.2rem;
    }

    .intro-card h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .category-section {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .subcategories-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 2.5rem;
    }

    .subcategory-title {
        font-size: 1.2rem;
        margin-top: 0;
        margin-bottom: 0.8rem;
    }

    .sub-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin-bottom: 0;
    }

    .card {
        padding: 1.2rem;
    }

    .card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 1024px) {
  .glass-container {
    padding: 2rem 3%;
  }

  header h1 {
    font-size: 2.5rem;
  }

  .about-project,
  .intro-section {
    grid-template-columns: 1fr;
    padding: 2rem;
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .glass-container {
    padding: 3rem 1.5rem;
    border-radius: 0;
    /* Keep it fluid on mobile too */
  }
  
  /* Mobile Title Fix */
  header h1 {
    font-size: 1.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  header p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Mobile Nav Buttons */
  .nav-buttons {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      width: 100%;
  }
  
  /* Wrapper for the 3 info buttons to keep them on one line */
  .nav-group-scroll {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      justify-content: space-between;
      gap: 0.5rem;
      width: 100%;
      padding: 0;
      overflow: visible; /* Disable scroll */
      mask-image: none;
      -webkit-mask-image: none;
  }
  
  .nav-group-scroll::after {
      content: none; /* Remove spacer */
  }

  /* Target the nav-btns in the group */
  .nav-group-scroll .nav-btn {
      flex: 1; /* Equal width */
      width: auto;
      padding: 0.6rem 0.2rem; /* Reduced padding */
      font-size: 0.75rem; /* Smaller font */
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      min-height: 40px; /* Consistent height */
  }

  /* GitHub Button */
  .github-btn {
    width: 100%;
    margin-top: 0;
    text-align: center;
    min-height: 40px;
  }

  /* Hide Desktop Tabs */
  .tabs-container {
      display: none;
  }

  /* Show Mobile Dropdown */
  .mobile-category-container {
      display: block;
      margin-bottom: 2rem;
      position: relative;
  }
  
  .category-select {
      width: 100%;
      padding: 1rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      color: #fff;
      font-size: 1rem;
      appearance: none;
      -webkit-appearance: none;
      outline: none;
      backdrop-filter: blur(10px);
      background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      background-size: 1em;
  }

  .category-select option {
      background-color: #05070a; /* Dark background matching theme */
      color: #fff; /* White text */
  }

  .about-project {
    padding: 1.5rem;
    margin-bottom: 3rem;
  }

  .about-content h2,
  .emotional-content h2 {
    font-size: 1.6rem;
  }

  .emotional-content {
    padding-left: 1rem;
  }

  header {
    margin-bottom: 2rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .glass-modal {
    padding: 2rem 1.5rem;
    width: 95%;
  }

  .close-btn {
    top: 1rem;
    right: 1rem;
  }

  .markdown-body h1 {
    font-size: 1.8rem;
  }

  .markdown-body h2 {
    font-size: 1.5rem;
  }

  .markdown-body h3 {
    font-size: 1.2rem;
  }
}

/* Default state for mobile dropdown (hidden on desktop) deleted from here */


/* Feedback System Styling */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px; /* Alinhamento com a tag de versão */
}

.footer-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.feedback-modal-content {
  max-width: 600px;
}

.feedback-intro {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-left: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00a9e0;
  background: rgba(0, 0, 0, 0.3);
}

.form-group select option {
  background-color: #05070a;
  color: #fff;
}

.submit-btn {
  background: var(--primary-gradient);
  border: none;
  padding: 1rem;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 169, 224, 0.3);
}

.close-feedback-btn {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.close-feedback-btn:hover {
  color: #fff;
}

@media (max-width: 480px) {
  .feedback-modal-content {
    padding: 2rem 1.5rem;
  }
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.version-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.8); /* Aumentado para parecer mais ativo */
  padding: 0.3rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px; /* Mesma altura do botão de feedback */
}

.version-tag:hover {
  background: rgba(0, 169, 224, 0.2);
  color: #fff;
  border-color: var(--datalin-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 169, 224, 0.2);
}

/* Estilos para o Modal de Release Notes com fonte reduzida */
.release-notes-content {
  font-size: 0.85rem;
  line-height: 1.6;
}

.release-notes-content h1 { font-size: 1.6rem; }
.release-notes-content h2 { font-size: 1.4rem; }
.release-notes-content h3 { font-size: 1.1rem; }

.release-notes-content p, 
.release-notes-content li {
  color: rgba(255, 255, 255, 0.8);
}
