* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --bg-color: #000000;
    /*--second-br-color:#0D0D0D;*/
    --second-br-color: #000;
    --text-color: #fff;
    --main-color: #32cd32;
}

html {
    font-size: 62%;
}

body {
    background: var(--bg-color);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
}

html::-webkit-scrollbar-track {
    background: var(--bg-color);
}

html::-webkit-scrollbar-thumb {
    background: var(--main-color);
}

.cabecalho {
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 9%;
    background: rgba(0, 0, 0, 0.7);
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: var(--main-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

.portifolio-info {
    background: var(--second-br-color);
    color: var(--text-color);
    padding: 8rem 9%;
    text-align: center;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portifolio-info .container {
    max-width: 1000px;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.portifolio-info h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.portifolio-info h2 span {
    color: var(--main-color);
}

.portifolio-info p {
    font-size: 1.8rem;
    line-height: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Responsividade */
@media (max-width: 768px) {
    .portifolio-info {
        padding: 5rem 3%;
    }

    .portifolio-info h2 {
        font-size: 2.4rem;
    }

    .portifolio-info p {
        font-size: 1.6rem;
        line-height: 2.2rem;
    }
}

.animation-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.bgAnimation{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(20,1fr);
    grid-template-rows: repeat(20,1fr);
    background: var(--second-br-color);
    filter: saturate(2);
    z-index: 0;
}

.colorBox{
    z-index: 2;
    filter: brightness(1.1);
    transition: 2s ease;
    position: relative;
    margin: 2px;
    background: var(--second-br-color);
}

.colorBox:hover{
    background: var(--main-color);
    transition-duration: 0s;
}

.backgroundAnim{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--main-color);
    filter: blur(60px);
    animation: animBack 6s linear infinite;
}

@keyframes animBack {
    0%{
        top: -60px;
    }
    100%{
        top: 120%;
    }
}

.animation-title {
    position: absolute;
    top: 20px;          
    left: 50%;         
    transform: translateX(-50%);
    color: var(--text-color);
    font-size: 3rem;
    font-weight: 700;
    z-index: 10;
    text-align: center;
}

.swiper {
  width: 100%;
  padding: 2rem;
}

.swiper-slide.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: clamp(300px, 70vh, 900px);
  max-width: 500px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  color: #FFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  padding-bottom: 30px;
}

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

.swiper-slide.card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.swiper-slide.card h2 {
  text-align: center;
  margin: 0.5rem 0;
  color: #32cd32;
  font-size: 25px;
}

.swiper-slide.card p {
  text-align: center;
  margin: 0.5rem 0;
  margin-top: 2.5rem;
}

.swiper-button-prev, .swiper-button-next {
  color: var(--main-color);
}

.swiper-pagination-bullet {
  background: #32cd32;
}

.card .btn2 {
  margin-top: auto; 
}

.btn2 {
    display: inline-block;
    padding: 1rem 2.8rem;
    font-size: 1.6rem;
    letter-spacing: 0.1rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.2);
    color: white; 
    border: 2px solid #fff; 
    border-radius: 8px;
    cursor: pointer;
    transition:  0.3s ease;
}

.btn2:hover {
    transform: scale(1.03);
    background-color: #3B5323;
    color: #fff;
    box-shadow: 0 0 25px #3B5323;
}

.card {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  flex: 0 0 clamp(250px, 30vw, 1200px);
  height: clamp(700px, 70vh, 600px);
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.cards-container {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2.5rem;
  overflow-x: auto;
  padding: 2rem;
  scroll-snap-type: x mandatory;
}

.card {
  min-width: 300px;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  color: #fff;
  scroll-snap-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

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

.card img {
  width: 100%;
  height: 50%;
  max-height: 60%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 1rem;
}

.card h3, 
.card p {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 768px) {
    .swiper-slide.card {
    width: 100% !important;   /* cada card ocupa toda a largura */
    max-width: 100%;
    margin: 0 auto;
    }
}


@media (max-width:995px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 40%;
        border-left: 3px solid var(--main-color);
        border-bottom: 3px solid var(--main-color);
        border-bottom-left-radius: 2rem;
        padding: 1rem 3%;
        background-color: var(--second-br-color);
        border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .navbar a:hover,
    .navbar a.active {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid var(--main-color);
    }
}

section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 8rem;
    background: var(--bg-color);
    min-height: 100vh; 
}


.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span {
    color: var(--main-color);
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
}

.home-img img:hover {
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px var(--main-color));
}

.home-content p {
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icon a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    font-size: 2rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-icon a:hover {
    color: black;
    transform: scale(1.3)translateY(-5px);
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--bg-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.03);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}

.texto {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.texto span {
    position: relative;
}

.texto span::before {
    content: 'Software Developer';
    color: var(--main-color);
    animation: words 20s infinite;
}

.texto span::after {
    content: '';
    background: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 3px solid var(--main-color);
    }
}

@keyframes words {
    0%, 20% {
        content: 'Front-End Developer';
    }

    21%, 40% {
        content: 'Data Analyst';
    }

    41%, 60% {
        content: 'Web Designer';
    }

    61%, 80% {
        content: 'Content Creator';
    }

    81%, 100% {
        content: 'Youtuber';
    }
}

@keyframes typing {
    10%, 15%,
    30%, 35%,
    50%, 55%,
    70%, 75%,
    90%, 95% {
        width: 0;
    }

    5%, 20%,
    25%, 40%,
    45%, 60%,
    65%, 80%, 85% {
        width: calc(100% +8px);
    }
}

@media (max-width: 768px) {
    .home {
        flex-direction: column;
        gap: 3rem;
        padding: 2rem;
        text-align: center;
    }

    .home .home-img img {
        width: 80%;
        max-width: 300px;
    }

    .home .home-content h1 {
        font-size: 3.5rem;
    }

    .home .home-content h3 {
        font-size: 2.5rem;
    }

    .home .home-content p {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

.skills {
    background: var(--bg-color);
}

.skills .heading {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    text-align: center;
}

.skills .container {
    background: #3B5323;
    color: var(--text-color);
    border-radius: 1rem;
    padding: 2rem;
    width: 70%;
    margin: auto;
    margin-top: 2rem;
}

.skills .container .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex-wrap: wrap;
    gap: 1.8rem;
}

.skills .container .bar {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 1rem;
    background: var(--bg-color);
    transition: 0.3s ease;
    cursor: pointer;
}

.skills .container .bar:hover {
    box-shadow: 0 4px 10px var(--main-color);
    transform: scale(1.03);
}

.skills .container .bar .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.skills .container .bar .info img {
    width: 200px;
    height: auto;
}

.skills .container .bar .info span {
    font-size: 2rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

@media screen and (max-width:600px) {
    .skills.container {
        margin: 0;
        padding: 0;
        margin-top: 5px;
        width: 100%;
    }

    .skills .container .row {
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
        padding: 2rem 0.2rem 2rem 0.2rem;
        gap: 1rem;
    }
}

.educacao {
    background: #0D0D0D;
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    text-align: center;
}

.educacao .heading {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    text-align: center;
    justify-content: center; 
    align-items: center;
}

.educacao .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.educacao .timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: #3B5323;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -2px;
}

.educacao .container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%; 
}

.educacao .container::after {
    content: '\f501';
    position: absolute;
    width: 25px;
    height: 25px;
    line-height: 25px;
    right: -17px;
    background-color: rgb(252, 252, 252);
    border: 4px solid var(--main-color);
    top: 15px;
    border-radius: 50%;
    z-index: 100;
    font-size: 1.89rem;
    text-align: center;
    font-weight: 600;
    font-family: "Font Awesome\ 5 Free";
    color: #3B5323;
}

.educacao .left {
    left: 0;
}

.educacao .right {
    left: 50%;
}

.educacao .left::before {
    content: '';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--main-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--main-color);
}

.educacao .right::before {
    content: '';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--main-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--main-color) transparent transparent;
}

.educacao.right::after {
    left: -16px
}

.educacao .content {
    background: var(--main-color);
    position: relative;
    border-radius: 6px;
}

.educacao .content .tag {
    font-size: 1.5rem;
    padding-top: 1.5rem;
    padding-left: 1.5rem;
}

.educacao .content .decs {
    margin-left: 1.5rem;
    padding-bottom: 1rem;
}

.educacao .content .tag h2 {
    font-size: 2rem;
    font-weight: 600;
    color: black;
}

.educacao .content .decs p {
    font-size: 1.3rem;
    font-weight: 500;
    color: black;
    margin-top: 15px
}

@media screen and (max-width:768px) {
    .educacao .timeline {
        margin-top: 2rem;
    }

    .educacao .timeline::after {
        left: 31px;
    }

    .educacao .container {
        width: 100%;
        padding-left: 8rem;
        padding-right: 2rem;
    }

    .educacao .container::after {
        font-size: 2.2rem;
    }

    .educacao .container::before {
        left: 61px;
        border: medium solid var(--main-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--main-color) transparent transparent;
    }

    .educacao .left::after {
        left: 15px;
    }

    .educacao .right::after {
        left: 15px;
    }

    .educacao .right {
        left: 0%;
    }
}

.contato {
    background: var(--bg-color);
    padding: 5rem 9%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contato .heading {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contato form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 600px;
}

.contato form .input-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.contato form input,
.contato form textarea {
    width: 100%;
    padding: 1.2rem 1rem;
    font-size: 1.6rem;
    background: transparent;
    border: 2px solid #3B5323;
    border-radius: 0.5rem;
    color: var(--text-color);
    outline: none; 
    resize: none;
}

.contato form input::placeholder,
.contato form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contato form .btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--bg-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.contato form .btn:hover {
    transform: scale(1.03);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: #0D0D0D;
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: #32cd32;
}

.footer .social a {
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid #32cd32;
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease;
}

footer .social a:hover {
    transform: scale(1.2)translateY(-5px);
    background: #32cd32;
    color: var(--second-br-color);
}

.footer ul {
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: center;
}

footer ul li a {
    color: #32cd32;
    border-bottom: 3px solid transparent;
    transition: 0.3 ease;
}

.footer ul li a:hover {
    border-bottom: 3px solid #32cd32;
}

.footer ul li {
    display: inline-block;
    padding: 0 15px;
}

footer .copyright {
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: lightgrey;
}

@media (max-width:1285px) {
    html {
        font-size: 55%;
    }
}

@media (max-width:991px) {
    .cabecalho {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}