@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
}

a{
    text-decoration: none;
    color: #000;
}

img{
    object-fit: cover;
    width: 120px;
}

body{
    background-color: #000
}

nav{
    background-color: transparent;
    padding: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 140px;
}

nav a.logo{
    font-size: 38px;
    color: #fff;
    font-weight: 600;
}


nav .links a:not(:last-child){
    margin-right: 20px;
}

.nav-links{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.link a{
    font-size: 17px;
    position: relative;
    padding-bottom: 0.75rem;
    color: #fff;
}

.link a::after{
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition:  all 0.3s ease;
}

.link a:hover::after{
    width: 70%;
}

.hero{
    margin-top: 0px;
    height: calc(100vh - 80px);
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.slider-box{
    width: 1400px;
    border-radius: 50px;
    height: auto;
    margin: 50px auto 0;
    overflow: hidden;
}

.slider-box ul{
    display: flex;
    padding: 0;
    width: 500%;

    animation: slide 20s infinite alternate ease-in-out;
}

.slider-box li{
    list-style: none;
    width: 100%;
}

.slider-box img{
    width: 100%;
}

@keyframes slide{
    0%{margin-left: 0%;}
    20%{margin-left: 0%;}

    25%{margin-left: -100%;}
    45%{margin-left: -100%;}

    50%{margin-left: -200%;}
    70%{margin-left: -200%;}

    75%{margin-left: -300%;}
    90%{margin-left: -300%;}
}


.hero .left-section{
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.hero .left-section .top h2{
    color: #fff;
    font-size: 40px;
    margin-bottom: 24px;
}

.hero .left-section .top p{
    color: #b4b3b3;
    font-size: 18px;
    margin-bottom: 30px;
    text-align: justify;
}

.hero .left-section .top .buttons{
    display: flex;
    gap: 8px;
}

.hero .left-section .top .buttons button,
.projects .inner > button,
.contact .items .item button{
    font-size: 16px;
    border: none;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero .left-section .top .buttons button i{
    font-size: 26px;
}

.hero .left-section .top .buttons button.doc,
.contact .items .item button{
    background: #ffffff;
    color: #000;
}

.hero .left-section .top .buttons button.git:hover{
    background: #000;
    color: #fff;
    border-color: transparent;
}

.hero .left-section .bottom p{
    font-size: 14px;
    color: #606060;
    margin-bottom: 10px;
}

.hero .left-section .bottom .icons{
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    cursor: pointer;
    width: fit-content;
}

button{
    cursor: pointer;
}

.about{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #000000;
    padding: 50px;
    padding-top: 20px;
}

.about > p{
    font-size: 19px;
    color: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 7px 30px;
    border-radius: 50px;
    margin-bottom: 20px;
    background: #000000;
}

.about > h2{
    color: #fff;
    font-size: 22px;
    text-align: center;
    margin-bottom: 30px;
}

.about .items{
    display: flex;
    justify-content: center;
    gap: 24px;
}

.about .items .item{
    width: 40%;
    border-radius: 16px;
    padding: 0 0 10px;
}

.about .items .item .inner{
    background: #000000;
    padding: 24px;
    min-height: 365px;
}

.about .items .item .inner img{
    height: 275px;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
}

.about .items .item .inner a{
    text-align: center;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

.about .items .item .inner p{
    text-align: justify;
    color: #c0c0c0;
    font-size: 15px;
}

.about1{
    padding: 110px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about1 .left img{
    border: 2px solid #ffffff;
    border-radius: 100%;
    width: 400px;

}

.about1 .right p{
    text-align: justify;
    font-size: 16px;
    margin-top: 30px;
}

h5,h3,p{
    color: #fff;
}

h5{
    padding-bottom: 10px;
    font-size: 15px;
}

h3{
    font-size: 35px;
}

footer{
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

footer p{
    font-size: 15px;
    color: #b1b1b1;
    transition: all 0.3s ease;
}

.contact-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 1rem;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background 0.3s;
}

.doc a{
    color: #000;
}

.contact-fab i{
    color: #000000;
    font-size: 40px;
}

.contact-fab i:hover{
    color: #fff;
}

.contact-fab:hover {
    background: #0a0a0a;
    transform: scale(1.1);
}

@media screen and (max-width: 1024px) {
    nav {
        padding: 0 40px;
    }

    nav a.logo {
        display: none;  /* Oculta el logo y el texto "Elite King" */
    }

    h2{
        margin-top: 10px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 0 30px;
    }

    .hero .left-section {
        gap: 50px;
    }

    .about1 {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }

    .about1 .left img {
        width: 250px;
    }
}

@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .slider-box {
        width: 100%;
        border-radius: 20px;
    }

    .about .items {
        flex-direction: column;
        align-items: center;
    }

    .about .items .item {
        width: 90%;
    }

    .hero .left-section .top h2 {
        font-size: 32px;
    }

    .hero .left-section .top p {
        font-size: 16px;
    }

    .hero .left-section .top .buttons {
        flex-direction: column;
    }

    .about1 .left img {
        width: 200px;
    }

    .contact-fab {
        bottom: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        padding: 0.75rem;
    }

    .footer{
        padding: 20px 40px 20px 40px;
    }
}

@media screen and (max-width: 480px) {
    nav {
        flex-direction: row;
        align-items: center;
        height: auto;
        justify-content: space-between;
        padding: 20px;
    }


    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .links{
        margin: auto;
        margin-right: 0;
        padding-right: 40px;
    }

    .nav-logo{
        margin: auto;
        margin-right: 0;
        margin-top: 0;
        margin-left: 20px;
    }

    .nav-links{
        margin: auto;
    }
    
    .nav-logo a img{
        width: 60px;
    }

    .hero {
        padding: 0 20px;
    }

    .hero .left-section .top h2 {
        font-size: 28px;
    }

    .hero .left-section .top p {
        font-size: 14px;
    }

    .about {
        padding: 30px 20px;
    }

    .about1 {
        padding: 30px 20px;
    }

    .about1 .left img {
        width: 150px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}
