@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700&display=swap');

@font-face {
    font-family: 'Race';
    src: url('./Fonte/Race Sport.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background-image: url("img/fundo.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.webgl {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.header {
    background: #000;
    width: 100%;
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
}

.container-xl {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    max-height: 40px;
    width: auto;
    margin-left: -10px;
}

.navmenu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.navmenu a {
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    position: relative;
    transition: color 0.5s, transform 0.3s;
    display: inline-block;
    padding-left: 12px !important;
    white-space: nowrap;
}

.navmenu a:hover {
    color: #0066FF;
}

.navmenu a.active {
    color: #fff;
    text-decoration: none;
}



.navmenu a::after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: #0066FF;
    transition: width 0.3s ease;
}

.navmenu a:hover::after {
    width: calc(100% - 12px);
}

.navmenu a.active::after {
    width: 0;
}



.navmenu a::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    background: #0066FF;
    border-radius: 0;
    box-shadow: 0 0 10px #0066FF, 0 0 20px rgba(0, 102, 255, 0.4);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.navmenu a.active::before {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
    padding: 0;
}

.mobile-nav-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 24px;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    left: 3px;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-nav-toggle span:nth-child(1) {
    top: 8px;
}

.mobile-nav-toggle span:nth-child(2) {
    top: 15px;
}

.mobile-nav-toggle span:nth-child(3) {
    top: 22px;
}


.mobile-nav-toggle.active span:nth-child(1) {
    top: 15px;
    transform: rotate(135deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-nav-toggle.active span:nth-child(3) {
    top: 15px;
    transform: rotate(-135deg);
}

/* ====== CONTEÚDO PRINCIPAL (LAYOUT DESKTOP) ====== */
.apresentacao {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centered vertically */
    align-items: center;
    padding-top: 100px;
    /* Slightly more space for header */
    padding-left: 5%;
    padding-right: 5%;
    z-index: 10;
    min-height: 100vh;
}

.apresentacao_conteudo {
    display: flex;
    gap: 40px;
    /* Synchronized gaps */
    width: 100%;
    max-width: 1400px;
    align-items: center;
    justify-content: center;
    /* Centered horizontally for equal margins */
    flex-wrap: nowrap;
}

.ladoesquerdo {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Reduced gap */
    padding: 20px 0;
}

.container-imagem {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    /* Synchronized gaps */
    max-width: 600px;
    padding: 10px;
    padding-top: 40px;
    padding-bottom: 10px;
}

.ladoesquerdo h1 {
    font-family: 'Race', sans-serif;
    font-size: 3rem;
    width: fit-content;
    color: #0066FF;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: left;
    margin-bottom: 5px;
    /* Reduced margin */
}

.ladoesquerdo h1:hover {
    transform: scale(1.05);
}

.ladoesquerdo p {
    text-align: justify;
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 1.1rem;
    opacity: 1;
    /* Changed back to 1 to avoid hiding words animated by JS */
    transform: translateY(20px);
    /* animation: aparecer 2s ease forwards; */
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
    transform-origin: left;
}

.ladoesquerdo p:hover {
    transform: scale(1.01) translateY(20px);
}

.ladoesquerdo p:nth-of-type(1) {
    animation-delay: 0.5s;
}

.ladoesquerdo p:nth-of-type(2) {
    animation-delay: 1.0s;
}

.ladoesquerdo h2 {
    animation-delay: 2.5s;
    opacity: 1;
    /* Changed back to 1 */
    /* animation: aparecer 8s ease forwards; */
}

@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitulo {
    font-weight: 400;
    font-size: 1.2rem;
    color: #0066FF;
    margin-top: 10px;
}

.redes-sociais {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 2px solid #0066FF;
    color: white;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-size: 1rem;
    opacity: 0;
    animation: aparecer 1s ease-in-out 2s forwards;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.link i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scaleX(0);
    transform-origin: right;
    background-color: #0066FF;
}

.link:hover {
    color: #fff;
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 51, 204, 0.4);
}

.link:hover i {
    transform: scale(1.2);
}

.link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

footer {
    text-align: center;
    padding: 15px;
    margin: 20px 0 10px 0;
    color: rgb(221, 212, 212);
    bottom: 0;
    font-size: 15px;
    font-variant-numeric: lining-nums;
    /* Ensures numbers like 6 align with capital letters */
    animation: fadeIn 1s ease-in-out 2.3s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.card {
    position: relative;
    width: 350px;
    /* Reduced from 400px */
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #0066FF, #00CCFF) border-box;
    border: 3px solid transparent;
    background: none;
    border: none;
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0, 51, 204, 0.5);
    z-index: 10;
    opacity: 0;
    /* Added to prevent flicker before GSAP animation */
}

.quest {
    width: 100%;
}

.quest img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    padding: 1px;
}

/* === RESPONSIVIDADE === */

@media (max-width: 991px) {
    .navmenu ul {
        gap: 20px;
    }

    .apresentacao_conteudo {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }

    .ladoesquerdo {
        max-width: 90%;
        order: 2;
    }

    .container-imagem {
        max-width: 50%;
        order: 1;
    }

    .card {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 991px) {

    body {
        background-image: none;
        background-color: #030617;
        background-attachment: scroll;
    }

    .header {
        padding: 15px 20px;
    }

    .navmenu ul {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        position: fixed;
        top: 60px;
        right: 0;
        width: 80%;
        max-width: 250px;
        border-radius: 0 0 0 10px;
        padding: 15px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
        margin: 0;
    }

    @keyframes slideInMenu {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .navmenu.active ul {
        display: flex;
        animation: slideInMenu 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    .navmenu ul li {
        padding: 10px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navmenu ul li:last-child {
        border-bottom: none;
    }

    .navmenu a {
        font-size: 1.1rem;
    }

    .navmenu a:hover,
    .navmenu a.active {
        color: #fff;
    }

    .mobile-nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .logo-img {
        max-height: 30px;
    }

    .apresentacao {
        padding-top: 100px;
    }

    .apresentacao_conteudo {
        flex-direction: column;
        gap: 40px;
    }

    .ladoesquerdo {
        max-width: 100%;
        order: 2;
        gap: 15px;
    }

    .ladoesquerdo h1 {
        font-size: 2rem;
        white-space: nowrap;
        width: auto;
        max-width: 100%;
        animation: oscilar 3s linear infinite;
        text-align: center;
        transform-origin: center;
    }

    .ladoesquerdo h1::after {
        content: none;
    }

    .ladoesquerdo p {
        font-size: 1rem;
        animation: aparecer 1s ease-in-out 0.5s forwards;
    }

    .container-imagem {
        max-width: 80%;
        order: 1;
        padding: 0;
    }

    .redes-sociais {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 15px;
    }

    .link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    footer {
        text-align: center;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {}

/* From Uiverse.io by MijailVillegas */
.social-media-card {
    max-width: fit-content;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    gap: 1rem;
    backdrop-filter: blur(15px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.192),
        inset 0 0 5px rgba(255, 255, 255, 0.274), 0 5px 5px rgba(0, 0, 0, 0.164);
    transition: 0.5s;
    opacity: 0;
    transform: translateY(0);
    /* Aligned with photo center */
}

.social-media-card:hover {
    animation: ease-out 5s;
    background: rgba(173, 173, 173, 0.05);
}

.social-media-card ul {
    padding: 1.5rem 0.5rem 0.7rem 0.5rem;
    /* Reduced top and bottom padding for a more compact card */
    display: flex;
    list-style: none;
    gap: 0.1rem;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: column;
}

.social-media-card ul li {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.social-media-card .svg {
    transition: all 0.3s;
    /* if you find some problems change w - h : 30px*/
    padding: 10px;
    height: 50px;
    width: 50px;
    border-radius: 100%;
    color: #0066FF;
    fill: currentColor;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 5px rgba(255, 255, 255, 0.5), 0 5px 5px rgba(0, 0, 0, 0.164);
}

.social-media-card .text {
    opacity: 0;
    color: #fff;
    font-weight: 400;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    transition: all 0.3s;
}

/*isometric prooyection*/
.social-media-card .iso-pro {
    transition: 0.5s;
    opacity: 0;
    /* Added to prevent flicker before GSAP animation */
}

.social-media-card .iso-pro:hover a>.svg {
    transform: translate(15px, -15px);
    border-radius: 100%;
}

.social-media-card .iso-pro:hover .text {
    opacity: 1;
    transform: translateY(-5px);
}

.social-media-card .iso-pro:hover .svg {
    transform: translate(5px, -5px);
}

.social-media-card .iso-pro span {
    opacity: 0;
    position: absolute;
    color: #0066FF;
    border-color: #0066FF;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 5px rgba(255, 255, 255, 0.5), 0 5px 5px rgba(0, 0, 0, 0.164);
    border-radius: 50%;
    transition: all 0.3s;
    height: 50px;
    width: 50px;
}

.social-media-card .iso-pro:hover span {
    opacity: 1;
}

.social-media-card .iso-pro:hover span:nth-child(1) {
    opacity: 0.2;
}

.social-media-card .iso-pro:hover span:nth-child(2) {
    opacity: 0.4;
    transform: translate(5px, -5px);
}

.social-media-card .iso-pro:hover span:nth-child(3) {
    opacity: 0.6;
    transform: translate(10px, -10px);
}

/* ====== MOBILE RESPONSIVENESS ====== */
@media (max-width: 991px) {
    .container-imagem {
        flex-direction: column-reverse;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        gap: 20px;
        padding-top: 10px;
    }

    .social-media-card ul {
        flex-direction: row;
        gap: 15px;
    }

    .apresentacao_conteudo {
        flex-direction: column;
        gap: 40px;
    }

    .social-media-card .text {
        opacity: 1;
        transform: translateY(-5px);
        color: #0066FF;
    }
}