/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #000;
  color: #fff;
  margin: 0;
  overflow-x: hidden;
  padding-top: 70px; /* Espaço para header fixo */
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Navbar toggler */
.navbar-toggler {
  border: 1px solid #0000ff;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230000ff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.sticky-top {
  position: relative;
  width: 100%;
  top: 0;
  left: 0;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.sticky-top.hidden {
  transform: translateY(-100%);
}

/* Navbar Brand */
.custom-brand {
  font-size: 2rem;
  font-weight: 700;
  color: #0000ff;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.custom-brand:hover {
  color: #0000ff;
}

/* Navbar links */
.custom-nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.custom-nav-link:hover {
  color: #0000ff;
  transform: scale(1.05);
}

/* Seção Sobre */
.sobree {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/a.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
}

.sobree::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.sobree .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Títulos */
.custom-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
  text-align: center;
  margin-top: 20px;
}

/* Descrição */
.description {
  background-color: #000;
}

.custom-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 2rem;
}

/* Foto redonda */
.custom-foto {
  max-width: 300px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 5px solid #0000ff;
  background: #1a1a2e;
  padding: 5px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-foto:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Projetos */
.projects {
  padding: 2.5rem;
  background-image: url("../images/code.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 100%;
  box-sizing: border-box;
}

.custom-projeto-card {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
}

.custom-projeto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.custom-projeto-card img {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.custom-projeto-card:hover img {
  transform: scale(1.05);
}

.overlay-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.custom-projeto-card:hover .overlay-text {
  opacity: 1;
}

/* Footer */
.custom-footer {
  background-color: #1a1a2e;
  color: #fff;
  padding: 1.5rem 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
  margin-top: auto;
  text-align: center;
  font-size: 0.9rem;
}

/* Card de Contato */
.card-contact {
  background-color: #828282;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  width: 680px;
  box-sizing: border-box;
}

.card-contact:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.container-cards {
  display: flex;
  justify-content: center; /* alinha no eixo horizontal */
  align-items: center; /* alinha no eixo vertical */
  padding: 40px;
}

.custom-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: black;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.custom-social-link:hover {
  transform: scale(1.1);
  background-color: #3333ff;
}

@media (max-width: 768px) {
  .card-contact {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .card-contact {
    flex-direction: column;
    width: 100%;
    padding: 15px;
  }
}

.custom-title {
  font-size: 2rem;
}

.card-contact {
  gap: 10px;
  padding: 15px;
}

.custom-social-link {
  width: 50px;
  height: 50px;
  font-size: 0.9rem;
}

@media (max-width: 500px) {
  .custom-brand {
    font-size: 1.5rem;
  }

  .projects {
    padding: 2rem 1rem;
  }

  .custom-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .custom-foto {
    max-width: 150px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-width: 2px;
  }

  .card-contact {
    gap: 8px;
    padding: 10px;
    flex-direction: row; /* Ou column para empilhar */
  }

  .custom-social-link {
    width: 45px;
    height: 45px;
    font-size: 0.8rem;
  }
}
