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

body, html {
  height: 100%;
  font-family: 'Helvetica Neue', sans-serif;
}

/* BARRA LATERAL */
.side-nav {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 999;
}

.side-nav a {
  background: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s;
}

.side-nav a:hover,
.side-nav a.active {
  transform: scale(1.1);
  background-color: #381564;
}

.side-nav a.active img {
  filter: brightness(0) invert(1);
}

.side-nav img {
  width: 24px;
  height: 24px;
}

.side-nav a:hover img {
  filter: brightness(0) invert(1);
}

/* Esconde a barra lateral no mobile */
/*@media (max-width: 768px) {
  .side-nav {
    display: none;
  }
}*/

.hero {
  background-image: url('img/marcos.png'); /* use sua imagem real */
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Alinha à esquerda */
  padding-left: 10%; /* Espaço lateral esquerdo */
}

.overlay {
  background-color: transparent; /* Remove fundo branco */
  padding: 0;
  border-radius: 0;
  text-align: left;
  color: #333;
}

h1 {
  font-size: 3rem;
  color: #333;
}

p {
  font-size: 1.5rem;
  margin-top: 10px;
  color: #666;
}

.highlight {
  color: #381564;
  font-weight: bold;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.social {
  margin-top: 20px;
}

.social a {
  margin-right: 15px;
  display: inline-block;
}

.social img {
  width: 24px;
  height: 24px;
}
.about {
  padding: 60px 10% 0px;
  background-color: #fff;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-image img {
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
  padding-left: 40px;
}

.about-text h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
  position: relative;
}

.about-text h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #381564;
  margin-top: 5px;
}

.about-text h3 {
  font-size: 1.8rem;
  color: #381564;
  margin: 20px 0 10px;
}

.about-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

.skills {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.skills li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

.skills li img {
  margin-right: 10px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 5px;
  color: #222;
}

.numbers {
  background: #fff;
  padding: 40px 10% 0px;
  text-align: center;
}

.numbers h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.numbers h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #381564;
  margin: 10px auto 0;
}

.numbers-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.number-box {
  flex: 0 1 200px;
}

.icon {
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width:50px;
}

.number-box h3 {
  font-size: 1.8rem;
  color: #0c1e35;
  margin-bottom: 5px;
}

.number-box p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.3;
  margin-top: 0px;
}

.skills-section {
  padding: 60px 10% 40px;
  background-color: #fff;
  text-align: center;
}

.skills-section h2 {
  font-size: 2rem;
  color: #333;
  position: relative;
  margin-bottom: 40px;
}

.skills-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #381564;
  margin: 10px auto 0;
}

.skills-bar-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 40px;
}

.skill {
  width: 100%;
}

.skill span {
  display: inline-block;
  width: 50%;
  font-weight: bold;
  color: #333;
}

.skill span:last-child {
  text-align: right;
  float: right;
}

.bar {
  background-color: #eee;
  border-radius: 5px;
  height: 10px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0;
  background-color: #381564;
  transition: width 2s ease-in-out;
}

.portfolio {
  padding: 60px 10%;
  background-color: #fff;
  text-align: center;
}

.portfolio h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
  position: relative;
}

.portfolio h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #381564;
  margin: 10px auto;
}

.portfolio-filters {
  margin-bottom: 30px;
}

.portfolio-filters button {
  background: none;
  border: none;
  color: #333;
  font-weight: bold;
  margin: 0 10px;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.3s;
}

.portfolio-filters button.active,
.portfolio-filters button:hover {
  color: #381564;
}

.portfolio-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  align-items: start;
}

.item img {
  width: 256px;
  height: 390px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: center;
}

.caption {
  padding: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.contact {
  padding: 60px 10%;
  background-color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.contact h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #381564;
  margin: 10px auto 0;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.info-item {
  display: flex;
  align-items: center; /* centraliza verticalmente */
  gap: 15px;
  margin-bottom: 15px; /* reduz o espaço entre os blocos */
}

.info-item img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.info-item h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #222;
  line-height: 1.3;
}

.info-item p {
  margin: 2px 0 0; /* diminui o espaço vertical */
  color: #666;
  font-size: 0.95rem;
  line-height: 1.3;
}

.info-item h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #222;
}

.info-item p {
  margin: 5px 0 0;
  color: #666;
  font-size: 0.95rem;
}

.contact-form {
  flex: 2;
  min-width: 300px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
    margin-top: 15px;
}

.contact-form button {
  background-color: #381564;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: rgb(51, 51, 51);
}

.form-status {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #381564;
}
.form-status.error {
  color: #381564;
}

.site-footer {
  background-color: #f7f7f7;
  padding: 40px 10% 20px;
  text-align: center;
}

.site-footer h3 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 20px;
}

.footer-social {
  margin-bottom: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #381564;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 8px;
  transition: background-color 0.3s ease;
}

.footer-social a:hover {
  background-color: #1f0c3a;
}

.footer-social img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
}

.back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #381564;
  color: white;
  font-size: 1.2rem;
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .hero {
    position: relative;
    height: 100vh;
    background-image: url('img/marcos.png');
    background-size: cover;
    background-position: right center;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.65); /* quanto maior o valor, mais branco */
    z-index: 1;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 1;
  }
  .overlay {
    position: relative;
    z-index: 2;
    color: #333;
  }
  .about-text{
    padding-left:0;
  }
  .footer-social a{
    width:30px;
    height: 30px;
  }
  .number-box{
    flex: 0 1 100px;
  }
  .side-nav a {
    width: 35px;
    height: 35px;
  }
  .side-nav img {
    width: 20px;
    height: 20px;
  }
  .side-nav {
    right: 5px;
    left: auto;
  }
  .side-nav {
    background: rgba(255, 255, 255, 0.2); /* ou 0.1 */
    backdrop-filter: blur(6px);
    border-radius: 25px;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .side-nav a::after {
    content: attr(title);
    color: #fff;
    background: #381564;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    position: absolute;
    left: 60px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-50%);
    top: 50%;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .side-nav a:hover::after {
    opacity: 1;
  }
  h1 {
      font-size:2.5rem;
  }
}