* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: none;
}

button,
a,
.card {
    transition: all 0.3s ease;
}

html,
body {
    scroll-behavior: smooth;
    width: 100%;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* Header inicial (topo) */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(1);
    /* scaleX para animar largura */
    transform-origin: center;
    /* sempre centralizado */
    width: 100%;
    /* largura base, mas não será animada */
    padding: 20px 30px;
    background-color: #f0f0f0;
    border-radius: 0;
    transition: transform 0.3s ease, padding 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* Header após scroll */
header.scrolled {
    transform: translateX(-50%) scale(0.95);
    /* escala horizontal */
    padding: 0 30px;
    border-radius: 15px;
    opacity: 0.95;
}

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

/* Logo e links */
header.scrolled .nav-logo img {
    max-width: 30px;
    transition: ease .3s;
}

.header-container {
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20em;
    background-color: #f0f0f0;
}

.nav-logo,
.nav-logo a,
.nav-logo img {
    display: flex;
    align-items: center;
    max-width: 40px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #007BFF;
}

.nav-links,
.nav-links a {
    display: flex;
    gap: 20px;
    list-style: none;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007BFF;
}

.nav-links a.active {
    color: #7c3aed;
}

/*home*/

.home {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #e0e0e0;
    width: 100%;
    min-height: 100vh;
    padding: 10px;
    gap: 1em;
}

#typing {
    display: inline-block;
    min-width: 300px;
    /* ajusta conforme seu texto */
    min-height: 1.5em;
}

#typing::after {
    content: "|";
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.home-hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-hero h1 {
    color: #0056b3;
}

.list-btn {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.home-btn {
    display: flex;
    justify-content: center;
    width: 9.3em;
    padding: 1em 1em;
    background-color: #0056b3;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.home-btn:hover {
    background-color: #007BFF;
}

#home_btn {
    background-color: #ff0000;
}

#home_btn:hover {
    background-color: #af2d2d;
}

.social-list,
.social-list a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    list-style: none;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.social-list a:hover {
    color: #007BFF;
}

.slider-container {
    max-width: 600px;
}

/* Mantém proporção 16:9 */
.swiper {
    width: 700px;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
}

/* Slides */
.swiper-slide {
    width: 100%;
    height: 100%;
}

/* Imagem ajustada perfeitamente */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* tipo Netflix */
}

/* Botões */
.swiper-button-next,
.swiper-button-prev {
    color: #7c3aed;
}

/* Paginação */
.swiper-pagination-bullet {
    background: #aaa;
}

.swiper-pagination-bullet-active {
    background: #7c3aed;
}

.projects {
    background: #56078b;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
    /* 👈 muda aqui */
    padding: 80px 20px 40px;
    /* espaço top + bottom */

    min-height: auto;

}

.projects-title {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Slider */
.projectsSwiper {
    display: flex;
    justify-content: center;
    width: 1024px;
    height: auto;
}

.projects .swiper {
    aspect-ratio: auto;
}

/* Card */
.project-card {
    display: block;

    background: #111;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.project-card:hover {
    transform: none !important;
    box-shadow: none !important;
    /* se quiser remover sombra também */
}

/* Info */
.project-info {
    padding: 15px;
}

.project-info h3 {
    color: #7c3aed;
    margin-bottom: 5px;
}

.project-info p {
    color: #aaa;
    font-size: 14px;
}

/* Swiper ajustes */
.projectsSwiper .swiper-slide {
    width: 300px;
}

/* Setas */
.projectsSwiper .swiper-button-next,
.projectsSwiper .swiper-button-prev {
    color: #7c3aed;
    transition: ease 0.3s;
    transform: translatey(170px);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #ffffff;
}

/* Paginação */
.projectsSwiper .swiper-pagination-bullet-active {
    background: #7c3aed;
}

#project-p {
    display: inline-block;
    min-height: 1.5em;
    color: #aaa;

    /* Adiciona espaçamento abaixo do p */
    margin-bottom: 25px;
    /* ajuste conforme quiser */
}

#projects-typing {
    display: inline-block;
    min-height: 1.5em;
    color: #aaa;
}

/* Cursor */
#projects-typing::after {
    content: "|";
    margin-left: 5px;
    color: #7c3aed;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ===== TECH STACK ===== */
.tech-stack {
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.tech-text {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Container dos ícones */
.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

/* Item individual */
.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #fff;
    transition: transform 0.3s ease;

    text-decoration: none;
    color: inherit;

    cursor: pointer;
}

.tech-item:active {
    transform: scale(0.95);
}

/* Ícones */
.tech-item i {
    font-size: 32px;
    color: #7c3aed;
}

/* Texto */
.tech-item span {
    font-size: 13px;
    color: #aaa;
}

/* Hover */
.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item:hover i {
    color: #fff;
}

/* Section Services */
.services {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #0a0a0a;
    color: #fff;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    padding: 100px 20px;
}

.services-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #7c3aed;
}

.services-subtitle {
    color: #aaa;
    font-size: 16px;
    margin: 10px;
    padding: 20px;
}

/* Container de cards */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

/* Cards individuais */
.service-card {
    background-color: #111;
    padding: 30px 20px;
    border-radius: 20px;
    max-width: 250px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.5);
}

/* Ícones dos serviços */
.service-icon {
    font-size: 36px;
    color: #7c3aed;
    margin-bottom: 15px;
}

/* Títulos e textos dos cards */
.service-card h3 {
    color: #fff;
    margin-bottom: 10px;
}

.service-card p {
    color: #aaa;
    font-size: 14px;
}

#services-typing::after {
    content: "|";
    margin-left: 5px;
    color: #7c3aed;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.about {
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    padding: 100px 20px;
}

.about-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text {
    max-width: 700px;
    margin: auto;
    color: #aaa;
    margin-bottom: 50px;
}

/* Cards */
.about-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.card {
    background: #111;
    padding: 20px;
    border-radius: 15px;
    width: 250px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #7c3aed;
    margin-bottom: 10px;
}

/* Timeline */
.timeline {
    max-width: 600px;
    margin: auto;
    border-left: 2px solid #7c3aed;
    padding-left: 20px;
    text-align: left;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item span {
    font-weight: bold;
    color: #7c3aed;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #7c3aed;
    border-radius: 50%;
}

/* ===== GALERIA DE SERVIÇOS ===== */
.services-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

/* Card */
.service-img-card {
    position: relative;
    width: 330px;
    height: 330px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: solid 3px #56078b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* Imagem */
.service-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Overlay */
.service-img-card .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    transition: 0.3s ease;
}

/* Hover */

.service-img-card:hover img {
    transform: scale(1.1);
}



/* Seção Contact */
.contact {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    color: #fff;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    padding: 0;
    border-radius: 20px;
}

/* Background */
.contact-bg {
    position: relative;
    background-image: url('images/contact.jpg');
    /* sua imagem */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    display: flex;
    flex: 1;
    width: 100%;
    justify-content: center;
    align-items: center;
}

/* Blur overlay */
.contact-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.6);
    /* escurece levemente */
    z-index: 1;
}

/* Conteúdo centralizado */
.contact-content {
    position: relative;
    z-index: 2;
    background-color: rgba(10, 10, 10, 0.85);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Título e subtítulo */
.contact-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #7c3aed;
}

.contact-subtitle {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Formulário Netlify */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Garantir que inputs e textarea usem box-sizing correto */
.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 10px;
    border: 2px solid transparent;
    /* border inicial transparente */
    outline: none;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    /* evita distorção */
    transition: border 0.3s ease;
    /* transição suave ao focar */
}

/* Ao focar, muda apenas a cor do border */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #7c3aed;
    /* sem aumentar tamanho */
}

/* Botão */
.contact-btn {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: #7c3aed;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #9957ff;
}

/* Informações de contato */
.contact-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info p {
    font-size: 14px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botão flutuante WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.service-card:hover,
.card:hover {
    transform: translateY(-10px) scale(1.02);
}

.footer {
    background-color: #0a0a0a;
    color: #aaa;
    padding: 60px 20px 30px 20px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    color: #fff;
    text-decoration: none;
    gap: 10px;
}

.footer-logo img {
    max-width: 35px;
}

.footer-about p {
    color: #aaa;
    margin-top: 10px;
    max-width: 250px;
}

.footer-links h4,
.footer-contact h4 {
    color: #7c3aed;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 5px;
}

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #7c3aed;
}

.footer-contact p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-socials {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.footer-socials a {
    color: #aaa;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #7c3aed;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #555;
}

/* ===== Hamburger Mobile ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
    @media (max-width: 768px) {

        body,
        html {
            overflow-x: hidden;
        }

        .header-container {
            gap: 0;
            padding: 0 15px;
        }

        .swiper,
        .slider-container {
            width: 100%;
            max-width: 100%;
        }

        .projectsSwiper .swiper-slide {
            width: 90%;
            max-width: 400px;
            margin: 0 auto;
        }

        .home,
        .contact-content,
        .service-img-card,
        .card {
            max-width: 100%;
        }
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #f0f0f0;
        flex-direction: column;
        width: 200px;
        padding: 1rem;
        gap: 1rem;
        display: none;
        /* inicialmente escondido */
        border-radius: 0 0 10px 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .header-container {
        justify-content: space-between;
        /* ajusta para mobile */
        gap: 0;
    }
}

/* Transformação do hamburguer para X */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== RESPONSIVIDADE ATUALIZADA ===== */
@media (max-width: 1024px) {

    .home {
        flex-direction: column;
        padding: 120px 15px;
        gap: 1em;
    }

    .home-hero h1 {
        font-size: 2.4em;
    }

    #typing {
        min-width: auto;
        font-size: 0.95em;
        text-align: center;
    }

    /* Header */
    .header-container {
        gap: 3em;
        padding: 0 20px;
    }

    .nav-logo {
        font-size: 1.3em;
    }

    /* Hero slide */
    .slider-container {
        max-width: 90%;
    }

    .swiper {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .list-btn {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-list {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* Header mobile */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 15px;
        gap: 0;
    }

    /* Navbar toggle */
    .nav-links {
        width: 90%;
        right: 5%;
        padding: 1rem;
    }

    /* Home */
    .home {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2em;
        padding: 80px 15px;
    }

    .home-hero h1 {
        font-size: 1.8em;
        text-align: center;
    }

    #typing {
        min-width: auto;
        font-size: 0.95em;
        text-align: center;
    }

    .list-btn {
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-btn {
        width: auto;
        padding: 0.8em 1.2em;
        font-size: 0.9em;
    }

    .social-list {
        justify-content: center;
    }

    .slider-container {
        max-width: 100%;
    }

    .swiper {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    /* Projects */
    .projects {
        padding: 60px 10px;
    }

    .projects-title {
        font-size: 1.8em;
    }

    /* Slider de Projetos responsivo */
    .projectsSwiper {
        justify-content: center;
        /* centraliza os slides */
    }

    .projectsSwiper .swiper-slide {
        width: 100%;
        /* ocupa quase toda a largura da tela */
        max-width: 400px;
        /* opcional, para não ficar gigante */
        margin: 0 auto;
        /* centraliza cada slide */
    }

    /* Setas */
    .projectsSwiper .swiper-button-next,
    .projectsSwiper .swiper-button-prev {
        transform: translatey(120px);
    }

    .project-card img,
    .project-card iframe {
        height: 250px;
    }

    .project-info h3 {
        font-size: 1em;
    }

    .project-info p {
        font-size: 0.85em;
    }

    /* Tech Stack */
    .tech-icons {
        gap: 15px;
    }

    .tech-item i {
        font-size: 28px;
    }

    .tech-item span {
        font-size: 12px;
    }

    /* Services */
    .services-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .service-card {
        max-width: 90%;
        padding: 20px;
    }

    .service-icon {
        font-size: 28px;
    }

    .service-card h3 {
        font-size: 1em;
    }

    .service-card p {
        font-size: 0.85em;
    }

    /* Services gallery */
    .services-gallery {
        flex-direction: column;
        gap: 20px;
        height: 350px;
        border: none;
    }

    .service-img-card:hover img {
        transform: none;
    }

    .service-img-card {
        width: 90%;
        height: 200px;

    }

    /* About */
    .about {
        padding: 60px 15px;
    }

    .about-title {
        font-size: 1.8em;
    }

    .about-text {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .about-cards {
        gap: 15px;
    }

    .card {
        width: 90%;
        padding: 15px;
    }

    /* Timeline */
    .timeline {
        padding-left: 15px;
    }

    .timeline-item::before {
        left: -8px;
    }

    /* Contact */
    .contact-bg {
        padding: 60px 15px;
        background-image: none !important;
        background-color: #56078b;
        /* cor de fundo padrão */
    }

    .contact-blur {
        display: none;
    }

    .contact-content {
        padding: 25px;

    }

    .contact-title {
        font-size: 1.6em;
    }

    .contact-subtitle {
        font-size: 0.9em;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9em;
        padding: 10px;
    }

    .contact-btn {
        padding: 10px;
        font-size: 0.95em;
    }
}

.no-copy {
    user-select: none;
    /* impede seleção de texto/imagem na maioria dos navegadores */
    -webkit-user-drag: none;
    /* impede arrastar a imagem */
}

#toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* canto superior esquerdo */
    background-color: #7c3aed;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(-20px);
    z-index: 9999;
    font-weight: bold;
}

/* Aparece */
#toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Inicialmente, elementos com fade-in estão invisíveis */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    /* leve movimento para baixo */
    transition: opacity 1s ease, transform 1s ease;
}