:root {
    --primary-color: #C778DD;
    --secundary-color: #B64FD3;
    --gray: #ABB2BF;
    --background-color: #282C33;
}


/* alignment-test
.hero-text, #nav-left, .skills-title, .about-title, .contact-title {border-left: 1px solid red;}
#contato {border-right: 1px solid red;}  */

html, body {
  overflow-x: hidden;
}

body {
  background: linear-gradient(
    135deg,
    #282C33 20%,
    #B64FD3 300%
    );
  color: white;
  font-family: "Fira Code", monospace;
  margin: 0;
}

.page-container {
  max-width: 1100px;   
  margin: 0 auto;      
  padding: 0 2rem;     
}

/* Section: Social media */

.social-media {
    position: absolute;
    display: flex;
    flex-direction: column;
    margin-left: 4rem;
    gap: 1rem;
}

ul {
    display: flex;
    position: absolute;
    top: 190px;
    left: -15px;
    flex-direction: column;
    gap: 10px;
    transform: translate(-50%, -50%);
}

ul li {
    list-style: none;
}

ul li a {
    width: 30px;
    height: 30px;
    background-color: var(--background-color);
    text-align: center;
    line-height: 30px;
    font-size: 12.5px;
    margin: 0 4px;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--background-color);
    z-index: 1;
}

ul li a .icon {
    position: relative;
    color: var(--primary-color);
    transition: .5s;
    z-index: 3;
}

ul li a:hover .icon {
    color: #fff;
    transform: rotateY(360deg);
}

ul li a:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f00;
    transition: .5s;
    z-index: 2;
}

ul li a:hover:before {
    top: 0;
}

ul li:nth-child(1) a:before{
    background: #000000;
}

ul li:nth-child(2) a:before{
    background: #25d366;
}

ul li:nth-child(3) a:before {
    background: #0077b5;
}

ul li:nth-child(4) a:before {
    background: #f09433; 
background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );;
}

.vertical-line {
    background-color: var(--primary-color);
    width: 2px;
    height: 100px;
    margin: 0 auto;
}

.github > a {
    color: inherit;
    text-decoration: inherit;
}

.linkedin > a {
    color: inherit;
    text-decoration: inherit;
}

.whatsapp > a {
    color: inherit;
    text-decoration: inherit;
}
/* Section: Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#nav-left h1 {
  margin: 0;
  font-size: 1.2rem;
}

.language-switcher {
  position: relative;
}

.custom-dropdown {
  position: relative;
  display: inline-block;
  font: inherit;
  color: inherit;
}

.custom-dropdown .selected {
  border: 1px solid var(--primary-color);
  background: none;
  color: inherit;
  font: inherit;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.custom-dropdown .selected:hover {
  border-color: var(--secundary-color);
  color: var(--secundary-color);
}

.custom-dropdown.active .options {
  opacity: 1;
  max-height: 500px;
  transform: translateY(0);
}

.custom-dropdown .options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 180px;
  background: #1a1a1a;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  min-width: 100%;
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  max-height: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.custom-dropdown.active .options {
  opacity: 1;
  max-height: 500px;
  transform: translateY(0);
  padding: 15px 0;
}

.custom-dropdown .options li {
  padding: 10px 0;
  text-transform: uppercase;
  padding: 8px 12px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
  position: relative;
  letter-spacing: 1px;
}

.custom-dropdown .options li:hover {
  color: #fff;
}

.custom-dropdown .options li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secundary-color));
  transition: width 0.3s ease;
}

.custom-dropdown .options li:hover::after {
  width: 100%;
}

.custom-dropdown.active .options li {
  animation: fadeIn 0.3s ease forwards;
}

.custom-dropdown.active .options li:nth-child(1) { animation-delay: 0.05s; }
.custom-dropdown.active .options li:nth-child(2) { animation-delay: 0.1s; }
.custom-dropdown.active .options li:nth-child(3) { animation-delay: 0.15s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#nav-left > h1 {
    font-size: 15px;
}

#nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

#nav-right > a {
  text-decoration: none;
  display: inline-block;
  margin-right: 16px;
  color: inherit;
  position: relative;
  font: inherit;
}

.hashtag {
  color: var(--primary-color);
  margin-right: 2px;
}

.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  transform: scaleX(0);
  transition: transform 0.4s ease-out;
}

.hover-underline::after {
  bottom: 0;
  transform-origin: left;
  background: linear-gradient(to left, var(--primary-color), var(--secundary-color));
}

.hover-underline::before {
  top: 0;
  transform-origin: right;
  background: linear-gradient(to right, var(--primary-color), var(--secundary-color));
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

/* Section 2: Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5rem auto 0;
    padding: 6rem 0;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1;
    color: white;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.hero-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: -8%;
}

.profile-image {
    margin-bottom: -1.1rem;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
}

.status-bar {
    border: 1px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 8px;
}

.status-text-r {
    padding: 5px;
    margin-left: auto;
    font-weight: 600;
    margin-right: 3rem;
    text-decoration-line: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
    text-underline-position: 5px;
}

.btn-outline-light {
    border-color: var(--primary-color);
}

/* Section: Skills */
.skills {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 10rem;
    color: white;
    flex-wrap: wrap;
    gap: 4rem;
}

.skills-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    min-width: 280px;
}

.skills-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    flex-wrap: wrap;
}

.hashtag {
    color: #C778DD;
}

#line-skills {
    width: 500px;
    height: 1px;
    background-color: #C778DD;
    opacity: 0.5;
}

.skills-shapes img {
    margin-top: 5rem;
    width: 20rem;
    margin-bottom: 10rem;
    max-width: 100%;
}

.skills-grid {
    margin-top: 12rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    flex: 1;
    min-width: 280px;
}

.skills-grid div {
    border: 1px solid var(--primary-color);
    padding: 10px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 10rem;
}

.skills-grid div i {
    font-size: 18px;
    color: var(--primary-color);
}

.skills-grid div:hover {
    border-color: var(--secundary-color);
    color: var(--secundary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Section: Sobre mim */

.about {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 700px;
}

.about-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

#line-about {
    width: 500px;
    height: 1px;
    background-color: #C778DD;
    opacity: 0.5;
}

.about-text{
    color: #a6a6a7;
    max-width: 450px;
    margin-top: 1rem;
    font-size: 0.75rem;
    line-height: 2.5;
}

.about-visual {
    margin-top: 5rem;
}

/* Section: Contact-me */

.contact {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 250px;
}

.contact-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

#line-contact {
    width: 457px;
    height: 1px;
    background-color: #C778DD;
    opacity: 0.5;
}

.contact-text {
    color: #a6a6a7;
    max-width: 450px;
    margin-top: 4rem;
    font-size: 0.75rem;
    line-height: 2.5;
}

.contact-box {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 10px;
    border: 2px outset var(--gray);
    border-radius: 20px;
    margin-top: 5.5rem;
    width: fit-content;
}

.contact-top {
    flex-basis: 25%;
    border-bottom: 1px solid var(--gray);
    margin: 0 -10px 1rem -10px;
    padding-bottom: 0.5rem;
    text-align: center;
    ;
}

.contact-items {
    margin-bottom: -10px;
}

.contact-items > i{
    text-align: center;
}

/* Section: Footer */

.footer {
    text-align: center;
    margin-top: 10rem;
}

.footer-refs > a {
    position: relative;
    display: inline-block;
    margin: 0 1rem 1rem 0;
    text-decoration: none;
    color: inherit;
    font: inherit;
    transition: color 0.2s ease-in-out;
}

.footer-refs > .hashtag {
    color: var(--primary-color);
    margin-right: 2px;
    cursor: pointer;
}

.footer-refs > a::before,
.footer-refs > a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.4s ease-out;
}

.footer-refs > a::before {
    top: 0;
    transform-origin: right;
    background: linear-gradient(to right, var(--primary-color), var(--secundary-color));
}

.footer-refs > a::after {
    bottom: 0;
    transform-origin: left;
    background: linear-gradient(to left, var(--primary-color), var(--secundary-color));
}

.footer-refs > a:hover::before,
.footer-refs > a:hover::after {
    transform: scaleX(1);
}

.footer-name {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 99999;
}

.hamburger span {
  background-color: var(--primary-color);
  height: 3px;
  border-radius: 3px;
  width: 100%;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

#mobile-lang {
  margin-top: 2rem;
  position: relative;
}

#mobile-lang-btn {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  padding: 8px 14px;
  border-radius: 4px;
  color: var(--primary-color);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

#mobile-lang-options {
  display: none;
  flex-direction: column;
  background-color: #1e1e1e;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  margin-top: 5px;
}

#mobile-lang-options div {
  padding: 10px;
  cursor: pointer;
}

#mobile-lang-options div:hover {
  background-color: rgba(199, 120, 221, 0.2);
}

#mobile-lang-options.active {
  display: flex;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-scale {
  transform: scale(0.8);
}

.reveal-rotate {
  transform: rotate(-6deg);
  opacity: 0;
}

.reveal-left.active,
.reveal-right.active,
.reveal-scale.active,
.reveal-rotate.active {
  opacity: 1;
  transform: none;
}

.mobile-menu {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        background-color: var(--background-color);
        border: 1px solid var(--primary-color);
        border-radius: 8px;
        padding: 1rem 2rem;
        flex-direction: column;
        gap: 1rem;
}

.mobile-menu a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        transition: 0.3s;
}

.mobile-menu a:hover {
        color: var(--primary-color);
}

.mobile-menu.active {
        display: flex;
    }

@media (max-width: 1200px) {
    .social-media {
        left: -2rem;
        
    }

    .vertical-line {
        height: 50px;
    }

    ul {
        top: 140px;
        gap: 0.5rem;
    }

    .navbar {
        padding: 1rem 16%;
    }

    #nav-right {
        display: none; 
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        justify-content: space-between;
        position: relative;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image-container {
        margin-top: 2rem;
    }

    .status-bar {
        justify-content: center;
    }

    .skills {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .skills-title {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    #line-skills {
        display: none;
    }

    .skills-shapes img {
        display: none;
    }

    .skills-grid {
        margin-top: 4rem;
        margin-bottom: 9rem;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .about-visual {
        order: 3;
        margin-top: 2rem;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 10rem;
    }

    .about-visual img {
        max-width: 80%;
        height: auto;
    }

    .about-title {
        justify-content: center;
        text-align: center;
    }

    #line-about {
        display: none;
    }

    .about-text {
        text-align: center;
        margin: 1rem auto 0;
        line-height: 2;
    }

    .contact {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 0 1.5rem;
        text-align: center;
        gap: 2rem;
    }

    .contact-title {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    #line-contact {
        display: none;
    }

    .contact-text {
        font-size: 0.85rem;
        line-height: 1.8;
        max-width: 90%;
        margin: 0 auto;
    }

    .contact-box {
        margin-top: 1.5rem;
        width: 100%;
        max-width: 350px;
        text-align: center;
    }

    .contact-top {
        font-weight: 600;
    }

    .introduction {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 6rem;
    padding: 0 1.5rem;
    text-align: center;
  }

  .about-content {
    order: 1;
  }

  .about-visual {
    order: 2;
    margin-top: 2rem;
  }

  .about-visual img {
    width: 220px;
  }

  .about-visual::before {
    width: 225px;
    height: 225px;
  }

  .about-visual::after {
    width: 210px;
    height: 210px;
  }

  .about-title {
    justify-content: center;
    text-align: center;
  }

  #line-about {
    display: none;
  }

  .about-paragraphs p {
    max-width: 100%;
    font-size: 0.85rem;
    line-height: 1.9;
  }

  .atras-da-tela {
    margin-top: 6rem;
    text-align: center;
    padding: 0 1.5rem;
  }

  .atras-da-tela .about-title {
    justify-content: center;
  }

  .atras-da-tela .about-paragraphs p {
    font-size: 0.85rem;
    line-height: 1.9;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .footer {
    text-align: center;
    margin-top: 4rem;
    padding: 0 1.5rem;
  }

  .footer-refs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }

  .footer-refs > a {
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
  }

  .footer-name {
    font-size: 0.85rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
}