/* ==========================================================
   PIXELAIR - STYLE.CSS
========================================================== */

/* ================= RESET ================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#111;
    color:#fff;
    overflow-x:hidden;
}

/* ================= HEADER ================= */

header{

    position:fixed;
    top:0;
    left:0;

    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:22px 8%;

    background:rgba(0,0,0,.45);
    backdrop-filter:blur(18px);

    z-index:1000;

    transition:.35s;

}

.logo{

    font-size:30px;
    font-weight:700;
    letter-spacing:5px;

}

.languages{

    display:flex;
    align-items:center;

    gap:14px;

    margin-left:auto;
    margin-right:40px;

}

.languages span{

    font-size:24px;
    cursor:pointer;

    transition:transform .25s;

}

.languages span:hover{

    transform:scale(1.18);

}

nav{

    display:flex;

    gap:34px;

}

nav a{

    position:relative;

    color:#fff;

    text-decoration:none;

    font-weight:500;

    transition:.3s;

}

nav a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-6px;

    width:0;
    height:2px;

    background:#fff;

    transition:.3s;

}

nav a:hover::after{

    width:100%;

}

/* ================= HERO ================= */

.hero{

    position:relative;

    width:100%;
    height:100vh;

    background:url("../images/hero.jpg");
    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;

}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.48);

}

.hero-content{

    position:relative;

    z-index:5;

    max-width:950px;

    text-align:center;

    padding:25px;

}

.hero h1{

    font-size:64px;

    line-height:1.1;

    margin-bottom:28px;

    font-weight:700;

}

.hero p{

    max-width:820px;

    margin:auto;
    margin-bottom:45px;

    font-size:21px;

    line-height:1.8;

    opacity:.95;

}

/* ================= BOTÓN ================= */

.btn{

    display:inline-block;

    padding:18px 48px;

    border:2px solid #fff;

    color:#fff;

    text-decoration:none;

    font-weight:600;

    transition:.35s;

}

.btn:hover{

    background:#fff;

    color:#111;

}

/* ================= SOBRE ================= */

.about{

    background:#fff;

    color:#111;

    padding:120px 10%;

}

.container{

    max-width:1100px;

    margin:auto;

}

.about h2{

    text-align:center;

    font-size:46px;

    margin-bottom:35px;

}

.about p{

    text-align:center;

    font-size:20px;

    line-height:2;

    color:#666;

}
/* ================= PORTFOLIO ================= */

.portfolio{

    background:#111;

    padding:120px 8%;

}

.portfolio h2{

    text-align:center;

    font-size:46px;

    margin-bottom:70px;

}

.grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));

    gap:35px;

}

.item{

    position:relative;

    overflow:hidden;

    border-radius:18px;

    cursor:pointer;

    background:#1b1b1b;

    box-shadow:0 18px 45px rgba(0,0,0,.45);

    transition:transform .35s ease,
               box-shadow .35s ease;

}

.item:hover{

    transform:translateY(-8px);

    box-shadow:0 24px 55px rgba(0,0,0,.55);

}

.item img{

    display:block;

    width:100%;

    height:420px;

    object-fit:cover;

    transition:transform .8s ease;

}

.item:hover img{

    transform:scale(1.08);

}

/* Oscurecer imagen */

.item::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.70),
        rgba(0,0,0,0)
    );

    opacity:0;

    transition:.35s;

    z-index:1;

}

.item:hover::before{

    opacity:1;

}

/* Botón del proyecto */

.project-button{

    position:absolute;

    left:50%;
    top:50%;

    transform:translate(-50%,-50%);

    padding:14px 28px;

    border:2px solid #fff;

    border-radius:40px;

    color:#fff;

    background:rgba(0,0,0,.28);

    backdrop-filter:blur(10px);

    font-weight:600;

    letter-spacing:.4px;

    white-space:nowrap;

    opacity:0;

    transition:.35s;

    z-index:2;

    pointer-events:none;

}

.item:hover .project-button{

    opacity:1;

}
/* ================= MODAL PROYECTOS ================= */

.modal{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:30px;

    background:rgba(0,0,0,.82);

    backdrop-filter:blur(10px);

    opacity:0;
    visibility:hidden;

    transition:.35s;

    z-index:9999;

}

.modal.active{

    opacity:1;

    visibility:visible;

}

.modal-content{

    position:relative;

    width:100%;
    max-width:1100px;

    max-height:90vh;

    overflow-y:auto;

    background:#181818;

    border-radius:22px;

    box-shadow:0 30px 80px rgba(0,0,0,.60);

    animation:modalOpen .35s ease;

}

@keyframes modalOpen{

    from{

        transform:translateY(30px) scale(.96);

        opacity:0;

    }

    to{

        transform:translateY(0) scale(1);

        opacity:1;

    }

}

.modal-content img{

    display:block;

    width:100%;

    height:auto;

    max-height:80vh;

    object-fit:contain;

    margin:auto;

    background:#111;

}

.modal-info{

    padding:40px;

}

.modal-info h2{

    font-size:38px;

    color:#fff;

    margin-bottom:18px;

}

.modal-date{

    color:#bdbdbd;

    font-size:17px;

    margin-bottom:25px;

}

.modal-info p{

    font-size:19px;

    line-height:1.9;

    color:#ddd;

}

.close-modal{

    position:absolute;

    top:18px;
    right:24px;

    width:46px;
    height:46px;

    display:flex;
    justify-content:center;
    align-items:center;

    border-radius:50%;

    background:rgba(0,0,0,.45);

    color:#fff;

    font-size:34px;

    cursor:pointer;

    user-select:none;

    transition:.3s;

}

.close-modal:hover{

    background:#fff;

    color:#111;

    transform:rotate(90deg);

}
/* ================= CONTACTO ================= */

.contact{

    background:#181818;

    text-align:center;

    padding:120px 10%;

}

.contact h2{

    font-size:46px;

    margin-bottom:25px;

}

.contact p{

    font-size:20px;

    line-height:1.9;

    color:#d5d5d5;

}

.contact-info{

    margin:40px 0;

}

.contact-info p{

    margin:10px 0;

    font-size:21px;

}

.contact-info a{

    color:inherit;

    text-decoration:none;

}

.contact-info a:hover{

    text-decoration:underline;

}

.contact .btn{

    margin-top:20px;

}

/* ================= FOOTER ================= */

footer{

    background:#0a0a0a;

    text-align:center;

    padding:35px;

    color:#8f8f8f;

    font-size:15px;

    letter-spacing:.5px;

}

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

@media(max-width:950px){

    header{

        padding:18px 6%;

    }

    nav{

        display:none;

    }

    .languages{

        margin-right:0;

    }

    .logo{

        font-size:24px;

        letter-spacing:3px;

    }

    .hero{

        padding:0 20px;

    }

    .hero h1{

        font-size:38px;

        line-height:1.2;

        margin-bottom:20px;

    }

    .hero p{

        font-size:17px;

        line-height:1.7;

        margin-bottom:35px;

    }

    .btn{

        padding:15px 36px;

        font-size:15px;

    }

    .about{

        padding:90px 8%;

    }

    .about h2{

        font-size:34px;

    }

    .about p{

        font-size:17px;

    }

    .portfolio{

        padding:90px 6%;

    }

    .portfolio h2{

        font-size:34px;

    }

    .grid{

        grid-template-columns:1fr;

        gap:24px;

    }

    .item img{

        height:270px;

    }

    .modal{

        padding:15px;

    }

    .modal-content{

        border-radius:16px;

        max-height:95vh;

    }

    .modal-content img{

        max-height:60vh;

    }

    .modal-info{

        padding:25px;

    }

    .modal-info h2{

        font-size:26px;

    }

    .modal-info p{

        font-size:16px;

    }

    .close-modal{

        width:42px;

        height:42px;

        right:15px;

        top:15px;

        font-size:28px;

    }

    .contact{

        padding:90px 8%;

    }

    .contact h2{

        font-size:34px;

    }

    .contact p{

        font-size:17px;

    }

}
