@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background-color: black;
    font-family: "Exo 2", sans-serif;
    color: white;
    overflow-x: hidden; /* evita scroll horizontal */
    margin: 0;
    padding: 0;
}

/* ===== Header ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    position: relative;
}

.header img {
    width: 157.25px;
    height: 34px;
}

.header ul {
    font-size: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 32px;
}

.header a {
    position: relative;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s;
}

.header a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #00aced;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4,0.2,0.2,1);
    transform-origin: right;
}

.header a:hover {
    color: #00aced;
}

.header a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.sheader a:hover {
    color: #00aced;
}

/* ===== Conteúdo inicial ===== */
.conteudo--comeco {
    font-size: 40px;
    margin-top: 176px;
    margin-left: 144px;
}

.conteudo--comeco p {
    font-size: 16px;
}

#PERFORMANCE {
    margin-left: 368px;
    margin-top: -70px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.conteudo--comeco h1 {
    margin: 0 0 10px 0;
    line-height: 1.2;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

h1:hover, h2:hover, h3:hover {
    text-shadow: none;
    transition: text-shadow 0.3s;
    cursor: pointer;
}

#BRANDING { animation-delay: 0.2s; }
#DESIGN { animation-delay: 0.4s; }
#CONTEUDO { animation-delay: 0.6s; }
#PERFORMANCE { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
    animation: fadeInUp 0.8s forwards;
}

/* ===== Projetos ===== */
.projetos {
    font-size: 16px;
    margin-top: 400px;
    margin-left: 144px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.projetos p {
    margin: 0;
}

.projetos p:nth-child(2) {
    margin-left: 800px;
}

/* ===== Trabalhos ===== */
.trabalhos {
    display: flex;
    flex-wrap: wrap;
    gap: 33px;
    justify-content: center;
    margin: 60px 0;
    padding: 0 60px;
    box-sizing: border-box;
}

.trabalho-img {
    width: 260px;
    height: 325px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: #222;
    transition: transform 0.3s cubic-bezier(0.4,0.2,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0.2,0.2,1);
}

.trabalho-img:hover {
    transform: scale(1.07) translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 1.5px 8px rgba(0,172,237,0.15);
    z-index: 2;
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

/* ===== Conteúdo final ===== */
.conteudo--final--titulo {
    font-size: 16px;
    margin-top: 100px;
    margin-left: 144px;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4,0.2,0.2,1);
}

.fade-in-right.show {
    opacity: 1;
    transform: translateX(0);
}

.conteudo--final--slogan--titulo {
    font-size: 100px;
}

.espaco--em--branco {
    height: 300px;
    width: 100%;
    margin-top: 100px;
}

/* ===== Footer ===== */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 60px;
    font-size: 15px;
    color: #888;
    background-color: #000;
    width: 100%;
}

.footer img {
    width: 157.25px;
    height: 34px;
    margin: 10px 10px 10px 100px;
}

.footer--texto {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4,0.2,0.2,1);
}

.footer--texto:hover {
    transform: translateY(-6px) scale(1.04) rotate(-1deg);
    text-shadow: 0 4px 16px #00aced33;
}

.footer img:hover {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 0 8px #00aced88);
    transition: transform 0.3s, filter 0.3s;
}

/* ===== Botões ===== */
.Enviar {
    position: relative;
    overflow: hidden;
    background: transparent;
    color: #00aced;
    border: 2px solid #00aced;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.Enviar::before {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: #00aced;
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4,0.2,0.2,1);
    border-radius: 30px;
}

.Enviar:hover {
    color: #fff;
}

.Enviar:hover::before {
    transform: scaleX(1);
}

.Enviar span {
    position: relative;
    z-index: 1;
}

/* ===== Hover geral ===== */
section:hover, .card:hover {
    box-shadow: 0 8px 32px rgba(0,172,237,0.10), 0 1.5px 8px rgba(0,172,237,0.15);
    transform: translateY(-4px) scale(1.01);
    transition: box-shadow 0.3s, transform 0.3s;
}

/* ===== Menu Sanduíche ===== */
.mobile-menu-toggle {
    position: absolute;
    align-items: center;
    display: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 4px 0;
    border-radius: 2px;
    background-color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-toggle:focus {
    outline: 2px solid #00aced;
    outline-offset: 3px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        text-align: center;
    }

    .header {
        flex-direction: column;
        align-items: center;
        padding: 20px 16px;
        gap: 16px;
    }

    .header img {
        width: 120px;
        height: auto;
        margin: 0 auto;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 55px;
        height: 55px;
        background: none;
        border: none;
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 1001;
    }

    .header ul {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        font-size: 16px;
        background: #111;
        position: absolute;
        left: 0;
        top: 76px;
        padding: 16px 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px #0008;
        z-index: 1000;
        align-items: center;
        text-align: center;
        justify-content: center;

        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .header ul.mobile-menu-open {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
    }

    .conteudo--comeco {
        font-size: 24px;
        margin: 40px 16px 0 16px;
    }

    .conteudo--comeco p {
        font-size: 14px;
    }

    #PERFORMANCE, #BRANDING, #DESIGN, #CONTEUDO {
        margin: 0;
        font-size: 22px;
    }

    .projetos {
        flex-direction: column;
        margin: 40px 0 0 0;
        gap: 16px;
    }

    .projetos p:nth-child(2) {
        margin-left: 0;
    }

    .trabalhos {
        flex-direction: column;
        gap: 24px;
        padding: 0 16px;
        margin: 32px 0;
    }

    .trabalho-img {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 180px;
        margin: 0 auto;
    }

    .conteudo--final--titulo {
        font-size: 14px;
        margin-top: 40px;
    }

    .conteudo--final--slogan--titulo {
        font-size: 36px;
        word-break: break-word;
    }

    .espaco--em--branco {
        height: 80px;
        margin-top: 40px;
    }

    .footer {
        flex-direction: column;
        padding: 20px 16px;
        font-size: 13px;
        height: auto;
    }

    .footer img {
        width: 120px;
        height: auto;
        margin: 10px 0 0 0;
    }
}
