/* Reset */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    scroll-padding: var(--scroll-padding, 2rem);
}

body {
    font-family: 'Poppins';
    line-height: 1.55;
    color: #ffffff;
    background-color: #242423;
    text-align: center;
    overflow-x: hidden;
}

.container {
    width: 85%;
    margin: 0 auto;
}

h1 {
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

p {
    font-weight: 300;
    letter-spacing: .5px;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: .5rem;
}

section, .header2 {
    margin-bottom: 3.5rem;
    padding: 8rem 0;
}

header {
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    transition: 0.6s;
}

header.sticky{
    background: #333533;
    padding: 15px 10px;
}

header .logo {
    display: grid;
    width: 150px;
    padding-left: 10px;
}

header .menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

header .menu a {
    font-size: 16px;
    font-size: 500;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    margin: 0 30px;
    transition: 0.3s;
    transition-property: color, background;
}

header .menu a:hover {
    color: #f7bd2e;
}

header .btn {
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    display: none;
}

#home {
    --background-image-lazy: linear-gradient(rgba(0, 0, 0, 0.9),rgba(0, 0, 0, 0.7)),url(background-2.jpg);
    background-image: var(--background-image-lazy);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    height: 100vh;  
    padding: 20px 100px;
}

.homebody {
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    position: absolute;
}

.homebody h1, h2{
    color: #ffffff;
}

.letter h1{
    display: inline-block;
}

.name::first-letter {
    color: #f7bd2e;
    font-size: 4rem;
}

.homebody h2 {
    margin-bottom: 5rem;
}

.aboutbody {
    text-align: center;
}

.aboutbody-child {
    display: inline-block;
    padding: 1rem 1rem;
    vertical-align: middle;
    text-align: justify;
}

.aboutbody-child img {
    width: 300px;
}

.aboutbody-child p {
    max-width: 30rem;
}

.button {
    margin-top: 2.5rem;
}

.button a {
    text-decoration: none;
    color: #f7bd2e;
}

.btndownload {
    padding: .8rem 2rem;
    border-radius: 30px;
    border: 1px solid #f7bd2e;
    font-weight: 700;
}

.btndownload:hover {
    background-color: #f7bd2e;
    color: #010101;
}

#skills {
    color: #ffffff;
    background-color: #333533;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.icon img {
    width: 60px;
    height: 60px;
}

.xd {
    border-radius: 50%;
}

.skillsicon {
    margin-bottom: 3rem;
}

.skillscontent {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.content {
    border: solid 0.1px #f7be2e98;
    padding: 20px;
    text-align: left;
}

.content i {
    font-size: 20px;
    margin-bottom: 1rem;
}

.content h2 {
    font-weight: 400;
    margin-bottom: .5rem;
}

.portfoliobody {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.card {
    width: 320px;
    height: 400px;
    border-radius: 25px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
}

.card-body {
    width: 100%;
    height: 100%;
    right: 0;
    bottom: -100%;
    position: absolute;
    background-color: #01010175;
    backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 30px;
    text-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all .5s ease-in-out;
}

.card:hover .card-body{
    bottom: 0;
}

.card-title {
    text-transform: uppercase;
    font-size: 30px;
}

.card-info {
    font-size: 16px;
    line-height: 25px;
    margin: 40px 0;
    font-weight: 400;
}

.card-button {
    width: 100px;
    text-decoration: none;
    text-align: center;
    color: #f7bd2e;
    border: solid 1px #f7bd2e;
    box-shadow: 0 10px 5px rgba(0, 0, 0, 0.3);
    padding: 10px 30px;
    border-radius: 10px;
}

.card-button:hover {
    color: #010101;
    background-color: #f7bd2e;
}


p.project-intro {
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.contactbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 2.5rem;
}

.contactbody-child {
    height: 300px;
    background-color: #333533;
    border: solid .2px #424242;
    padding: 60px;
}

.contactbody h2{
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.contactbody p {
    font-size: 1.5rem;
    font-weight: 500;
}

.contactbody a {
    text-decoration: none;
    color: #f7bd2e;
}

.contactbody a:hover {
    text-decoration: underline;
}

.contactbody div {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links a {
    width: 60px;
    height: 60px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 20px 10px rgba(0,0,0,0.05);
    margin: 0 30px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s;
}

.social-links a .fab{
    font-size: 30px;
    line-height: 60px;
    position: relative;
    z-index: 10;
    transition: color 0.5s;
    color: #f7bd2e;
}

.social-links a::after {
    content: '';
    width: 100%;
    height: 100%;
    top: -90px;
    left: 0;
    background: linear-gradient(-45deg, #f7bd2e, #c75f07);
    position: absolute;
    transition: 0.5s;
}

.social-links a:hover:after {
    top: 0;
}

.social-links a:hover .fab {
    color: #ffffff;
}

.social-links a:hover {
    transform: translateY(-10px);
}

footer {
    padding: 3rem;
}

.hidden {
    opacity: 0;
    transition: all 2s;
}

.show {
    opacity: 1;
}

.hidden .card {
    transform: translateY(30%);
    transition: filter 250ms ease-in, transform 400ms ease-in;
    filter: blur(5px);
}

.card.show {
    transform: translateY(0);
    filter: blur(0);
    animation-iteration-count: 1;
    overflow-y: hidden;
}

@media(prefers-reduced-motion) {
    .hidden {
        transition: none;
    }
}

@media (max-width: 1060px) {
    header .btn {
        display: block;
    }

    header .menu {
        position: fixed;
        background: #010101;
        flex-direction: column;
        min-width: 300px;
        height: 100vh;
        top: 0;
        right: -100%;
        padding: 80px 50px;
        transition: 0.5s;
        transition-property: right;
    }

    header .menu.active {
        right: 0;
    }

    header .menu .close-btn {
        position: absolute;
        top: 0;
        left: 0;
        margin: 25px;
    }

    header .menu a {
        display: block;
        font-size: 20px;
        margin: 20px;
        padding: 0 15px;
    }

}

@media (max-width: 800px) {
    .name::first-letter {
        font-size: 3rem;
    }

    .icon {
        gap: 15px;
    }

    .icon img {
        width: 40px;
        height: 40px;
    }

    .portfoliobody {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .card {
        justify-self: center; 
        width: 300px;
        height: 380px;
    }

    .card-title {
        font-size: 25px;
    }
    
    .card-info {
        font-size: 14px;
        line-height: 25px;
        margin: 30px 0;
    }

    .contactbody {
        grid-template-columns: 1fr;
    }

    .contactbody-child {
        height: 250px;
        padding: 40px;
    }

    .contactbody h2{
        margin-bottom: 2rem;
    }
    
    .contactbody p {
        font-size: 1.2rem;
    }

    .social-links a {
        margin: 0 20px;
    }
    
}


@media (max-width: 660px) {
    header .logo {
        width: 80px;
        padding-left: 2px;
    }

    .name::first-letter {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.4rem;
        margin-bottom: .5rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    p {
        font-size: 12px;
    }

    .icon {
        gap: 10px;
    }

    .icon img {
        width: 30px;
        height: 30px;
    }
    
    .skillsicon {
        margin-bottom: 2rem;
    }
    
    .skillscontent {
        grid-template-columns: 1fr;
    }

    .portfoliobody {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .card {
        justify-self: center; 
        width: 280px;
        height: 360px;
    }

    .card-title {
        font-size: 20px;
    }
    
    .card-info {
        font-size: 12px;
        line-height: 25px;
        margin: 20px 0;
    }

    .contactbody {
        grid-template-columns: 1fr;
    }

    .contactbody-child {
        height: 200px;
        padding: 30px;
    }
    
    .contactbody h2{
        margin-bottom: 1.5rem;
    }
    
    .contactbody p {
        font-size: 1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        margin: 0 15px;
        box-shadow: 0 10px 5px rgba(0,0,0,0.05);
    }
    
    .social-links a .fab{
        font-size: 20px;
        line-height: 40px;
    }
}
