* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

/* ================================ */
/*             BODY                 */
/* ================================ */

body {
    background-color: #232323;
    background-size: 400% 400%;
    animation: bgMove 20s linear infinite;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    font-family: 'Orbitron';
    gap: 2rem;
    min-height: 100vh;
}

@keyframes bgMove {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* =========== Header =========== */

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
    color: rgb(0, 0, 0);
    padding: 18px 150px 18px 150px;
    gap: 1rem;
    background: linear-gradient(to bottom,
            rgba(9, 9, 11, 0.4),
            rgba(9, 9, 11, 0.7),
            rgb(9, 9, 11));

    backdrop-filter: blur(20px);
}

.header-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;

    background: linear-gradient(to right,
            transparent,
            rgba(34, 211, 238, 0.4),
            transparent);
}

header>a>img {
    width: 250px;
    height: auto;
    transition:
        transform .6s ease,
        filter .18s ease,
        opacity .18s ease,
        background 0.95s ease,
        color 0.10s ease;
    cursor: pointer;
}

header>a>img:hover {
    width: 250px;
    height: auto;
    transform: translateY(-2px) scale(1.05);
}

.title {
    font-size: 1.35rem;
    cursor: pointer;
    text-decoration: underline;
    animation: fillGlow 3s ease-in-out infinite alternate;
}

.title:hover {
    color: #1dba83;
    cursor: pointer;
    text-decoration: underline;
}

@keyframes fillGlow {
    0% {
        filter: brightness(1.9) saturate(1);
    }

    100% {
        filter: brightness(1.3) saturate(1.4);
    }
}


/* =========== Main =========== */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
    flex: 1;
}

#intro>p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7dfed1;
    letter-spacing: 1.6px;
}

/* ----- Projects ----- */

#projects {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0px 20px 0px 20px;
}

.progress-wrapper {
    display: flex;
    padding: 5px 0px 40px 0px;
}

.progress-bar {
    width: 100%;
    height: 19px;
    border-radius: 99px;
    background-color: #252525;
    position: relative;
    overflow: visible;
}

.progress-fill {
    width: 100%;
    height: 19px;
    border-radius: 10px 0px 00px 10px;
    background-color: #6ce35ff9;
    overflow: hidden;
    margin: 0px 0px;
    display: flex;
    align-items: center;
    justify-content: left;
    position: relative;
    overflow: hidden;
    animation: fillGlow 3s ease-in-out infinite alternate;
}

@keyframes fillGlow {
    0% {
        filter: brightness(1) saturate(1);
    }

    100% {
        filter: brightness(1.3) saturate(1.4);
    }
}

.progress-fill .bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.4) 20%, transparent 70%) 0 0 / 8px 8px,
        radial-gradient(circle, rgba(255, 255, 255, 0.35) 20%, transparent 70%) 20px 10px / 10px 10px,
        radial-gradient(circle, rgba(255, 255, 255, 0.25) 20%, transparent 70%) 40px 20px / 6px 6px,
        radial-gradient(circle, rgba(255, 255, 255, 0.5) 20%, transparent 70%) 60px 30px / 12px 12px;
    animation: bubblesMove 15s linear infinite;
    opacity: 0.5;
    z-index: 0;
}

@keyframes bubblesMove {
    0% {
        background-position:
            0px 0px,
            20px 10px,
            40px 20px,
            60px 30px;
    }

    100% {
        background-position:
            80px 0px,
            100px 10px,
            120px 20px,
            140px 30px;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 300px;
    min-height: 480px;
    max-width: 300px;
    max-height: 600px;
    background-color: rgb(50, 54, 53);
    ;
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); */
    /*animation transform*/
    transition:
        transform .6s ease,
        filter .18s ease,
        opacity .18s ease,
        background 0.95s ease,
        color 0.10s ease;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 20px;
}

.project-card:hover {
    transform: translateY(-2px) scale(1.05);
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #515151, #3c3c3c, #525252);
    background-size: 200% 200%;
    /* animation gradient */
    animation: gradientMove 15s ease infinite;
    z-index: 0;
    border-radius: 20px;
}

.project-card.progress-none::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #155863, #3b8c99, #139fb5);
    background-size: 200% 200%;
    /* animation gradient */
    animation: gradientMove 15s ease infinite;
    z-index: 0;
    border: 1px solid black;
    box-shadow: 0 3px 10px rgba(0, 131, 129, 0.941);
}

.project-card.progress-complete::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #18a03a, #1cb342, #058425);
    background-size: 200% 200%;
    /* animation gradient */
    animation: gradientMove 15s ease infinite;
    z-index: 0;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(16, 255, 52, 0.941);
}

.project-card.progress-some::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #1b84a7, #0ea454, #0c8f61);
    background-size: 300% 300%;
    /* animation gradient */
    animation: gradientMove 15s ease infinite;
    z-index: 0;
    border: 1px solid black;
    box-shadow: 0 3px 10px rgba(12, 76, 22, 0.941);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.project-card>* {
    position: relative;
    z-index: 1;
}

.project-card.flipped {
    transform: rotateY(180deg);
}

.project-card .front,
.project-card .back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

/* Cara trasera */
.project-card .back {
    transform: rotateY(180deg);
    padding: 40px;
}

.progress-number {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Orbitron';
    letter-spacing: 0px;
    color: black;
    padding-left: 10px;
    z-index: 1;
}

.project-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Orbitron';
    letter-spacing: 1px;
}

.project-description {
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Orbitron';
    letter-spacing: 2.5px;
}

.project-status {
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Orbitron';
    letter-spacing: 2px;
}

.project-category {
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Orbitron';
    letter-spacing: 2px;
}

.project-software-used {
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Orbitron';
    letter-spacing: 2px;
}

.back>ul>li {
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Orbitron';
    letter-spacing: 2.5px;
}

.card-click {
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'Orbitron';
    letter-spacing: 2px;
    color: yellow;
    width: 100%;
    text-align: left;
    bottom: 20px;
    position: absolute;
}

.milestone {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.milestone::before {
    content: "";
    width: 3px;
    height: 17px;
    border-radius: 0%;
    border: 1px solid rgb(255, 255, 255);
    background: #ffffff;
    display: block;
}

.milestone span {
    position: absolute;
    top: 160%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.60rem;
    font-family: 'Orbitron';
    letter-spacing: 0px;
    white-space: nowrap;
}

.software-icons>img {
    width: 40px;
    height: auto;
}

.software-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 15px;
}

/* ----- Intro ----- */

#intro {
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 10px 200px 10px 200px;
    background-color: rgb(53, 53, 53);
}

/* ----- Summary ----- */

#summary>ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

/* =========== Footer =========== */

.footer {
    width: 100%;
    margin-top: 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(to bottom,
            rgba(9, 9, 11, 0.4),
            rgba(9, 9, 11, 0.7),
            rgb(9, 9, 11));

    backdrop-filter: blur(20px);
    position: relative;
    color: white;
}

.footer-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;

    background: linear-gradient(to right,
            transparent,
            rgba(34, 211, 238, 0.4),
            transparent);
}

.footer-container {
    max-width: 1000px;
    margin: auto;
    padding: 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media(min-width:1024px) {

    .footer-grid {
        grid-template-columns: 7fr 4fr;
    }

}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    height: 40px;
}

.footer-name {
    font-weight: 600;
}

.footer-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
    margin: 12px 0px 12px 0px;
}

.footer-buttons {
    margin-top: 10px;
}

.footer-btn {

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 6px 14px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.15);

    text-decoration: none;
    color: white;
    font-size: 13px;
    font-weight: 600;

    transition: all .25s ease;
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-social-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.social-card {

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-radius: 14px;

    padding: 12px 16px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    background: rgba(15, 23, 42, 0.4);

    text-decoration: none;
    color: white;

    transition: all .25s ease;
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.social-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-left img {
    width: 22px;
    height: 22px;
}

.social-left p {
    font-size: 13px;
    font-weight: 600;
}

.arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.footer-bottom {

    margin-top: 40px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: space-between;

}

@media(min-width:640px) {

    .footer-bottom {
        flex-direction: row;
    }

}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Mensaje descriptivo */

.info-banner {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 900px;
    width: calc(100% - 40px);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.4s ease;
}

.info-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.info-banner .highlight {
    color: rgb(7, 148, 150);
    font-weight: 600;
}

.info-banner .highlight-white {
    color: #fff;
    font-weight: 600;
}

.info-banner button {
    background: rgb(7, 148, 150);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.info-banner button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(7, 148, 150, 0.4);
}

/* Responsive */
@media (max-width: 640px) {
    .info-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Animación */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Close banner */

#close-banner {
    font-family: 'Orbitron';
}


/* ================================ */
/*           RESPONSIVE             */
/* ================================ */

/* Tablet */
@media (max-width: 1024px) {

    header {
        padding: 20px 40px;
        text-align: center;
    }

    #intro {
        padding: 15px 80px;
        text-align: center;
    }

    .title {
        font-size: 1.2em;
    }

    #projects {
        padding: 0 20px 20px 20px;
    }

    .project-card {
        flex: 1 1 calc(50% - 1.5rem);
        max-width: 40%;
    }

    #summary>ul {
        gap: 2rem;
    }

    #intro>p {
        font-size: 0.7rem;
    }
}

/* Móvil */

@media (max-width: 768px) {

    body {
        gap: 1rem;
        max-width: 100%;
    }

    header {
        padding: 35px 20px;
        text-align: center;
        width: auto;
    }

    header>p {
        font-size: 0.8rem;
        padding: 5px 20px;
    }

    .title {
        font-size: 1.2em;
    }

    #intro {
        padding: 15px 80px;
        text-align: center;
        flex-direction: column;
        width: auto;
    }

    #intro>p {
        font-size: 0.7rem;
    }

    #projects {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 10px 20px 10px;
    }

    .project-card {
        flex: 1 1 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }

    .project-card .front,
    .project-card .back {
        padding: 35px;
    }

    .card-click {
        font-size: 0.6rem;
        bottom: 15px;
    }

    .project-title {
        font-size: 14px;
        text-align: left;
    }

    #summary>ul {
        flex-direction: column;
        gap: 1.2rem;
        padding: 0 20px 20px 20px;
        text-align: center;
    }

    footer {
        padding: 15px 20px;
        text-align: center;
        margin-top: 30px;
        width: auto;
    }
}