/*
Layout Style

Layout & Positioning – display, position, flex, justify-content, align-items, gap, width, height, padding, margin

Typography – font-family, font-size, line-height, letter-spacing, text-align, text-transform, color

Visual Style – background-color, border-radius, box-shadow, object-fit

Transformations & Transitions – transition, transform, perspective, transform-style

Other – anything else (cursor, overflow, etc.)
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

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

body {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 1.3rem;
    line-height: 1.5;
    color: #292929;
    cursor: default;
}

footer {
    width: 100%;
    padding: 0.5% 0;
    text-align: center;
    color: #686868;
    background-color: #262626;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
}

footer a {
    color: #686868;
}

#nav-menu {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    background-color: #262626;
}

.menu-button {
    text-align: center;
    text-decoration: none;
    padding: 0.8rem;
    font-size: 1.6rem;
    color: #686868;
    transition: linear 0.2s;
}

.menu-button:hover {
    color: rgba(255, 255, 255, 0.527);
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    padding: 4rem;
    height: auto;
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    line-height: 4rem;
    color: #686868;
    background-color: #262626;
}

.page-title img {
    max-height: 300px;
    width: auto;
    object-fit: contain;
}

.tilt-container {
    display: inline-block;
    perspective: 600px;
}

.tilt-container img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    transform: rotateX(0deg) rotateY(0deg);
}

.filler-text {
    padding: 3rem 0 2rem;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #262626;
}

.block-wrapper {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 2rem 1rem;
    gap: 2rem;
}

.block-wrapper .inner-text {
    font-size: 1.45rem;
    width: 85%;
    padding: 1rem 0 0.3rem;
    line-height: 2.6rem;
}

.project-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    border-top: 2px solid #262626;
    border-right: 2px solid #262626;
    background-color: transparent;
}

.vertical-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 5px;
    font-size: 2.2rem;
    line-height: 100%;
    text-transform: uppercase;
    text-align: center;
    color: #262626;
    background-color: transparent;
    transition: transform 0.3s ease-in-out;
}

.project-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 2px solid #262626;
}

.filler-text a {
    font-size: 1.5rem;
    font-weight: 600;
}

.filler-text a:hover {
    color: #1F5FCC;
}

/* Large phones / modern high-res devices (e.g., iPhone 15 Pro Max) */
@media screen and (max-width: 1500px) and (orientation: portrait) {
    .block-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .page-title {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        font-size: 2rem;
        line-height: 3rem;
        text-align: center;
    }

    .project-block {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 75%;
        max-width: 350px;
        height: auto;
    }

    .project-block img {
        width: 70%;
        height: auto;
    }

    .vertical-text {
        width: 30%;
        font-size: 2rem;
        /* Removed writing-mode and text-orientation */
        margin-right: 0.5rem;
    }

    .filler-text {
        width: 80%;
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    #projects-btn {
        font-size: 1.4rem;
    }

    .menu-button {
        font-size: 1.55rem;
        padding: 0.8rem;
    }

    .cta-button {
        font-size: 1.4rem;
        padding: 1rem 2rem;
    }

    body {
        font-size: 1.2rem;
    }

    footer {
        font-size: 1.15rem;
    }
}

/* Tablets & medium phones */
@media screen and (max-width: 1024px) {
    .block-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .page-title {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        font-size: 1.9rem;
        line-height: 2.8rem;
        text-align: center;
    }

    .project-block {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 70%;
        max-width: 300px;
        height: auto;
    }

    .project-block img {
        width: 70%;
        height: auto;
    }

    .vertical-text {
        width: 30%;
        font-size: 1.8rem;
        /* Removed writing-mode and text-orientation */
        margin-right: 0.5rem;
    }

    .filler-text {
        width: 80%;
        font-size: 1.25rem;
    }

    #projects-btn {
        font-size: 1.35rem;
    }

    .menu-button {
        font-size: 1.5rem;
        padding: 0.8rem;
    }

    .cta-button {
        font-size: 1.35rem;
        padding: 1rem 2rem;
    }

    body {
        font-size: 1.15rem;
    }

    footer {
        font-size: 1.1rem;
    }
}

/* Small phones / portrait orientation */
@media screen and (max-width: 480px) and (orientation: portrait) {
    .block-wrapper {
        gap: 1.5rem;
    }

    .project-block {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 85%;
        max-width: 250px;
        height: auto;
    }

    .project-block img {
        width: 70%;
        height: auto;
    }

    .vertical-text {
        width: 30%;
        font-size: 1.6rem;
        /* Removed writing-mode and text-orientation */
        margin-right: 0.5rem;
    }

    .page-title {
        padding: 1.5rem;
        font-size: 1.6rem;
        line-height: 2.2rem;
    }

    .filler-text {
        width: 80%;
        font-size: 1.1rem;
    }

    #projects-btn {
        font-size: 1.25rem;
    }

    .menu-button {
        font-size: 1.3rem;
        padding: 0.7rem;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }

    body {
        font-size: 1rem;
    }
}

/* Mobile alignment fix */
@media screen and (max-width: 1500px) and (orientation: portrait),
       screen and (max-width: 1024px),
       screen and (max-width: 480px) and (orientation: portrait) {
    
    .project-block {
        align-items: flex-start;
    }

    .vertical-text {
        margin-top: 0;
        margin-right: 0;
        margin-left: 4rem;
    }
}