@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');

html {
    scroll-behavior: smooth;
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-image: radial-gradient(circle at top right, rgba(121, 68, 154, 0.13), transparent),
    radial-gradient(circle at 20% 80%, rgba(41, 196, 255, 0.13), transparent);
}

main {
    display: flex;
    flex-direction: column;
    gap: 10rem;
}

header {
    display: flex;
    justify-content: space-between; /* Garante que o espaço seja distribuído entre os itens */
    align-items: center; /* Alinha verticalmente os itens */
    width: 100%;
    height: 80px;
    position: absolute;
    z-index: 1000;
}

header img {
    margin: 0 30px;
    width: 180px;
}

nav {
    margin: 0 30px;
}

nav ul {
    display: flex;
    gap: 40px;
    padding: 0;
}

nav li {
    list-style: none;
}

a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
}

canvas {
    position: fixed;
    width: 100%;
    height: 100%;
}

#globeCanvas {
    height: 100vh;
}

#globeCanvas canvas {
    display: block;
    width: 953px;
    height: 953px;
    position: absolute;
    z-index: 10;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes fadeInGlobe {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

#globeCanvas {
    opacity: 0;
    transform: scale(0.5);
    animation: fadeInGlobe 3s 1s forwards;
}

.container {
    position: relative;
    z-index: 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.background-lights {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.credits{
    font-family: monospace;
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
    text-align: center;
    z-index: 20;
    background-color: rgba(0,0,0,.3);
    color: #aaa;
    padding: .5rem 1rem;
}

a {
    color: #fff;
}

.texto {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    width: 282px;
    height: 150px;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.texto h1 {
    width: 100%;
    height: 100%;
    
    font-weight: 500;
    color: white;
    font-size: 3em;
}

h1 {
    font-size: 9vmin;
    color: whitesmoke;
    font-family: Lato, sans-serif;
    font-weight: 700;
    margin: 0; /* Retirando as margens, para o texto ficar bem centralizado */
}

h2, p {
    color: whitesmoke;
}

@keyframes typing {
    0.0000%, 80.0000% { content: ""; }
    1.1395%, 78.8605% { content: "I"; }
    2.2791%, 77.7210% { content: "In"; }
    3.4186%, 76.5814% { content: "Int"; }
    4.5581%, 75.4419% { content: "Inte"; }
    5.6977%, 74.3023% { content: "Intel"; }
    6.8372%, 73.1628% { content: "Intell"; }
    7.9767%, 72.0233% { content: "Intelli"; }
    9.1163%, 70.8837% { content: "Intellig"; }
    10.2558%, 69.7442% { content: "Intellige"; }
    11.3953%, 68.6047% { content: "Intelligen"; }
    12.5349%, 67.4651% { content: "Intelligenc"; }
    13.6744%, 66.3256% { content: "Intelligence"; }
    14.8140%, 65.1860% { content: "Intelligence "; }
    15.9535%, 64.0465% { content: "Intelligence D"; }
    17.0930%, 62.9070% { content: "Intelligence Da"; }
    18.2326%, 61.7674% { content: "Intelligence Dat"; }
    19.3721%, 60.6279% { content: "Intelligence Data"; }
    20.5116%, 59.4884% { content: "Intelligence Data "; }
    21.6512%, 58.3488% { content: "Intelligence Data T"; }
    22.7907%, 57.2093% { content: "Intelligence Data Te"; }
    23.9302%, 56.0698% { content: "Intelligence Data Tea"; }
    25.0698%, 54.9302% { content: "Intelligence Data Team"; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typewriter {
    --caret: currentcolor;
}

.typewriter::before {
    content: "";
    animation: typing 15s infinite;
}

.typewriter::after {
    content: "";
    border-right: 1px solid var(--caret);
    animation: blink 0.5s linear infinite;
}

.typewriter.thick::after {
    border-right: 3px solid var(--caret);
}

.typewriter.nocaret::after {
    border-right: 0;
}

@media (prefers-reduced-motion) {
    .typewriter::after {
    animation: none;
    }
    
    @keyframes sequencePopup {
    0%, 100% { content: "Zeentech"; }
    }

    .typewriter::before {
    content: "Zeentech";
    animation: sequencePopup 12s linear infinite;
    }
}

.info {
    height: 100vh;
    z-index: 1000;
}

.projetos {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 6rem;
}

.projetos .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Máximo de 3 colunas */
    gap: 40px;
    /* Espaçamento entre os cards */
    justify-content: center;
    width: fit-content;
    height: fit-content;
}


@media (max-width: 1040px) {
    .projetos .row {
        grid-template-columns: repeat(2, 1fr);
        /* 2 colunas para telas menores */
    }
}

@media (max-width: 740px) {
    .projetos .row {
        grid-template-columns: 1fr;
        /* 1 coluna para telas muito pequenas */
    }
}

.card {
    position: relative;
    height: 300px;
    width: 300px;
    transition: ease all 0.3s;
    perspective: 1000px;
    will-change: transform;
}

.card:hover .cover {
    transform: rotateX(0deg) rotateY(-180deg);
}

.cover {
    position: absolute;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
    transition: ease all 1s;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.cover:before {
    content: '';
    position: absolute;
    border: 5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 0, 0, .3);
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    transition: ease all 0.2s;
    transform-style: preserve-3d;
    transform: translateZ(30px);
}

/* .item-a:before {
    border: 5px solid rgba(149, 42, 255, 0.3);
}

.item-b:before {
    border: 5px solid rgba(249, 177, 52, 0.4);
}

.item-c:before {
    border: 5px solid rgba(62, 205, 93, 0.4);
}

.item-d:before {
    border: 5px solid rgba(76, 73, 234, 0.4);
}

.item-e:before {
    border: 5px solid rgba(228, 62, 2, 0.4);
}

.item-f:before {
    border: 5px solid rgba(205, 62, 148, 0.4);
} */

.card:hover .cover:before {
    border: 5px solid rgb(255, 255, 255, 0.8);
}


.card div h1 {
    font-weight: 500;
    position: absolute;
    bottom: 45px;
    left: 40px;
    color: white;
    transform-style: preserve-3d;
    transition: ease all 0.3s;
    z-index: 3;
    font-size: 28px;
    transform: translateZ(60px);
}

.card-back {
    position: absolute;
    height: 100%;
    width: 100%;
    background: #000a1a;
    transform-style: preserve-3d;
    /* transition: ease all 10s; */
    transform: translateZ(-1px);
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
}

.card-back a {
    transform-style: preserve-3d;
    transition: ease transform 0.3s, ease background 0.5s;
    transform: translateZ(-1px) rotateY(-180deg);
    background: transparent;
    border: 1px solid white;
    font-weight: 200;
    font-size: 1.3em;
    color: white;
    padding: 14px 32px;
    outline: none;
    text-decoration: none;
    transform: translateZ(-60px) rotateY(-180deg);
    will-change: transform, background;
    position: absolute;
    bottom: 40px;
}

.card-back a:hover {
    background-color: white;
    color: #0b0f08;
}

.card-back p {
    transform-style: preserve-3d;
    transition: ease transform 0.3s, ease background 0.5s;
    transform: translateZ(-1px) rotateY(-180deg);
    background: transparent;
    font-weight: 200;
    font-size: 18px;
    color: white;
    padding: 14px 32px;
    outline: none;
    text-decoration: none;
    transform: translateZ(-60px) rotateY(-180deg);
    will-change: transform, background;
    text-align: justify;
}

/* Flexbox para organizar texto e card lado a lado */
.text-and-card {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 40px;
    
}

.text {
    width: 40%; /* Ajusta a largura do texto para ocupar quase metade do espaço */
    color: whitesmoke;
}

.text p {
    width: 100%;
    margin: 0;
    font-size: larger;
}

.icons-container {
    width: 50%;
    height: 350px;
    display: flex;
    justify-content: center;
}

.hero-image {
    position: relative;
    width: 600px;
    height: 350px;
    display: block;
}

.cube {
    position: absolute;
    width: 65px;
    height: 65px;
    transform: rotate(-25deg) skew(25deg);
}

.cube::before {
    position: absolute;
    content: "";
    width: 21px;
    height: 100%;
    transform: skewY(-45deg);
    left: -20px;
    bottom: -10px;
}

.cube::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 21px;
    transform: skewX(-45deg);
    left: -10px;
    bottom: -20px;
}

#html {
    left: 80px;
    bottom: 80px;
    background-image: url("imgs/html-logo.png");
    background-size: cover;
    box-shadow: -60px 60px 20px rgba(50, 50, 50, 0.15);

}

#html::before {
    background-color: #e76037;
}

#html::after {
    background-color: #e97f5e;
}

#css {
    left: 250px;
    bottom: 240px;
    background-image: url("imgs/css-logo.png");
    background-size: cover;
    box-shadow: -60px 60px 20px rgba(50, 50, 50, 0.15);

}

#css::before {
    background-color: #43a1db;
}

#css::after {
    background-color: #78b7df;
}

#javascript {
    left: 450px;
    bottom: 200px;
    background-image: url("imgs/js-logo.png");
    background-size: cover;
    box-shadow: -40px 40px 20px rgba(50, 50, 50, 0.15);

}

#javascript::before {
    background-color: #f5c951;
}

#javascript::after {
    background-color: #f8d268;
}

#react {
    left: 420px;
    bottom: 40px;
    background-image: url("imgs/react-logo.png");
    background-size: cover;
    box-shadow: -80px 80px 20px rgba(50, 50, 50, 0.15);

}

#react::before {
    background-color: #b888e2;
}

#react::after {
    background-color: #c597ee;
}

#python {
    left: 80px;
    bottom: 220px;
    background-image: url("imgs/python-logo.png");
    background-size: cover;
    box-shadow: -40px 40px 20px rgba(50, 50, 50, 0.15);

}

#python::before {
    background-color: #c4c4c4;
}

#python::after {
    background-color: #d2d2d3;
}

#php {
    left: 250px;
    bottom: 40px;
    background-image: url("imgs/php.png");
    background-size: cover;
    box-shadow: -80px 80px 20px rgba(50, 50, 50, 0.15);
}

#php:before {
    background-color: rgb(151, 167, 238);
}

#php:after {
    background-color: rgb(172, 186, 247);
}

/* Responsividade */
@media (max-width: 768px) {
    .text-and-card {
        flex-direction: column;
        align-items: center;
    }

    .text,
    .tech-card {
        width: 100%; /* No mobile, os elementos ocupam toda a largura */
    }

    .tech-icons {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas para telas menores */
    }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px); /* Move a seção para baixo */
    transition: opacity 1s, transform 1s; /* Aplica a transição para suavizar a animação */
    will-change: opacity, transform;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0); /* A seção volta para sua posição original */
}


/* Botão de voltar ao topo */
#scrollToTopBtn {
    display: block;
    opacity: 0;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 1000;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #1b4dbb;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: ease opacity 0.5s;
    pointer-events: none;
    width: 40px;
    height: 40px;
    text-align: center;
}

#scrollToTopBtn:hover {
    background-color: #1b4ebb88;
}


/* .patinho {
    position: fixed;
    top: 50%;
    left: 100%;
    width: 50px;
    transform: translateY(-50%);
    animation: orbit 2s 5s linear forwards;
}

@keyframes orbit {
    0% {
        transform: translateY(50%) translateX(0);
    }

    100% {
        transform: translateY(-50%) translateX(-3000%);
    }
} */