body {
    min-height: 100vh;
}

header {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 50px;
    gap: 40px;
}

header .top {
    display: flex;
    justify-content: center;
    align-items: center;
}

header .desc h1 {
    font-size: 65px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #080808;
}

header .desc h3 {
    line-height: 1.6;
    font-weight: 500;
}

header img {
    mix-blend-mode: darken;
    width: 45%;
    float: right;
}

@media (max-width: 500px) {
    header {
        height: 100vh;
    }

    header .top {
        padding: 10px;
        margin-top: 5%;
        flex-direction: column-reverse;
    }

    header img {
        mix-blend-mode: darken;
        width: 100%;
    }
}

.sub-header {
    background-image:
        linear-gradient(to right, rgba(200, 199, 199, 0.477) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(200, 199, 199, 0.477) 1px, transparent 1px);
    background-size: 80px 80px;
    min-height: 90vh;
    padding-block: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    background-color: #000;
    line-height: 2.5;
    overflow: hidden;
}

.sub-header h1 {
    padding-block: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 60px;
    color: rgb(194, 255, 103);
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.sub-header h1 span {
    scale: 2.5;
}

.sub-header h2 {
    font-size: 30px;
    color: #b5f6d2;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.sub-header p {
    color: rgb(255, 254, 254);
    width: 50%;
    text-align: center;
    margin-block: 20px;
}

.sub-header .actions {
    padding-block: 20px;
}

.sub-header .actions .btn-modern {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #ffe1e1;
    background-color: #252525;
    border-radius: 30px;
    min-width: 200px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-header .actions .btn-modern .material-symbols-outlined {
    scale: 0.8;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-header .actions .btn-modern:hover {
    border-color: white;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sub-header .actions .btn-modern:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.sub-header .actions .btn-modern:active {
    transform: translateY(0);
}


/* Related to posts */
.out-heading {
    padding-block: 20px;
    font-size: 50px;
    font-weight: 600;
    text-align: center;
    color: #202124;
}

.recent-posts {
    width: 100%;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    min-height: 80vh;
}

.recent-posts .post-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column-reverse;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 28px;
    padding: 48px;
    max-width: 500px;
    height: 580px;
    box-sizing: border-box;
    gap: 32px;
    cursor: pointer;
    margin-block: 30px;
    transition: box-shadow 0.1s linear;
    overflow: hidden;
}

.featured-posts {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100%;
    min-height: 50vh;
}

.featured-posts .post-card {
    margin-inline: auto;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 28px;
    padding: 50px;
    max-width: 1050px;
    min-width: 400px;
    box-sizing: border-box;
    gap: 32px;
    cursor: pointer;
    transition: box-shadow 0.1s linear;
}

.post-card:hover {
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
}

.post-contents {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category-label {
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.post-title {
    font-size: 40px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 24px 0
}

.post-description {
    font-size: 16px;
    line-height: 1.6;
    color: #202124;
    margin: 0 0 36px 0;
}

.post-button {
    color: #191919;
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #191919;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.6px;
    word-spacing: 1px;
    transition: background-color 0.1s ease-in-out, color 0.2s ease-in-out;
}

.post-card:hover .post-button {
    background-color: black;
    color: white;
}

.post-card .image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    width: 100%;
    overflow: hidden;
}

.contact {
    min-height: 80vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    padding-inline: 40px;
}

.contact .details {
    font-size: 30px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 24px 0;
    width: 45%;
}

.contact .contact-action-button {
    display: flex;
    gap: 10px;
}

.contact .contact-action-button button {
    border-radius: 50%;
    border: none;
    outline: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.contact .contact-action-button button i {
    padding: 10px;
}

.contact .contact-action-button button.website {
    background-color: gray;
}

.contact .contact-action-button button.github {
    background-color: rgb(7, 7, 7);
}

.contact .contact-action-button button.linkedin {
    background-color: #0a66c2;
}

.contact .contact-action-button button.dev {
    background-color: #4e4444;
}

@media (max-width: 900px) {
    header {
        padding-inline-start: 20px;
    }

    header h1 {
        font-size: 20px;
    }

    .sub-header p {
        width: 90%;
    }

    .featured-posts .post-card {
        margin-block: 0px;
        width: 500px;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 20px;
        margin-top: 30px;
    }
}

@media (width: 750px) {
    .featured-posts .post-card {
        width: 500px;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    header {
        margin-block: 0px;
    }

    header h1 {
        font-size: 30px;
    }

    header img {
        display: none;
    }

    header p {
        font-size: 14px;
    }

    .sub-header p {
        width: 90%;
    }

    .recent-posts {
        gap: 10px;
    }

    .recent-posts .post-card {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .featured-posts .post-card {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 20px;
    }

    .featured-posts .post-card img {
        width: 100%;
    }

    .contact {
        display: flex;
        justify-content: center;
        padding-inline: 10px;
    }

    .contact .details {
        width: 100%;
        text-align: center;
    }

    .contact .contact-action-button {
        margin-top: -30%;
    }
}