/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Fonte-titulo';
    src: url('assets/fontes/monofontorg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fonte-textoRegular';
    src: url('assets/fontes/CreatoDisplay-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fonte-textoMedia';
    src: url('assets/fontes/CreatoDisplay-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: url('./assets/img/fundo (2).png');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =============================================
   HEADER
   ============================================= */

header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 48px), 670px);
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 0.5px solid rgba(230, 220, 220, 0.377);
    border-radius: 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#titulo {
    font-size: 1.125rem;
    color: #fff;
    font-family: 'Fonte-textoRegular', sans-serif;
}

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

.menu-list li a {
    font-size: 1.125rem;
    color: white;
    font-family: 'Fonte-textoRegular', sans-serif;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: border-color 0.3s ease;
}

.menu-list li a:hover {
    border-color: white;
}

/* =============================================
   LAYOUT
   ============================================= */

.section-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    padding-top: 100px;
}

/* =============================================
   HERO
   ============================================= */

.hero-container {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-content {
    max-width: 600px;
}

.hero-content span {
    display: inline-block;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 16px;
    font-family: 'Fonte-textoRegular', sans-serif;
    background: rgba(15, 15, 30, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 42px;
    border: 0.5px solid #ffffff;
    padding: 6px 18px;
}

.hero-content h1 {
    font-family: 'Fonte-titulo', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.375rem);
    color: #fff;
    margin-bottom: 20px;
}

.hero-content p {
    font-family: 'Fonte-textoRegular', sans-serif;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 36px;
    max-width: 480px;
}

.button-container {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* =============================================
   BUTTONS
   ============================================= */

.botao,
.botao-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #000;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 999px;
    font-family: 'Fonte-textoRegular', sans-serif;
    box-shadow: 5px 5px 0 #1f4fff;
    transition: transform 0.2s ease;
}

.botao:hover,
.botao-outline:hover {
    transform: translateY(-2px);
}

.botao img,
.botao-outline img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 5px;
}

.botao-sm {
    padding: 10px 16px;
}

/* =============================================
   ABOUT
   ============================================= */

.about-container {
    padding-top: 100px;
    padding-bottom: 60px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px 60px;
    align-items: start;
}

.about-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: visible;
    position: relative;
    background: linear-gradient(135deg, #415FFB 0%, #273895 100%);
    border: 3px solid rgba(255, 255, 255, .9);
}

.about-image img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 115%;
    height: auto;
    object-fit: contain;
}

.about-content {
    grid-row: 1;
    grid-column: 2;
}

.about-content h2,
.projects-container h2,
.contact-info h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-family: 'Fonte-titulo', sans-serif;
    color: #fff;
    margin-bottom: 5px;
}

.Thardsillks {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-family: 'Fonte-titulo', sans-serif;
    color: #fff;
    margin-bottom: 5px;
    width: 1000px;
}

.about-content p {
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    color: white;
    font-family: 'Fonte-textoRegular', sans-serif;
    line-height: 1.8;
}

.about-buttons-data {
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;
    margin-top: 12px;
}

/* =============================================
   SKILLS CAROUSEL
   ============================================= */

.carousel-hardSkills {
    margin-top: -30px;
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
    display: flex;
    padding: 8px 0 20px;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.carousel-hardSkills:hover .group {
    animation-play-state: paused;
}

.group {
    display: flex;
    gap: 16px;
    padding-right: 16px;
    will-change: transform;
    animation: scrolling 20s linear infinite;
}

@keyframes scrolling {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-100% - 16px)); }
}

.card {
    min-width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.card img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.card p {
    font-size: 15px;
    font-family: 'Fonte-titulo', sans-serif;
    color: white;
    text-align: center;
    text-transform: uppercase;
}

/* =============================================
   PROJECTS
   ============================================= */

.projects-container {
    padding: 100px 0;
}

.projects-container h2 {
    text-align: center;
    margin-bottom: 48px;
}

.projects-swiper {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 48px !important;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-image {
    width: 290px;
    height: 450px;
    flex-shrink: 0;
    margin-left: 20px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: clamp(1.6rem, 3vw, 3rem);
    margin-bottom: 8px;
    color: #415FFB;
    font-family: 'Fonte-titulo', sans-serif;
}

.project-content p {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    margin-bottom: 16px;
    color: #fff;
    font-family: 'Fonte-textoRegular', sans-serif;
}

.project-buttons {
    display: flex;
    gap: 12px;
}

.project-buttons a img {
    width: 24px;
    height: 24px;
}

/* Swiper pagination */
.swiper-pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    position: relative !important;
    bottom: unset !important;
}

.projects-swiper .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
    transition: background 0.3s ease, transform 0.3s ease !important;
    cursor: pointer;
    margin: 0 !important;
}

.projects-swiper .swiper-pagination-bullet-active {
    background: #ffffff !important;
    transform: scale(1.2);
}

/* =============================================
   CONTACT
   ============================================= */

.contact-container {
    padding-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info p {
    font-family: 'Fonte-textoMedia', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: white;
    margin-bottom: 32px;
}

.contatoRedes {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contatoRedes p {
    margin: 0;
    font-family: 'Fonte-textoMedia', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: white;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    margin-right: 5px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: transform 0.15s ease-in-out;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Contact Form */
#formulario {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: linear-gradient(233deg, rgba(2, 11, 45, 0.85) 28%, rgba(7, 36, 147, 1) 71%);
    border: 0.3px solid white;
    border-radius: 20px;
    padding: 32px;
}

#formulario label {
    font-family: 'Fonte-textoMedia', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: white;
    text-transform: uppercase;
    margin-top: 10px;
}

#formulario label:first-child {
    margin-top: 0;
}

#formulario input,
#formulario textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 0.5px solid white;
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Fonte-textoMedia', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgb(255, 255, 255);
    outline: none;
    transition: background 0.2s;
    width: 100%;
}

#formulario input::placeholder,
#formulario textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#formulario input:focus,
#formulario textarea:focus {
    background: rgba(124, 110, 245, 0.08);
}

#formulario textarea {
    resize: vertical;
    min-height: 120px;
}

#formulario span[id^="erro"] {
    font-size: 0.78rem;
        color: white;
    font-family: 'fonte-textoRegular', sans-serif;
    min-height: 16px;
    display: block;
}

#formulario .botao {
    background-color: white;
    color: black;
    margin-top: 12px;
    width: 100%;
    font-family: 'Fonte-textoMedia', sans-serif;
}


/* =============================================
   FOOTER
   ============================================= */

footer {
    background-color: #000;
    border-radius: 500px 500px 0 0;
    width: 80%;
    min-height: 80px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: white;
    font-family: 'Fonte-textoRegular', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* =============================================
   SECTION DIVIDER
   ============================================= */

#about,
#projects,
#contact {
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(124, 110, 245, 0.4), transparent);
}

/* =============================================
   RESPONSIVO
   ============================================= */

/* Tablet — <= 900px */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 180px 1fr;
        gap: 32px 40px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Mobile — <= 680px */
@media (max-width: 680px) {
    header {
        top: 12px;
        width: calc(100% - 32px);
        padding: 0 18px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70vw;
        max-width: 280px;
        height: 100vh;
        background: rgba(10, 10, 20, 0.97);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.35s ease;
        z-index: 999;
    }

    nav.open {
        right: 0;
    }

    .menu-list {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-container {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .button-container {
        flex-direction: column;
        gap: 12px;
    }

    .botao,
    .botao-outline {
        width: 100%;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .about-content {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
    }

    .about-buttons-data {
        justify-content: center;
    }

    .card {
        min-width: 100px;
        height: 100px;
    }

    .card img {
        width: 36px;
        height: 36px;
    }

    .swiper-slide {
        flex: 0 0 85vw;
    }

    .contact-container {
        gap: 36px;
    }

    #formulario {
        padding: 22px 18px;
    }

    footer {
        width: 100%;
        border-radius: 0;
    }
}

/* Very small — <= 380px */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 1.9rem;
    }

    .card {
        min-width: 88px;
        height: 90px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .group {
        animation: none;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}