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

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 32px;
    background-color: #fff;
    display: flex;
}

h1 {
    font-size: 64px;
    font-weight: 600;
}

h2 {
    font-size: 20px;
    line-height: 32px;
}

p {
    font-size: 16px;
    line-height: 32px;
}

a {
    text-decoration: none;
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

ul {
    width: 80%;
    list-style: none;
}

li {
    text-decoration: none;
}

.list-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #dddddd;
    padding: 12px 0;
}

.poppins-light {
    font-weight: 300;
}


/* Margin Utility */
.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-64 {
    margin-bottom: 64px;
}

.mt-32 {
    margin-top: 32px;
}

.mt-64-32 {
    margin-top: 64px;
}

.mt-footer-32 {
    margin-top: 32px;
}

.m-8-mobile {
    margin-right: 8px;
}


.mt-64 {
    margin-top: 64px;
}

.mr-16 {
    margin-right: 16px;
}

#no-scroll {
    overflow: hidden !important;
}

/* Layout */

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 32px;
    padding-right: 16px;
    min-width: 50%;
    width: 50%;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
}

.nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 64px;
}

.footer {
    display: flex;
    justify-content: center;
    width: 100%;
    column-gap: 16px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 64px;
    cursor: pointer;
}

/* Buttons */
.button {
    padding: 8px 16px;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.two-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
}

.primary {
    background-color: #1d1d1f;
    color: white;
    border: 2px solid #1d1d1f;
}

.secondary {
    background-color: transparent;
    color: #1d1d1f;
    border: 2px solid #1d1d1f;
}

.btn-circle {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 2px solid #1d1d1f;
    background: transparent;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-circle:hover {
    background: #1d1d1f;
    color: white;
}

.text-center {
    text-align: center;
}

.gray {
    color: #777;
}


/* Gallery */
.card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: white;
    transition: transform 0.3s;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card:hover {
    transform: scale(1.03);
}

.images {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    height: 100dvh;
    overflow: scroll;
    position: relative;
}

.images-portfolio-details {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    height: 100dvh;
    overflow: scroll;
    position: relative;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 32px;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 100vh;
}

.modal-close {
    margin-top: 16px;
    background: #1d1d1f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

/* Animations */
@keyframes scrollUp {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@keyframes scrollDown {
    from {
        transform: translateY(-10%);
    }

    to {
        transform: translateY(0);
    }
}

.column:nth-child(1) {
    animation: scrollUp 150s linear infinite;
}

.column:nth-child(2) {
    animation: scrollDown 140s linear infinite;
}

.column:nth-child(3) {
    animation: scrollUp 135s linear infinite;
}



/* Responsive Tweaks */
@media (min-width: 1279px) {
    .h-desktop {
        display: none;
    }
}

@media (max-width: 1279px) {

    .button {
        width: 100%;
    }

    .modal-content {
        padding: 32px 16px;
    }

    body {
        flex-direction: column-reverse;
        height: 100dvh;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 16px;
        line-height: 20px;
        margin-bottom: 24px;
    }

    p {
        font-size: 14px;
        line-height: 20px;
    }

    a {

        font-size: 16px;
    }

    .container {
        width: 100%;
    }

    .content {
        padding: 32px 16px 32px 16px;
        border-top: solid 1px #dddddd;
        width: 100%;
    }

    ul {
        width: 100%;
    }

    .mb-64 {
        margin-bottom: 32px;
    }

    .mb-16 {
        margin-bottom: 8px;
    }

    .mb-8 {
        margin-bottom: 8px;
    }

    .m-8-mobile {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .mt-footer-32 {
        margin-top: 0;
    }

    .mt-64-32 {
        margin-top: 32px;
    }

    .portfolio-body {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    .two-buttons {
        flex-direction: column;
    }

    .footer {
        column-gap: 16px;
    }

    .mobile-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 16px;
        border-top: solid 1px #dddddd;
    }

    .text-center-m {
        text-align: center;
    }

    .h-mobile {
        display: none;
    }
}

.lazy {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

.lazy.loaded {
    opacity: 1;
}