body {
    min-height: 100vh;
    /* background: linear-gradient(#2b1055, #082f83); */
    /* background: linear-gradient(#2b1055, #411982); */
    background: linear-gradient(#2b1055, #080310);

    overflow-x: hidden;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    padding: 30px 100px;
    display: flex;

    justify-content: space-between;
    align-items: center;

    z-index: 10000;
}

header .logo {
    color: #fff;
    font-weight: 700;
    text-decoration: none;

    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 2px;
}


header ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

header ul li {
    list-style: none;
    margin-left: 20px;
}

header ul li a {
    text-decoration: none;
    padding: 6px 15px;
    color: #fff;

    border-radius: 20px;
}

header ul li a:hover,
header ul li a.active {
    background-color: #fff;
    color: #2b1055;
}

.container-btnMain {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
    /* Center buttons horizontally */
}

.container-btnMain i {
    color: black;
}

section.well-come {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 100px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

section.well-come::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;

    background: linear-gradient(to top, #260f4a, transparent);
    z-index: 1000;
}

section.well-come img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    pointer-events: none;
}

section.well-come img#moon {
    mix-blend-mode: screen;
}

section.well-come img#mountains_front {
    z-index: 10;
}

#text {
    position: absolute;
    color: #fff;
    white-space: nowrap;
    font-size: 7.5vw;
    z-index: 9;

    right: -350px;
}

#mainBtn {
    text-decoration: none;
    display: inline-block;
    padding: 10px 30px;
    /* Slightly adjusted padding */
    border-radius: 40px;

    background: #fff;
    color: #2b1055;

    transform: translateY(100px);
    font-size: 1.2em;
    /* Reduced from 1.5em */
    z-index: 9;
    width: fit-content;
    /* Ensure it doesn't stretch if flex changes */
}



.img-card {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#projects {
    position: relative;
    width: 100%;
    height: 100vh;


    overflow: hidden;
}

.cards {
    position: absolute;
    top: 25%;
    left: 50%;

    transform: translate(-50%, -50%);
    width: 150vw;
    height: 600px;

    will-change: transform;
}

.card {
    position: absolute;

    width: 550px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    margin-left: -250px;
    display: flex;

    flex-direction: column;
    gap: 1em;
    will-change: transform;

    background: rgba(26, 25, 25, 0.747);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;

}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.card-img {
    flex: 1;
    border-radius: 0.5em;
    overflow: hidden;

    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform .5s ease;
}

.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;

    gap: 1rem;
}

.card-content p {
    margin-top: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
}

.container-links-project {
    display: flex;
    justify-content: space-between;
}

.card-content a {
    display: block;
    text-align: center;
    color: #9ad1ff;
    font-weight: 500;
    margin-top: 5px;
    text-decoration: none;
    transition: .3s ease;
}


.card-content a:hover {
    color: #fff;
    text-shadow: 0 0 8px #7fc8ff;
}

.project-counter {
    position: absolute;
    display: flex;
    flex-direction: column;
    margin: 2em;

}

.project-title,
.count {
    position: relative;
    width: 1200px;
    height: 150px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);

    overflow: hidden;
}

.count {
    top: -10px;
}

.count-container {
    position: relative;
    transform: translateY(150px);
    will-change: transform;
}

.count-container h1 {
    margin-bottom: 0.6em;
}

.project-counter h1 {
    width: 100%;
    position: relative;
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 100px;

    line-height: 1;
    letter-spacing: -0.04em;
    will-change: transform;

    opacity: 0;

}

.empty {
    opacity: 0;
}



#aboult {
    width: 100%;
    height: 100vh;


    overflow: hidden;

    display: flex;

    justify-content: space-evenly;
    align-items: center;

}

.appear {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.appear.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


.perfil-card {
    width: 500px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform .4s ease, box-shadow .4s ease;
}

.perfil-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 150, 255, 0.2);
}

.perfil-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.perfil-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-nome {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.perfil-role {
    font-size: 1rem;
    color: #bcd5ff;
    margin-top: -0.5rem;
}

.perfil-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: .6rem 1rem;
    background: rgba(0, 136, 255, 0.25);
    border: 1px solid rgba(0, 136, 255, 0.4);
    border-radius: .5rem;
    color: #fff;
    font-size: .9rem;
    text-decoration: none;
    transition: .3s ease;
}

.btn-action:hover {
    background: rgba(0, 136, 255, 0.45);
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.5);
}

.icon-link {
    font-size: 1.7rem;
    color: #9ad1ff;
    transition: .3s;
}

.icon-link:hover {
    color: #fff;
    text-shadow: 0 0 10px #8fd2ff;
}


.resun {
    width: 40%;
    padding: 2%;
    border-radius: 8px;


    display: flex;
    flex-direction: column;

    gap: 4rem;

    background-color: #1e1a1f;


}

.rainbow-text {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(90deg,
            #cfcfcf,
            #b8b8b8,
            #d4d4d4,
            #545353,
            #353434,
            #121212);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    color: transparent;
    animation: rainbow-neutral 6s ease-in-out infinite;
}

.container-text-resume {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    gap: 2rem;
}

.perfil-container picture img {
    flex: 1;
    width: 25vw;

    border-radius: 8px;
}

.container-text-resume ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.imgs-tecs-container {
    width: 100%;

    overflow: hidden;
    padding: 20px 0;
    position: relative;

}

.imgs-tecs-container .imgs-tecs {
    display: flex;
    gap: 40px;
    width: max-content;
    /* Ensure full width is calculated */
    animation: slide-tecs 9s linear infinite;
    /* 10% faster */
}


.img-tecs {
    width: 5vw;
    height: 5vh;

    object-fit: contain;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.img-tecs:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* ===========================
   SECTION DO FORMULÁRIO
=========================== */
/* ... (existing content) ... */

/* ===========================
   ANIMATION KEYFRAMES
=========================== */
@keyframes slide-tecs {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 20px));
        /* Correct for half-gap offset */
    }
}

#contact {
    width: 100%;
    height: 100vh;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    padding: 40px 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-container h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 30px;
    color: #fff;
}

/* ===========================
   FORM
=========================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;

}

.form-group label {
    font-size: 16px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: none;
    outline: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    resize: none;
    transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

textarea {
    height: 140px;
}

/* ===========================
   BOTÃO
=========================== */
.btn-send {
    padding: 12px 20px;
    border: none;
    outline: none;
    border-radius: 40px;
    margin-top: 10px;

    background: #fff;
    color: #2b1055;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-send:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

/* ================================
   FOOTER
================================ */
#footer {
    width: 100%;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 80px;

}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    color: #fff;
    text-align: center;
}

.footer-left h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.footer-left p {
    opacity: 0.8;
    font-size: 16px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    font-size: 32px;
    color: white;
    transition: 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2);
    color: #b98cff;
    /* tom pastel neon */
    text-shadow: 0 0 10px #b98cff;
}

.footer-copy p {
    opacity: 0.6;
    font-size: 14px;
}

/* ===========================
   ANIMATION KEYFRAMES
=========================== */
@keyframes slide-tecs {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 20px));
        /* Correct for half-gap offset */
    }
}

/* ===========================
   PRELOADER
=========================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #080310;
    transform: scaleX(0);
    transform-origin: center;
}

.preloader-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    z-index: 2;
}

.preloader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
}

.preloader-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-align: center;
}

.preloader-bar-container {
    width: 300px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.preloader-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: center;
}