@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
}

:root {
    --bg-color: #191f36;
    --snd-bg-color: #262840;
    --text-color: #ffffff;
    --main-color: #59b2f4;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.connect {
    position: fixed;
    right: 1.5rem;
    bottom: 5rem;
    background-color: #59b2f4;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 0 1rem #59b2f4;
    border-radius: 2rem;
    padding: 1rem 2rem;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.5s ease;
    z-index: 1000;

}

.connect:hover {
    box-shadow: none;
    border: 1px solid var(--main-color);
    background-color: var(--bg-color);
    color: #fff;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
}

.portfolio-logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
}

.navbar-container a {
    font-size: 2rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 700;
}

.navbar-container a.active {
    color: var(--main-color);
}

#menu-bar-icone {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img {
    border-radius: 50%;
    width: 40rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatImage 4s ease-in-out infinite;
}

.home-profile {
    width: 100%;
}

.home-container h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-container h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

.home-container h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

span {
    color: var(--main-color);
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2.4rem);
    }

    100% {
        transform: translateY(0);
    }
}

.home-container p {
    font-size: 1.6rem;
}

.socila-media-profile a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.5s ease;
}

.socila-media-profile a:hover {
    background: var(--main-color);
    color: var(--snd-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.tooltip-icon {
    position: relative;
}

/* Tooltip text */
.tooltip-icon .tooltiptext-icon {
    visibility: hidden;
    width: 60px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 3px;
    font-size: 12px;
    font-family: "Nunito";
    font-weight: 300;
    border-radius: 4px;
    position: absolute;
    margin-bottom: 10px;
    z-index: 1;
    bottom: 100%;
    left: -100%;
    transform: translateX(50%);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show the tooltip text on hover */
.tooltip-icon:hover .tooltiptext-icon {
    visibility: visible;
    opacity: 1;
}

.button {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--main-color);
    border: 2px solid transparent;
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.5s ease;
}

.button:hover {
    box-shadow: none;
    background-color: transparent;
    border: 2px solid var(--main-color);
    color: var(--text-color);
}

.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--snd-bg-color);
}

.heading {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
}

.skills {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px;
}

.skills-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 50px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 15%;
    padding: 16px;
    box-shadow: 0 0 10px #a9aaab;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 12px;
    transition: 0.5s ease;
}

.skill-card:hover {
    background-color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}

.skills-container .skill-card img {
    height: 90px;
    width: 90px;
}

.skills-container .skill-card p {
    font-family: "Nunito";
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
}

.about-container p {
    font-size: 19px;
}

.service h2 {
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-bottom: 40px;
}

.services-container .service-card {
    flex: 1 1 30rem;
    background-color: var(--snd-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid var(--bg-color);
    transition: 0.5s ease;
    cursor: pointer;
}

.services-container .service-card:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.service-card i {
    font-size: 7rem;
    color: var(--main-color);
}

.service-card h3 {
    font-size: 2.6rem;
}

.service-card p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.projects {
    background: var(--snd-bg-color);
    padding-bottom: 70px;
}

.projects h2 {
    margin-bottom: 4rem;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.project-container .project-card {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.project-card {
    cursor: pointer;
    height: 200px;
    width: 100%;
}

.project-card img {
    width: 100%;
    transition: 0.5s ease;
    opacity: 0.7;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0.4rem;
    transform: translateY(100%);
    transition: 0.5s ease;
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.project-content h4 {
    font-size: 3rem;
}

.project-content p {
    font-size: 1.6rem;
    margin: 0.3rem 0 1rem;
}

.project-content a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}

.project-content a i {
    font-size: 2rem;
    color: var(--snd-bg-color);
}

.project-image {
    max-height: 200px;
}

.certificates-card {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.certificates-card img {
    height: 260px;
    width: 340px;
    margin: 1.4rem;
    border-radius: 10px;
    border: 2px solid #b08204;
    cursor: pointer;
}

.certificates-card img:hover {
    box-shadow: 0 0 1px 2px #b08204;
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-card {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-card input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--snd-bg-color);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
}

.contact form .input-card input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .button {
    margin-top: 2rem;
    cursor: pointer;
}

.input-card input:focus {
    border: 1px solid var(--main-color);
}

.contact form textarea:focus {
    border: 1px solid var(--main-color);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 3%;
    background: var(--snd-bg-color);
    margin-bottom: 0px;
}

.footer-container {
    font-size: 1.6rem;
}

footer h2 {
    font-family: "Nunito";
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

footer h2 a {
    color: #f7b51b;
}

.tooltip {
    position: relative;
    display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 70px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 3px;
    font-size: 12px;
    font-weight: 200;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 0;
    transform: translateX(50%);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show the tooltip text on hover */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.footer-icons {
    display: inline-flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0.8rem 1rem;
    background: var(--main-color);
    border-radius: 50%;
    transition: 0.5s ease;
    margin-right: 0px;
}

.footer-icons a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-icons a i {
    font-size: 2.1rem;
    color: var(--snd-bg-color);
}

@media screen and (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media screen and (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3%;
    }

    .skill-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 24%;
        height: 120px;
        padding: 0px;
    }

    .skills-container .skill-card img {
        width: 60px;
        height: 60px;
    }

    .skills-container .skill-card p {
        font-size: 14px;
        margin-top: 10px;
    }

    .service {
        padding: 7rem;
    }

    .projects {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media screen and (max-width: 768px) {
    #menu-bar-icone {
        display: block;
    }

    .navbar-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        display: none;
    }

    .navbar-container.active {
        display: block;
    }

    .navbar-container a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-container h3 {
        font-size: 2.6rem;
    }

    .home-container {
        order: 2;
    }

    .home-container h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column;
    }

    .service h2 {
        margin-bottom: 3rem;
    }

    .projects h2 {
        margin-bottom: 3rem;
    }

    .project-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 617px) {
    .project-container {
        grid-template-columns: 1fr;
    }

    .home-img img {
        width: 80vw;
        margin-top: 8rem;
    }
}

@media screen and (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .contact form .input-card input {
        width: 100%;
    }

    section {
        padding: 22px;
    }

    .about-container p {
        font-size: 18px;
    }

    .skills {
        padding: 40px;
    }

    .skills-container {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin-top: 30px;
        gap: 30px;
    }

    .skill-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 40%;
        height: 110px;
        padding: 0px;
    }

    .skills-container .skill-card img {
        width: 50px;
        height: 50px;
    }

    .skills-container .skill-card p {
        font-size: 14px;
        margin-top: 10px;
    }

    .certificates-card {
        justify-content: center;
    }

    .certificates-card img {
        height: 200px;
        width: 300px;
    }

    .footer-container {
        display: none;
    }

    .footer h2 {
        font-size: 9px;
    }
}