/*Azul Vibrante (#3AA7F2) → cor de fundo principal, transmite tecnologia e modernidade.
Verde Suave (#6DC97A) → para botões, destaques de links ou ícones de navegação.
Amarelo Alegre (#FFD84D) → usado em detalhes, ícones ou hover de botões para dar energia.
Rosa Pastel (#F48FB1) → para elementos secundários, como divisores, destaques sutis em seções.
Cinza Claro (#F2F2F2) → ideal para fundos de cards, áreas de texto ou contrastar com cores fortes.*/

@font-face {
    font-family: 'Cream Cake';
    src: url(assets/Cream\ Cake.otf) format('opentype');
}

@font-face {
    font-family: 'Simple Handmade';
    src: url(assets/SimpleHandmade.otf) format('opentype');
}

:root{
    --blue: #3AA7F2;
    --green: #6DC97A;
    --yellow: #FFD84D;
    --pink: #F48FB1;
    --light-gray: #F2F2F2;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    body {
        max-width: 100vw;
        padding: 0;
    }

    section {
        padding: 15px 5px;
        max-width: 100vw;
    }

    #home {
        flex-direction: column;  /* empilha em telas pequenas */
        text-align: center;
    }

    #welcome-text h1, #welcome-text p {
        font-size: 1.1rem;
    }

    #tecnology {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    #btn-contact, a.btn {
        width: 100%;
        min-width: 0;
        font-size: 1rem;
        padding: 10px;
    }

    .contact {
        gap: 16px;
    }
}

/* Responsividade extra para telas muito pequenas */
@media (max-width: 480px) {
    section {
        padding: 8px 2px;
    }

    #welcome-text h1, #welcome-text p {
        font-size: 1rem;
    }

    .service-item, .pro {
        width: 98vw;
        min-width: unset;
        padding: 10px;
    }

    #logo {
        width: 80px;
    }
    #perfil {
        width: 70px;
        height: 70px;
    }
    #home {
        gap: 0.5rem;
    }
    #btn-contact, a.btn {
        font-size: 0.9rem;
        padding: 8px;
    }

    .contact {
        gap: 8px;
    }
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: auto;
    max-width: 1200px;
    min-height: 100vh;
    color: var(--black);
    position: relative;
    z-index: 1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url(assets/pattern.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    opacity: 0.4; /* ajuste a opacidade como desejar */
    pointer-events: none;
}

header {
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 30px;
}

nav ul {
    display: flex;
    gap: 10px;
    list-style: none;
}

nav a {
    font-family: 'Simple Handmade', sans-serif;
    text-decoration: none;
    background-color: var(--light-gray);
    color: var(--pink);
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a:focus {
    background-color: var(--light-gray);
    color: var(--yellow);
    outline: 3px solid var(--green);
}

a.btn, #btn-contact {
    font-family: 'cream cake', sans-serif;
    font-size: 1.5rem;
    background-color: var(--pink);
    color: var(--light-gray);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    width: 250px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    outline: none;
    margin-top: 10px;
}

a.btn:hover,
a.btn:focus,
#btn-services:hover,
#btn-services:focus {
    background-color: var(--light-gray);
    color: var(--pink);
    box-shadow: 0 0 0 1px var(--yellow);
}

#perfil {
    background-color: var(--pink);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border:1px solid var(--pink);
    transition: transform 0.3s, box-shadow 0.3s;
}

#perfil:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--light-gray(0, 0, 0, 0.8));
}

section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    text-align: center;
}

#home {
    display: flex;            /* lado a lado */
    flex-direction: row;      /* garante que é horizontal */
    align-items: center;      /* centraliza verticalmente */
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;          /* permite quebrar em telas pequenas */
    text-align: left;         /* texto à esquerda/direita da imagem */
    margin-top: 20px;
}

#welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#welcome h1 {
    font-family: 'Cream Cake', sans-serif;
    font-size: 3.5rem;
    color: var(--yellow);
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

#welcome p {
    font-family: 'Simple Handmade', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--green);
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: black;
}

#history p {
    font-family: 'Simple Handmade', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    max-width: 1000px;
    text-align: justify;
    text-justify: inter-word;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}

h3 {
    font-family: 'Cream Cake';         /* espaço entre os itens */
    font-size: 4rem;
    color: var(--yellow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

#tecnology {
    background-color: #f48fb165;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.342);
    display: flex;            /* coloca os itens lado a lado */
    flex-wrap: wrap;          /* permite quebrar linha em telas pequenas */
    justify-content: center;  /* centraliza os itens horizontalmente */
    gap: 10px;                /* espaço entre os itens */
    margin-top: 20px;
    width: 1000px;
}

.glass-container {
    width: 140px;
    height: 160px;
    perspective: 1000px; /* necessária para efeito 3D */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.glass-container:hover .card-inner {
    transform: rotateY(180deg); /* gira o card no eixo Y */
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    backface-visibility: hidden; /* esconde a face que está virada para trás */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.card-front {
    background-color: #6dc979be;
}

.card-front i {
    color: var(--light-gray);
}

.card-back {
    background-color: #3aa8f27a;
    color: #333;
    transform: rotateY(180deg); /* vira o verso para trás inicialmente */
    text-align: center;
    font-size: 0.85rem;
}

.card-back p {
    font-family: 'Simple Handmade';
    color: #1f567a;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bolder;
}

#projects {
    flex-direction: column;
    margin-top: 20px;
    gap: 24px;
    display: flex;
    align-items: center;
    background-color: #f2f2f28a;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 1000px;

}

#projects img {
    width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

h4 {
    font-family: 'Cream Cake';         /* espaço entre os itens */
    font-size: 3rem;
    color: var(--pink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 8px rgba(114, 192, 228, 0.5);
}

#projects p {
    font-family: 'Simple Handmade', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    max-width: 800px;
    text-align: justify;
    text-justify: inter-word;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}

#contact {
    flex-direction: column;
    margin-top: 20px;
    gap: 24px;
    display: flex;
    align-items: center;
    background-color: #f2f2f28a;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 1000px;
}

#contact p {
    font-family: 'Simple Handmade', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    max-width: 800px;
    text-align: justify;
    text-justify: inter-word;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}

#social-media i{
    display: column;
    width: 30px;
    height: auto;
    padding: 30px;
    gap: 40px;
    justify-content: center;
    align-items: center;
    color: #3AA7F2;
}

#contact a {
    background: none;
    border: none;
    padding: 0;
    margin: 0 8px;
    font-size: 2rem;
    transition: color 0.2s, transform 0.2s;
}
#contact a:hover,
#contact a:focus {
    color: var(--yellow);
    transform: scale(1.2);
}

footer {
    font-family: 'Simple Handmade', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--white);
    padding: 16px 0;
    margin-top: 32px;
    width: 100%;
    text-align: center;
}
