/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #111827;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c7d2fe #ffffff; 
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

/* Ícone / foto do logo (base) */
.logo-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Quando for foto */
.logo-icon.photo {
  overflow: hidden;
}

/* A imagem */
.logo-icon.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-text {
  line-height: 1.2;
}

/* Navigation */
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
}

.nav-item i {
  width: 18px;
  text-align: center;
}

.nav-item:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.nav-item.active {
  background: #1d4ed8;
  color: #ffffff;
}

/* Ícones de contato na sidebar */
.sidebar-contacts {
  margin-top: auto;
  display: flex;
  flex-direction: row;
  gap: 39px;                    
  padding: 0 0 20px 18px;
}

.sidebar-contacts a,
.sidebar-contacts a:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 30px;             
  cursor: pointer;
}

.sidebar-contacts a:hover {
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* Main – fluxo vertical */
.main {
  padding: 24px 32px 40px;
  display: block;
  width: 100%;
}

/* Hero slider */
.hero-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
  min-height: 220px;
}

/* Slides todo o espaço */
.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 40px;
}

/* Gradientes slide */
.slide-1 {
  background: linear-gradient(120deg, #e5f0ff 0%, #eef2ff 40%, #a5b4fc 100%);
}

.slide-2 {
  background: linear-gradient(120deg, #dbeafe 0%, #a5b4fc 40%, #f9a8d4 100%);
}

/* Slide ativo */
.hero-slide.active {
  display: flex;
}

.hero-content {
  max-width: 720px;
  color: #0f172a;
}

.hero-subtitle {
  font-size: 14px;
  margin-bottom: 8px;
  color: #1f2933;
  opacity: 0.8;
}

.hero-slider h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-description {
  font-size: 14px;
  line-height: 1.5;
}

/* Slider arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.28);
  color: #ffffff;
}

.hero-arrow span {
  font-size: 18px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.4);
}

.hero-arrow-prev {
  left: 16px;
}

.hero-arrow-next {
  right: 16px;
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.25);
  cursor: pointer;
}

.hero-dot.active {
  width: 16px;
  background: #111827;
}

/* Sections */
.section {
  margin-bottom: 32px;
  display: block;
  width: 100%;
}

/* seções principais sempre ocupam uma linha inteira */
#projects,
#publications,
#about {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Project cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.card-body {
  position: relative;
  z-index: 2;
}

/* link invisível todo o card */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-indent: -9999px;
}

.card h3 {
  font-size: 16px;
}

.card-text {
  font-size: 13px;
  color: #4b5563;
}

.card-meta {
  list-style: none;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-meta i {
  margin-right: 4px;
}

/* Publications */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.pub-extra {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

/* About bullets */
.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.55;
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 18px;
  color: #1d4ed8;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-list i {
  font-size: 18px;
  color: #1f2937;
}

.contact-list a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
  color: #1e40af;
}

/* Responsivo */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Ícones no topo em linha MOBILE */
  .sidebar-contacts {
    margin-top: 0;
    flex-direction: row;
    padding-bottom: 0;
    padding-left: 0;
  }

  .main {
    padding: 20px 16px 32px;
  }

  .hero-slide {
    padding: 24px 20px;
  }

  .hero-content {
    text-align: left;
  }
}


#publications,
#about {

  display: block !important;
  width: 100% !important;
  max-width: 100% !important;


  float: none !important;
  clear: both !important;


  flex: 0 0 100% !important;


  grid-column: 1 / -1 !important;
}







