/*------ Fonte ------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/*------ Variaveis ------*/
:root {
    --body-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);

    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);

    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);

    --second-color: rgb(0, 201, 255);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgb(0, 0, 0, 0.1);
    --radius: 20px;
}

/*------ Padrão ------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/*------ Scroll Suave ------*/
html {
    scroll-behavior: smooth;
}

/*------ Design do Scroll ------*/
::-webkit-scrollbar {
    width: 10px;
    border-radius: 25px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 30px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/*------ Design Global Botão ------*/
.btn,
a.btn {
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
    text-decoration: none;
    color: inherit;
}

.btn i {
    margin-left: 6px;
    font-size: 14px;
}

.btn:hover,
a.btn:hover {
    background: var(--second-color);
    color: var(--color-white);
}

/*------ Design Global Icons ------*/
i {
    font-size: 16px;
}

/*------ Base ------*/
body {
    background: var(--body-color);
}

.container {
    width: 100%;
    position: relative;
}

/*------ Nav Bar ------*/
nav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}

.nav-menu,
.nav_menu_list {
    display: flex;
}

.nav-menu {
    flex: 1 1 auto;
    min-width: 0;
}

/* ajuda a não quebrar entre 903–908px */

.nav-menu .nav_list {
    list-style: none;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}

.nav-button .btn {
    white-space: nowrap;
}

.nav-menu-btn {
    display: none;
}

.nav-menu-btn i {
    font-size: 28px;
    cursor: pointer;
}

.active-link {
    position: relative;
    color: var(--first-color);
    transition: .3s;
}

.active-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}

/*------ Design Wrapper ------*/
.wrapper {
    padding-inline: 10vw;
}

/*------ Featured ------*/
.featured-box {
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

.featured-text {
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}

.featured-text-card span {
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}

.featured-name {
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}

.typedText {
    text-transform: capitalize;
    color: var(--text-color-third);
}

.featured-text-info {
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second)
}

.featured-text-btn {
    display: flex;
    gap: 20px;
}

.featured-text-btn>.blue-btn {
    background: var(--first-color);
    color: var(--color-white);
}

.featured-text-btn>.blue-btn:hover {
    background: var(--first-color-hover);
}

.social_icons {
    display: flex;
    margin-top: 5em;
    gap: 30px;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgb(0, 0, 0, 0.25);
    cursor: pointer;
    color: var(--text-color-second);
    background: #fff;
    transition: .3s;
}

.icon:hover {
    color: var(--first-color);
}

.featured-image {
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}

.image {
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}

.image img {
    width: 380px;
    height: 380px;
    object-fit: cover;
}

@keyframes imgFloat {
    50% {
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}

.scroll-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    gap: 5px;
    text-decoration: none;
    color: var(--text-color-second);
    background: var(--color-white);
    border-radius: 30px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}

.scroll-btn i {
    font-size: 20px;
}

/*------ Main Box------*/
.section {
    padding-block: 5em;
}

.row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.col {
    display: flex;
    width: 50%;
}

/*------ CSS Reutilizável ------*/
.top-header {
    text-align: center;
    margin-bottom: 5em;
}

.top-header h1 {
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}

.top-header span {
    color: #999;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

/*------ About Info ------*/
.about-info {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
}

.about-info p {
    text-align: center;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.about-btn button {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 30px;
}

.about-btn button:hover {
    background: var(--first-color-hover);
}

/* Foco acessível apenas via teclado */
.icon:focus-visible,
.proj-arrow:focus-visible,
.cli-arrow:focus-visible {
    outline: 3px solid rgba(110, 87, 224, .35);
    outline-offset: 2px;
}

.icon:focus,
.proj-arrow:focus,
.cli-arrow:focus {
    outline: none;
}

/*------ About | Skills------*/
.skills-box {
    margin: 10px;
}

.skills-header {
    margin-bottom: 30px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.skills-list span {
    font-size: 14px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}

/* ---------- Projects Box ----------- */
.projects-carousel {
    position: relative;
}

.projects-viewport {
    overflow: hidden;
}

.projects-track {
    display: flex;
    gap: 22px;
    will-change: transform;
    transition: transform .35s ease;
    padding: 4px 2px;
}

/* Card visual */
.project-card {
    display: flex;
    flex: 0 0 calc((100% - 44px) / 3);
    min-height: 380px;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid #ECEFF4;
    box-shadow: 1px 1px 1px 1px var(--first-shadow-color);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
    overflow: hidden;
}

.project-desc {
    color: #666;
    line-height: 1.55;
    margin: 0 0 10px;
    text-align: left;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-tags span {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .06);
    color: #444;
}

.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    border-radius: 20px 0 0 20px;
    background: linear-gradient(180deg, var(--first-color), var(--second-color));
    opacity: .9;
}

.project-card.is-featured {
    border-color: rgba(110, 87, 224, .45);
    box-shadow: 0 1px 1px rgba(110, 87, 224, .22), 0 1px 1px rgba(0, 0, 0, .06);
}

.project-card.is-featured::before {
    width: 6px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 2px rgba(0, 0, 0, .14);
    border-color: #E0E5EB;
}

.project-card:focus-within {
    box-shadow: 0 0 0 3px rgba(110, 87, 224, .35), 0 12px 28px rgba(0, 0, 0, .12);
    outline: none;
}

/* Setas */
.proj-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid #E5E7EB;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    cursor: pointer;
    z-index: 5;
}

.proj-arrow i {
    font-size: 20px;
}

.proj-arrow.prev {
    left: 8px;
}

.proj-arrow.next {
    right: 8px;
}

.proj-arrow:disabled {
    opacity: .4;
}

/* --------- Clients Box ------------*/
.clients-carousel {
    position: relative;
}

.clients-viewport {
    overflow: hidden;
}

.clients-track {
    display: flex;
    gap: 18px;
    will-change: transform;
    transition: transform .35s ease;
    padding: 4px 2px;
}

.client-card {
    flex: 0 0 calc((100% - 36px) / 3);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: 12px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgb(0 0 0 / 0.10);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.client-card img {
    max-height: 44px;
    max-width: 100%;
    opacity: .96;
}

.cli-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
    background: #fff;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.cli-arrow i {
    font-size: 20px;
}

.cli-arrow.prev {
    left: 8px;
}

.cli-arrow.next {
    right: 8px;
}

.cli-arrow:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/*------ Contact Box ------*/
.contact-grid {
    align-items: stretch;
}

.contact-card {
    position: relative;
    width: 100%;
    padding: 28px 28px 16px 28px;
    /* menos padding embaixo */
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--second-color), rgba(110, 87, 224, .95));
    box-shadow: 0 12px 30px rgb(0 0 0 / .12);
    color: var(--color-white);
}

.contact-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgb(255 255 255 / .8);
}

.contact-card h2 {
    color: #fff;
    margin: 0;
}

.contact-list {
    list-style: none;
    margin: 14px 0 0;
    /* remove margem inferior que deixava “buraco” */
    padding: 0;
    display: grid;
    gap: 18px;
    /* mais respiro entre os itens */
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list i {
    font-size: 18px;
}

.contact-list a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.contact-list a:hover {
    border-color: rgb(255 255 255 / .7);
}

.contact-form {
    display: grid;
    gap: 14px;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    color: #6b7280;
}

.input-field,
.textarea-field {
    width: 100%;
    background: #fff;
    border: 1.6px solid #D1D5DB;
    border-radius: 12px;
    padding: 12px 16px;
    outline: none;
    color: var(--text-color-second);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.textarea-field {
    min-height: 160px;
    resize: vertical;
}

.input-field:focus,
.textarea-field:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgb(110 87 224 / .25);
}

.form-button {
    margin-top: 4px;
}

.form-status {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.form-status.is-ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.is-err {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/*------ Footer Box ------*/
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: #f8f8f8;
    padding-block: 40px 60px;
}

.top-footer p {
    font-size: 25px;
    font-weight: 600;
}

.middle-footer .footer-menu {
    display: flex;
}

.footer_menu_list {
    list-style: none;
}

.footer_menu_list a {
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 20px;
}

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

.bottom-footer {
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    /* centralizado */
}

.bottom-footer a {
    color: var(--text-color-second);
    font-weight: 500;
    text-decoration: none;
    transition: color .3s ease;
}

.bottom-footer a:hover {
    color: var(--first-color);
}

.projects-track .project-box {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

/*------ Responsive ------*/
@media only screen and (max-width: 1024px) {
    .featured-text {
        padding: 0;
    }

    .image,
    .image img {
        width: 320px;
        height: 320px;
    }

    .project-card {
        flex-basis: calc((100% - 22px)/2);
    }

    .client-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media only screen and (max-width: 1100px) {
    nav {
        padding-inline: clamp(12px, 5vw, 60px);
    }

    .nav-link {
        margin-inline: 12px;
        padding-inline: 8px;
    }
}

@media only screen and (max-width: 960px) {
    .nav-button {
        display: none !important;
    }

    .nav-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgb(255 255 255 / 0.7);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: 90vh;
        transition: .3s;
    }

    .nav_menu_list {
        flex-direction: column;
    }

    .nav-menu.responsive {
        left: 0;
    }
}

@media only screen and (max-width: 900px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .nav-menu.responsive {
        left: 0;
    }

    .featured-box {
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }

    .featured-text {
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }

    .social_icons {
        margin-top: 2em;
    }

    .featured-image {
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }

    .image,
    .image img {
        width: 150px;
        height: 150px;
    }

    .row {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }

    .col {
        display: flex;
        justify-content: center;
        gap: 50px;
        width: 100%;
    }

    .about-info,
    .contact-info {
        width: 100%;
    }

    .project-container {
        justify-content: center;
    }

    .project-box {
        width: 80%;
    }
}

@media only screen and (max-width: 768px) {
    .wrapper {
        padding-inline: 18px;
    }
}

@media only screen and (max-width:540px) {
    .featured-name {
        font-size: 40px;
    }

    .project-box {
        width: 100%;
    }

    .form-inputs {
        flex-direction: column;
    }

    .input-field {
        width: 100%;
    }

    /* Carrossel mobile SEM cortes + setas visíveis */
    .project-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .client-card {
        flex: 0 0 100%;
    }

    .proj-arrow,
    .cli-arrow {
        display: grid !important;
        place-items: center;
    }

    .proj-arrow.prev,
    .cli-arrow.prev {
        left: 8px;
    }

    .proj-arrow.next,
    .cli-arrow.next {
        right: 8px;
    }
}

/* Garantia contra scroll horizontal sem cortar sombras */
html,
body {
    overflow-x: clip;
}