@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

/* Header */
header {
    z-index: 889;
    position: fixed;
    background-color: rgba(255, 255, 255, 0.1);
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s ease;
}

header.sticky {
    background-color: #3a6cf4;
    padding: 10px 5%;
}

header .brand {
    color: white;
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

header .navigation {
    position: relative;
}

header .navigation a {
    color: white;
    font-size: 1em;
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
}

header .navigation a:hover {
    color: #3a6cf4;
}

header.sticky .navigation a:hover {
    color: black;
}

/* Menu Hamburguer */
.menu-btn {
    position: relative;
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.menu-btn__burger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-btn__burger::before {
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    transform: translateY(8px);
}

.menu-btn.active .menu-btn__burger {
    background: transparent;
}

.menu-btn.active .menu-btn__burger::before {
    transform: rotate(45deg);
}

.menu-btn.active .menu-btn__burger::after {
    transform: rotate(-45deg);
}

/* Main Content */
section {
    padding: 100px 5%;
}

.main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url(Image/bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.main .content {
    max-width: 800px;
}

.main .content h2 {
    color: white;
    font-size: 1.5em;
    font-weight: 500;
}

.main .content h2 span {
    font-size: 2rem;
    font-weight: 600;
}

.animated-text {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.animated-text h3 {
    color: #4e9eff;
    font-size: 2em;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: 1px;
}

.animated-text h3:nth-child(1) {
    animation: text-move 6s infinite ease-out;
}

@keyframes text-move {
    0%, 15% {
        margin-top: 0;
    }
    25%, 40% {
        margin-top: -60px;
    }
    50%, 65% {
        margin-top: -120px;
    }
    75%, 90% {
        margin-top: -60px;
    }
    100% {
        margin-top: 0;
    }
}

.btn {
    color: white;
    background-color: #3a6cf4;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
    padding: 8px 16px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 2px;
    margin-top: 20px;
    transition: 0.5s ease;
}

.btn:hover {
    background-color: #235bf6;
}

.media-icons {
    margin-top: 30px;
}

.media-icons a {
    color: white;
    font-size: 20px;
    margin-right: 20px;
}

/* About Section */
.title {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.section-title {
    position: relative;
    color: #3a6cf4;
    font-size: 1.8em;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
}

.section-title::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 50%;
    width: 120px;
    height: 3px;
    background-color: #3a6cf4;
    transform: translateX(-50%);
}

.section-title::after {
    content: "";
    position: absolute;
    top: 46px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3a6cf4;
    transform: translateX(-50%);
}

.about .content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.about .content .col-left {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.about .content .col-right {
    position: relative;
    width: 100%;
}

.about .content .col-left .img-card {
    position: relative;
    width: 100%;
    min-height: 350px;
}

.about .content .col-left .img-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.about .content .col-right .content-title {
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 15px;
}

.about .content .col-right .paragraph-text {
    font-size: 0.9em;
}

/* Skills Section */
.skills {
    background-color: black;
}

.skills .content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: white;
    margin-top: 20px;
    flex-wrap: wrap;
}

.skills .content .col-left {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.skills .content .col-right {
    position: relative;
    width: 100%;
}

.skills .content .col-left .content-title {
    margin-bottom: 15px;
}

.skills .content .col-right .bar {
    margin-bottom: 12px;
    padding: 8px;
}

.skills .content .col-right .bar .info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skills .content .col-right .bar .info span {
    font-size: 16px;
    font-weight: 500;
}

.skills .content .col-right .bar .line {
    position: relative;
    width: 100%;
    height: 12px;
    background-color: #ccc;
    border-radius: 2px;
}

.skills .content .col-right .bar .line::before {
    content: "";
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 3px;
}

.skills .content .col-right .bar .html::before {
    width: 95%;
    background-color: #e45126;
}

.skills .content .col-right .bar .css::before {
    width: 90%;
    background-color: #0c73b8;
}

.skills .content .col-right .bar .ARDUINO::before {
    width: 80%;
    background-color: #e3a324;
}

.skills .content .col-right .bar .python::before {
    width: 85%;
    background-color: blue;
}

.skills .content .col-right .bar .Bootstrap::before {
    width: 65%;
    background-color: #6d7eb8;
}

.skills .content .col-right .bar .MySQL::before {
    width: 65%;
    background-color: #1ae613;
}

.skills .content .col-right .bar .Csharp::before {
    width: 65%;
    background-color: #e6136b;
}

/* segunda hablidades*/
.skills .content .col-right .bar .Canva::before {
    width: 100%;
    background-color: rgb(216, 24, 21);
}

.skills .content .col-right .bar .GitHub::before {
    width: 90%;
    background-color: #dd22cd;
}

.skills .content .col-right .bar .IOT::before {
    width: 85%;
    background-color: #1cc99d;
}

.skills .content .col-right .bar .HelpDesk::before {
    width: 100%;
    background-color: #cde20c;
}

/* Services */
.services .content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    margin-top: 20px;
}

.title p {
    font-size: 0.9em;
    width: 100%;
    text-align: center;
    padding: 0 10px;
}

.services .content .card {
    background-color: #fff;
    width: 100%;
    max-width: 340px;
    margin: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(1 1 1/15%);
    transition: 0.3s linear;
}

.services .content .card .service-icon {
    color: #3a6cf4;
    font-size: 5rem;
    text-align: center;
    transition: 0.3s linear;
}

.services .content .card .info {
    text-align: center;
}

.services .content .card .info h3 {
    color: #3a6cf4;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 10px;
    transition: 0.3s linear;
}

.services .content .card:hover {
    background-color: #3a6cf4;
    color: white;
}

.services .content .card:hover .service-icon,
.services .content .card:hover .info h3 {
    transform: translateY(-10px);
    color: white;
}

/* Work */
.work {
    background-color: #000016;
}

.work .content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 20px;
}

.work .content .card {
    width: 100%;
    max-width: 340px;
    margin: 10px;
}

.work .content .card .card-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
}

.work .content .card .card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s linear;
}

.work .content .card .card-img img:hover {
    transform: scale(1.2);
}

/* Contact */
.contact .content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    margin-top: 20px;
}

.contact .content .row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
}

.contact .content .row .card {
    background: #fff;
    width: 100%;
    max-width: 240px;
    margin: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 5px 25px rgba(1 1 1 / 15%);
    border-radius: 10px;
}

.contact .content .row .card .contact-icon {
    color: #3a6cf4;
    font-size: 3em;
    text-align: center;
    transition: transform 0.5s ease;
}

.contact .content .row .card:hover .contact-icon {
    transform: translateY(-10px);
}

.contact .content .row .card .info {
    text-align: center;
}

.contact .content .row .card .info h3 {
    color: #270707;
    font-size: 1.1em;
    font-weight: 700;
    margin: 15px;
}

.contact .content .row .card .info span {
    color: #000003;
    font-size: 0.75em;
    font-weight: 500;
}

.contact-form {
    background: #fff;
    width: 100%;
    max-width: 600px;
    margin-top: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(1 1 1 / 15%);
}

.contact-form h3 {
    color: #111;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.contact-form .input-box {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.contact-form .input-box input,
.contact-form .input-box textarea {
    color: #111;
    width: 100%;
    padding: 8px;
    font-size: 0.9em;
    font-weight: 400;
    outline: none;
    border: 1px solid #111;
    border-radius: 5px;
    resize: none;
}

.contact-form .input-box .send-btn {
    color: #fff;
    background: #3a6cf4;
    display: inline-block;
    font-size: 1em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: 0.5s ease;
    padding: 10px;
}

.contact-form .input-box .send-btn:hover {
    background: #235bf6;
}

/* Footer */
.footer {
    background: #000016;
    color: #fff;
    text-align: center;
    padding: 1.5em;
}

.footer .footer-title {
    font-size: 18px;
    font-weight: 600;
}

.footer p {
    font-size: 14px;
    margin-top: 10px;
}

.footer p a {
    color: #3a6cf4;
    font-weight: 600;
    text-decoration: none;
}

.scrollToTop-btn {
    z-index: 999;
    position: fixed;
    background: #3a6cf4;
    color: #fff;
    width: 40px;
    height: 40px;
    right: 20px;
    bottom: 20px;
    font-size: 20px;
    text-align: center;
    line-height: 40px;
    border-radius: 3px;
    cursor: pointer;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Media Queries */
@media (min-width: 576px) {
    header {
        padding: 15px 8%;
    }
    
    header.sticky {
        padding: 10px 8%;
    }
    
    .main .content h2 {
        font-size: 1.8em;
    }
    
    .main .content h2 span {
        font-size: 2.5rem;
    }
    
    .animated-text h3 {
        font-size: 2.5em;
    }
    
    .about .content .col-left,
    .about .content .col-right {
        width: 100%;
    }
    
    .skills .content .col-left,
    .skills .content .col-right {
        width: 100%;
    }
}

@media (min-width: 768px) {
    section {
        padding: 100px 8%;
    }
    
    .main .content h2 {
        font-size: 2em;
    }
    
    .main .content h2 span {
        font-size: 2.8rem;
    }
    
    .animated-text h3 {
        font-size: 3em;
    }
    
    .about .content .col-left {
        width: 45%;
        margin-bottom: 0;
    }
    
    .about .content .col-right {
        width: 50%;
    }
    
    .skills .content .col-left {
        width: 46%;
    }
    
    .skills .content .col-right {
        width: 46%;
    }
    
    .services .content .card {
        width: calc(50% - 20px);
    }
}

@media (min-width: 992px) {
    header {
        padding: 15px 10%;
    }
    
    header.sticky {
        padding: 10px 10%;
    }
    
    section {
        padding: 100px 10%;
    }
    
    .services .content .card {
        width: calc(33.333% - 20px);
    }
    
    .contact .content .row .card {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 1040px) {
    .menu-btn {
        display: block;
    }
    
    header .navigation {
        display: none;
    }

    .navigation.active {
        z-index: 889;
        position: fixed;
        background-color: white;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        box-shadow: 0 5px 25px rgba(1 1 1/ 15%);
        transition: 0.3s ease;
    }

    header .navigation a {
        color: black !important;
        margin: 15px 0 !important;
        font-size: 1.2em !important;
        padding: 10px 20px !important;
    }

    header .navigation a:hover {
        background-color: #3a6cf4;
        color: white !important;
    }
}

@media (max-width: 400px) {
    .main .content h2 {
        font-size: 1.2em;
    }
    
    .animated-text h3 {
        font-size: 1.8em;
        line-height: 50px;
    }
    
    @keyframes text-move {
        0%, 15% {
            margin-top: 0;
        }
        25%, 40% {
            margin-top: -50px;
        }
        50%, 65% {
            margin-top: -100px;
        }
        75%, 90% {
            margin-top: -50px;
        }
        100% {
            margin-top: 0;
        }
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    .section-title::before {
        top: 40px;
        width: 100px;
    }
    
    .section-title::after {
        top: 36px;
        width: 10px;
        height: 10px;
    }
    
    .contact-form {
        padding: 20px;
    }
}