:root {
  --spi-green: #75b700;
  --spi-green-hover: #629900;
  --dark-bg: #3e3d40;
  --text-dark: #333;
  --text-muted: #666;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

body {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #f8f9fa;
}

/* Header & Nav */
.navbar-container {
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: var(--spi-green);
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.2),
    0 2px 4px -1px rgba(0, 0, 0, 0.1);
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.topnav {
  display: flex;
  position: relative;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  color: rgba(33, 37, 41, 0.98);
}

/* Magic Line Animation */
.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: rgba(33, 37, 41, 0.98);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  border-radius: 3px;
  width: 0;
}

/* Mobile Toggler */
.navbar-toggler {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0 1rem;
}

@media (max-width: 991.98px) {
  .navbar-container {
    flex-direction: column;
    align-items: stretch;
  }

  .navbar-container .container {
    display: flex;
    flex-direction: column;
  }

  .navbar-toggler {
    display: block;
    align-self: flex-end;
  }

  .topnav-wrapper {
    display: none;
    width: 100%;
    background: var(--spi-green);
  }

  .topnav-wrapper.show {
    display: block;
  }

  .topnav {
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-link {
    justify-content: center;
    padding: 1rem;
  }

  .nav-indicator {
    display: none;
  }
}

/* Biography Section */
.biography {
  padding: 5rem 0;
  padding-top: 8rem; /* Ajuste para navbar fixed */
  background: white;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.profile-img {
  width: 250px;
  height: 250px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.personal-info h1 {
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.personal-info h3 {
  color: var(--spi-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.personal-info h4 {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1.1rem;
}

.interest-tag {
  display: inline-block;
  background: #f0f7e6;
  color: var(--spi-green);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Social Icons */
.personal-info .icons {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.personal-info .icons img {
  height: 35px;
  width: auto;
  filter: grayscale(1);
  transition: var(--transition);
  opacity: 0.7;
}

.personal-info .icons a:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
}

/* Articles/Bio Section */
.articles {
  padding: 4rem 0;
}

.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--spi-green);
  border-radius: 2px;
}

/* Article List */
#articles-list .article-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--spi-green);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.custom-button {
  background-color: var(--spi-green);
  color: white !important;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(117, 183, 0, 0.3);
}

.custom-button:hover {
  background-color: var(--spi-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(117, 183, 0, 0.4);
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

/* Scroll to top */
#topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--spi-green);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1000;
}

#topBtn:hover {
  background: var(--spi-green-hover);
  transform: scale(1.1);
}

#topBtn::before {
  content: '↑';
  font-size: 1.5rem;
  font-weight: bold;
}

/* Year Pagination */
.year-nav-wrapper {
  background: #eee;
  padding: 0.5rem;
  border-radius: 50px;
  display: inline-flex !important;
}

.year-btn {
  border: none;
  background: transparent;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.year-btn:hover {
  color: var(--spi-green);
}

.year-btn.active {
  background: var(--spi-green);
  color: white !important;
  box-shadow: 0 4px 10px rgba(117, 183, 0, 0.3);
}

@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .personal-info .icons {
    justify-content: center;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.footer-custom {
    background-color: var(--spi-green);
    color: white;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-custom span {
    font-weight: 500;
    letter-spacing: 0.5px;
}