/*Definisco il body del sito*/
body {
    font-family: 'Open Sans', sans-serif;
    color: #F0E5FF;
    background: #0d0d0d;

    min-height: 100vh;

    flex-direction: column;
}




strong {
    color: #7a33ff;
    font-weight: bold;
}


.typing {
    border-right: 2px solid #7a33ff;
    padding-right: 5px;
    white-space: nowrap;
    overflow: hidden;
}
.viola {
    color: #7a33ff;
}


.navbar {
    position: fixed;
    box-sizing: border-box;
    top: -100px;               /* fuori dallo schermo */
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: top 0.4s ease; /* animazione */
    z-index: 1000;
    background-color: #111;
}

/* Quando diventa visibile */
.navbar.show {
    top: 0;
}

/* LOGO */
.logo {
    font-size: 24px;
    font-weight: bold;
}

/* Rimuovo le decorazioni al link */
.logo a {
    text-decoration: none; 
    color: inherit; 
    font-weight: inherit; 
}
.logo a:visited {
    color: inherit;
}



/* LINK */
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #F0E5FF;
}

.nav-links a:hover {
    color: #c3b2de;
}

/* Contenitore dell'hero */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
}


@media (max-width: 700px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
}


/* Immagine tonda */
.hero-img {
    width: 360px;
    height: 360px;
    border-radius: 50%; /* rende l'immagine perfettamente circolare */
    object-fit: cover;  /* ritaglia l'immagine senza deformarla */
    border: 3px solid #7a33ff; /* bordino viola */
}

/* Testo accanto */
.hero-text h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.hero-text h2 {
    margin: 5px 0 0;
    font-size: 22px;
}

.sezioni {
    font-size: 32px;
    font-weight: 600;
    color: #7a33ff;
    margin-bottom: 20px;
}


#chi-sono {
    max-width: 900px;
    padding: 80px 40px;
}


.projects {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.projects h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #f2f2f2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.project-card {
    background: #161616;
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(122, 51, 255, 0.15);
}

.project-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.project-card h3 {
    margin: 10px 0 5px;
}

.project-card p {
    font-size: 14px;
    color: #cfcfcf;
    line-height: 1.5;
}

.projects a {
    color: #7a33ff; 
    font-weight: inherit; 
}
.logo a:visited {
    color: inherit;
}


.tech {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech span {
    background: rgba(122, 51, 255, 0.15);
    color: #7a33ff; 
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
}



.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

section#footer {
    margin-top: auto;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #111;
}

footer a {
    color: inherit; 
    font-weight: inherit; 
}
footer a:visited {
    color: inherit;
}