html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    margin: 0;
    background: #f0f0f0;

}
.page-container {
    max-width: 1200px;
   margin: 0 auto;
   
  }
.navbar {
    background: #f0f0f0;
    color: rgb(45, 45, 45);
    padding: 1rem;
    display: flex;
    margin: 0;

    justify-content: space-between;
    flex-direction: row-reverse;
    margin-top: 24px;

}

.About {
    display: flex;
    margin-left: 15px;
    margin-right: 15px;
    text-decoration: none;
    background-image: linear-gradient(#3666eb, #3666eb);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: 0 100%;
    transition: background-size 0.3s ease;
}


.About:hover {
    background-size: 100% 2px;
}

.contact {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    text-decoration: none;
    justify-content: space-between;


}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-top: 18px;
}

.line {
    width: 30px;
    height: 4px;

    background: #3666EB;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.center-text {
    color: rgb(60, 60, 60);
    font-size: 14px;
    font-weight: bold;
}

/* Navigation menu */
.nav-links {
    display: none;
    flex-direction: column;
    background: #444;
    padding: 1rem;
}

.smooth {
    scroll-behavior: smooth;
}

.nav-links a {
    scroll-behavior: smooth;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
}

#menu-toggle:checked~.nav-links {
    display: flex;
    flex-direction: column;
}

/* Animation sulla nav  */
#menu-toggle:checked+label .top {

    transform: rotate(45deg) translate(12px, 12px);
}

#menu-toggle:checked+label .bottom {

    transform: rotate(-45deg) translate(12px, -12px);
}

#menu-toggle:checked+label .center-text {
    opacity: 0;
}


@media screen and (max-width: 768px) {
    .contact {
        font-size: 12px;
    }
  .about {
    font-size: 0.5rem;
}

}

/* sezzione hero */



.hero {
    height: 100vh;

}

.hero-containe {
    display: flex;
    justify-content: space-between;
}

.greeting {
    position: relative;
    height: 7rem;
    /* altezza di una riga */
    overflow: hidden;
}

.outlined-text {
    font-size: 72px;
    font-weight: bold;
    color: #3268fc;
    /* rende il riempimento invisibile */
    -webkit-text-stroke: 1px #3666EB;

}

.rotate {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    font-size: 5rem;
    margin-bottom: 20px;
    padding: 24px auto;
    animation: rotateText 8s linear infinite;
}

.name {
    font-size: 6rem;
    font-weight: 1000;
    color: #3666EB;
    margin: 50px auto;

}

.role {
    font-size: 3rem;
    font-weight: 300;
    color: #3666EB;
    margin: 50px auto;
}

.button {
    display: flex;
    margin-top: 50px;
    font-size: 20px;
    font-family: 'Courier New', Courier, monospace;
    width: 200px;
    height: 50px;
    border: none;
    font-weight: bold;
    border-top-right-radius: 28px;
    border-bottom-left-radius: 28px;
    background: #8daafa;
    text-align: center;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: transparent;
    border: solid;

}

.button:hover {
    background: rgb(47, 0, 255);
    color: rgb(230, 230, 230);
    transition: transition 0.5s;
}

.rotate:nth-child(1) {
    animation-delay: 0s;
}

.rotate:nth-child(2) {
    animation-delay: 2s;
}

.rotate:nth-child(3) {
    animation-delay: 4s;
}

.rotate:nth-child(4) {
    animation-delay: 6s;
}

@keyframes rotateText {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    5% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 1;
        transform: translateY(0);
    }

    30% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 0;
    }
}

.section {
    min-height: 100vh;
    display: flex;

}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.Inspired {
    margin-top: 70px;
}

.drive {
    margin-top: 150px;
}

@media screen and (max-width: 768px) {
    .hero {
        width: 100%;
        height: 35vh;
        justify-content: center;
    }

    .drive,
    .Inspired {

        display: none;
    }

    .greeting {
        font-size: small;
    }

    .rotate {
        font-size: 2.8rem;
    }
    .role{
        font-size:1.4  ;
    }
    .name {
        font-size: 3rem !important;
    }
}

/* NUOVA SEZZIONE frase motivazionale- due frasi sulla destra*/

.motivational {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-end;
    font-size: 40px;
    font-weight: bold;
    color: rgb(92, 92, 250);
    /* rende il riempimento invisibile */
    -webkit-text-stroke: 1px #3666EB;
    /* bordo nero di 1px */
}

@media screen and (max-width: 768px) {


    .motivational {
        margin-right: auto;
        align-items: center;
    }
}



/* NUOVA SEZZIONE presentazione sezione code-met-design */


#design-presentacion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 50px auto;


}

.Design-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* spazio tra freccia e titolo */
    position: relative;
    justify-content: flex-end;
    padding: 4rem;

}

@media screen and (max-width: 768px) {
    .Design-title-3 {
        margin-right: 0 !important;
    }

    .Design-title-4,
    .Design-title-6 {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    h3 {

        font-size: 75px !important;
        margin-top: 0 !important;
    }



    .Design-title {
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0;
    }

    #my-story {
        display: flex;
        height: 100%;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;

    }

    .about-my {
        width: 100%;
        margin: z;
        font-size: 25px !important;

    }

    .about-my-2 {
        margin-left: 0 !important;
        justify-content: center;
        align-items: center;
        font-size: 35px !important;
        width: 300px !important;
    }

    .reveal {
        margin-top: 150px;
    }
}

.Design-title-3 {
    justify-content: flex-start;

}


/* animazione della freccia che lampeggia verso il basso  */

.arrow-down {
    font-size: 4rem;
    text-align: center;
    margin-top: 10px;
    animation: blinkArrow 1s infinite;
}

@keyframes blinkArrow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}



/* animazione che batte le lettere una per una */

.arrow-text {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    font-size: 4rem;
    font-weight: 700;
    margin: 50px auto;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 5s steps(38) infinite, blink 0.7s step-end infinite, colorchange 5s infinite;
    color: #000;
}

@media screen and (max-width: 768px){
    .arrow-text{
        font-size: 0.9rem;
        
    }
    .scrool-conteiner{
        margin-top: 322px;
    }
}
/* Simula la scrittura e resetta la scrittura  */

@keyframes typing {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    60% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

/* Lampeggio del cursore */

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Cambio colore continuo */
@keyframes colorchange {
    0% {
        color: #000;
    }

    25% {
        color: #005eff;
    }

    50% {
        color: #00b894;
    }

    75% {
        color: #ff6f00;
    }

    100% {
        color: #000;
    }
}

/*fine animazione */
h3 {

    font-size: 150px;
    margin: 0 auto;
}

.reveal {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 7s ease;
}

@keyframes drawHorizontal {
    to {
        width: 60px;
    }
}

@keyframes drawVertical {
    to {
        height: 100px;
    }
}

.Design-title-4 {
    display: flex;
    justify-content: flex-start;
    margin: 50px;

}

.Design-title-5 {
    display: flex;
    justify-content: center;
}

.Design-title-6 {
    display: flex;
    justify-content: flex-start;
    margin: 50px;

}

.about-my {
    font-size: 40px;
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    padding: 15px;
    width: 400px;
    border: solid 2px black;
    margin-left: 100px;
}

.about-my-2 {
    font-size: 40px;
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    padding: 15px;
    width: 400px;
    border: solid 2px black;

}

.mail {
    display: flex;
    justify-content: flex-start;
}

@media screen and (max-width: 768px) {

    .button-2 {
        margin: 80px auto !important;
    }
}

.button-2 {
    display: flex;
    margin-left: 50px;
    margin-top: 80px;
    margin-bottom: 50px;
    font-size: 20px;
    font-family: 'Courier New', Courier, monospace;
    width: 200px;
    height: 50px;
    border: none;
    font-weight: bold;
    border-top-right-radius: 28px;
    border-bottom-left-radius: 28px;
    background: #8daafa;
    text-align: center;
    align-items: center;
    justify-content: center;
    text-decoration: none;

}

.button-2:hover {
    color: #e0e0e0;
    background: rgb(6, 37, 239);
    transition: transition 0.5s;
}


/* NUOVA SEZZIONE SKILS  */

.skills-title {
    font-size: 8rem;
    text-align: center;
    margin-top: 150px;
    margin-bottom: 150px;
}

@media screen and (max-width: 768px) {
    .skills-title {
        font-size: 2.5rem !important;
        margin: 24px auto !important;
    }
}

.skills-carousel {
    overflow: hidden;
    white-space: nowrap;
    width: 70%;
    margin-left: 20%;
    margin-bottom: 50px;
    padding: 20px 0;
}

.skills-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

.skill-1 {
    background: #E34F26;
}

.skill-2 {
    background: #1572B6;
}

.skill-3 {
    background: #F7DF1E;
}

.skill-4 {
    background: #31A8FF;
}

.skill-5 {
    background: #FF9A00;
}

.skill-6 {
    background: #FF3C00;
}

.skill-7 {
    background: #9999FF;
}

.skill-8 {
    background: #F24E1E;
}

.skill {
    display: inline-block;
    font-size: 1.5rem;
    padding: 10px 30px;
    margin: 0 10px;

    color: white;
    border-radius: 25px;
    font-weight: bold;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* NUOVA SEZZIONE PORFOLIO */


.porfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 155px;
}

.html-title {
    font-size: 80px;
   margin: 80px auto;
    justify-content: center;
    display: flex;

    font-size: 80px;
}

@media screen and (max-width: 768px) {
    .html-title {
        font-size: 2.5rem !important;
    }
}


#explanation-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1150px;
    margin: auto;
    background-color: #e8f2fc;
    border-radius: 10px;
    margin-bottom: 24px;
}

.proget-name {
    display: flex;
    justify-content: center;
}

.card {
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;

    margin-top: 24px;
    margin-bottom: 24px;
}

.project-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.card-content {
    padding: 16px;
}

ol {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

li {
    margin: 15px auto;
}

.tech-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tech-icons img {
    padding: 10px;
}

.progress-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-label {
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
}

.progress-fill.html {
    background-color: #e34c26;
}

.progress-fill.css {
    background-color: #264de4;
}

.progress-fill.js {
    background-color: #f0db4f;
}

.btn-1 {
    display: flex;
    margin-top: 50px;
    font-size: 20px;
    font-family: 'Courier New', Courier, monospace;
    width: 150px;
    height: 50px;
    border: none;
    font-weight: bold;
    border-top-right-radius: 28px;
    border-bottom-left-radius: 28px;
    background-color: #bedcfb;
    transition: background-color 0.3s ease;
    text-align: center;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-1:hover {
    background-color: #0080ffcc;
}

/* NUOVA SEZZIONE FOOTER */



.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 20px;
    font-size: large;


}

@media screen and (max-width: 768px) {

    .mail {
        margin-bottom: 80px auto !important;
    }
}

.mail {
    color: #5b5b5b;
    text-decoration: none;
}