@import url("https://fonts.googleapis.com/css?family=Poppins:400,700&display=swap");
/* Stile generale */
body,
html {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background-color: #0a0a0a;
    color: white;
    overflow-x: hidden;
}

/* Stile dell'header */
header {
    background: url("images/header.jpg") no-repeat center center/cover;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #00d4ff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Sezioni principali */
section {
    padding: 80px 20px;
    text-align: center;
}

/* 🔹 BIOGRAFIA - Font più grande */
#bio {
    font-size: 1.5em;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

/* 🔹 SEZIONE "CHI È AARON IRVING?" - Boxed con font migliorato */
#about {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #00d4ff;
    box-shadow: 0px 4px 15px rgba(0, 212, 255, 0.2);
    max-width: 900px;
    margin: 40px auto;
}

/* 🔹 Testo "Aaron Irving non è solo un nome, ma un concetto..." */
#about .about-content p {
    font-size: 1.5em;
    line-height: 1.7;
    text-align: left;
}

/* 🔹 Layout flessibile per immagine e testo */
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Immagine di Aaron Irving */
.about-content img {
    width: 220px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 0px 15px #00d4ff;
}

/* 🔹 LIBRI */
.book-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
}

.book {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    transition:
        transform 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    width: 150px;
    text-align: center;
}

.book:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 15px #00d4ff;
}

.book img {
    width: 100%;
    max-width: 140px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 🔹 CHAT - Immagine bottone con effetto glow e arrotondato */
#chat img {
    width: 150px;
    height: auto;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    border-radius: 50%;
    box-shadow: 0px 0px 30px rgba(0, 212, 255, 0.6);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Effetto hover: ingrandisce leggermente e aumenta il glow */
#chat img:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 40px rgba(0, 212, 255, 0.9);
}

/* 🔹 Contenitore della chat */
#ai-chat-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 🔹 Pulsante di chiusura della chat */
#close-chat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
}

#ai-chat-container.hidden {
    display: none;
}
