/*
 * Stile: Synthwave Glow
 * Descrizione: Un tema retro-futuristico con colori al neon e un effetto bagliore.
*/

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #e2e8f0;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content-container {
    position: relative;
    z-index: 2;
    background-color: transparent;
}

/* --- REGOLE CSS CORRETTE E POTENZIATE PER I TITOLI DI SEZIONE --- */
.section-title {
    font-size: 2.8rem; /* Aumentata la dimensione del font (equivalente a text-4xl/5xl) */
    font-weight: 700; /* Grassetto */
    background-image: linear-gradient(to right, #ec4899, #8b5cf6, #06b6d4); /* Gradiente da rosa a ciano */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 4rem; /* Aumentato lo spazio sotto il titolo (mb-16) */
    letter-spacing: 0.05em; /* Aumenta la spaziatura tra le lettere */
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.4), 0 0 15px rgba(142, 45, 226, 0.4); /* Bagliore neon più evidente */
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem; /* Dimensione ancora più grande per schermi medi e grandi */
    }
}
/* --- FINE DELLE REGOLE CORRETTE --- */


.glass-card {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid #8e2de2;
    box-shadow: 0 0 15px rgba(142, 45, 226, 0.3), 0 0 5px rgba(142, 45, 226, 0.5) inset;
    border-radius: 0.75rem; /* rounded-xl */
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
    -webkit-backdrop-filter: blur(4px); /* backdrop-blur-sm */
    backdrop-filter: blur(4px);
}

.glass-card:hover {
    transform: translateY(-8px);
    animation: pulse-glow 2s infinite ease-in-out;
}

/* NUOVO: Keyframes per l'animazione del bagliore pulsante */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 8px rgba(142, 45, 226, 0.6) inset, 0 0 12px rgba(0, 255, 255, 0.2);
    border-color: #ec4899; /* Rosa */
  }
  50% {
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.8), 0 0 12px rgba(142, 45, 226, 0.9) inset, 0 0 20px rgba(0, 255, 255, 0.4);
    border-color: #22d3ee; /* Ciano */
  }
  100% {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 8px rgba(142, 45, 226, 0.6) inset, 0 0 12px rgba(0, 255, 255, 0.2);
    border-color: #ec4899; /* Rosa */
  }
}

/* NUOVO: Stile per i link delle card progetto */
.project-card-link {
    display: block; /* Fa sì che il tag <a> occupi tutto lo spazio */
    text-decoration: none; /* Rimuove la sottolineatura */
    color: inherit; /* Eredita il colore del testo */
    height: 100%; /* Assicura che il link riempia l'altezza del contenitore grid */
}


.glass-card h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem; /* mb-4 */
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

.skill-tag {
    display: inline-block;
    background-color: rgba(88, 28, 135, 0.5); /* bg-purple-900 bg-opacity-50 */
    color: #f9a8d4; /* text-pink-300 */
    font-size: 0.75rem; /* text-xs */
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.375rem 0.625rem; /* px-2.5 py-1.5 */
    border-radius: 9999px; /* rounded-full */
    border: 1px solid #a855f7; /* border-purple-700 */
    transition: all 0.2s ease-in-out;
}

.skill-tag:hover {
    transform: scale(1.1);
    background-color: rgba(236, 72, 153, 0.3);
    color: #fff;
    border-color: #ec4899;
}

/* --- REGOLE PER ANIMAZIONI DINAMICHE ALLO SCROLL --- */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-animate.from-left {
    transform: translateX(-50px);
}

.scroll-animate.from-right {
    transform: translateX(50px);
}

.scroll-animate.from-bottom {
    transform: translateY(50px);
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.nav-link {
    color: #cbd5e1; /* text-slate-300 */
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #22d3ee; /* text-cyan-400 */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #22d3ee;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

#typing-effect::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #22d3ee;
}

@keyframes blink {
    from, to { opacity: 1 }
    50% { opacity: 0 }
}

.social-icon {
    color: #94a3b8; /* text-slate-400 */
    transition: all 0.3s ease-in-out;
}

.social-icon:hover {
    color: #22d3ee; /* text-cyan-400 */
    transform: scale(1.2);
}
