/* Tavolozza */
:root {
    --primary: #032547;
    --secondary: #00E5E8;
    --accent: #a15ea2;
    --light: #fff;
    --dark: #000;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Tipografia */
body {
    font-family: 'PT Sans Narrow', sans-serif;
    overflow-x: scrol;
}

/* html,
body {
    overflow-x: hidden;
} */

html {
    scroll-behavior: smooth;
}

h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 45px;
}

h2 {
    font-family: 'Philosopher', sans-serif;
    font-size: 35px;
}

p,
ul,
a {
    font-size: 1.5em;
    line-height: 1.4em;
}

/* Grid system */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}



/* Bottom toTop */
.to-top {
    position: fixed;
    bottom: 16px;
    right: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent);
    border: 0 solid #fff;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s;
    z-index: 999;
}

.to-top.active {
    bottom: 32px;
    pointer-events: auto;
    opacity: 1;
}



/* Header */
#header {
    width: 100%;
    background: var(--primary);

}

.header__content {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding-top: 30px;
}

.header__logo {
    grid-column: 1/4;
    display: flex;
    justify-content: start;
    align-items: center;
    opacity: 0;
    animation: slideTop 1s ease forwards;
}

.header__menu {
    grid-column: 6/9;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 30px;
}

.header__menu a {
    font-family: 'Philosopher', sans-serif;
    font-size: 20px;
    color: var(--light);
    font-weight: 400;
    opacity: 0;
    animation: slideTop 0.5s ease forwards;
    animation-delay: calc(0.2s * var(--i));
    display: inline-block;
}

@keyframes slideTop {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header__menu a.active,
.header__menu a:hover {
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.header__icon {
    display: none;
}



/* Home */
#home {
    width: 100%;
    background: var(--primary);
}

.home__content {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0px;
    justify-content: flex-start;
}

.home__text {
    grid-column: 1/5;
    justify-self: start;
    align-self: center;
}

.home__text h1 span {
    color: var(--secondary);
}

.home__text h1 {
    font-size: 45px;
    color: var(--light);
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 0.7s;
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.home__text h2 {
    color: var(--light);
    margin-bottom: 25px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.home__text p {
    color: var(--light);

    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.3s;
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.home__photo {
    grid-column: 6/9;
    display: flex;
    justify-content: end;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 2.1s;
}

.home__photo img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    clip-path: circle();
}


@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.home__btn {
    padding-top: 50px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.2em;
    color: var(--light);
    border-radius: 40px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 1.8s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
    z-index: -1;
    border-radius: 50px;
    background-size: 200%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    background-position: 0 0;
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
    z-index: -1;
    border-radius: 40px;
    background-size: 200%;
    transition: 0.5s ease;
}

.btn:hover:after {
    background-position: 100% 0;
}



/* About */
.about__box {
    max-width: 100%;
}

#about {
    background: var(--light);
    max-width: 1200px;
    margin: auto;
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
}

.about__text span {
    color: var(--accent);
    font-weight: 700;
}

.about__text {
    grid-column: 1/9;
}

.about__text h1 {
    display: flex;
    justify-content: center;
    font-size: 80px;
    color: #03254720;
}

.about__text h2 {
    margin-top: -65px;
    font-family: 'Philosopher', sans-serif;
    display: flex;
    justify-content: center;
    color: var(--primary);
}

.about__text p {
    text-align: center;
    margin-top: 100px;
    color: var(--primary);
}

.about__btn {
    grid-column: 1/9;
    justify-self: center;
    padding-top: 50px;
}

.about__btn a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.2em;
    color: var(--light);
    border-radius: 40px;
    position: relative;
    z-index: 1;
}

.about__btn a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
    z-index: -1;
    border-radius: 50px;
    background-size: 200%;
}

.about__btn a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    background-position: 0 0;
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
    z-index: -1;
    border-radius: 40px;
    background-size: 200%;
    transition: 0.5s ease;
}

.about__btn a:hover:after {
    background-position: 100% 0;
}

/* Training */
.training__box {
    background: linear-gradient(180deg, rgba(20, 35, 92, 1) 59%, rgba(15, 26, 68, 1) 100%), linear-gradient(0deg, rgba(20, 35, 92, 1) 87%, rgba(255, 255, 255, 1) 100%) var(--primary);
    width: 100%;
}

.training {
    max-width: 1200px;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.training__content {
    gap: 40px;
}

.training__education {
    grid-column: 1/5;
    padding-top: 20px;
}

.training__experience {
    grid-column: 5/9;
    padding-top: 20px;
}

.training__education-text,
.training__experience-text {
    border-left: 3px solid var(--secondary);
}

.training__education h1,
h2,
.training__experience h1,
h2 {
    color: var(--light);
}

.training__education h1,
.training__experience h1 {
    font-size: 30px;
    padding-left: 20px;
}

.training__education h2,
.training__experience h2 {
    font-size: 25px;
}

.training__education .title,
.training__experience .title {
    display: flex;
    align-items: center;
}

.fa-circle {
    color: var(--secondary);
    font-size: 15px;
    margin-left: -50px;
}

.training__education .year,
.training__experience .year {
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fa-calendar-days {
    font-size: 15px;
}

.year p {
    font-size: 18px;
    font-weight: 600;
}

.diploma,
.università,
.oggi,
.tirocinio,
.lavoro,
.workshop {
    border: 3px solid var(--secondary);
    border-radius: 20px;
    padding: 18px;
    margin-top: 23px;
    margin-left: 20px;
    cursor: pointer;
}

.diploma:hover {
    background: #00e4e819;
}

.diploma:hover .fa-circle {
    color: var(--primary);
    border: 2px solid var(--secondary);
    border-radius: 100%;
}

.università:hover {
    background: #00e4e819;
}

.università:hover .fa-circle {
    color: var(--primary);
    border: 2px solid var(--secondary);
    border-radius: 100%;
}

.oggi:hover {
    background: #00e4e819;
}

.oggi:hover .fa-circle {
    color: var(--primary);
    border: 2px solid var(--secondary);
    border-radius: 100%;
}

.tirocinio:hover {
    background: #00e4e819;
}

.tirocinio:hover .fa-circle {
    color: var(--primary);
    border: 2px solid var(--secondary);
    border-radius: 100%;
}

.lavoro:hover {
    background: #00e4e819;
}

.lavoro:hover .fa-circle {
    color: var(--primary);
    border: 2px solid var(--secondary);
    border-radius: 100%;
}

.workshop:hover {
    background: #00e4e819;
}

.workshop:hover .fa-circle {
    color: var(--primary);
    border: 2px solid var(--secondary);
    border-radius: 100%;
}

.description {
    font-size: 20px;
    color: var(--light);
}



/* Skills */
.skills__box {
    width: 100%;
    background: linear-gradient(360deg, rgba(20, 35, 92, 1) 59%, rgba(15, 26, 68, 1) 100%) var(--primary);
}

.skills {
    max-width: 1200px;
    margin: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 40px;
}

.skills h1 {
    color: var(--light);
    font-size: 30px;
    text-align: center;
}

.skills h2 {
    color: var(--light);
    font-size: 25px;
}

.skills img {
    max-width: 150px;
    height: auto;
    transition-property: outline-offset, outline-color, background-color;
    transition-duration: 0.25s;
    cursor: pointer;
}

.skills ul {
    margin-top: 20px;
}

.skills ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills ul :nth-child(1) {
    grid-column: 2/3;
}

.skills ul :nth-child(2) {
    grid-column: 3/5;
}

.skills ul :nth-child(3) {
    grid-column: 5/7;
}

.skills ul :nth-child(4) {
    grid-column: 7/8;
}

.skills ul :nth-child(5) {
    grid-column: 2/3;
}

.skills ul :nth-child(6) {
    grid-column: 3/5;
}

.skills ul :nth-child(7) {
    grid-column: 5/7;
}

.skills ul :nth-child(8) {
    grid-column: 7/8;
}

.skills ul :nth-child(9) {
    grid-column: 3/5;
}

.skills ul :nth-child(10) {
    grid-column: 5/7;
}

.img2,
.img6,
.img9 {
    padding-left: 45px;
}

.img3,
.img7,
.img10 {
    padding-right: 45px;
}

.skills ul li img:hover {
    animation: shake 0.25s;
    scale: 1.1;
}

.skills ul li:hover h2 {
    text-shadow: 0 0 16px var(--secondary);
}

@keyframes shake {
    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-15deg);
    }
}



/* Portfolio */
.portfolio__box {
    max-width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio__title {
    max-width: 1200px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 5;
}

.portfolio__text h1 {
    grid-column: 1/9;
    justify-self: center;
    font-size: 80px;
    color: #03254761;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.812);
}

.portfolio__text h2 {
    grid-column: 1/9;
    justify-self: center;
    margin-top: -70px;
    color: var(--primary);
}

.portfolio__text-btn {
    grid-column: 1/9;
    justify-self: center;
    padding-top: 10px;
}

.portfolio__text-btn a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.2em;
    color: var(--light);
    border-radius: 40px;
    position: relative;
}

.portfolio__text-btn a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
    z-index: -1;
    border-radius: 50px;
    background-size: 200%;
}

.portfolio__text-btn a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    background-position: 0 0;
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
    z-index: -1;
    border-radius: 40px;
    background-size: 200%;
    transition: 0.5s ease;
}

.portfolio__text-btn a:hover:after {
    background-position: 100% 0;
}

.portfolio__preview {
    max-width: 100%;
    height: 100%;
}

.portfolio__preview::before {
    content: '';
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.512);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

.portfolio__preview img {
    max-width: 100%;
    height: 100%;
    z-index: 2;
    left: 0;
    top: 0;
    position: absolute;
    object-fit: cover;
}

.preview-navigation {
    z-index: 5;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(80px);
    margin-top: 300px;
    gap: 20px;
}

.preview-navigation .nav-btn {
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(3, 45, 87, 0.723);
    transition: 0.3s ease;
}

.preview-navigation .nav-btn:hover {
    transform: scale(1.2);
}

.preview-navigation .nav-btn.active {
    background: var(--light);
}

.img-slide {
    position: absolute;
    width: 100%;
    clip-path: circle(0% at 0 50%);
}

.img-slide.active {
    clip-path: circle(150% at 0 50%);
    transition: 2s ease;
    transition-property: clip-path;
}



/* Contact */
.contact__box {
    max-width: 100%;
    background: var(--primary);
}

.contact__content {
    max-width: 1200px;
    margin: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.contact__content .title {
    text-align: center;
}

.contact__content .title h1 {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.434);
}

.contact__content .title h2 {
    margin-top: -62px;
    color: var(--light);
}

.contact__content .form {
    max-width: 800px;
    height: 350px;
    margin-top: 100px;
    border: 2px solid var(--primary);
    background-image: radial-gradient(#032547 0.5px, #ffffff 0.5px);
    background-size: 15px 15px;
    padding: 30px 60px;
}

.contact__content .form h2 {
    font-family: 'PT Sans Narrow', sans-serif;
    grid-column: 1/9;
    text-align: center;
    color: var(--primary);
    margin-bottom: 30px;
}

.contact__content .form h2 span {
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.contact__content .form .name {
    grid-column: 1/4;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-bottom: 2px solid var(--primary);
    height: 50px;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1.5em;
}

.contact__content .form .email {
    grid-column: 6/9;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-bottom: 2px solid var(--primary);
    height: 50px;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1.5em;
}

.contact__content .form textarea {
    grid-column: 1/9;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-bottom: 2px solid var(--primary);
    height: 90px;
    padding-top: 30px;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1.5em;
}

.contact__content .form input,
textarea:focus {
    outline-width: 0;
}

.contact__btn {
    grid-column: 1/9;
    justify-self: center;
}

.contact__btn a input {
    background: transparent;
    font-size: 18px;
    font-family: 'PT Sans Narrow', sans-serif;
    color: var(--light);
    border: 0;
}

.contact__btn a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    border-radius: 40px;
    position: relative;
    z-index: 1;
}

.contact__btn a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
    z-index: -1;
    border-radius: 50px;
    background-size: 200%;
}

.contact__btn a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    background-position: 0 0;
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
    z-index: -1;
    border-radius: 40px;
    background-size: 200%;
    transition: 0.5s ease;
}

.contact__btn a:hover:after {
    background-position: 100% 0;
}

.checkbox {
    grid-column: 1/9;
    display: flex;
    align-items: center;
    gap: 2px;
}

.checkbox a {
    font-size: 15px;
    font-family: 'PT Sans Narrow', sans-serif;
}



/* Footer */
footer {
    max-width: 100%;
    height: 350px;
    background: var(--light);
    margin-top: -130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__content {
    max-width: 1200px;
    height: auto;
    margin-top: 200px;
}

.footer-logo {
    grid-column: 1/4;
    justify-self: end;
    align-self: center;
}

.footer-line {
    grid-column: 4/5;
    width: 2px;
    height: auto;
    justify-self: center;
    background-color: var(--primary);
}

.footer-icon {
    grid-column: 5/9;
    justify-self: start;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-icon .icon a {
    padding-right: 10px;
}

.footer-icon .icon i {
    font-size: 30px;
    color: var(--primary);
    cursor: pointer;
    transition-duration: 0.25s;
}

.footer-icon i:hover {
    color: #a15ea2;
    scale: 1.3;
}



.footer-newsletter {
    z-index: 800;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.footer-newsletter__button button {
    border: 0;
    background: var(--primary);
    border-radius: 5px;
    padding: 5px;
}

.fn-button {
    font-size: 22px;
    font-weight: 700;
    color: var(--light);
    cursor: pointer;
    transition-duration: 0.25s;
}

.fn-button:hover {
    background: #a15ea2;
    scale: 1.1;
}

dialog {
    background: var(--accent);
    max-width: 600px;
    border-radius: 30px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(218, 236, 255, 0.723);
    animation: fadeIn 1s ease both;
    margin: auto;
    padding: 40px 45px 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

dialog::backdrop {
    animation: fadeIn 1s ease both;
    background: #03254781;
    z-index: 300;
    backdrop-filter: blur(40px);
}

form {
    display: flex;
    align-items: center;
    justify-content: center;
}

form input {
    width: 180px;
    display: inline-block;
    text-align: center;
    font-size: 15px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background: var(--light);
    padding: 10px;
    outline: none;
    border: none;
    color: var(--dark);
}

#dialog input::placeholder {
    color: #999;
}


.button-subscribe {
    background: #e6e6e66c;
    border: 2px solid var(--light);
    font-weight: 700;
    padding: 7.8px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    cursor: pointer;
    color: var(--light);
    font-size: 1em;
    outline: none;
}

.button-subscribe:hover {
    color: var(--accent);
}


dialog h2 {
    font-size: 55px;
    color: var(--light);
    margin: 0;
    padding: 0;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    z-index: 700;
    box-shadow: 0 2px 2px rgba(3, 45, 87, 0.723);
}

dialog p {
    font-size: 1.5em;
    color: var(--light);
    text-align: center;
    padding-top: 25px;
    padding-bottom: 25px;
}

.x__close {
    color: var(--light);
    font-size: 20px;
    border: none;
    background: none;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}



.x__close i:hover {
    color: var(--light);
    scale: 1;
}

.checkbox-nl {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 2px;
    justify-content: center;
    color: var(--light);
    margin-top: 10px;
}


.checkbox-nl a {
    font-size: 15px;
    font-family: 'PT Sans Narrow', sans-serif;
    color: var(--primary);
}

.footer-legal {
    grid-column: 1/9;
    display: flex;
    gap: 30px;
    font-size: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.footer-legal a {
    color: #0325477d;
}



/* -------------------------------------------------------------------------------- */
/* ! Media Query */
/* -------------------------------------------------------------------------------- */

/* Media query - Header */
@media (max-width: 900px) {
    .header__menu {
        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;
        background: var(--accent);
        width: 100%;
        height: 100vh;
        overflow: hidden;
        transform: translateX(-100%);
        transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
        /* clip-path: circle(0% at 0 50%); */
    }

    .header__logo {
        z-index: 1001;
    }

    .open .header__menu {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 1000;
        /* clip-path: circle(150% at 0 50%);
        transition: 2s ease;
        transition-property: clip-path; */
    }

    .header__menu {
        padding-top: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 80px;
    }

    .header__menu li:nth-child(1) {
        margin-top: 40px;
    }

    .header__menu a {
        font-size: 30px;
        text-shadow: 0 0 1px rgba(3, 45, 87, 0.526);
    }

    .header__icon {
        display: block;
        grid-column: 7/9;
        justify-self: end;
        align-self: center;
        z-index: 1001;
    }

    body.open .header__menu {
        transform: translateX(0);
    }

    .fa-burger {
        opacity: 1;
        color: var(--light);
        font-size: 28px;
        position: relative;
        display: block;
        margin-right: 25px;
        cursor: pointer;
    }
}

/* Media query - Section */
@media (max-width: 1024px) {
    .header__logo {
        padding-left: 40px;
        display: flex;
    }

    .header__menu {
        padding-right: 40px;
    }

    .header__icon {
        padding-right: 40px;
    }

    .fa-burger {
        margin-right: 0;
    }



    .home__content {
        padding-inline: 40px;
        padding-bottom: 40px;
        display: flex;
        flex-direction: column-reverse;
        column-gap: 100px;
        gap: 0;
    }

    .home__photo {
        grid-column: 1/9;
        justify-content: center;
    }

    .home__photo img {
        max-width: 50%;
    }

    .home__text {
        grid-column: 1/9;
        text-align: center;
    }



    #about {
        padding: 40px;
    }



    .training__content {
        margin-inline: 40px;
    }



    .skills ul {
        column-gap: 55px;
    }

    .img2,
    .img6,
    .img9 {
        padding-right: 50px;
    }

    .img3,
    .img7,
    .img10 {
        padding-left: 50px;
    }



    .contact__content .form {
        padding-inline: 40px;
    }
}



@media (max-width: 768px) {
    .home__content {
        padding-inline: 40px;
        padding-bottom: 40px;
        padding-top: 20px;
        display: flex;
        flex-direction: column-reverse;
        column-gap: 100px;
        gap: 0;
    }

    .home__photo {
        grid-column: 1/9;
        justify-content: center;
    }

    .home__photo img {
        max-width: 55%;
    }

    .home__text {
        grid-column: 1/9;
        text-align: center;
    }

    .home__btn {
        padding-top: 40px;
    }

    .home__btn a {
        padding: 13px 17px;
        font-size: 1em;
    }



    #about {
        padding: 40px;
    }

    .about__text h1 {
        font-size: 60px;
    }

    .about__text h2 {
        font-size: 23px;
        margin-top: -45px;
    }

    .about__text p {
        margin-top: 0;
        padding-top: 50px;
        font-size: 1.2em;
    }

    .about__btn {
        padding-top: 40px;
    }

    .about__btn a {
        padding: 13px 17px;
        font-size: 1em;
    }



    .training__content {
        margin-inline: 40px;
    }

    .training__education {
        grid-column: 1/9;
    }

    .training__experience {
        grid-column: 1/9;
    }

    .training__content h2,
    .training__content p,
    .training__education h2,
    .training__education p {
        font-size: 1.25em;
    }



    .skills {
        margin-inline: 40px;
    }


    .skills li h2 {
        font-size: 22px;
    }

    .skills ul {
        margin-inline: 40px;
        gap: 5px;
    }

    .skills ul :nth-child(1) {
        grid-column: 1/3;
        justify-self: end;
    }

    .skills ul :nth-child(2) {
        grid-column: 4/6;
        justify-self: center;
    }

    .skills ul :nth-child(3) {
        grid-column: 7/9;
        justify-self: start;
    }

    .skills ul :nth-child(4) {
        grid-column: 1/3;
        justify-self: end;
    }

    .skills ul :nth-child(5) {
        grid-column: 4/6;
        justify-self: center;
    }

    .skills ul :nth-child(6) {
        grid-column: 7/9;
        justify-self: start;
    }

    .skills ul :nth-child(7) {
        grid-column: 1/3;
        justify-self: end;
    }

    .skills ul :nth-child(8) {
        grid-column: 4/6;
        justify-self: center;
    }

    .skills ul :nth-child(9) {
        grid-column: 7/9;
        justify-self: start;
    }

    .skills ul :nth-child(10) {
        grid-column: 1/9;
        justify-self: center;
    }



    .img2,
    .img6,
    .img9,
    .img3,
    .img7,
    .img10 {
        padding: 0;
    }

    .skills img {
        width: 200px;
    }



    .portfolio__text h1 {
        font-size: 60px;
    }

    .portfolio__text h2 {
        font-size: 23px;
        margin-top: -53px;
    }

    .portfolio__text-btn a {
        padding: 13px 17px;
        font-size: 1em;
    }



    .contact__content {
        margin-inline: 40px;
    }

    .contact__content .title h1 {
        font-size: 60px;
    }

    .contact__content .title h2 {
        font-size: 23px;
        margin-top: -45px;
    }

    .contact__content .form {
        padding-inline: 40px;
    }

    .contact__content .form h2 {
        font-size: 27px;
    }

    .contact__content .form .name,
    .contact__content .form .email {
        font-size: 1.2em;
        height: 35px;
    }

    .contact__content .form textarea {
        font-size: 1.2em;
        height: 65px;
    }

    .contact__btn {
        margin-top: 60px;
    }

    .contact__btn a {
        padding: 13px 17px;
    }

    .contact__btn a input {
        font-size: 15px;
    }



    .footer__content {
        margin-top: 290px;
        gap: 15px;
    }



    dialog {
        max-width: 600px;
    }
}



@media (max-width: 480px) {
    .header__logo {
        padding-left: 40px;
        display: flex;
    }

    .header__menu a {
        font-size: 25px;
    }

    .header__logo img {
        width: 70px;
    }

    .header__icon {
        padding-right: 40px;
    }

    .fa-burger {
        margin-right: 0;
        font-size: 25px;
    }



    .home__content {
        padding-inline: 40px;
        padding-bottom: 40px;
        padding-top: 20px;
        display: flex;
        flex-direction: column-reverse;
        column-gap: 100px;
        gap: 0;
    }

    .home__photo {
        grid-column: 1/9;
        justify-content: center;
    }

    .home__photo img {
        max-width: 55%;
    }

    .home__text {
        grid-column: 1/9;
        text-align: center;
    }

    .home__text h1 {
        font-size: 30px;
    }

    .home__text h2 {
        font-size: 20px;
    }

    .home__text p {
        font-size: 1.2em;
    }

    .home__btn {
        padding-top: 40px;
    }

    .home__btn a {
        padding: 13px 17px;
        font-size: 1em;
    }



    #about {
        padding: 40px;
    }

    .about__text h1 {
        font-size: 60px;
    }

    .about__text h2 {
        font-size: 23px;
        margin-top: -45px;
    }

    .about__text p {
        margin-top: 0;
        padding-top: 50px;
        font-size: 1.2em;
    }

    .about__btn {
        padding-top: 40px;
    }

    .about__btn a {
        padding: 13px 17px;
        font-size: 1em;
    }



    .training__content {
        margin-inline: 40px;
    }

    .training__education {
        grid-column: 1/9;
    }

    .training__experience {
        grid-column: 1/9;
    }

    .training__content h2,
    .training__content p,
    .training__education h2,
    .training__education p {
        font-size: 1.25em;
    }



    .skills li h2 {
        font-size: 22px;
    }

    .skills ul {
        gap: 25px;
    }

    .skills ul :nth-child(odd) {
        grid-column: 1/5;
        justify-self: end;
    }

    .skills ul :nth-child(even) {
        grid-column: 5/9;
        justify-self: start;
    }

    .img2,
    .img6,
    .img9,
    .img3,
    .img7,
    .img10 {
        padding: 0;
    }

    .skills img {
        width: 200px;
    }



    .portfolio__text h1 {
        font-size: 60px;
    }

    .portfolio__text h2 {
        font-size: 23px;
        margin-top: -53px;
    }

    .portfolio__text-btn a {
        padding: 13px 17px;
        font-size: 1em;
    }



    .contact__content .title h1 {
        font-size: 60px;
    }

    .contact__content .title h2 {
        font-size: 23px;
        margin-top: -45px;
    }

    .contact__content .form {
        width: 280px;
        height: 355px;
        padding: 20px 30px;
    }

    .contact__content .form h2 {
        font-size: 27px;
    }

    .contact__content .form .name,
    .contact__content .form .email {
        font-size: 1em;
        height: 35px;
    }

    .contact__content .form textarea {
        font-size: 1.2em;
        height: 65px;
    }

    .contact__btn {
        margin-top: 23.5px;
    }

    .contact__btn a {
        padding: 13px 17px;
    }

    .contact__btn a input {
        font-size: 15px;
    }



    .footer__content {
        margin-top: 290px;
        gap: 15px;
    }

    .footer-logo {
        grid-column: 1/9;
        justify-self: center;
    }

    .footer-line {
        grid-column: 1/9;
        justify-self: center;
        width: 48%;
        height: 2px;
        justify-self: center;
        background-color: var(--primary);
    }

    .footer-icon {
        grid-column: 1/9;
        justify-self: center;
    }

    .footer-icon .icon {
        display: flex;
        gap: 13.4px;
    }

    .footer-icon .icon a {
        padding-right: 0;
    }

    .footer-legal {
        gap: 10px;
        margin-top: 20px;
    }

    .footer-legal p,
    .footer-legal a {
        font-size: 1.3em;
    }



    dialog {
        max-width: 270px;
        padding: 15px 25px;
    }

    form {
        flex-direction: column;
    }

    form input {
        width: 150px;
        font-size: 13px;
        padding: 8px;
        border-radius: 10px;
    }

    .button-subscribe {
        padding: 6.6px;
        font-size: 13px;
        margin-top: 15px;
        border-radius: 10px;
    }

    dialog h2 {
        margin-top: 30px;
        font-size: 35px;
    }

    dialog p {
        font-size: 1.1em;
        padding-top: 15px;
        padding-bottom: 15px;
    }



    .to-top {
        right: 10px;
        font-size: 26px;
    }
}



/* -------------------------------------------------------------------------------- */
/* ! Style portfolio.index */
/* -------------------------------------------------------------------------------- */
.header-portfolio {
    width: 100%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
}



.fa-beat-fade {
    color: var(--light);
}



.graphic-title,
.interior-title,
.product-title,
.web-title {
    max-width: 100%;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 130px;
}

.title__text {
    text-align: center;
}

.title__text h3 {
    color: #fff;
    font-size: 100px;
    font-family: 'Philosopher', sans-serif;
}

.title__text h1 {
    color: #ffffff4c;
    font-size: 150px;
}

.title__text h2 {
    font-size: 80px;
    margin-top: -125px;
}

.scroll {
    margin-top: 100px;
}



.main-container {
    position: relative;
    margin: 0 80px;
    transition: 0.5s ease;
}

.tab-nav-bar {
    position: relative;
    margin: 0 10px 30px 10px;
    padding-top: 80px;
}

.tab-navigation {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: fit-content;
    margin: 0 auto;
}

.tab-menu {
    background: var(--light);
    max-width: 800px;
    padding: 10px;
    border-radius: 25px;
    box-shadow: 0 5px 25px rgb(2, 2, 2, 0.1);
    overflow-x: auto;
    user-select: none;
}

.tab-btn {
    color: var(--secondary);
    display: inline-block;
    font-size: 1em;
    font-weight: 700;
    margin: 0 2px;
    padding: 10px 20px;
    border-radius: 20px;
    background: var(--light);
    cursor: pointer;
    user-select: none;
    transition: 0.3s ease;
}

.tab-btn:hover {
    background: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
}

.tab-content {
    position: relative;
    display: grid;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.tab {
    max-width: 1100px;
    padding: 15px 50px;
    transform: translateX(15px);
    content-visibility: hidden;
    opacity: 0;
    width: 0px;
    height: 0px;
    grid-row: 1;
    grid-column: 1;
}

.tab.active {
    width: auto;
    height: auto;
    transform: translateX(0);
    content-visibility: visible;
    opacity: 1;
    transition: 1s ease;
}

.tab .row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    gap: 30px;
}

.tab .img-card {
    position: relative;
    width: 450px;
    max-width: 450px;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(2, 2, 2, 0.415);
}

.tab .img-card img {
    width: 100%;
    transition: 1s ease;
}

.tab .img-card img.res {
    object-fit: cover;
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    transition: opacity 0.6s;
}

.tab .img-card img.res.active {
    opacity: 1;
    width: 100%;
}

.right-column {
    max-width: 800px;
}

.info .description p {
    color: var(--primary);
    font-size: 25px;
}

.info .project {
    font-size: 3em;
    color: var(--secondary);
}

.titleproject {
    color: #02478d28;
    font-size: 3.5em;
    font-weight: 700;
    text-align: center;
    padding-bottom: 50px;
    text-transform: uppercase;
}


#web-project .last {
    padding-bottom: 0;
}



.footer-portfolio {
    max-width: 100%;
    height: 200px;
    background: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1px;
}

.footer-portfolio__content {
    max-width: 1200px;
    height: auto;
}

.footer-portfolio-legal {
    grid-column: 1/9;
    display: flex;
    gap: 30px;
    font-size: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.footer-portfolio-legal a {
    color: #0325477d;
}


/* -------------------------------------------------------------------------------- */
/* ! Media Query portfolio.index */
/* -------------------------------------------------------------------------------- */
@media (max-width: 1050px) {
    .main-container {
        margin: 0 0px;
    }

    .tab-nav-bar {
        padding: 40px;
        margin: 0;
    }

    .tab {
        padding: 15px 25px;
    }

    .tab .row {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }

    .tab .img-card {
        width: 100%;
    }

    .info .description p {
        font-size: 25px;
    }

    .titleproject {
        font-size: 45px;
        padding-bottom: 50px;
    }
}


@media (max-width: 768px) {
    .title__text h1 {
        font-size: 75px;
    }

    .title__text h3 {
        font-size: 50px;
    }

    .title__text h2 {
        font-size: 30px;
        margin-top: -57px;
    }



    .graphic-title,
    .interior-title,
    .product-title,
    .web-title {
        height: 70vh;
    }



    .main-container {
        margin: 0;
    }

    .tab-nav-bar {
        margin-top: 70px;
        margin-bottom: 40px;
        padding-top: 0;
    }

    .tab {
        padding: 15px 25px;
    }

    .tab-menu::-webkit-scrollbar {
        display: none;
    }

    .tab .row {
        flex-direction: column;
        text-align: center;
        margin-bottom: 50px;
    }

    .info .project {
        font-size: 2.8em;
    }

    .info .description p {
        margin-top: 20px;
        font-size: 20px;
    }

    .titleproject {
        font-size: 45px;
        padding-bottom: 0;
    }



    .footer-portfolio__content {
        margin-top: 120px;
        gap: 15px;
    }

    .footer-portfolio-legal {
        gap: 10px;
        margin-top: 20px;
    }

    .footer-portfolio-legal p,
    .footer-portfolio-legal a {
        font-size: 1.3em;
    }
}


@media (max-width: 480px) {
    .title__text h1 {
        font-size: 70px;
    }

    .title__text h3 {
        font-size: 45px;
    }

    .title__text h2 {
        font-size: 27px;
        margin-top: -53px;
    }



    .graphic-title,
    .interior-title,
    .product-title,
    .web-title {
        height: 50vh;
    }



    .main-container {
        margin: 0;
    }

    .tab-nav-bar {
        margin-top: 70px;
        margin-bottom: 0;
        padding-top: 0;
    }

    .tab-menu {
        padding: 7px 8px;
        display: flex;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn {
        font-size: 0.8em;
        padding: 7px 15px;
    }

    .tab {
        padding: 15px 25px;
    }

    .tab-menu::-webkit-scrollbar {
        display: none;
    }

    .tab .row {
        flex-direction: column;
        text-align: center;
        margin-bottom: 50px;
    }

    .info .project {
        font-size: 2.4em;
    }

    .info .description p {
        margin-top: 20px;
        font-size: 20px;
    }

    .titleproject {
        font-size: 35px;
        padding-bottom: 0;
    }



    .footer-portfolio__content {
        margin-top: 120px;
        gap: 15px;
    }

    .footer-portfolio-legal {
        gap: 10px;
        margin-top: 20px;
    }

    .footer-portfolio-legal p,
    .footer-portfolio-legal a {
        font-size: 1.3em;
    }
}