* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html {
	scroll-behavior: smooth;
}

.btn-contato a{
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	color: var(--claro-color);
	padding: 10px 40px;
	border-radius: 8px;
	font-weight: bold;
	text-decoration: none;
       text-decoration: none;
	transition: transform 0.3s, box-shadow 0.3s;
}
:root {
  --primary-color: #4f46e5;
  --secondary-color: #7c3aed;
  --escuro-color: #0f172a;
  --masEscuro-color: #0a0f1c;
  --claro-color: #e2e8f0;
  --vidro-color: rgba(255, 255, 255, 0.1);
}	

body {
	background-color: var(--escuro-color);
	color: var(--claro-color);
}
.navegacao {
	position: fixed;
	background: rgba(15, 23, 42, 0.8);
	width: 100%;
	z-index: 100;
	padding: 1rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.menu {
	display: flex;
	justify-content: center;
	list-style: none;
	gap: 3rem;
	padding: 0;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--claro-color);
	font-size: 1.5rem;
	cursor: pointer;
}
.menu-link {
	color: var(--claro-color);
  text-decoration: none;
  font-weight: 500;
  font-weight: bold;
  position: relative;
  padding: 0.5rem 0;
}
.menu-link::after {
	content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.4s;
  border-radius: 2px;
}
.menu-link:hover::after {
	width: 100%;
}

.botao-cv {
   display: block;
  margin: 1rem auto 0 auto;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--claro-color);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  max-width: 250px; 
}
.botao-cv:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.2);
}

.cabecalho {
	display: flex;
	min-height: 100vh;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.foto-perfil {
	width: clamp(200px, 40vw, 350px);
	height: clamp(210px, 42vw, 370px);
	box-shadow: 0 0 0 20px rgba(79, 70, 229, 0.3);
	border-radius: 50%;
	border: 4px solid var(--vidro-color);
	animation: flutuar 5s ease-in-out infinite;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
h1 {
	font-size: clamp(2rem, 8vw, 3.5rem);
	margin: 20px;
	font-weight: bold;
	color: var(--primary-color);
}
.cabecalho-subtitulo {
	font-size: clamp(1.2rem, 5vw, 2.5rem);
	color: var(--claro-color);
	margin-left: auto;
	margin-right: auto;
}
h1, .cabecalho-subtitulo {
    text-align: center;
}
.sobre {
	padding: 6rem 3rem;
}
.sobre-titulo {
	font-size: clamp(2rem, 6vw, 3rem);
	color: var(--claro-color);
	text-align: center;
	margin-bottom: 20px;
}

.sobre-caixa {
	padding: 1rem;
	max-width: 1200px;
	margin: 0 auto;
	border-radius: 16px;
	border: 1px solid var(--vidro-color);
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.05);
}

.sobre-paragrafo {
	text-align: center;
	font-size: clamp(1rem, 3vw, 1.2rem);
	line-height: 1.6;
}

.projectos {
	padding: 6rem 2rem;
}

.projectos-titulo {
	text-align: center;
	font-size: clamp(2rem, 5vw, 2.5rem);
	margin-bottom: 50px;
}

.projectos-caixa {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 3rem;
	max-width: 90%;
	margin: 0 auto;
	padding: 0 1rem;
}
.projectos-card {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 16px;
	border: 1px solid var(--vidro-color);
	backdrop-filter: blur(10px);
	overflow: hidden;
	transition: all 0.3s ease;
	cursor: pointer;
}

.projectos-card:hover {
	box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
	transform: translateY(-10px) scale(1.05);
}

.projecto-imagem {
	height: 300px;
	width: 100%;
	object-fit: fill;
}

.caixa-texto-projectos {
	padding: 1rem;
  text-align: justify;
  font-size: clamp(1rem, 3vw, 1rem);
}

.projectos-paragrafo {
	color: rgba(226,  232, 240, 0.8);
	line-height: 1.25rem;
}
.info-projectos {
	margin-bottom: 5px;
}

.contactos {
	padding: 6rem 2rem;
}

.contactos-titulo {
	text-align: center;
	font-size: clamp(2rem, 5vw, 2.5rem);
	margin-bottom: 50px;
}

.formulario-contacto {
	max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid var(--vidro-color);
    backdrop-filter: blur(5px);
    padding: 2rem; 
}
.campo-form{
	width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--vidro-color);
    background: rgba(255, 255, 255, 0.1);
    color: var(--claro-color);
    outline: none;
}
.campo-form:focus{
	border-color: var(--secondary-color);
}
.grupo-form {
	margin-bottom: 1.5rem;
}
.botao-form {
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	color: var(--claro-color);
	border: none;
	padding: 1rem 2rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
	width: 100%;
	transition: all 0.5s ease;
}

.botao-form:hover {
	transform: translateY(-4px);
	box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}
.particulas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: radial-gradient(circle at 10% 20%, var(--primary-color) 0%, transparent 20%),
	radial-gradient(circle at 90% 80%, var(--primary-color) 0%, transparent 20%), var(--masEscuro-color);
	opacity: 0.5;
}
textarea.campo-form {
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
}


.habilidades{
    padding: 4rem 2rem;
}
.habilidades-titulo {
    font-size: clamp(1.8rem, 5vw, 2rem);
    color: var(--claro-color);
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.habilidades-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.habilidades-lista li {
    background: rgba(255,255,255,0.07);
    border-radius: 12px;
    border: 1px solid var(--vidro-color);
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    margin-bottom: 0;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
    transition: transform 0.3s;
    text-align: center;
}

.habilidades-lista li:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.icone-habilidade {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    animation: flutuar-icone 3s ease-in-out infinite;
}

.habilidade-texto {
    display: inline-block;
    animation: flutuar-letra 3s ease-in-out infinite;
    margin-top: 5px;
}



@keyframes flutuar-icone {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes flutuar {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-20px);
	}
}

/* Media Queries para Responsividade */

/* Tablets */
@media (max-width: 1024px) {
  .navegacao {
    padding: 1rem;
  }
  
  .menu {
    gap: 2rem;
  }
  
  .projectos-caixa {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .habilidades-lista {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .navegacao {
    padding: 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .btn-contato {
    order: 0;
  }
  
  .menu-toggle {
    display: block;
    order: 1;
  }
  
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    order: 2;
    width: 100%;
  }
  
  .menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .menu li {
    padding: 0.5rem 1rem;
    text-align: center;
  }
  
  .cabecalho {
    padding: 2rem 1rem;
    min-height: 80vh;
  }
  
  h1 {
    margin: 15px 0;
  }
  
  .sobre, .projectos, .contactos {
    padding: 3rem 1rem;
  }
  
  .projectos-caixa {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }
  
  .habilidades {
    padding: 3rem 1rem;
  }
  
  .habilidades-lista {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .habilidades-lista li {
    min-width: 160px;
    padding: 0.8rem 1rem;
  }
  
  .formulario-contacto {
    padding: 1.5rem;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .navegacao {
    padding: 0.8rem;
  }
  
  .btn-contato a {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  
  .cabecalho {
    padding: 1.5rem 0.5rem;
  }
  
  .botao-cv {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    max-width: 200px;
  }
  
  .sobre, .projectos, .contactos {
    padding: 2rem 0.5rem;
  }
  
  .habilidades {
    padding: 2rem 0.5rem;
  }
  
  .habilidades-lista {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
  }
  
  .habilidades-lista li {
    min-width: 140px;
    padding: 0.6rem 0.8rem;
  }
  
  .icone-habilidade {
    width: 30px;
    height: 30px;
  }
  
  .formulario-contacto {
    padding: 1rem;
  }
  
  .campo-form {
    padding: 0.8rem;
  }
  
  .botao-form {
    padding: 0.8rem 1.5rem;
  }
  
  .footer-content p {
    font-size: 0.9rem;
  }
  
  .footer-social {
    gap: 1rem;
  }
  
  .footer-social a img {
    width: 24px;
  }
}
.footer {
  background: rgba(15, 23, 42, 0.95);
  color: var(--claro-color);
  padding: 2rem 1rem 1rem 1rem;
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid var(--vidro-color);
}
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.footer-social a img {
  filter: brightness(0.8);
  transition: filter 0.3s, transform 0.3s;
}
.footer-social a:hover img {
  filter: brightness(1.2);
  transform: scale(1.1);
}

/* Estilos dos Modais */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  margin: 2% auto;
  padding: 0;
  border: 1px solid var(--vidro-color);
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: slideInUp 0.4s ease-out;
  position: relative;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.modal-body {
  padding: 2rem;
  color: var(--claro-color);
}

.modal-content h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin: 1.5rem 2rem 1rem 2rem;
  text-align: center;
}

.modal-body p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--claro-color);
}

.modal-body ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
  color: var(--claro-color);
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-demo, .btn-code {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 120px;
  text-align: center;
}

.btn-demo {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.btn-code {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-demo:hover, .btn-code:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.btn-code:hover {
  background: var(--primary-color);
  color: white;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: var(--claro-color);
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.close:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

/* Adicionar cursor pointer aos cards de projeto */
.projectos-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.projectos-card:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsividade dos modais */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 85vh;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-content h2 {
    font-size: 1.5rem;
    margin: 1rem 1.5rem 0.5rem 1.5rem;
  }
  
  .modal-image {
    height: 200px;
  }
  
  .modal-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-demo, .btn-code {
    width: 100%;
    max-width: 200px;
  }
  
  .close {
    top: 10px;
    right: 15px;
    font-size: 28px;
    width: 35px;
    height: 35px;
  }
}
