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

html, body {
    overflow-x: hidden;
}

li {
    list-style: none;
}

a {
    color: #E3E3E3;
    text-decoration: none;
}

body {
    background-image: url('../images/background.png');
    background-position: top;
    background-size:cover ;
    font-family: "Roboto", sans-serif;
    padding: 40px 60px 0 60px;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #1A4A80;
}

@keyframes brilharDeVezEmQuando {
    0%, 10% {
        filter: none;
        color: #aaa;
        transform: scale(1);
    }
    11%, 45% {
        filter: drop-shadow(0 0 8px #00ffff);
        color: #00ffff;
        transform: scale(1.3);
    }
    46%, 100% {
        filter: none;
        color: #aaa;
        transform: scale(1);
    }
}

.diamondIcon {
    transition: all 0.3s ease;
    color: #aaa;
    margin-bottom: 20px;
    animation: brilharDeVezEmQuando 7s infinite;
}

.logo {
    width: 220px;
    margin-bottom: 20px;
}

header p {
    width: 500px;
    color: #CFCFCF;
    text-align: center;
    font-size: 15px;
}

header ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 50px;
    margin-top: 40px;
}

header ul a {
    font-weight: 500;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    background: linear-gradient(120deg, #007BFF, #AADDCC);
    background-size: 200%;
    background-position: left;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, #00ffff, #007BFF);
    transition: width 0.4s ease-in-out;
}

header ul a:hover::after {
    width: 100%;
}

header ul a:hover {
    background-position: right; /* anima o gradiente */
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.4));
    transform: scale(1.05);
}


main {
    text-align: center;
}

.projectsBox {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 70px 0;
    row-gap: 40px;
    column-gap: 20px;
}

.projectSingle {
    width: 370px;
    background-color: #001730;
    padding: 15px;
    border-radius: 9px;
}

.projectSingle img {
    width: 100%;
    height: 230px;
    margin-bottom: 6px;
}

.openProjectBtn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(to right, #007BFF, #AADDCC);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: "Roboto", sans-serif;
}

/* Efeito de brilho sutil passando */
.openProjectBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: left 0.6s ease-in-out;
    z-index: 2;
}

/* Efeito hover surreal */
.openProjectBtn:hover {
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.5);
    transform: scale(1.02);
}

/* Brilho deslizando ao passar o mouse */
.openProjectBtn:hover::before {
    left: 120%;
}

/* Pra garantir que o texto fique em cima de tudo */
.openProjectBtn span {
    position: relative;
    z-index: 3;
}

.seeMore i {
    margin-right: 3px;
    font-size: 13px;
}

.seeMore {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 500;
    color: #AADDCC;
    border: 2px solid #AADDCC;
    background-color: transparent;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

/* Hover: fundo preenchido + texto branco */
.seeMore:hover {
    background-color: #AADDCC;
    color: #0F2F28; /* um verde bem escuro pra contraste, quase preto */
    box-shadow: 0 4px 20px rgba(170, 221, 204, 0.4);
    transform: translateY(-2px);
}

/* Brilho animado (opcional) */
.seeMore::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    z-index: 1;
}

.seeMore:hover::before {
    left: 120%;
}

/* Garantindo que o texto fique por cima do brilho */
.seeMore span {
    position: relative;
    z-index: 2;
}


footer {
    max-width: 1400px;
    border-top: 2px solid #1A4A80;
    margin: 70px auto 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: white;
    font-size: 14px;
}

footer i.fa-gem {
    transition: all 0.4s ease;
    color: #aaa; /* cor padrão */
}

/* Brilho no hover */
footer i.fa-gem:hover {
    color: #00ffff; /* azulzinho neon */
    filter: drop-shadow(0 0 6px #00ffff);
    transform: scale(1.2);
}


@media screen and (max-width: 1290px) {
    .projectSingle {
        width: 100%;
        max-width: 400px;
    }
    .projectsBox {
        justify-content: center;
    }
}

@media screen and (max-width: 1050px) {
    body {
        background-image: url('../images/backgroundTablet.png');
    }

    body {
        padding: 40px 20px 0 20px;
    }
}

@media screen and (max-width: 590px) {
    header p {
        width: 100%;
    }
    header ul {
        row-gap: 10px;
        column-gap: 20px;
    }
    .projectsBox {
        padding: 50px 0;
        row-gap: 30px;
    }
    footer {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media screen and (max-width: 490px) {
    body {
        background-image: url('../images/backgroundMobile.png');
    }
}

@media screen and (max-width: 390px) {
    .projectsBox {
        padding: 30px 0;
        row-gap: 20px;
    }
}