@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

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

body {
  font-family: Poppins, sans-serif;
  display: flex;
  background-color: #dce3e9;
  transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body,
html {
  overflow-x: hidden;
}

section {
  padding-left: 200px;
}

main section {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

main section.active {
  opacity: 1;
  visibility: visible;
  height: auto;
}

h1 {
  font-size: 2.5rem;
  color: #333;

}

a {
  text-decoration: none;
  color: black;
}

p {
  color: #444;
}

ul {
  list-style: none;
}

abbr {
  text-decoration: none;
  cursor: help;
}

/* Darkmode button */

body.dark-mode {
  /* Dark mode com js */
  background-color: #20201F;
  transition: all 0.3s ease;
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode a {
  color: white;
}

body.dark-mode h1,
body.dark-mode h3 {
  color: goldenrod;
}

body.dark-mode .about-icon {
  color: goldenrod;
}

body.dark-mode .portfolio-subtitle {
  color: white;
}

body.dark-mode .social-name,
body.dark-mode .subtitle-contact {
  color: white;
}

body.dark-mode .progress-text {
  color: white;
}

body.dark-mode progress::-webkit-progress-value {
  background-color: goldenrod;

}

body.dark-mode progress::-webkit-progress-bar {
  background-color: #333;

}

.darkmode-btn {
  width: 50px;
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px;
  cursor: pointer;
}

/* Sidebar lateral */
header {
  width: 300px;
  height: 100vh;
  background-color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 180px;
}

/* Logo */
.logo {
  width: 120px;
  margin-top: 50px;
}

.navbar nav ul {
  width: 100%;
  padding-left: 0;
}

.navbar nav ul li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #ccc;
  text-decoration: none;
  border-bottom: 1px solid #444;
  /* Linha divisória entre os itens do menu */
  transition: ease-in .3s;
}

.navbar nav ul li a:hover {
  transform: scale(1.05);
  color: goldenrod;
}

.navbar nav ul li a.active {
  color: goldenrod;
  transform: scale(1.05);
}

.material-icons {
  margin-right: 1rem;
}

.hamburger {
  display: none;
}

/* Hero section */

.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-content {
  padding-top: 300px;
}

.hero-content h1,
.hero-content h3 {
  margin-bottom: 1rem;
}

.span-name {
  color: goldenrod;
}

.hero-content p {
  margin-top: 1rem;
  line-height: 1.2;
}

.curriculum-btn {
  display: inline-block;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: ease-out .3s;

}

.curriculum-btn:hover {
  transform: scale(1.15);
  background-color: goldenrod;
  color: #333;
  font-weight: bold;
}

.hero-image {
  max-width: 300px;
  margin-top: 300px;

}

.tech-stack {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 100px;
}

.tech-stack p {
  font-weight: bold;
  color: #333;
  margin-right: 80px;
}

/* About section */

.about {
  width: 100%;
  padding-top: 100px;
}

.about h1,
.services h1,
.portfolio h1,
.contact h1 {
  display: inline-block;
  border-bottom: 3px solid goldenrod;
}

.about p {
  max-width: 60rem;
  padding-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

address {
  width: 70%;
  margin-bottom: 3rem;
  border-bottom: 1px solid #444;

}

address a:hover {
  color: goldenrod;
}

#cake-icon,
#local-icon {
  cursor: pointer;
}

.contact-info,
.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.contact-info li i.material-icons {
  margin-right: 8px;
  font-size: 24px;
  vertical-align: middle;
}

.progress-container {
  margin-bottom: 50px;
  position: relative;
  width: 200px;
}

.progress-container p {
  position: absolute;
  bottom: 2%;
  left: 80%;
  font-weight: 500;
}

progress {
  width: 100%;
  height: 20px;
  margin-top: 5px;
  appearance: none;
  /* desativa estilo padrão em alguns navegadores */
  -webkit-appearance: none;
}

progress::-webkit-progress-bar {
  background-color: goldenrod;
  /* cor do fundo da barra */
  border-radius: 10px;
}

progress::-webkit-progress-value {
  background-color: #212121;
  /* cor da barra de progresso */
  border-radius: 10px;
}

.progress-text {
  position: absolute;
  bottom: 80%;
  left: 2%;
  font-weight: bold;
  line-height: 20px;
  pointer-events: none;
}


/* services section */

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;

}

.service-card {
  background-color: #1a1a1ae7;
  padding: 2rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  width: 300px;
  margin: 20px auto;
  max-height: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.596);
  transition: ease-in .3s;
}

.service-card:hover {

  transform: scale(1.05);
}

.service-card h2 {
  color: goldenrod;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: white;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-card i {
  color: white;
  font-size: 2rem;
}


/* Portfolio section */

.portfolio h2 {
  font-size: 1.8rem;
  margin-top: 80px;
  margin-bottom: 100px;

}

.portfolio-container {
  display: flex;
  justify-content: space-between;
  padding: 30px;
}

.portfolio-card {
  width: 300px;
  height: 300px;
  background-image: url('..//assets/chalet-project.png');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(218, 165, 32, 0.438);
  padding: 120px;
  cursor: pointer;
  transition: .3s ease;

}

.portfolio-card:hover {
  transform: scale(1.05);
}

.card2 {
  background-image: url('..//assets/pastel-project.png');
}

.card3 {
  background-image: url('..//assets/skins-project.png');
}


/* Contact section */
.contact h1 {
  margin-bottom: 100px;

}

.contact h2 {
  text-align: center;
  margin-bottom: 20px;
}

.contact h3 {
  font-style: italic;
  font-weight: bold;
  color: goldenrod;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 50px;

}

.contact p {
  color: goldenrod;
  font-weight: 600;
}

.contact-container {
  padding-left: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #444;
}

.contact-icons {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 1.2rem;
  padding-bottom: 50px;
}

.bi-whatsapp {
  color: #25D366;
}

.bi-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.bi-github {
  color: #171515;
}

.bi-linkedin {
  color: #0e76a8;
}

/* Formulario email */

.contact-email h2 {
  margin-top: 30px;
}

.contact-email p {
  color: #444;
  text-align: center;
  padding-bottom: 20px;
}

#contact-form {
  padding-left: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colunas iguais */
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

input {
  height: 30px;
  padding: 10px ;
  border-radius: 10px;
  border: none;
  color: black;
}

textarea {
  border-radius: 10px;
  padding-top: 2px;
  padding-left: 5px;
}

input:focus, textarea:focus {
  outline: none;              
  border-color: rgba(0, 0, 0, 0.445);    
  box-shadow: 0 0 5px #d4af37; 
}

/* Nome - primeira coluna, primeira linha */
#contact-form input[name="name"] {
  grid-column: 1 / 2;
  width: 70%;

}

/* Email - segunda coluna, primeira linha */
#contact-form input[name="email"] {
  grid-column: 2 / 3;
  width: 80%;
}

#contact-form input[name="subject"],
#contact-form textarea[name="message"],
#contact-form button[type="submit"] {
  grid-column: 1 / 3;
  /* Esses itens ocupam as duas colunas */
}

#contact-form input[name="subject"],
#contact-form textarea[name="message"]{
  width: 90%;
}

#contact-form button[type="submit"] {
  width: 40%;
  margin: 0 auto;
  background: goldenrod;
  font-weight: bold;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: ease .3s;
}

#contact-form button[type="submit"]:hover {
  transform: scale(1.05);
} 

/* Modal: fundo escuro e desfoque */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.4);
  display: none; /* escondido inicialmente */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 320px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Botão de fechar */
#close-modal {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  border: none;
  background-color: rgba(255, 0, 0, 0.829);
  color: white;
  border-radius: 4px;
  cursor: pointer;
}
