/* Google Fonts */
:root {
  --font-syne: "Syne Mono", monospace;
  --font-montserrat: "Montserrat", sans-serif;

  /* Color Palette */

  --blue-1: #010b40; /* Azul escuro */
  --blue-2: #021e73; /* Azul médio escuro */
  --blue-3: #010a26; /* Azul quase preto */
  --blue-4: #1374f2; /* Azul neon forte */
  --blue-5: #1b8ef2; /* Azul neon claro */
  --white-cool: #dadada;

  /* Box shadow RBA*/
  --blue-4-rgba: rgba(19, 115, 242, 1);
  --blue-5-rgba: rgba(26, 141, 242, 1);
}

/* General Definitions */

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-montserrat);
  background-color: var(--blue-3);
  color: rgb(255, 255, 255);
}

hr {
  width: 50%;
  margin: 2rem auto;
  border: 1px solid var(--blue-4);
  box-shadow: 0 0 10px var(--blue-5);
  opacity: 0.8;
}

/* Neon Buttons */

.neon-btn {
  display: inline-block;
  background: linear-gradient(145deg, var(--blue-3), #2a3e5c);
  color: white;
  border: none;
  padding: 0.75em 1.5em;
  font-family: var(--font-syne);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 0 2px var(--blue-4-rgba), 0 0 5px var(--blue-4-rgba),
    0 0 10px var(--blue-5-rgba), 0 0 12px var(--blue-5-rgba);
  transition: box-shadow 0.3s ease;
  border: 2px solid transparent;
  min-width: 150px;
  text-align: center;
  height: 50px;
}

.neon-btn:hover,
.neon-btn:focus {
  box-shadow: 0 0 5px var(--blue-5-rgba), 0 0 10px var(--blue-5-rgba),
    0 0 15px var(--blue-5-rgba), 0 0 20px var(--blue-5-rgba);
  transform: translateY(-2px);
  border: 2px solid var(--blue-5-rgba);
}

/* Neon hr */

.neon-hr {
  border: none;
  width: 50%;
  height: 1px;
  background-color: #00f0ff;
  box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff, 0 0 30px #00f0ff;
  margin: 20px auto;
}

/* Navbar */

.navbar {
  background-color: var(--blue-3) !important;
  padding: 0.8rem 1rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--font-syne);
  color: var(--blue-4);
  text-shadow: 2px 2px 5px var(--blue-5-rgba);
  text-decoration: none;
}

.navbar-brand img {
  height: 35px;
  vertical-align: middle;
}

.brand-main {
  font-size: 1.8rem;
  background: linear-gradient(90deg, #8e2de2, #4a00e0, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--blue-5);
  text-shadow: none;
  font-style: italic;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  align-items: center;
  font-family: var(--font-syne);
  font-weight: 500;
  margin-bottom: 0;
}

.nav-link {
  font-size: 1.1em;
  color: var(--white-cool);
}

.nav-link:hover {
  color: var(--blue-4);
  font-weight: 700;
  font-size: 1.3em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-item {
  list-style: none;
}

/* Sidebar */

.sidebar-glass {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  background: rgba(1, 10, 38, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 3px 0 20px var(--blue-4-rgba);
  overflow-x: hidden;
  transition: width 0.4s ease;
  padding-top: 60px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-glass a {
  padding: 14px 32px;
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--white-cool);
  display: block;
  font-family: var(--font-syne);
  font-weight: 500;
  letter-spacing: 1px;
  transition: 0.2s ease;
}

.sidebar-glass a:hover {
  color: var(--blue-4);
  background-color: rgba(19, 116, 242, 0.1);
}

.sidebar-glass .closebtn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2.2rem;
  color: var(--blue-4);
  cursor: pointer;
  border: none;
}

/* Mobile Topbar */

.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 15px;
  background-color: var(--blue-3);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

.mobile-topbar .navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.mobile-topbar img {
  height: 30px;
}

/* Open Button Sidebar */

.openbtn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background-color: transparent;
  border: none;
  color: var(--blue-4);
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 1002;
  font-family: var(--font-syne);
  text-shadow: 0 0 6px var(--blue-4);
}

/* Partycles effect */

#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lottie-animation {
  width: 100%;
  max-width: 550px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Banner */

.banner {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  overflow: hidden;
  z-index: 2;
}

.banner-img img {
  width: 300px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 2px var(--blue-4-rgba), 0 0 5px var(--blue-4-rgba),
    0 0 10px var(--blue-5-rgba), 0 0 12px var(--blue-5-rgba);
  opacity: 0.8;
}

.banner-title h1 {
  font-family: var(--font-syne);
  font-size: 2.5em;
  text-align: center;
  color: var(--blue-4);
  text-shadow: 2px 2px 6px var(--blue-5-rgba);
}

.banner-title p {
  font-family: var(--font-montserrat);
  font-size: 1.3em;
  text-align: center;
  color: var(--white-cool);
  padding: 25px;
}

.cursor {
  display: inline-block;
  font-weight: bold;
  color: var(--blue-5);
  animation: blink 0.7s steps(2, start) infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* About me */

.about-me {
  display: flex;
  padding: 25px;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.about-me-title h2 {
  font-family: var(--font-syne);
  color: var(--blue-4);
  font-size: 2.3em;
  text-shadow: 2px 2px 6px var(--blue-5-rgba);
}

.about-me-title h2:hover {
  transform: scale(1.1);
  text-shadow: 0 0 8px var(--blue-5-rgba), 0 0 20px var(--blue-5-rgba),
    0 0 30px var(--blue-5-rgba);
}

.about-me p {
  max-width: 800px;
  font-size: 1.3em;
  color: var(--white-cool);
  font-weight: 400;
  text-align: left;
}

/* Skills */

.skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
}

.skills-title {
  display: flex;
}

.skills-title h2 {
  font-family: var(--font-syne);
  color: var(--blue-4);
  font-size: 2.3em;
  text-shadow: 2px 2px 6px var(--blue-5-rgba);
}

.skills-title h2:hover {
  transform: scale(1.1);
  text-shadow: 0 0 8px var(--blue-5-rgba), 0 0 20px var(--blue-5-rgba),
    0 0 30px var(--blue-5-rgba);
}

.skills-carousel {
  padding-top: 25px;
  max-width: 650px;
  width: 100%;
  height: auto;
}

#carouselExampleDark {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0px 0px 15px var(--blue-5-rgba);
}

.carousel-caption p {
  background-color: rgba(255, 255, 255, 0.8);
  color: rgb(0, 0, 0);
  border-radius: 8px;
  font-weight: 500;
  font-family: var(--font-montserrat);
  padding: 15px;
}

.carousel-caption h5 {
  font-family: var(--font-syne);
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 15px;
}

/* Experiência Profissional */

.exp-prof {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exp-prof-title h2 {
  font-family: var(--font-syne);
  color: var(--blue-4);
  font-size: 2.3em;
  text-shadow: 2px 2px 6px var(--blue-5-rgba);
}

.exp-prof-title h2:hover {
  transform: scale(1.1);
  text-shadow: 0 0 8px var(--blue-5-rgba), 0 0 20px var(--blue-5-rgba),
    0 0 30px var(--blue-5-rgba);
}

.exp-prof-card .card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 15px;
}

.exp-prof-card .card {
  max-width: 300px;
  min-height: 100%;
  color: var(--blue-1);
  text-align: center;
  background: linear-gradient(135deg, var(--white-cool), #f0f0f0);
  box-shadow: 0 4px 15px var(--blue-5-rgba);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  padding-top: 10px;
  border-radius: 15px;
}

.exp-prof-card .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px var(--blue-4-rgba);
}

.card-text span {
  font-family: var(--font-syne);
  font-weight: 600;
  color: var(--blue-4);
  display: block;
  margin-bottom: 10px;
}

/*Projects*/

.projects {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.projects-title {
  display: flex;
  justify-content: center;
  align-items: center;
}

.projects-title h2 {
  font-family: var(--font-syne);
  color: var(--blue-4);
  font-size: 2.3em;
  text-shadow: 2px 2px 6px var(--blue-5-rgba);
}

.projects-title h2:hover {
  transform: scale(1.1);
  text-shadow: 0 0 8px var(--blue-5-rgba), 0 0 20px var(--blue-5-rgba),
    0 0 30px var(--blue-5-rgba);
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Flip cards */
.flip-card {
  background-color: transparent;
  width: 420px;
  height: 480px;
  perspective: 1500px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(1, 11, 64, 0.3);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 10px;
  cursor: pointer;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(1, 11, 64, 0.15);
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.flip-card:hover .flip-card-front img {
  transform: scale(1.05);
}

.flip-card-back {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: var(--white-cool);
  transform: rotateY(180deg);
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid var(--blue-4);
  box-shadow: inset 0 0 15px rgba(26, 141, 242, 0.25);
}

.flip-card-back h5 {
  font-family: var(--font-syne);
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--blue-5);
}

.flip-card-back p {
  font-size: 1em;
  margin-bottom: 25px;
  font-family: var(--font-montserrat);
  color: var(--white-cool);
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Services offer */

.serv-offer {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.serv-offer-title h2 {
  font-family: var(--font-syne);
  color: var(--blue-4);
  font-size: 2.3em;
  text-shadow: 2px 2px 6px var(--blue-5-rgba);
  text-align: center;
}

.serv-offer-title h2:hover {
  transform: scale(1.1);
  text-shadow: 0 0 8px var(--blue-5-rgba), 0 0 20px var(--blue-5-rgba),
    0 0 30px var(--blue-5-rgba);
}

.serv-offer i {
  padding: 6px;
  font-size: 32px;
  color: var(--white-cool);
  text-shadow: 1px 1px 2px var(--blue-5-rgba);
  transition: transform 0.3s ease;
}

.serv-offer i:hover {
  color: var(--blue-4);
  transform: scale(1.15);
}

.serv-offer h5 {
  font-size: 1.2em;
  color: var(--blue-4);
  font-family: var(--font-syne);
  display: flex;
  align-items: center;
  gap: 10px;
}

.serv-offer p {
  font-size: 1em;
  color: var(--white-cool);
  font-family: var(--font-montserrat);
  font-weight: 500;
}

.services .shadow {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
}

/* Testimony */

.testimony {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimony-title {
  text-align: center;
  margin-bottom: 20px;
}

.testimony-title h2 {
  font-family: var(--font-syne);
  color: var(--blue-4);
  font-size: 2.3em;
  text-shadow: 2px 2px 6px var(--blue-5-rgba);
  margin-bottom: 20px;
}

.testimony-title h2:hover {
  transform: scale(1.1);
  text-shadow: 0 0 8px var(--blue-5-rgba), 0 0 20px var(--blue-5-rgba),
    0 0 30px var(--blue-5-rgba);
}

/* Swiper Container */

.swiper {
  width: 100%;
  max-width: 800px;
  height: 400px;
  padding-bottom: 40px;
}

.swiper-slide {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  box-shadow: 2px 2px 8px var(--blue-5-rgba);
  padding: 20px;
  color: var(--white-cool);
  font-family: var(--font-syne);
  height: 100%;
  transition: gap 0.3s ease, align-items 0.3s ease;
}

.swiper-slide img {
  border-radius: 50%;
  height: 150px;
  width: 150px;
  object-fit: cover;
  border: 3px solid var(--blue-4);
  display: block;
  flex-shrink: 0;
  margin: 0 auto;
  transition: margin 0.3s ease;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  transition: opacity 0.3s ease;
}

.card-content h5 {
  font-size: 1.5em;
  color: var(--blue-4);
  margin-bottom: 10px;
}

.card-content p {
  font-size: 1.1em;
  line-height: 1.5;
  color: white;
}

.card-content i {
  padding: 5px;
  color: var(--blue-4);
}

.card-content small {
  display: block;
  margin-top: 10px;
  font-size: 0.9em;
  color: var(--white-cool);
}

.swiper-pagination-bullet {
  background: var(--white-cool);
  opacity: 1;
  width: 14px !important;
  height: 14px !important;
}

.swiper-pagination-bullet-active {
  background: var(--white-cool);
}

/* Talk to me */

.talk-to-me-title h2 {
  font-family: var(--font-syne);
  font-size: 2.5em;
  text-align: center;
  color: var(--blue-4);
  text-shadow: 2px 2px 6px var(--blue-5-rgba);
}

.talk-to-me-title h2:hover {
  transform: scale(1.1);
  text-shadow: 0 0 8px var(--blue-5-rgba), 0 0 20px var(--blue-5-rgba),
    0 0 30px var(--blue-5-rgba);
}

.talk-to-me-title h2 i {
  font-size: 1em;
  color: var(--white-cool);
  text-shadow: 2px 2px 6px var(--blue-5-rgba);
  padding-right: 10px;
}

.talk-to-me-title i:hover {
  color: var(--blue-4);
  transform: scale(1.15);
}

.talk-to-me-title p {
  font-family: var(--font-montserrat);
  font-size: 1.3em;
  text-align: center;
  color: var(--white-cool);
  padding: 20px;
}

/* Footer */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.social-media {
  padding: 15px;
}

.social-media i {
  font-size: 30px;
  padding: 10px;
  color: var(--blue-4);
  text-shadow: 2px 2px 6px var(--blue-5-rgba);
}

.social-media i:hover {
  transform: scale(1.3);
  color: var(--white-cool);
}

.copyright p {
  font-family: var(--font-montserrat);
  font-size: 0.9em;
  color: var(--blue-4);
  text-shadow: 2px 2px 6px var(--blue-5-rgba);
  text-align: center;
}

/* Media Queries */

/* ≤ 768px */
@media (max-width: 768px) {

  .navbar-brand {
    display: flex !important;
    flex-direction: column;
    text-align: left !important;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .banner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    padding: 30px 0 0 0;
    margin-top: 40px;
  }

  .banner-img,
  .banner-title {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .skills-title,
  .exp-prof-title {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .skills-title h2,
  .exp-prof-title h2 {
    text-align: center;
    width: 100%;
  }

  .talk-to-me-title h2 {
    font-size: 2em;
  }

  .talk-to-me-title p {
    font-size: 1em;
    padding: 10px;
  }

  .openbtn {
    display: block;
  }

  .navbar {
    display: none;
  }

  .mobile-topbar {
    display: flex;
    flex-direction: row-reverse;
    padding: 15px 20px;
  }

  .mobile-topbar .navbar-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    text-align: left;
  }

  .mobile-topbar .brand-main,
  .mobile-topbar .brand-subtitle {
    display: inline;
    text-align: left;
    width: auto;
  }

  .mobile-topbar .navbar-brand img {
    height: 20px;
    vertical-align: middle;
  }

  .exp-prof {
    flex-direction: column;
    align-items: center;
  }

  .exp-prof-title h2 {
    font-size: 2em;
  }

  .exp-prof-card .card-container {
    flex-direction: column;
    align-items: center;
  }

  .skills-carousel {
    height: auto;
  }

  .skills-carousel .carousel-caption {
    padding: 6px 6px;
    font-size: 0.85rem;
    max-width: 95vw;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    border-radius: 8px;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
  }

  .testimony .card {
    width: 100%;
    margin-bottom: 20px;
  }

  .testimony .swiper {
    height: 600px;
  }

  .testimony .swiper-slide {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .testimony .swiper-slide img {
    margin: 0 auto;
  }

  .testimony .card-content {
    text-align: center;
  }

  .testimony .card-content h5,
  .testimony .card-content p,
  .testimony .card-content small {
    padding-top: 10px;
    text-align: center;
  }
}

/* ≤ 480px */
@media (max-width: 480px) {

  .banner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px;
  }

  .banner-img,
  .banner-title {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .banner-title h1 {
    font-size: 1.5em;
  }

  .banner-title p {
    font-size: 1em;
    padding: 10px;
  }

  .brand-main {
    font-size: clamp(1rem, 3vw + 0.5rem, 1.1rem) !important;
  }

  .brand-main img {
    height: 20px;
  }

  .brand-subtitle {
    font-size: clamp(0.7rem, 2vw + 0.3rem, 0.9rem) !important;
  }

  .neon-btn {
    font-size: 0.95rem;
    min-width: 120px;
    height: 40px;
    padding: 0.5em 1em;
  }

  .skills-title h2,
  .exp-prof-title h2 {
    font-size: 1.8em;
  }

  .flip-card-front img,
  .flip-card:hover {
    width: 100%;
    max-width: 300px;
  }

  .btn-group a {
    padding: 10px 10px;
    font-size: 0.9rem;
    text-align: center;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
  }

  .talk-to-me-title h2 {
    font-size: 2em;
  }

  .social-media i {
    font-size: 22px;
    padding: 7px;
  }

  .copyright p {
    font-size: 0.8em;
  }
}
