html{
    overflow-y:scroll;
}

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

body{
    background:#111216;
    color:white;
    font-family:'Inter', Arial, Helvetica, sans-serif;
}

/* HEADER */

header{
    background:#0d0e12;
    border-bottom:1px solid #222;
    height:135px;
}

.header-content{
    width:80%;
    max-width:1200px;
    height:135px;

    margin:0 auto;
    padding:0;

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

header h1{
    font-size:40px;
    font-weight:800;
    margin-bottom:8px;
    letter-spacing:-0.5px;
    line-height:1;
}

header p{
    color:#fff;
    font-size:18px;
    font-weight:400;
    line-height:1.3;
}

nav{
    flex-shrink:0;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:30px;
    font-size:14px;
    font-weight:700;
    transition:.2s;
}

nav a:hover,
nav a.active{
    color:#1da1f2;
}

/* FILTERS */

.filters{
    display:flex;
    justify-content:center;
    gap:50px;
    background:#1a1c20;
    padding:18px;
}

.filters button{
    background:none;
    border:none;
    color:white;
    cursor:pointer;
    font-size:16px;
    font-weight:700;
    transition:.2s;
}

.filters button:hover,
.filters button.active{
    color:#1da1f2;
}

/* GALLERY */

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
}

.project{
    position:relative;
    overflow:hidden;
    background:#111216;
}

.project img{
    width:100%;
    height:320px;
    object-fit:cover;
    display:block;
    transition:.3s;
}

.project:hover img{
    transform:scale(1.05);
}

.overlay{
    position:absolute;
    inset:0;

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

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

    opacity:0;
    transition:.3s;
}

.project:hover .overlay{
    opacity:1;
}

.overlay h3{
    font-size:28px;
    font-weight:700;
    margin-bottom:8px;
}

.overlay p{
    font-size:14px;
    color:#ccc;
}

/* RESUME HERO */

.resume{
    width:100%;
    text-align:center;
    padding-top:35px;
    padding-bottom:25px;
}

.resume > h1{
    font-size:32px;
    font-weight:800;
    margin-bottom:8px;
    letter-spacing:-0.5px;
    line-height:1.1;
}

.resume > h2{
    width:760px;
    max-width:90%;
    margin:auto;

    font-size:16px;
    font-weight:400;
    line-height:1.4;
}

.resume > p{
    margin-top:10px;
    font-size:14px;
    color:#fff;
}

.email{
    display:block;

    margin-top:15px;
    margin-bottom:15px;

    color:#1da1f2;
    font-size:14px;
    text-decoration:none;
}

.email:hover{
    text-decoration:underline;
}

/* SOCIALS */

.socials{
    margin-top:5px;

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

    gap:10px;
}

.socials a{
    display:flex;
    justify-content:center;
    align-items:center;

    width:38px;
    height:38px;

    background:#1da1f2;
    border-radius:50%;

    color:white;
    text-decoration:none;

    transition:.2s;
}

.socials a:hover{
    transform:translateY(-3px);
}

.socials i{
    font-size:18px;
    line-height:1;
    color:white;
}

.socials img{
    width:18px;
    height:18px;
    object-fit:contain;
    display:block;
}

/* Unity icon adjustment */

.socials a:first-child img{
    width:20px;
    height:20px;
}

/* RESUME SECTIONS */

.section{
    width:760px;
    max-width:90%;

    margin:35px auto 0;
    padding-top:30px;

    text-align:left;
    border-top:1px solid #333;
}

.section h2{
    font-size:28px;
    font-weight:700;
    margin-bottom:15px;
}

.section p{
    color:#ddd;
    font-size:16px;
    line-height:1.6;
}

/* SKILLS */

.skill-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.skill-list span{
    border:1px solid #777;
    padding:8px 14px;

    font-size:11px;
    font-weight:700;

    transition:.2s;
}

.skill-list span:hover{
    border-color:#1da1f2;
    color:#1da1f2;
}

/* SOFTWARE */

.software-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px 50px;
}

.software-item{
    display:flex;
    align-items:center;
    gap:14px;

    color:#ddd;
    font-size:16px;
}

.software-item img{
    width:32px;
    height:32px;
    object-fit:contain;
    display:block;
}

.software-item i{
    width:32px;
    height:32px;

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

    font-size:26px;
    color:white;
}
/* MOBILE */

@media(max-width:768px){

    .header-content{
        width:90%;
        height:auto;
        min-height:auto;
        padding:30px 0;

        flex-direction:column;
        text-align:center;
        gap:20px;
    }

    header{
        height:auto;
    }

    header h1{
        font-size:34px;
    }

    header p{
        font-size:16px;
    }

    nav a{
        margin:0 12px;
    }

    .filters{
        gap:30px;
    }

    .resume > h1{
        font-size:28px;
    }

    .resume > h2{
        width:90%;
        font-size:15px;
    }

    .section{
        width:90%;
    }

    .section h2{
        font-size:24px;
    }

    .software-grid{
        grid-template-columns:1fr;
    }

    .gallery{
        grid-template-columns:1fr;
    }
}

/* BACK TO TOP BUTTON */

#backToTop{
    position:fixed;

    right:30px;
    bottom:30px;

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    background:#1da1f2;
    color:white;

    font-size:24px;
    font-weight:700;

    cursor:pointer;

    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:999;
}

#backToTop:hover{
    background:#35b6ff;
    transform:translateY(-3px);
}

#backToTop.show{
    opacity:1;
    visibility:visible;
}