@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    --bg-color: #F5F5F5;
    --text-color: #0F1314;
    --main-color: #1A237E;
    --white-color: #F6F6F4;
    --shadow-color: rgba(0, 0, 0, .2);
}

.dark-mode {
    --bg-color: #0F1314;
    --text-color: #F5F5F5;
    --shadow-color: rgba(0, 0, 0, .7);
}

html {
    font-size: 80%;
}

body {
    min-width: auto;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
    margin-bottom: 10rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 7%;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s;
}

.header.sticky {
    background-color: var(--bg-color);
    box-shadow: 0 .1rem .5rem var(--shadow-color);
}

#darkMode-icon {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-color);
    margin-right: 1rem;
}

.dark-mode .logo {
    margin-top: 1rem;
}

.header.sticky #darkMode-icon {
    color: var(--text-color);
    opacity: .9;
}

#menu-icon {
    font-size: 1.3rem;
    color: var(--text-color);
    display: none;
    margin-right: 1rem;
}

.header img {
    width: 60%;
}

.logo {
    font-size: 2rem;
    color: var(--main-color);
    cursor: auto;
    margin-right: auto;
}

.separador {
    display: block;
    position: absolute;
    width: 100%;
    font-size: 4rem;
    left: 50%;
    bottom: 5%;
    opacity: .2;
    color: var(--main-color);
}

.navbar a {
    position: relative;
    font-size: 1.3rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-right: 3rem;
    padding-bottom: .5rem;
}

.navbar a:hover {
    color: var(--main-color);
    font-weight: bold;
}


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

.home {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 2rem 7% 0;
    height: 100vh;
    background-image: url(/assets/images/coffiebg.png);
    background-repeat: no-repeat;
    background-position: 80% 40%;
    background-size: 40rem;
    animation: fundoAnimado 20s linear infinite;
}

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

    50% {
        background-position: 80% 20%;
    }

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

.home .home-content {
    max-width: 28rem;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    line-height: .3;
}

.home-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.home-content p {
    font-size: 1rem;
}

.home .home-content .profession .text {
    position: relative;
    font-size: 2rem;
    font-weight: 600;
    color: var(--main-color);
}

.home .home-content .profession .text .text-animation {
    box-shadow: 0 .2rem .5rem var(--shadow-color);
}

.home .home-content .profession .text.text-animation:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--bg-color);
    border-left: 2px solid var(--main-color);
    animation: pulse 4s steps(12) infinite;
}

@keyframes pulse {

    40%,
    60% {
        left: 100%;
    }

    100% {
        left: 0%;
    }

}


.home-content .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: .1rem solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 .1px .4px var(--shadow-color);
    font-size: 1.6rem;
    color: var(--text-color);
    text-decoration: none;
    margin: 1.5rem 1rem 1.2rem 0;
    transition: .5 ease;
}

.home-content .social-media a:hover {
    background: var(--main-color);
    color: var(--white-color);
}

.btn {
    display: inline-block;
    padding: 1rem;
    background: var(--main-color);
    border-radius: .6rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    border: .1rem solid transparent;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    transition: .5 ease;
}

.btn:hover,
.btn:focus {
    outline: none;
    background: var(--white-color);
    color: var(--main-color);
    border-color: var(--main-color);
}

.btn:disabled {
    cursor: not-allowed;
    background: var(--text-color);
}

.success,
.error {
    text-align: center;
}

.success {
    color: var(--main-color);
}

.error {
    color: tomato;
}

.btn i {
    margin-left: .6rem;
    font-size: 1rem;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.about-img {
    width: 40vw;
}

.heading {
    font-size: 4rem;
    text-align: center;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 1.8rem;
}

.about-content p {
    font-size: 1.2rem;
    margin: 2rem 0 3rem;
}

.services {
    min-height: auto;
    padding-bottom: 5rem;
}

.services h2 {
    margin-bottom: 2rem;
}

.services .services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background-color: var(--bg-color);
    padding: 2rem 1rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    text-align: center;
    transition: .5s ease;
}

.services-container .services-box:hover {
    border: 0 .1rem 2rem var(--shadow-color);
    transform: scale(1.02);
}

.services-box i {
    font-size: 4rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 1.6rem;
}

.services-box:hover h3 {
    color: var(--main-color);
}

.services-box p {
    font-size: 1.2rem;
    margin: .8rem 0 2rem;
}

.services-box .services-skills i {
    font-size: 2rem;
}

.portfolio {
    padding-bottom: 8rem;
}

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

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

.portfolio-container .portfolio-box {
    position: relative;
    display: flex;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
    overflow: hidden;
}

.portfolio-box img {
    width: 100%;
    transition: .9s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, .1), var(--main-color));
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 3rem;
    opacity: 0;
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1;
}

.portfolio-layer h4 {
    font-size: 2rem;
}

.portfolio-layer p {
    font-size: 1rem;
    margin: .3rem 0 .8rem;
}

.portfolio-box .portfolio-layer a {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
}

.portfolio-box .portfolio-layer .technology i {
    margin-bottom: 1rem;
    color: var(--white-color);
    font-size: 1.8rem;
    opacity: .8;
}

.portfolio-box .portfolio-layer .external a {
    background-color: var(--white-color);
    border-radius: 50%;
    margin-left: .5rem;
}

.portfolio-box .portfolio-layer .external a:hover {
    opacity: .8;
}

.portfolio-box .portfolio-layer .external a i {
    font-size: 1.4rem;
}

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

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

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

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: .5rem;
    font-size: 1.2rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    border: 0 none;
}

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

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 1rem;
    cursor: pointer;
}

footer {
    height: 10rem;
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
}

footer .footer-current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46%;
    flex-direction: column;
}

.footer-current img {
    max-width: 8rem;
}

.footer-current ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer-current ul li {
    list-style: none;
}

.footer-current ul li a {
    display: inline-block;
    height: 2rem;
    width: 2rem;
    position: relative;
    text-align: center;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    transition: .5s ease-in;
    margin-bottom: .8rem;
}

.footer-current ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1E88E5;
    transition: .5s;
    transform: scale(.9);
    z-index: -1;
}

.footer-current ul li a:hover::before {
    transform: scale(1.1);
    box-shadow: 0 0 15px #1E88E5;
}

.footer-current ul li a:hover {
    color: #1E88E5;
    box-shadow: 0 0 5px #1E88E5;
    text-shadow: 0 0 5px #1E88E5;
}

footer p {
    width: 100%;
    text-align: justify;
    padding-left: 10rem;
}

.footer-icontop {
    display: inline-flex;
    align-items: end;
    justify-content: end;
    flex-direction: row-reverse;
    padding-right: 3rem;
}

.footer-icontop a {
    padding: .4rem;
    background-color: var(--white-color);
    border-radius: .8rem;
    display: flex;
    color: var(--text-color);
    cursor: pointer;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.footer-icontop a:hover {
    outline: .2rem solid var(--white-color);
}

.footer-icontop a i {
    font-size: 1.5rem;
    color: #333;
}


/* Breakpoints */

@media (max-width: 1200px) {

    .header {
        max-width: 1200px;
    }

}

@media (max-width: 1026px) {

    .header {
        padding: 2rem 3%;
        max-width: 1026px;
    }

    .home {
        background-image: none;
        position: relative;
    }

    .home::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url(/assets/images/coffiebg.png);
        background-repeat: no-repeat;
        background-position: 80% 40%;
        background-size: 40rem;
        z-index: -1;
        opacity: 1;
    }

    .navbar a {
        font-size: 1.6rem;
    }

    #darkMode-icon {
        font-size: 1.6rem;
    }

    section {
        padding: 10rem 3% 2rem;
    }

}

@media (max-width: 991px) {

    .header {
        max-width: 991px;
    }

    .home::before {
        z-index: 1;
        background-position: 100% 40%;
        background-size: 35rem;
    }

    .home .home-content {
        max-width: 50rem;
    }

    .home h1,
    h3 {
        font-size: 4.5rem;
    }

    .home .home-content .profession .text {
        font-size: 3.5rem;
    }

    .home-content .social-media a {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
    }

    .btn {
        font-size: 1.4rem;
    }

    .navbar a {
        font-size: 1.7rem;
    }

    #darkMode-icon {
        font-size: 1.8rem;
    }

    .heading {
        margin-bottom: 2.5rem;
    }

    .about-content p {
        font-size: 1.4rem;
    }

    .services,
    .portfolio {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }

}

@media (max-width: 769px) {

    html {
        font-size: 55%;
    }

    .header {
        max-width: 769px;
        padding: 2rem 2%;
    }

    #menu-icon {
        display: block;
        font-size: 2.8rem;
    }

    #darkMode-icon {
        position: absolute;
        right: 7rem;
        font-size: 2.6rem;
        color: var(--text-color);
        margin-bottom: .2rem;
    }

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

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }

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

    .navbar a::before {
        display: none;
    }

    .home {
        padding: 0 3% 23rem;
        justify-content: center;
        text-align: center;
    }

    .home::before {
        z-index: -1;
        background-position: 50% 80%;
        background-size: 30rem;
    }

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

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

    .home-content .social-media a {
        margin: 2, 5rem .75rem 3rem;
    }

    .separador {
        left: 0;
        bottom: 40%;
    }

    .about {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
        margin-bottom: 2rem;
    }

    .about-content h3 {
        font-size: 1.9rem;
    }

    .about-content p {
        font-size: 1.6rem;
    }

    .about-image img {
        width: 60vw;
        margin-top: -2rem;
    }

    .services h2,
    .portfolio h2 {
        margin-bottom: 3rem;
    }

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

@media (max-width:737px) {

    .header {
        max-width: 737px;
    }

    .home {
        padding: 12rem 3% 0rem
    }

    .home::before {
        z-index: -1;
        background-position: 10% 80%;
        background-size: 24rem;
    }

    .about-image img {
        width: 40vw;
    }

    .separador {
        left: 0;
        bottom: -15%;
    }
}

@media (max-width:685px) {
    .header {
        max-width: 684px;
    }

    .home .home-content .profession .text {
        font-size: 3rem;
    }
}

@media (max-width: 620px) {

    .header {
        max-width: 618px;
        padding: 2rem 2%;
    }

    .portfolio .portfolio-container {
        grid-template-columns: 1fr;
    }

    .portfolio-layer h4 {
        font-size: 2rem;
    }

    .portfolio-layer p {
        font-size: 1.6rem;
    }

    .portfolio .portfolio-layer .technology i {
        font-size: 2.5rem;
    }

    .portfolio .portfolio-layer .external a {
        width: 3.5rem;
        height: 3.5rem;
    }

    .portfolio .portfolio-layer .external a i {
        font-size: 2rem;
    }

}

@media (max-width: 452px) {

    html {
        font-size: 50%;
    }

    #darkMode-icon {
        right: 6rem;
    }

    .header {
        max-width: 452px;
        padding: 2rem 2%;
    }

    .home {
        padding: 38rem 3% 30rem;
    }

    .home::before {
        background-position: 80% 20%;
        background-size: 20rem;
    }

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

    .separador {
        left: 0;
        bottom: 8%;
    }
}

@media (max-width: 376px) {

    html {
        font-size: 40%;
    }

    .home::before {
        background-position: 80% 20%;
        background-size: 30rem;
    }

    .header {
        max-width: 376px;
    }

    .home .home-content .profession .text {
        font-size: 2.5rem;
    }

    .services .services-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .services .services-box h3 {
        font-size: 2rem;
    }

    .services-box .services-skills i {
        font-size: 3rem;
    }

    .services .services-box p {
        font-size: 1.6rem;
    }

    .about-image img {
        width: 60vw;
    }

    .about-content p {
        font-size: 1.8rem;
    }

    .contact form .input-box input,
    .contact form textarea {
        font-size: 1.6rem;
    }

    .separador {
        left: 0;
        bottom: 25%;
    }

    footer p {
        padding-left: 4rem;
    }
}

@media (max-width: 367px) {

    .header {
        padding: 2rem 2%;
        max-width: 367px;
    }

    .home {
        max-width: 367px;
    }

    .home .home-content h1 {
        font-size: 3rem;
    }

    .home .home-content .profession .text {
        font-size: 2rem;
    }

    .home::before {
        background-position: 80% 30%;
        background-size: 25rem;
    }

    section {
        max-width: 367px;
    }

    .separador {
        left: 0;
        bottom: 25%;
    }

    .about-image img {
        width: 60vw;
    }

    .about-content p {
        font-size: 2rem;
    }

    .services .services-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .services-box h3 {
        font-size: 2rem;
    }

    .services-box p {
        font-size: 1.6rem;
    }

    .services-box .services-skills i {
        font-size: 3rem;
    }

    footer {
        max-width: 365px;
    }

    footer p {
        padding-left: 4rem;
    }

}

@media (max-width: 281px) {
    .header {
        max-width: 281px;
    }

    section {
        max-width: 281px;
    }

    .home {
        max-width: 281px;
    }

    .home .home-content .profession .text {
        font-size: 1.9rem;
    }
}