/* Stili di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: white;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Sezione A: Ciao, io sono */
header {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: left;
    align-items: center;
    overflow: hidden;
}

header .overlay {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 10%;
}

header h1 {
    font-size: 7rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
}

header p {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #f39c12;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}

/* Sezione B: Sfere fluttuanti */
.about {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    overflow: hidden;
}

#about-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.6;
    margin: 0 auto;
}

/* Sezione Counters */
.counters {
    width: 100vw;
    height: 100vh;
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.counter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
}

.counter {
    flex: 1;
    margin: 20px;
}

.counter-value {
    font-size: 4rem;
    font-weight: bold;
    color: #f39c12;
}

.counter h3 {
    font-size: 1.5rem;
    margin-top: 10px;
    color: white;
}

/* Sezione C: Nuove esperienze con animazione */
.experiences {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#motherboard-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.experience-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.experience-content h2 {
    font-size: 4rem;
    font-weight: bold;
    color: white;
}

.experience-content p {
    font-size: 1.5rem;
    color: white;
    margin-top: 1rem;
}

/* Pulsante stilizzato */
.fancy-button {
    margin-top: 20px;
    padding: 15px 30px;
    background-color: #ffffff;
    border: none;
    color: black;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fancy-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Sezione D: Form di Contatto */
#contact-form-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form-container {
    max-width: 600px;
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    background-color: #222;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.contact-form-container h2 {
    color: white;
    margin-bottom: 20px;
}

.contact-form-container label {
    display: block;
    margin-bottom: 5px;
    color: #f39c12;
    font-weight: bold;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid white;
    background-color: transparent;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: #f39c12;
}

.contact-form-container button {
    padding: 15px 30px;
    background-color: #ffffff;
    border: none;
    color: black;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50px;
    width: 100%;
}

.contact-form-container button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Pulsante per chiudere il form */
.close-button {
    position: absolute;
    top: 10px;
    right: 0px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 100%;
}

.close-button i {
    font-size: 1.5rem;
}

.close-button:hover i {
    color: #f39c12;
    transform: scale(1.2);
    transition: 0.3s ease;
}

/* Responsività per dispositivi mobili */
@media (max-width: 768px) {
    header h1 {
        font-size: 3.5rem;
    }

    header p {
        font-size: 1.2rem;
    }

    .about h2 {
        font-size: 2.5rem;
    }

    .about p {
        font-size: 1rem;
        max-width: 90%;
    }

    .counter-value {
        font-size: 3rem;
    }

    .counter h3 {
        font-size: 1.2rem;
    }

    .experience-content h2 {
        font-size: 2.5rem;
    }

    .experience-content p {
        font-size: 1.2rem;
    }
}