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

body {
    font-family: sans-serif;
    background-color: #f6f1e7;
    color: black;
    width: calc(100% - 267px);
}

.layer {
    margin-left: 267px;
    width: calc(100% - 267px);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 60px;
}

.home {
    display: flex;
    position: relative;
    width: 100%;
    height: 50vh;
}

.home_text {
    color: black;
    max-width: 800px;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 12px;
}

.home_text_1 {
    font-size: 24px;
    color: #444;
}

.home_text_2 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: bold;
}

.home_nickname {
    font-size: 22px;
    font-weight: 600;
    color: #555;
    margin-top: -6px;
}

.home_text_3 {
    font-size: 24px;
    font-weight: 600;
}

.about {
    border-top: 1px solid gray;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    font-size: 20px;
}

.pfp_section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
}

.pfp {
    margin: 20px auto;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}

.about_layer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: transparent;
    width: 100%;
    max-width: 600px;
    text-align: left;
    border-left: 1px solid gray;
}

.about_layer h2 {
    text-align: center;
}

.about_layer_text_link {
    color: red;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.about_layer_text_link:hover {
    opacity: 0.6;
}

.about_layer_text {
    color: black;
    max-width: 500px;
    text-align: left;
    margin: 20px;
}

.projects {
    background-color: transparent;
    border-top: 1px solid gray;
    text-align: center;
}

.projects_text {
    color: black;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.projects_text > h2 {
    width: 100%;
    margin-bottom: 20px;
    font-size: 60px;
}

.projects_container_1,
.projects_container_2,
.projects_container_3,
.projects_container_4,
.projects_container_5 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    background-color: #f6f1e7;
    border: 1px solid gray;
    border-radius: 0;
    min-height: 520px;
    width: 350px;
}

.project_1_image,
.project_2_image,
.project_3_image,
.project_4_image,
.project_5_image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 10px;
}

.project_image_placeholder,
.event_image_placeholder {
    width: 100%;
    height: 180px;
    border: 1px dashed gray;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 16px;
    margin-bottom: 10px;
}

.project_buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: auto;
}

.project_1_button,
.project_2_button,
.project_3_button,
.project_4_button,
.project_5_button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 50px;
    border: none;
    background-color: rgb(25, 151, 201);
    color: whitesmoke;
    cursor: pointer;
    border-radius: 0;
}

.play_button {
    background-color: #e50914;
}

.project_1_image_button,
.project_2_image_button,
.project_3_image_button,
.project_4_image_button,
.project_5_image_button {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    max-height: 20px;
    max-width: 20px;
    object-fit: contain;
}

.project_1_text h2:not(.project_1_text > h2),
.project_2_text h2:not(.project_2_text > h2),
.project_3_text h2:not(.project_3_text > h2),
.project_4_text h2:not(.project_4_text > h2),
.project_5_text h2:not(.project_5_text > h2) {
    text-align: left;
}

/* Blogs / Thoughts & Events Sections */
.blogs_section,
.events_section {
    border-top: 1px solid gray;
    align-items: center;
    min-height: 50vh;
}

.section_wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section_wrapper > h2 {
    font-size: 60px;
    margin-bottom: 20px;
}

.cozy_cards_grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.cozy_card {
    background-color: #f6f1e7;
    border: 1px solid gray;
    border-radius: 0;
    padding: 30px 20px;
    width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.cozy_card_title {
    font-size: 24px;
    font-weight: bold;
    color: black;
}

.cozy_card_desc {
    font-size: 20px;
    color: black;
}

.event_card {
    justify-content: space-between;
    padding: 20px;
    gap: 15px;
}

.event_image,
.event_card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 10px;
    display: block;
}

.event_meta {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.event_card .cozy_card_desc {
    font-size: 16px;
}

.event_buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: auto;
}

.event_button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 50px;
    border: none;
    background-color: rgb(25, 151, 201);
    color: whitesmoke;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
}

/* Contact Section */
.contact {
    border-top: 1px solid gray;
    min-height: 20vh;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 40px 20px;
}

.contact_links {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

.ig,
.github {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ig img,
.github img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.scroll_bar_menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
    background-color: #f6f1e7;
    width: 222px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid gray;
    z-index: 10;
}

.nav_link {
    color: black;
    font-size: 24px;
    text-align: left;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav_link:hover {
    opacity: 0.6;
}

.tape_colum {
    width: 267px;
    position: fixed;
    top: 0;
    right: 0px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('images/Arasaka_logo_lite.png');
    background-size: contain;
    background-repeat: repeat-y;
    background-position: center top;
    border-right: 1px solid gray;
    z-index: 9;
    border-left: 1px solid black;
}

/* Doc Reader / Event Article Page */
.doc_layer {
    justify-content: flex-start;
    align-items: center;
    padding: 50px 60px 80px;
}

.doc_article {
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.doc_back_link {
    color: black;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid gray;
    padding: 8px 14px;
    width: fit-content;
    transition: opacity 0.2s ease;
}

.doc_back_link:hover {
    opacity: 0.6;
}

.doc_header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid gray;
}

.doc_meta {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.3px;
}

.doc_title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: bold;
    color: black;
}

.doc_subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: #333;
}

.doc_figure {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 6px 0;
}

.doc_figure img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border: 1px solid gray;
    border-radius: 0;
}

.doc_caption {
    font-size: 14px;
    color: #555;
}

.doc_content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 18px;
    line-height: 1.75;
    color: black;
}

.doc_content h2 {
    font-size: 28px;
    margin-top: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid gray;
}

.doc_content p {
    text-align: left;
}

.doc_footer {
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid gray;
    display: flex;
    justify-content: flex-start;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    body {
        width: 100%;
    }

    .tape_colum {
        display: none;
    }

    .scroll_bar_menu {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid gray;
        padding: 15px;
        gap: 15px;
    }

    .nav_link {
        font-size: 18px;
    }

    .layer {
        margin-left: 0;
        width: 100%;
        padding: 30px 20px;
        min-height: auto;
    }

    .home {
        height: auto;
    }

    .home_text_1 {
        font-size: 20px;
    }

    .home_text_2 {
        font-size: 40px;
    }

    .home_nickname {
        font-size: 18px;
    }

    .home_text_3 {
        font-size: 18px;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about_layer {
        border-left: none;
        padding: 10px 0;
    }

    .about_layer_text {
        margin: 10px 0;
    }

    .projects_text > h2,
    .section_wrapper > h2 {
        font-size: 40px;
    }

    .projects_container_1,
    .projects_container_2,
    .projects_container_3,
    .projects_container_4,
    .projects_container_5,
    .cozy_card {
        width: 100%;
        max-width: 350px;
    }

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

    .doc_layer {
        padding: 30px 20px 60px;
    }

    .doc_title {
        font-size: 34px;
    }

    .doc_subtitle {
        font-size: 17px;
    }

    .doc_content {
        font-size: 16px;
    }

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