/* --------- RESET BASE --------- */
* {
    :root { --bg:#071025; --card:#0f1724; --text:#e6eef8; --accent:#7c5cff; }
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --------- BODY --------- */
body {
    font-family: "Inter", system-ui, sans-serif;
    background: linear-gradient(180deg, #000000 0%, #c9c7c7 200%);
    color: white;
    line-height: 1.6;
}
/* Header + avatar: place circular picture left of the name */
.hero {
    display:flex;
    align-items:center;
    gap: 10px;
    justify-content: center;

    margin-top: 19px;
    margin-bottom: 12px;
    transform: translateX(-40px); 
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center; /* centers the span under the H1 */
    text-align: left;
}
.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit:fill;
    border: 3px solid rgba(165,100,255,0.22);
    box-shadow: 0 8px 20px rgba(120,80,200,0.18);
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .hero { flex-direction: column; gap: 0px; transform: none; }
    .avatar { width: 96px; height: 96px; }
}
.btn {
    background-color: #005eff;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.2s ease;
}

.btn.primary { 
    background: var(--accent); 
    color: #fff; 
    padding: 10px 16px; border-radius: 8px; 
    text-decoration:none; 
    display:inline-block; 
    transition: transform .18s ease; 
} 
.btn.primary:hover{ 
    transform: translateY(-3px); 
}

.btn:hover {
    opacity: 0.7;
}

.container {
    max-width: 100px;    /* change this to control how wide the content column is */
    margin: 0 auto;       /* center the content column in the viewport */
    padding: 204px; 
}


.github{
    width: 900px;      
    height: auto;      
    border-radius: 10px;  
    display: block;    
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.github-link {
    display: inline-flex;      
    flex-direction: column;    
    align-items: center;       
    text-decoration: none;     
    color: inherit;            
}

.github:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.linkedin{
    width: 500px;      
    height: auto;      
    border-radius: 10px;  
    display: block;    
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.linkedin-link{
    display: inline-flex;      
    flex-direction: column;    
    align-items: center;       
    text-decoration: none;     
    color: inherit;     
}

.linkedin:hover{
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* --------- SOCIAL LINKS (GITHUB + LINKEDIN) --------- */
.socials {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 24px 0;
}

.socials a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.socials img {
    width: 500px;
    height: auto;
    border-radius: 10px;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.socials h2 {
    margin-top: 8px;
    font-size: 1.5rem;
}

/* smaller screens: reduce image size */
@media (max-width: 400px) {
    .socials img {
        width: 92px;
    }
}

/* --------- TITOLI --------- */
.evidenziata {
    font-size: 1.8rem;
    color: rgb(98, 0, 255);
    font-weight: bold;
    display: block;
    text-align: center;
}


h1 {
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
    font-size: 4.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    color: #ffffff;
}
.section-title{
    position: relative;
    color: #ffffff;
    margin-top: 0px;
    margin-bottom: 20px;
}

.section-title h2{
    display: flex;
    margin-left:30%;
    text-align: left;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
/* underline only for the Progetti section */
.section-title::after {
    content: "";
    display: block;
    width: 1200px;
    height: 2px;
    background: linear-gradient(90deg,#ececec00,#3805af,#ececec00);
    margin: 8px auto 0 auto;
    border-radius: 4px;
    transform: translateX(0px); /* nudge the line to the right */
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #ffffff;
}

/* --------- SEZIONE PROGETTI --------- */
.projects-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center; /* center project cards horizontally */
}

.project {
    width: 500px;
    background: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.95));
    padding: 20px;
    border-radius: 20px;
    position: relative; /* ensure ::before is scoped to this element */

    border: 1px solid rgba(165,100,255,0.55);
    box-shadow: 0 0 20px rgba(165,100,255,0.45); /* outer glow viola */

    display: flex;
    flex-direction: column;
    gap: 15px;
    color: white;

    transition: transform 0.2s ease, box-shadow 0.25s ease;
}



/* soft outer glow using a pseudo-element */
.project::before{
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(165,100,255,0.08), rgba(120,80,200,0.06));
    z-index: -1;
    filter: blur(10px);
    pointer-events: none;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px rgba(165,100,255,0.7);
}
.project h3{
    margin: 0;
    font-size: 1.1rem;
}

/* --------- PARAGRAFI --------- */
p {
    font-size: 1.1rem;
}

/* --------- LAYOUT RESPONSIVE --------- */
@media (max-width: 600px) {
    body {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }
}
