body {
        transition: background-color 0.7s ease, color 0.7s ease;
    }
    #particles-js {
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: -1;
        top: 0;
        left: 0;
        background: #000;
    }
    .progetto {
        transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
        transform: rotate(-6deg);
        border-radius: 0.75rem;
        box-shadow: 0 10px 15px -3px rgb(15 23 42 / 0.7);
        overflow: hidden;
        cursor: pointer;
    }
    .progetto:hover,
    .progetto:focus {
        transform: rotate(0deg) scale(1.05);
        box-shadow: 0 25px 50px -12px rgb(14 165 233 / 0.75);
        outline: none;
        z-index: 20;
    }
    .progetto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(90%);
        transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out;
    }
    .progetto:hover img,
    .progetto:focus img {
        filter: brightness(100%);
        transform: scale(1.1);
    }
    .overlay-testo {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 1rem;
        background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
        color: #cbd5e1;
        font-weight: 600;
        font-size: 1rem;
        pointer-events: none;
        user-select: none;
        transition: color 0.3s ease;
    }
    .progetto:hover .overlay-testo,
    .progetto:focus .overlay-testo {
        color: #38bdf8;
    }
    html {
        scroll-behavior: smooth;
    }

    [data-theme="light"] body {
        background: linear-gradient(135deg, #e0f2fe, #bae6fd);
        color: #1e293b;
    }
    [data-theme="light"] #particles-js {
        background: #e0f2fe;
    }
    [data-theme="light"] .overlay-testo {
        color: #475569;
    }
    [data-theme="light"] .progetto:hover .overlay-testo,
    [data-theme="light"] .progetto:focus .overlay-testo {
        color: #0ea5e9;
    }
    [data-theme="light"] #feedback .max-w-xl {
        background-color: #fff;
    }
    [data-theme="light"] #feedback input,
    [data-theme="light"] #feedback textarea {
        background-color: #fff;
        color: #1e293b;
    }
    [data-theme="light"] .skill-random-text span {
        color: rgba(0, 0, 0, 0.08); 
    }

    [data-theme="light"] .skill-item {
        background: linear-gradient(135deg, #a7d9ff, #6cb3fa);
        color: #1e293b;
    }
    [data-theme="light"] .skill-item::before {
        background: linear-gradient(to right, rgba(14, 165, 233, 0.4), transparent);
    }
    [data-theme="light"] .skill-item::after {
        background: linear-gradient(to left, rgba(34, 197, 94, 0.4), transparent);
    }


    #icon-tema {
        transition: transform 0.6s ease;
    }
    #icon-tema1 {
        transition: transform 0.6s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes typing {
        from { width: 0; }
        to { width: 100%; }
    }

    @keyframes blink-caret {
        from, to { border-color: transparent; }
        50% { border-color: currentColor; }
    }

    @keyframes text-glow {
        0% { text-shadow: 0 0 5px rgba(14, 165, 233, 0.5), 0 0 10px rgba(14, 165, 233, 0.3); }
        50% { text-shadow: 0 0 15px rgba(14, 165, 233, 0.8), 0 0 25px rgba(14, 165, 233, 0.6); }
        100% { text-shadow: 0 0 5px rgba(14, 165, 233, 0.5), 0 0 10px rgba(14, 165, 233, 0.3); }
    }

    .animate-fade-in {
        animation: fadeIn 1s ease-out forwards;
        opacity: 0;
    }

    .animate-typing {
        overflow: hidden;
        white-space: nowrap;
        border-right: .15em solid currentColor;
        animation: typing 2s steps(40, end) forwards, blink-caret .75s step-end infinite;
        width: 0;
    }

    .animate-text-glow {
        animation: text-glow 2s ease-in-out infinite;
    }

    [data-theme="light"] .animate-text-glow {
        animation: text-glow-light 2s ease-in-out infinite;
    }

    @keyframes text-glow-light {
        0% { text-shadow: 0 0 5px rgba(0, 150, 255, 0.3), 0 0 10px rgba(0, 150, 255, 0.2); }
        50% { text-shadow: 0 0 15px rgba(0, 150, 255, 0.6), 0 0 25px rgba(0, 150, 255, 0.4); }
        100% { text-shadow: 0 0 5px rgba(0, 150, 255, 0.3), 0 0 10px rgba(0, 150, 255, 0.2); }
    }

    .skill-item {
        position: relative;
        overflow: hidden; 
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(5px);
        z-index: 1;
        display: flex; 
        align-items: center;
        justify-content: center;
    }

    [data-theme="dark"] .skill-item {
        background: linear-gradient(135deg, #222222, #000000); 
        color: white; 
    }

    .skill-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    }

    @keyframes slideInUpFadeInBlur {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.95);
            filter: blur(5px);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0px);
        }
    }

    .skill-item.animate-in {
        animation: slideInUpFadeInBlur 0.7s ease-out forwards;
    }

    .skill-random-text {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.7rem; 
        line-height: 0.9;
        opacity: 0;
        transform: scale(0.8) translate(-10px, -10px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        pointer-events: none;
        z-index: 0;
        padding: 5px; 
        color: rgba(255, 255, 255, 0.08);
    }

    .skill-random-text span {
        opacity: 0.1;
        transition: opacity 0.1s ease-out; 
        font-weight: bold; 
    }

    .skill-item:hover .skill-random-text {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }

    .skill-item::before,
    .skill-item::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 30%;
        opacity: 0;
        transition: opacity 0.3s ease-out;
        z-index: 1;
        pointer-events: none;
    }

    .skill-item::before {
        top: 0;
        left: 0;
        transform: translateY(-100%);
        background: linear-gradient(to right, rgba(0, 174, 255, 0.4), transparent);
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    }

    .skill-item::after {
        bottom: 0;
        right: 0;
        transform: translateY(100%);
        background: linear-gradient(to left, rgba(2, 255, 221, 0.4), transparent);
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    }

    .skill-item:hover::before {
        opacity: 1;
        transform: translateY(0%);
    }

    .skill-item:hover::after {
        opacity: 1;
        transform: translateY(0%);
    }

    .skill-item h3 {
        position: relative;
        z-index: 2;
    }
    .social-links {
            margin-top: 5px;
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 10px;
        }

        .social-links img {
            width: 60px;
            height: 60px;
            transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), filter 0.4s ease;
            filter: grayscale(20%);
        }

        .social-links img:hover {
            transform: scale(1.3) rotate(15deg);
            filter: grayscale(0%) drop-shadow(0 5px 15px var(--shadow-light));
        }
        .social-links img {
                width: 45px;
                height: 45px;
        }
    

.hamburger-inner {
    position: relative; 
}

.hamburger-inner .dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#hamburger-button .hamburger-inner.active {
    transform: rotate(180deg); 
    border-radius: 9999px;
    background-color: theme('colors.sky.400');
}

#hamburger-button .hamburger-inner.active .dot {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(3); 
    opacity: 0; 
}

#hamburger-button .hamburger-inner.active .dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 2px;
    background-color: theme('colors.black'); 
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1; 
}

#hamburger-button .hamburger-inner.active .dot::before,
#hamburger-button .hamburger-inner.active .dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, bottom 0.3s ease-in-out;
}

#hamburger-button .hamburger-inner.active .dot::before {
    transform: rotate(45deg);
}

#hamburger-button .hamburger-inner.active .dot::after {
    transform: rotate(-45deg);
}

#mobile-menu-close-button .hamburger-inner.active {
    background-color: theme('colors.sky.400');
}
#mobile-menu-close-button .hamburger-inner.active .dot {
    opacity: 0;
}


#mobile-menu-overlay {
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
}

#mobile-menu-overlay.open {
    display: flex !important;
    opacity: 1;

}

#mobile-menu-overlay ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#mobile-menu-overlay.open ul li {
    opacity: 1;
    transform: translateY(0);

}

#mobile-menu-overlay .mt-10 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    transition-delay: 0.4s;
}

#mobile-menu-overlay.open .mt-10 {
    opacity: 1;
    transform: translateY(0);

}
.cascata-list {
            list-style: none;
            padding: 0;
            text-align: center;
        }

        .cascata-list li {
            font-size: 1em;
            margin-bottom: 10px;
            opacity: 0; 
            transform: translateY(20px);
            animation: fadeInSlideUp 0.6s forwards;
        }


        .cascata-list li:nth-child(1) { animation-delay: 0s; }
        .cascata-list li:nth-child(2) { animation-delay: 0.2s; }
        .cascata-list li:nth-child(3) { animation-delay: 0.4s; }
        .cascata-list li:nth-child(4) { animation-delay: 0.6s; }
        .cascata-list li:nth-child(5) { animation-delay: 0.8s; }
        .cascata-list li:nth-child(6) { animation-delay: 1.0s; }
        .cascata-list li:nth-child(7) { animation-delay: 1.2s; }


        @keyframes fadeInSlideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }