/*Developed by Ceni Dev on 17/02/2026*/

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;700&display=swap');

@font-face {
    font-family: 'Chalet';
    src: url('Chalet-NewYorkSixty.otf') format('opentype');
}

:root {
    --color-primary: #7c8591;
    --color-secondary: #0050a5;
    --color-bg: #070707;
    --color-text: #fff;
    --color-subtext: #777777;
    --color-card: #141414;
    --color-nav: #070707ad;
    --color-border: #3131315e;
    --font-family-base: 'Chalet', sans-serif;

    --max-width: 1000px;
    --padding-lateral: 1.5rem;
}

body {
    font-family: var(--font-family-base);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;

    animation: fadeIn;
    animation-duration: 1.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

main {
    animation: fadeInUp;
    animation-duration: 1.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Nav bar*/
header.nav {
    width: 100%;
    background: var(--color-nav);
    border-bottom: 1px solid var(--color-border);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--padding-lateral);
}

.main-title img {
    width: 50px;
    height: auto;
    margin-right: 0.5rem;
}

.main-title {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li {
    list-style: none;
    padding: 0.5rem;
}

.nav-icon {
    font-size: 1.5em;
    color: var(--color-text);

    transition: color 0.5s;
}

.nav-icon:hover {
    color: var(--color-primary);
}

/*End Nav bar*/

/*Home*/
.home {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem var(--padding-lateral) 1rem var(--padding-lateral);
    background: var(--color-bg);
    line-height: 1.2;
}

.home-logo img {
    width: 150px;
    height: auto;
    box-shadow: #070707 0px 4px 15px;

    transition: transform 0.5s;
}

.home-logo img:hover {
    transform: scale(1.1);
}

.home-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.buttons-contact {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.button-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-secondary);
    color: var(--color-text);
    padding: 0 1.25rem;
    justify-content: center;
    width: 100px;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;

    transition: background-color 0.3s;
}

.button-icon:hover {
    background-color: var(--color-primary);
}

/*End home*/

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}

section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.5rem var(--padding-lateral) 5rem var(--padding-lateral);
}

h4 {
    
}

/*Education*/
.education-wrap h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.dynamic-edu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    line-height: 1.2;
}

.education-logo {
    width: 100px;
    object-fit: contain;
    margin: auto;
}

.education-item {
    background: var(--color-card);
    border-radius: 25px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);

    transition: transform 0.2s;
}

.education-item p {
    margin: 0.5rem 0;
    color: var(--color-subtext);
}

.education-item:hover {
    transform: translateY(-5px);
}

/*End education*/

/*Jobs*/
.jobs-wrap h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.dynamic-jobs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    line-height: 1.25;
}

.job-item {
    background: var(--color-card);
    border-radius: 25px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);

    transition: transform 0.2s;
}

.job-item p {
    margin: 0.5rem 0;
    color: var(--color-subtext);
}

.job-item:hover {
    transform: translateY(-5px);
}

.job-skills {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;

    cursor: pointer;
}

.job-skills p {
    margin: 0.2rem 0;
    background-color: var(--color-border);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);

    transition: transform 0.2s;
}

.job-skills p:hover {
    transform: scale(1.05);
}

/*End jobs*/

/*Projects*/
.projects-wrap h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.dynamic-proj {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    line-height: 1.25;
    align-items: stretch;
}

.project-item {
    background: var(--color-card);
    border-radius: 25px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    height: auto;
}

.project-item p {
    margin: 0.5rem 0;
    color: var(--color-subtext);
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 85px;
    object-fit: contain;
    margin: 1rem 0 1rem 0;
    align-self: flex-start;
}

.project-item a {
    display: block;
    color: var(--color-secondary);
    font-weight: 500;
    text-decoration: none;
    padding-top: 5px;
    margin-top: auto;
    align-self: flex-start;
}

.project-item a:hover {
    text-decoration: underline;
}

/*End projects*/

.footer {
    background: var(--color-card);
    padding: 1.5rem var(--padding-lateral);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.copyright,
.developer {
    color: var(--color-text);
    font-size: 0.9rem;
}

.developer-link {
    color: var(--color-secondary);
    font-weight: 500;
    text-decoration: none;
}

.developer-link:hover {
    text-decoration: underline;
}

.theme-toggle {
    border: none;
    background: transparent;
    color: var(--color-secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.theme-toggle:hover {
    background: #2d2c36;
}

/* Responsive */
@media (max-width: 600px) {

    .nav-wrap,
    .footer-content {
        flex-direction: column;
        gap: 0.7rem;
        padding: 0 var(--padding-lateral);
    }

    .lavori-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .recensioni-container {
        grid-template-columns: 1fr;
    }
}