
/*roba generale*/
body {
    color: #66fcf1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    width: 100dvw;
    background-color: #0b0c10;
    margin: 0;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
}
/*roba della navbar*/
nav {
    display: flex;
    width: 100%;
    padding: 10px 0px;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: absolute;
    top: 0;
    transition: 0.5s ease;
}
nav:hover {
    background-color: #66fcf1;
    transition: 0.5s ease;
}
nav:hover a {
    color: #0b0c10;
    transition: color 0.5s ease;
}
nav a {
    color: #66fcf1;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.5s ease;
}
nav a:hover {
    color: whitesmoke;
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 3rem;
}
/*roba del footer*/
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #0b0c10;
    color: #66fcf1;
    font-size: 0.9rem;
}
/*roba della home page*/
/*container della propic e della scritta della home page*/
#container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    gap: 12rem;
}
/*resize del container */
@media (max-width: 910px) {
    #container {
        flex-direction: column;
        gap: 1rem;
    }
}
/*roba della profile pic*/
#profile-pic{
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    transition: transform 0.67s ease;
}
#profile-pic:hover {
    transform: rotate(360deg);
    transition: transform 0.67s ease;
}
/*roba della scritta della home page*/
#text-container {
    display: flex;
    flex-direction: column;
}
#text-container span {
    display: inline-block;
    font-size: 1.5rem;
    margin: 0;
    padding: 1.2rem;
    animation: bounce 4s infinite;
}
/*righe della scritta dell'home page*/
#prima-riga {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
#seconda-riga {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
#terza-riga {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
#quarta-riga {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
/*resize della navbar*/
@media (max-width: 300px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
}
/*resize dell'immagine del profilo, text e footer*/
@media (max-width: 500px) {
    #profile-pic {
        width: 10rem;
        height: 10rem;
        border-radius: 50%;
    }
    #text-container span {
        font-size: 1.2rem;
        padding: 0.8rem;
    }
    footer {
        font-size: 0.7rem;
    }
}

/*keyframes per l'animazione della scritta della home page*/
@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    7.5% {
        transform: translateY(-20px); 
    }
    15% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(0);
    }
}

/*animazioni per la scritta della home page*/
#prima-riga span:nth-child(1) { animation-delay: 0.0s; }
#prima-riga span:nth-child(2) { animation-delay: 0.1s; }
#prima-riga span:nth-child(3) { animation-delay: 0.2s; }
#prima-riga span:nth-child(4) { animation-delay: 0.3s; }
#prima-riga span:nth-child(5) { animation-delay: 0.4s; }

#seconda-riga span:nth-child(1) { animation-delay: 0.5s; }
#seconda-riga span:nth-child(2) { animation-delay: 0.6s; }
#seconda-riga span:nth-child(3) { animation-delay: 0.7s; }
#seconda-riga span:nth-child(4) { animation-delay: 0.8s; }

#terza-riga span:nth-child(1) { animation-delay: 0.9s; }
#terza-riga span:nth-child(2) { animation-delay: 1.0s; }
#terza-riga span:nth-child(3) { animation-delay: 1.1s; }
#terza-riga span:nth-child(4) { animation-delay: 1.2s; }
#terza-riga span:nth-child(5) { animation-delay: 1.3s; }
#terza-riga span:nth-child(6) { animation-delay: 1.4s; }
#terza-riga span:nth-child(7) { animation-delay: 1.5s; }
#terza-riga span:nth-child(8) { animation-delay: 1.6s; }

#quarta-riga span:nth-child(1) { animation-delay: 1.7s; }
#quarta-riga span:nth-child(2) { animation-delay: 1.8s; }
#quarta-riga span:nth-child(3) { animation-delay: 1.9s; }
#quarta-riga span:nth-child(4) { animation-delay: 2.0s; }
#quarta-riga span:nth-child(5) { animation-delay: 2.1s; }
#quarta-riga span:nth-child(6) { animation-delay: 2.2s; }
#quarta-riga span:nth-child(7) { animation-delay: 2.3s; }
#quarta-riga span:nth-child(8) { animation-delay: 2.4s; }
#quarta-riga span:nth-child(9) { animation-delay: 2.5s; }

/*fine roba dell'home page*/

/*roba dell'about me*/

/*container delle card*/
#card-container {
    display: flex;
    height: 30rem;
    width: 60rem;
    flex-wrap: wrap;
    gap: 2rem;
}

/*roba della card*/
.card {
    display: flex;
    flex-direction: column;    
    align-items: center;
    background-color: #1f2833;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    justify-content: center;
    flex: 1;
    transition: flex 0.5s ease, color 0.5s ease;
    overflow:hidden;
}

.card:hover {
    background-color: #66fcf1;
    flex: 3;
    color: #0b0c10;
    transition: flex 0.5s ease, color 0.5s ease;
}
/*contenuto che appare al hover della card*/
#card-1:hover::after {
    content: "Ciao, sono Sannella Francesco, un ragazzo di 21 anni appassionato di programmazione. Attualmente sto studiando Informatica presso l'Università degli Studi di Salerno.";
    margin-top: 1rem;
    font-size: 0.8rem;
}

#card-2:hover::after {
    content: "Ho programmato dal primo anno delle superiori iniziando con il C++, Java e Web Development. Durante le superiori ho sviluppato una web app per un Hackaton per la gestione di un servizio di ristorazione, usando html, css, js e php.";
    margin-top: 1rem;
    font-size: 0.8rem;
}

#card-3:hover::after {
    content: "Le mie competenze includono linguaggi di programmazione come C, C++, Java, Python. Per quanto riguarda il web development, ho esperienza con HTML, CSS, JavaScript e PHP. Ho anche una buona conoscenza di database come MySQL.";
    margin-top: 1rem;
    font-size: 0.8rem;
}

#card-4:hover::after {
    content: "Sono un grande amante di videogiochi, se vi piace un videogioco single player, probabilmente l'ho giocato.";
    margin-top: 1rem;
    font-size: 0.8rem;
}   
 /*resize del container e delle card*/
@media (max-width: 700px) {
    #card-container {
        width: 80%;
        height: 75%;
        flex-direction: column;
    }
    .card {
        width: 80%;
        margin: 0 auto;
    }
    .card:hover::after {
        font-size: 0.7rem;
    }
    
}
@media (max-width: 300px) {
    #card-container {
        width: 50%;
        height: 50%;
        flex-direction: column;
    }
    .card {
        width: 50%;
        margin: 0 auto;
    }
    .card:hover::after {
        font-size: 0.7rem;
    }
}
/*fine roba dell'about me*/

/*inizio roba dei contatti*/

/*tolgie la scatola blu del click dell'immagine da mobile*/
a {
    -webkit-tap-highlight-color: transparent;
}
/*container dei contatti*/
#contact-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    position: relative;
}
/*immagini */
.contact-image-icon {

    width: 10rem;
    height: 10rem;
    transform: translateY(-800%);
    animation: fall 1.5s ease forwards;;
    position: relative;
}
/*immagini e scritte*/
.cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}
/* animazione caduta*/
@keyframes fall {
    0% {
        transform: translateY(-800%) scaleY(1);
    }
    18% {
        transform: translateY(15%) scaleY(1.05);
    }
    20% {
        transform: translateY(15%) scaleY(0.9);
    }
    40% {
        transform: translateY(-50%) scaleY(1);
    }
    60% {
        transform: translateY(15%) scaleY(0.95);

    }
    80% {
        transform: translateY(-20%) scaleY(1);
    }
    100% {
        transform: translateY(0%) scaleY(1);
        height: 100%;
    }
}
/*delays animazioni*/
#instagram {
    animation-delay: 0.7s;
}

#linkedin {
    animation-delay: 1.1s;
}
#github {
    animation-delay: 0.9s;
}

/*resize per mobile*/
@media (max-width: 850px) { 
    #contact-container {
        flex-direction: column;
        gap: 1rem;
    }
    .contact-image-icon {
        animation: none;
        transform: translateY(15%);        
    }
    #contact-container span{
        font-size: 0.7rem;
    }
    #contact-container .contact-image-icon {
        width: 7rem;
        height: 7rem;
    }
}
    @media (max-width: 300px) {
        #contact-container {
        margin-top: 6rem;
        flex-direction: column;
        gap: 1rem;
    }
    .contact-image-icon {
        animation: none;
        transform: translateY(15%);        
    }
    #contact-container span{
        font-size: 0.7rem;
    }
    #contact-container .contact-image-icon {
        width: 7rem;
    }
}

/*fine roba dei contatti*/