*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(8px);
    z-index: 0;
}

.header {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.header, .skills, .object, .certifications, .scroll-to-top {
    position: relative;
    z-index: 1;
}

#bg-video::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: -1;
}

.header .title{
    margin: 20px 20px;
    padding: 10px;
}

.header span{
    margin: 20px 10px;
    color: rgb(255, 255, 255);
    text-shadow: -1px -1px 0 rgb(46, 46, 46);
    font-weight: bold;
}

.header h1{
    margin: 10px 10px;
    height: 50px;
    width: 50px;
    transition-duration: .4s;
}

.header h1:hover{
    transform: scale(1.05);
}

.header h1 span:first-child:hover{
    color: rgb(255, 145, 0);
}

.header h1 span:last-child:hover{
    color: rgb(255, 68, 0);
}

.header .nav-bar{
    padding: 15px;
    font-size: 18px;
    font-size: medium;
    letter-spacing: 2px;
    margin-top: -10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.nav-bar .container-nav{
    display: flex;
    justify-content: end;
    gap: 10px;
    margin: -40px 10px;
}

.container-nav .item-content{
    font-size: 19px;
    margin-left: 10px;
    color: rgb(255, 255, 255);
}

.item-content ul li a{
    padding: 15px;
    border: 1px solid;
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
}

.item-content ul li a:hover{
    background-color: #a1a1a135;
    color: rgb(197, 197, 197);
}

.inicio{
    margin: auto;
    padding: 10px;
}

.inicio .container-inicio{
    display: flex;
    flex-direction: column;
    margin: 20px;
    text-align: center;
    height: 50px;
}

.container-inicio .content-incio h2{
    display: flex;
    font-size: 50px;
    letter-spacing: 5px;
    justify-content: center;
    margin-top: 80px;
    font-family: 'Playfair Display', serif;
    color: #c9a84c;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgb(255, 255, 255);
    border-top: 1px solid #fff;
    border-radius: 50px;
}

.content-incio p{
    display: flex;
    margin-top: 30px;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    color: #f0f0f0;
    text-shadow: -1px -1px 0 rgb(88,88,88);
    letter-spacing: 2px;
    font-size: 25px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.container-inicio .social-media a{
    display: inline-block;
    font-size: 42px;
    margin: 25px;
    padding: 5px;
    border: 1px solid white;
    border-radius: 50px;
    transition: .5s;
    color: white;
}

.social-media a:first-child:hover{
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-media a:nth-child(2):hover{
    background-color: rgb(0, 62, 249);
}

.social-media a:nth-child(4):hover{
    color: green;
}

.social-media a:last-child:hover{
    color: green;
}

.social-media a:hover{
    transform: scale(1.30);
}

/*SKILLS*/

.skills {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-skills {
    color: white;
    font-size: 18px;
    padding: 20px;
    line-height: 2;
    letter-spacing: 2px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 100px;
   
}

@keyframes skill{
    0%{ transform: translateY(0); }
    50%{ transform: translateY(-24px); }
    100%{ transform: translateY(0); }
}

.content-skills h2{
    margin-bottom: 50px;
    font-size: 45px;
    animation: skill 2s ease-in-out infinite;
    font-family: 'Playfair Display', serif;
    color: #e0e0e0;
    font-weight: 700;
}

.content-skills p {
    font-family: 'Outfit', sans-serif;
    color: #f0f0f0;
}

.container-skills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    margin-right: 50px;;
    width: 100%;
}

.container-skills .icon-skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    letter-spacing: 2px;
    border: 1px solid #ccc;
    padding: 25px;
    border-radius: 10px;
    width: 120px;
    height: 150px;
    background-color: rgb(255, 255, 255);
    transition: transform 0.3s ease;
}

.icon-skills:hover {
    transform: translate(-10px, -20px);
    background: linear-gradient(to bottom, #0057f8, #ffffff);
    color: white;
}
.card {
    perspective: 800px;
    width: 120px;
    height: 120px;

}

.cardinner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.cardfront, .cardback {
    position: absolute;
    width: 120px;
    height: 150px;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card:hover .cardinner {
    transform: rotateY(180deg);
}

.cardfront,
.cardback {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.cardfront {
    background: #1e1e2e;
}

.cardback {
    background: #ffffff;
    transform: rotateY(180deg); 
    color: rgb(220, 0, 0);
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

.cardback img{
    width: 120px;
    height: 140px;
}

.icon-skills:hover:first-child,
.icon-skills:hover:nth-child(8) {
    background: linear-gradient(to bottom, #f9dc00, #ffffff);
}

.icon-skills:hover:nth-child(7) {
    background: linear-gradient(to bottom, #000000, #ffffff);
}

.icon-skills:hover:nth-child(2),
.icon-skills:hover:nth-child(5),
.icon-skills:hover:nth-child(9) {
    background: linear-gradient(to bottom, #ed0000, #ffffff);
}

.icon-skills i {
    font-size: 70px;
    color: rgb(109, 30, 30);
    margin-top: 10px;
}
/*Objects*/

.object{
    padding: auto;
    margin: 30px 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    letter-spacing: 2px;
    color: white;
}

.container-objects{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
}

.header-obj{
    margin: 50px;
    padding: 20px;
    border-left: 1px solid white;
    line-height: 2;
}

@keyframes girar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-obj h2{
    margin-bottom: 55px;
    padding: 20px;
    font-size: 45px;
    font-weight: 700;
}

.header-obj h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #e0e0e0;
}

.header-obj p {
    font-family: 'Outfit', sans-serif;
    color: #cccccc;
    font-size: 25px;
}

.header-obj h2 span{
    background: linear-gradient(to right, #bebebe, #828282);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-obj p span{
    color: #f4a261;
    font-size: 25px;
    background: linear-gradient(to right, #ffffff, #bababa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes costado{
    0%{ transform: translateX(0); }
    50%{ transform: translateX(24px); }
    100%{ transform: translateX(0); }
}

.content-obj .item-obj h3{
    animation: costado 2s ease-in-out infinite;
    background: linear-gradient(to right, #ffffff, #ffaeae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    border-bottom: 1px solid rgb(255, 255, 255);
    margin: 20px 0;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.content-obj .item-obj p{
    line-height: 40px;
}

/*Certifications*/

.certifications {
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.contenedor-cert {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contenido-cert h2 {
    font-family: 'Playfair Display', serif;
    color: #e0e0e0;
    font-weight: 700;
    letter-spacing: 3px;
    border-bottom: 1px solid white;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 45px;
}

.galeria-certificados {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 20px;
}

.item-cert {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-cert img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.item-cert:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/*Footer*/

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgb(255, 255, 255);
    border-radius: 50%;
    padding: 15px;
    font-size: 24px;
    box-shadow: 0 4px 8px rgb(0, 0, 0);
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    color: #e6683c;
}

.section-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {

    /* HEADER */
    .header {
        height: auto;
        min-height: 100vh;
    }

    /* TITULO */
    .header h1 {
        font-size: 26px;
        width: auto;
        height: auto;
    }

    /* NAV */
    .nav-bar .container-nav {
        flex-wrap: wrap;
        justify-content: center;
        margin: 10px 0;
        gap: 6px;
    }

    .container-nav .item-content {
        margin-left: 0;
    }

    .item-content ul li a {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* QUIEN SOY */
    .inicio .container-inicio {
        height: auto;
        margin: 10px;
    }

    .container-inicio .content-incio h2 {
        font-size: 28px;
        letter-spacing: 2px;
        margin-top: 30px;
    }

    .content-incio p {
        font-size: 15px;
        letter-spacing: 1px;
        padding: 0 10px;
        margin-top: 15px;
    }

    .container-inicio .social-media a {
        font-size: 28px;
        margin: 10px 8px;
    }

    /* HABILIDADES */
    .skills {
        height: auto;
        padding: 40px 10px;
        flex-direction: column;
    }

    .content-skills h2 {
        font-size: 28px;
    }

    .content-skills p {
        font-size: 14px;
    }

    .container-skills {
        grid-template-columns: repeat(2, 1fr);
        margin-right: 0;
        padding: 10px;
        gap: 12px;
        justify-items: center;
    }

    .container-skills .icon-skills {
        width: 100%;
        height: 120px;
        max-width: 150px;
    }

    .icon-skills i {
        font-size: 35px;
    }

    /* OBJETIVO */
    .container-objects {
        flex-direction: column;
    }

    .header-obj {
        border-left: none;
        border-top: 1px solid white;
        margin: 20px 10px;
        padding: 10px;
    }

    .header-obj h2 {
        font-size: 26px;
        padding: 10px;
        margin-bottom: 20px;
    }

    .header-obj p {
        font-size: 15px;
    }

    .content-obj .item-obj p {
        font-size: 14px;
        line-height: 26px;
    }

    .content-obj .item-obj h3 {
        font-size: 16px;
    }

    /* CERTIFICACIONES */
    .galeria-certificados {
        grid-template-columns: 1fr;
    }

    .contenido-cert h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {

    .header h1 {
        font-size: 20px;
    }

    .container-inicio .content-incio h2 {
        font-size: 22px;
    }

    .content-incio p {
        font-size: 13px;
    }

    .container-skills {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }

    .container-skills .icon-skills {
        width: 100%;        
        height: 100px;
        max-width: 120px;  
        padding: 10px;
    }

    .icon-skills i {
        font-size: 45px;
    }   
}
