* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* ============================== BASE ============================== */
body {
    color: #111;
    background: #ffffff;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: linear-gradient(90deg, #001f3f, #0074D9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 80px;
    height: 42px;
    background: linear-gradient(90deg, #001f3f, #0074D9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-md);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.highlight {
    color: #0077ff; 
}

.logo-accent {
    color: var(--primary);
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #001f3f, #0074D9);
}

.navbar .nav-link {
    color: white !important;
    font-weight: 50;
}

/* Animation de la navbar au chargement */
@keyframes slideDown {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.navbar {
    animation: slideDown 1s ease-out;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Effet au survol de la navbar */
.navbar:hover {
    background-color: rgba(8, 27, 41, 0.95); /* légèrement plus foncé */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


/* ============================== HOME ============================== */
.home {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 10% 0;
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-size: 28px;
    font-weight: 600;
    opacity: 0;
    animation: slideBottom 1s forwards;
    animation-delay: 0.7s;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: 10px 0;
    opacity: 0;
    animation: slideRight 1s forwards;
    animation-delay: 1s;
    color: #0077ff;
}

.home-content h3 span {
    color: #0077ff;
}

.home-content p {
    font-size: 18px;
    color: #333;
    opacity: 0;
    animation: slideLeft 1s forwards;
    animation-delay: 1.2s;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0077ff;
    border-radius: 50%;
    font-size: 20px;
    color: #0077ff;
    text-decoration: none;
    transition: 0.5s ease;
    opacity: 0;
    animation: slideLeft 1s forwards;
    animation-delay: calc(0.2s * var(--i));
    margin: 30px 35px 30px 0;
}

.home-sci a:hover {
    background: #0077ff;
    color: #fff;
    box-shadow: 0 0 20px #0077ff;
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: #0077ff;
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideBottom 1s forwards;
    animation-delay: 2s;
    box-shadow: 0 0 10px #0077ff;
}

.btn-box:hover {
    background: #0056d2;
}

/* ===== CHI SIAMO ===== */
#chi-siamo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 100px 10%;
    background: #f8f9fa;
}

#chi-siamo .about-img img {
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#chi-siamo .about-text h2 {
    font-size: 50px;
    color: #111;
}

#chi-siamo .about-text h2 span {
    color: #0077ff;
}

#chi-siamo .about-text h4 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 15px 0 30px;
}

#chi-siamo .about-text p {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

#chi-siamo .btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: #0077ff;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 0 10px #0077ff;
}

#chi-siamo .btn-box:hover {
    background: #0077ff;
    transform: translateY(-2px);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Responsive */
@media (max-width: 900px) {
    #servizi .sub-title {
        font-size: 40px;
    }

    .services-list {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    #chi-siamo {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #chi-siamo .about-img img {
        margin: 0 auto;
    }
}

/* ============================== SKILLS ============================== */
#skills {
    padding: 100px 10%;
    background: #f8f9fa;
    text-align: center;
}

#skills .sub-title {
    font-size: 50px;
    margin-bottom: 70px;
}

#skills .sub-title span {
    color: #0077ff;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.skill-card {
    background: #ffffff;
    padding: 40px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card i {
    font-size: 50px;
    color: #0077ff;
    margin-bottom: 20px;
}

.skill-card h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #111;
}

.skill-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.skill-card .read {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #0077ff;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.skill-card .read:hover {
    background: #0056d2;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}


/* Responsive */
@media (max-width: 900px) {
    .skills-list {
        grid-template-columns: 1fr;
    }

    #skills .sub-title {
        font-size: 40px;
    }
}


/* Responsive */
@media (max-width: 900px) {
    .skills-list {
        grid-template-columns: 1fr;
    }

    #skills .sub-title {
        font-size: 40px;
    }
}

/* ============================== TECHNICAL & PROFESSIONAL SKILLS ============================== */
section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.container1 {
    width: 600px;
    height: 500px;
    padding: 75px 90px;
    margin: 0 auto;
}

.heading1 {
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 5px;
    margin-bottom: 50px;
}

/* Progress bars */
.Technical-bars .bar {
    margin-top: 40px;
}

.Technical-bars .bar .info {
    margin-bottom: 5px;
}

.Technical-bars .bar .info span {
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.Technical-bars .bar .progress-line {
    position: relative;
    border-radius: 10px;
    width: 100%;
    height: 5px;
    background-color: #000;
    animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes animate {
    100% {
        transform: scaleX(1);
    }
}

.Technical-bars .bar .progress-line span {
    height: 100%;
    background-color: #0077ff;
    position: absolute;
    border-radius: 10px;
    animation: animate 1s 1s cubic-bezier(1, 0, 0.5, 1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}

/* Progress levels */
.progress-line.html span {
    width: 90%;
}

.progress-line.css span {
    width: 85%;
}

.progress-line.javascript span {
    width: 75%;
}
.progress-line.java span {
    width: 90%;
}

.progress-line.python span {
    width: 80%;
}

.progress-line span::after {
    position: absolute;
    padding: 1px 8px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    top: -28px;
    right: -20px;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
}

.progress-line.html span::after {
    content: "90%";
}

.progress-line.css span::after {
    content: "85%";
}

.progress-line.javascript span::after {
    content: "75%";
}
.progress-line.java span::after {
    content: "90%";
}

.progress-line.python span::after {
    content: "80%";
}


.progress-line span::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-top-color: #000;
    top: -10px;
    right: 0;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
}

@keyframes showText {
    100% {
        opacity: 1;
    }
}

/* Radial bars */
.radial-bars {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
}

.radial-bars .radial-bar {
    width: 50%;
    height: 170px;
    margin-bottom: 10px;
    position: relative;
}

.radial-bars .radial-bar svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 120px;
    height: 160px;
}

.radial-bars .radial-bar .progress-bar {
    stroke-width: 10;
    stroke: black;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
    animation: animate-bar 1s linear forwards;
}

@keyframes animate-bar {
    100% {
        stroke-dashoffset: -1;
    }
}

.path {
    stroke-width: 10;
    stroke: #0077ff;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
}

.path-1 {
    animation: animate-path1 1s 1s linear forwards;
}

.path-2 {
    animation: animate-path2 1s 1s linear forwards;
}

.path-3 {
    animation: animate-path3 1s 1s linear forwards;
}

.path-4 {
    animation: animate-path4 1s 1s linear forwards;
}

@keyframes animate-path1 {
    100% {
        stroke-dashoffset: 50;
    }
}

@keyframes animate-path2 {
    100% {
        stroke-dashoffset: 175;
    }
}

@keyframes animate-path3 {
    100% {
        stroke-dashoffset: 125;
    }
}

@keyframes animate-path4 {
    100% {
        stroke-dashoffset: 75;
    }
}

.radial-bar .percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.radial-bar .text {
    width: 100%;
    position: absolute;
    text-align: center;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50px);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

/* ============================== ANIMATIONS ============================== */
@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================== RESPONSIVE DESIGN ============================== */
@media (max-width: 900px) {
    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-img img {
        margin: 0 auto;
    }

    .container1 {
        width: 100%;
        padding: 50px 20px;
        margin: 0;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }

    .navbar a {
        font-size: 18px;
        margin-left: 20px;
    }

    .home-content h1 {
        font-size: 40px;
    }
}

/* ==============================
   CONTACT SECTION
============================== */
.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 90px 10%;
    background: #fff;
}

.contact-text {
    flex: 1 1 400px;
    color: #000;
    animation: slideRight 1s forwards;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-text h2 span {
    color: #0077ff;
}

.contact-text h4 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #000;
}

.contact-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
    margin-bottom: 20px;
}

.contact-list li {
    margin: 10px 0;
    font-size: 1rem;
}

.contact-list i {
    color: #0077ff;
    margin-right: 10px;
}

.contact-icons a {
    text-decoration: none;
    font-size: 1.8rem;
    margin-right: 15px;
    color: #0077ff;
    transition: 0.3s;
}

.contact-icons a:hover {
    transform: scale(1.2);
    color: #ffffff;
}

/* Contact Form */
.contact-form {
    flex: 1 1 400px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.2);
    animation: slideLeft 1s forwards;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: transparent;
    border: 1px solid #0077ff;
    border-radius: 5px;
    color: #000;
    font-size: 1rem;
    outline: none;
}

.contact-form button {
    background: #0074D9;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.contact-form button:hover {
    background: #005fa3;
    transform: translateY(-3px);
}

.success-message {
    display: none;
    color: green;
    text-align: center;
    font-weight: 600;
}

/* ==============================
   FOOTER
============================== */
.footer {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(90deg, #001f3f, #0074D9);
    color: #b0b0b0;
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 50px;
    border-top: 1px solid #0077ff;
}

.footer p span {
    color: #0077ff;
}
/*******************************************java/
/* ===== CORREZIONI PER JAVA ===== */

/* Colore della barra Java */
.Technical-bars .bar .progress-line.java span {
    background-color: #007396;
}

/* Animazione per la barra Java */
.progress-line.java span {
    width: 90%;
}

/* Percentuale per Java */
.Technical-bars .bar.java .info span:last-child::after {
    content: "90%";
    color: #007396;
}

/* Colore icona Java */
.Technical-bars .bar .bx-bxl-java {
    color: #007396 !important;
}
/******************aggiunta per far funzionare responsive*/
@media (max-width: 768px) {
    #servizi .row .col-md-4 {
        width: 100%;
    }
}
section {
    display: flex;
    justify-content: center;
}
@media (max-width: 900px) {
    section.skills-section {
        flex-direction: column !important;
        align-items: center;
    }

    .container1 {
        width: 100% !important;
        max-width: 500px;
        height: auto !important;
        padding: 40px 20px !important;
        margin-bottom: 40px;
    }

    .radial-bars {
        flex-direction: column;
        align-items: center;
    }

    .radial-bars .radial-bar {
        width: 100% !important;
        max-width: 250px;
    }
}
/********************competenze***/
/* Progress levels – SENZA PERCENTUALI */
.progress-line.html span {
    width: 90%;
}

.progress-line.css span {
    width: 85%;
}

.progress-line.javascript span {
    width: 75%;
}

.progress-line.python span {
    width: 80%;
}

/* NEW: Java */
.progress-line.java span {
    width: 90%;
    background-color: #0077ff !important;   /* ← stessissimo blu */
}

/* RIMOSSO: percentuali sopra la barra */
.progress-line span::after,
.progress-line span::before {
    display: none !important;
}
@media (max-width: 768px) {
    .heading1 {
        white-space: nowrap !important;
        font-size: 28px !important; /* ridotto leggermente per evitare il wrap */
    }
}

