/* style.css */

/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Avenir', sans-serif;
  color: #000;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #F3F3F3;
  line-height: 1.6;
  padding-top: 60px; /* Espaço para header fixo */
  padding-bottom: 80px; /* Espaço para footer fixo */
  /* Recomendo adicionar font-smoothing para melhor renderização em Mac */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main, .container {
  flex: 1;
}

/* Header fixo */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  /* Para evitar flicker em scroll */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* espaçamento entre logo, nome e texto */
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  text-transform: none;
  font-size: 1.2rem;
}

.logo .name {
  font-weight: 600; /* ou bold */
  font-size: 1.2rem;
}

.logo .role {
  font-weight: 300;      /* mais fino */
  font-size: 0.8rem;     /* menor tamanho */
  color: #666666;        /* cor mais clara (opcional) */
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #000;
  margin-left: 25px;
  font-weight: 300;
  font-family: 'Avenir', sans-serif;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #EC5A9F;
  left: 0;
  bottom: -4px;
  transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover {
  color: #EC5A9F; /* rosa */
}

nav a.active {
  color: #59B6C7;
  font-weight: 600;
}

/* Espaço para header fixo */
main.homepage {
  display: flex;
  align-items: center;     /* verticalmente ao centro */
  justify-content: center; /* horizontalmente ao centro */
  min-height: 95vh;        /* altura mínima visível */
  padding: 2rem;
}

main.homepage .content {
  padding-left: 5.5rem; /* ou tenta 4rem, 5rem, até ficares satisfeita */
}

.content {
  display: flex;
  gap: 40px;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  align-items: center;
}

.photo img {
  width: 325px;
  height: 325px;
  border-radius: 50%;
  /* filter: grayscale(100%); */
  object-fit: cover;
}

.text {
  flex: 1;
  font-family: 'Avenir', sans-serif;
}

.text h1 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 550;
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.text p {
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 400px;
  text-align: justify;
}

/* Botões circulares coloridos */
.main-buttons {
  display: flex;
  gap: 20px;
}

.main-buttons button {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.main-buttons button:focus {
  outline: 3px solid #EC5A9F;
  outline-offset: 3px;
}

button.curriculo {
  background-color: #59B6C7; /* azul */
}

button.curriculo:hover {
  background-color: #3a8fa3;
}

button.projetos {
  background-color: #EC5A9F; /* rosa */
}

button.projetos:hover {
  background-color: #c9407c;
}

button.contacto {
  background-color: #49B07D; /* verde */
}

button.contacto:hover {
  background-color: #347254;
}

/* Container geral */
.container {
  max-width: 900px;
  margin: 100px auto 80px; /* top para header fixo, bottom para footer */
  padding: 0 20px;
  font-family: 'Avenir', sans-serif;
  color: #000;
}

/* Cabeçalho secundário das páginas */
h1.page-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  margin-bottom: 40px;
  border-bottom: 3px solid #59B6C7; /* linha azul */
  padding-bottom: 10px;
}

/* ===== Página Currículo ===== */

.curriculo-section {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.item-curriculo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

.item-curriculo .descricao {
  max-width: 75%;
}

.item-curriculo .data {
  font-size: 0.9rem;
  color: #666;
  white-space: nowrap;
  margin-left: 1rem;
}

.curriculo-section h2 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  margin: 30px 0 15px;
  color: #EC5A9F;
}

/* ===== Idiomas, Competências e Softwares ===== */
.curriculo-section.skills h2 {
  text-align: left;
  margin-bottom: 2rem;
}

.curriculo-section.skills .downloads-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
/* Sublista (bolinhas vazadas e mais recuadas) */
.curriculo-section.skills ul.sublist {
  padding-left: 1.5rem;
  margin-top: 0.4rem;
}

.curriculo-section.skills ul.sublist li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: #333;
}

.curriculo-section.skills ul.sublist li::before {
  content: '◦'; /* bolinha vazada */
  color: #EC5A9F;
  position: absolute;
  left: 0;
  font-size: 1rem;
}

/* Colunas */
.curriculo-section.skills .downloads-grid .col {
  width: 30%;
}

/* Listas sem bolinhas padrão */
.curriculo-section.skills ul,
.downloads-grid .col ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Bolinha rosa personalizada */
.curriculo-section.skills li,
.downloads-grid .col li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.curriculo-section.skills li::before,
.downloads-grid .col li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #EC5A9F;
  font-size: 1.2rem;
  line-height: 1;
}

/* Softwares com ícones (sem bolinhas) */
.software-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.software-icon img {
  width: 20px;
  height: 20px;
}

/* Linha superior antes da secção Downloads */
.curriculo-section.downloads {
  border-top: 1px solid #ddd;
  padding-top: 2rem;
  margin-top: 2rem;
}
/* ===== Downloads ===== */

.curriculo-section.downloads {
  border-top: 1px solid #ddd;
  padding-top: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.curriculo-section.downloads .downloads-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
  flex-wrap: wrap;
}

.curriculo-section.downloads .col {
  width: 48%;
}

/* Lista sem estilo padrão e com bolinha rosa */
.curriculo-section.downloads ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.curriculo-section.downloads li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.curriculo-section.downloads li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #EC5A9F;
  font-size: 1.2rem;
  line-height: 1;
}

/* ===== Página Projetos ===== */
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* aumenta o min-width */
  gap: 25px;
}

.projeto-card {
  display: flex;               /* para usar flexbox */
  flex-direction: column;      /* conteúdo empilhado vertical */
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  color: inherit;
  text-decoration: none;
  min-height: 50px;           /* força altura mínima para o card */
}

.projeto-card:hover {
  transform: translateY(-5px);
  border-color: #EC5A9F;
  box-shadow: 0 8px 15px rgba(236, 90, 159, 0.3);
}
/* Torna o link dentro do card a ocupar 100% */
.projeto-card a {
  display:block;       /* Faz o link ocupar todo o espaço do card */
  color: inherit;       /* Mantém a cor do texto do card */
  text-decoration: none; /* Remove o sublinhado padrão do link */
  height: 100%;         /* Faz o link ocupar toda a altura do card */
}

.projeto-card h3 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 15px;
  color: #EC5A9F;
}

.projeto-card p {
  font-weight: 300;
  font-size: 0.95rem;
  color: #333;
  flex-grow: 1; /* para ocupar espaço vertical e alinhar o texto */
}
/* Imagens comuns no projeto */
.imagem-projeto {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 8px;
}
.mosaicos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}


.megamenu {
  margin-left: 30px; /* Move o mega menu para a direita */
  display: flex;     /* Para alinhar as imagens em linha */
  gap: 10px;         /* Espaço entre as imagens */
}

/* Imagens Mobile (480x150) lado a lado */
.mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  margin-left: 30px;
}

.mobile img {
  width: auto;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
}

/* === Carrossel === */
.carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.carousel-track-container {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

.carousel-track {
  display: flex;
  padding-bottom: 10px;
  transition: transform 0.5s ease;
}

.carousel-track img {
  flex-shrink: 0;
  width: auto;
  max-width: 650px;
  height: auto;
  border-radius: 8px;
  margin-right: 10px;
}

.carousel-track img:last-child {
  margin-right: 0;
}

/* SETAS com cores diferentes */
.carousel-btn {
  border: none;
  color: white;
  font-size: 20px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

/* Carrossel Banners (BAN 1000x270) */
:root {
  --cor-rosa: #EC5A9F;
  --cor-rosa-hover: #c64984;
}

.btn-banners {
  background-color: var(--cor-rosa);
}
.btn-banners:hover {
  background-color: var(--cor-rosa-hover);
}


/* Carrossel Mobile (MOB 480x75) */
.btn-mobile {
  background-color: #59B6C7;
}

/* Carrossel BB (BAN 1000x120) */
.btn-banners2 {
  background-color: #49B07D;
}
.btn-banners2:hover {
  background-color: #49B07D;
}


@media (max-width: 768px) {
  .carousel-btn {
    font-size: 18px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .carousel-btn {
    font-size: 16px;
    padding: 4px 8px;
  }
}


/* === Lightbox Zoom === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 30px;
  right: 45px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #EC5A9F;
}

/* Espaçamento e cor para os títulos das categorias */
.container > h2 {
  margin-top: 40px;   /* Espaço acima do título para afastar da categoria anterior */
  margin-bottom: 20px; /* Espaço abaixo do título para afastar do conteúdo da categoria */
  color: #EC5A9F;      /* Cor rosa para os títulos */
  font-family: 'Work Sans', sans-serif; /* Mantém a consistência com outros títulos */
  font-weight: 600;
}

/* Espaçamento entre categorias, para que o conteúdo não fique colado */
.container > h2 + .mosaicos,
.container > h2 + .megamenu,
.container > h2 + .carousel,
.container > h2 + .mobile {
  margin-bottom: 30px;  /* Espaço abaixo dos blocos principais */
}

/* Espaçamento para os parágrafos na descrição */
.container > p {
  margin-bottom: 30px;
  line-height: 1.6;
  color: #333;
}

/* Espaçamento para as imagens que são direto filhos da categoria (ex: mobile, mosaicos) */
.imagem-projeto {
  margin-top: 15px;  /* Aumenta o espaço acima das imagens */
}

/* Espaçamento extra para os carrosseis */
.carousel {
  margin-bottom: 40px;
}

/* Título principal FNAC Portugal em rosa */
.container > h1 {
  color: #EC5A9F;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 25px;
}

/* Títulos das categorias (h2) em preto */
.container > h2 {
  color: #000; /* preto */
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
}

#btnTop {
  display: none; /* começa invisível */
  position: fixed;
  bottom: 130px;
  right: 50px;
  padding: 10px 15px;
  font-size: 18px;
  background-color: #EC5A9F;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;  /* garante que fica acima de outros elementos */
}


#btnTop:hover {
  background-color: #c64984;
}



/* ===== Página Contacto ===== */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  color: #59B6C7;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  font-family: 'Avenir', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #EC5A9F;
  outline: 2px solid #EC5A9F;
  outline-offset: 2px;
}

.contact-form button {
  background-color: #49B07D;
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #347254;
}

/* ===== Rodapé ===== */
footer {
  background-color: #f3f3f3;
  padding: 15px 30px;
  font-family: 'Avenir', sans-serif;
  font-size: 14px;
  color: #000;
  border-top: 1px solid #000;
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 1000;
}

footer .top-line {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

footer .top-line span,
footer .top-line a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  color: #4b4646;
  text-decoration: none;
  font-size: 14px;
}

footer .top-line a:hover {
  text-decoration:underline;
}

footer .bottom-line {
  font-weight: 300;
  font-size: 13px;
  color: #666;
  width: 100%;
  text-align: right;
}

.socials {
  display: flex;
  gap: 24px; /* ou 32px, ou o valor que quiseres */
  align-items: center;
}


/* Responsividade */
@media (max-width: 700px) {
  nav a {
    margin-left: 15px;
    font-size: 0.9rem;
  }

  .main-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-buttons button {
    width: 110px;
    height: 110px;
    font-size: 0.9rem;
  }

  main.homepage .content {
    padding-left: 2rem;
  }

  .photo img {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 400px) {
  nav a {
    margin-left: 10px;
    font-size: 0.8rem;
  }

  .main-buttons button {
    width: 90px;
    height: 90px;
    font-size: 0.85rem;
  }

  main.homepage .content {
    padding-left: 0;
    flex-direction: column;
    gap: 20px;
  }
}
