@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #222;
    color: #fff;
    line-height: 1.6;
}
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: poppins,sans-serif;
    text-decoration: none;
}
body{
    overflow-x: hidden;
}
.hero-header{
    width:100%;
    height: 100%;
    min-height: 100vh;
    background: #222;
}
.wrapper{
    width:1280px;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}
header{
    padding: 40px 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo{
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.logo i{
    height: 45px;
    width:45px;
    background-color: #007ced;
    border-radius: 50%;
    color:#fff;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 10px;
    margin-right: 5px;
    cursor: pointer;
    text-align: center;
    
}
.logo .logo-text{
    font-size: 24px;
    font-weight: 500;
    color:#fff;
}
nav .togglebtn{
    width: 35px;
    height: 35px;
    position: absolute;
    top:45px;
    right: 3%;
    z-index: 5;
    cursor: pointer;
    display: none;
}
nav .togglebtn span{
    display: block;
    background-color: #007ced;
    margin: 5px 0px;
    width:100%;
    height:3px;
    transition: 0.3s;
    transition-property:  transform, opacity;

}
nav .navlinks{
    list-style-type: none;
}
nav .navlinks li a:hover{
    color: #007ced;

}
nav .navlinks li{
    display: inline-block;
}
nav .navlinks li a{
     color:#e5e5e5;
     margin-right: 2.5rem;
}
.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top:4rem;
}
.container .hero-pic{
    width: 300px;
    height: 330px;
    border-radius: 50%;
    overflow: hidden;
    border: 15px solid #444;
    box-shadow: 5px 7px 25px rgba(0,0,0,0.5);
}
.hero-pic img{
    height: 100%;
    width:100%;
    transition: 0.5s;
}
.hero-pic img:hover{
    transform: scale(1.2);
}
.hero-text{
    max-width: 500px;
    display: flex;
    flex-direction: column;
}
.hero-text h5{
    color:#e5e5e5;
    font-size: 14px;
}
.hero-text h5 span{
    color:#007ced;
    font-size: 16px;
}
.hero-text h1{
    color: #007ced;
    font-size: 3rem;
}
.hero-text p{
    color:#e5e5e5;

}
.btn-group{
    margin:45px 0;
}
.btn-group .btn{
    border-color: #d5d5d5;
    color:#fff;
    background-color: #333;
    padding: 12px 25px;
    margin: 5px 0px;
    margin-right:7px;
    border-radius: 30px;
    border:2px solid #e5e5e5;
    box-shadow:  0 10px 10px -8px rgb(0 0 0 / 78%);
}
.btn.active{
    border-color: #007ced;
}
.hero-text .social i{
    color: #e5e5e5;
    font-size: 18px;
    margin-right: 10px;
    transition: 0.5s;
    padding-bottom: 50px;
}
.hero-text .social i:hover{
    color:#007ced;
    transform: scale(1.2);
}
/* Respnosiv design & displaying navbar for small screen */
@media(max-width:930px)
{
    nav .togglebtn{
        display: initial;
    }
    /* for toggle button**/
    .click {
        top:45px;
    }
    .click span{
        position: 0;
    }
    .click span:first-child {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    .click span:nth-child(2)
    {
        opacity: 0;
        margin:0;
    }
    .click span:last-child {
        transform: rotate(45deg) translate(-6px, -6px);
    }
    nav .navlinks{
        position: absolute;
        top:110px;
        right:-100%;
        bottom: 0;
        width: 60%;
        height: 100vh;
        background-color: #222;
        z-index: 3;
        box-shadow: 5px 13px 30px rgba(0,0,0,0.1);
        transition: 0.5s;
        padding: 25px 0px;
    }
    nav .navlinks li{
        display: block;
    }
    nav .navlinks li a{
        display: block;
        margin-bottom: 15px;
        text-align: center;
    }
    nav .navlinks.open {
        right: 0; /* Menú visible cuando tiene la clase "open" */
    }
}
@media(max-width:768px)
{
    .container{
        flex-direction: column;
        padding-top:2rem
    }
    .hero-text{
        padding:40px 0px;
    }
}
/* Secciones adicionales */
.section-title {
    font-size: 40px;
    font-style:oblique;
}
.content-section {
    display: none;
    min-height: calc(100vh - 110px);
}
.content-section.active {
    display: block !important;
    animation: fadeIn 0.3s ease-in;
}
section.active {
    display: block !important;
    opacity: 1 !important;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Timeline Experiencia */
.timeline {
    border-left: 3px solid #007ced;
    padding: 20px 30px;
    margin: 40px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    width: 15px;
    height: 15px;
    background: #007ced;
    position: absolute;
    left: -9px;
    top: 5px;
    border-radius: 50%;
}

/* Habilidades */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2.5rem;
    color: #007ced;
    margin-bottom: 15px;
}

/* Certificaciones */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-card {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #007ced;
}

/* Contacto */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #007ced;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #444;
    background: rgba(255,255,255,0.05);
    color: #fff;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .skills-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-card {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #007ced;
}

.contact-form {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
}

@media (max-width: 930px) {
    nav .navlinks {
        position: fixed; /* Cambiar de absolute a fixed */
        top: 110px;
        right: -100%; /* Menú oculto por defecto */
        width: 60%;
        height: calc(100vh - 110px); /* Ajustar altura */
        background: #222;
        z-index: 100; /* Asegurar que esté por encima */
        transition: right 0.5s ease;
        padding: 25px 0;
        overflow-y: auto; /* Scroll si el menú es largo */
    }

    /* Contenedor principal */
    .content-container {
        margin-top: 110px;
        position: relative;
        z-index: 1; /* Menor que el menú */
    }
}
body.menu-open {
    overflow: hidden;
}
html {
    scroll-behavior: smooth;
}
.form-status {
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    text-align: center;
    background: rgba(0, 124, 237, 0.1);
}

nav .togglebtn span {
    background: #007ced !important; /* Color de las barras */
}
nav .togglebtn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 5px;
}

nav .togglebtn:focus {
    box-shadow: none !important;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Modal unificado */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 900px;
}

.modal-media {
    display: none;
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 5px;
}

#modalPDF {
    height: 80vh;
    border: none;
}

.pdf-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 1rem;
    align-items: center;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 25px;
}

.pdf-controls button {
    background: #007ced;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.pdf-controls button:hover {
    background: #005daa;
}

/* Miniaturas */
.cert-preview {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.cert-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.cert-preview:hover img {
    transform: scale(1.05);
}

.cert-preview::after {
    content: attr(data-type);
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
}
