/* ===== SELF-HOSTED FONTS ===== */
@font-face {
    font-family: 'Outfit';
    src: url('../../fonts/Outfit/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Anybody';
    src: url('../../fonts/Anybody/Anybody-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Dela Gothic One';
    src: url('../../fonts/Dela_Gothic_One/DelaGothicOne-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Urban Calligraphy';
    src: url('../../fonts/el_font_urban_calligraphy/Urban Calligraphy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* Shared with general layout */
.work-page main {
    position: relative;
    padding-top: 15vh;
    overflow-x: hidden;
    height: auto;
    /* override 100vh from index main */
    min-height: 100vh;
    display: block;
}

/* Override index.html specific styles that apply to main > section */
.work-page main>section {
    opacity: 1;
    height: auto;
}

.work-page main>section.work-hero-section {
    display: flex;
}

.work-page main>section.project-section {
    display: block;
}

.work-figure-bg {
    position: fixed;
    /* Keep background static for parallax to shine */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.work-figure-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.work-hero-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6rem 5% 2rem 5%;
    gap: 4rem;
    margin-bottom: 5rem;
}

.hero-left {
    flex: 1;
}

.work-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 5rem;
    line-height: 0.9;
    color: #fff;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.work-title .block {
    display: block;
}

.work-title .text-ui {
    font-size: 6rem;
}

.hero-desc {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    font-family: 'Outfit', sans-serif;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.infinity-box {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.infinity-track {
    display: flex;
    flex-direction: column;
    height: max-content;
    width: 100%;
    animation: infinity-scroll 20s linear infinite;
}

.infinity-track img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;
    background: #000;
}

@keyframes infinity-scroll {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(0);
    }
}

/* Common project section container */
.project-section {
    padding: 0 5%;
    margin-bottom: 5rem;
}

.project-box {
    background-color: #2b2b2b;
    /* Match the dark gray rounded box in design */
    border-radius: 40px;
    padding: 4rem;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 3rem;
}

.project-title {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    flex: 1;
}

.anybody-font {
    font-family: 'Anybody', sans-serif;
}

.project-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    font-family: 'Outfit', sans-serif;
}

.project-images {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.full-width-img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* Rasam Linkbox */
.rasam-linkbox {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.rasam-linkbox:hover {
    transform: scale(1.02);
}

.rasam-img {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

/* Social media */
.text-center {
    text-align: center;
}

.social-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

.social-box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: transparent;
    border-radius: 40px;
}

.social-gallery {
    position: relative;
    width: 100%;
    height: 1000px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-img.active {
    opacity: 1;
}

/* Mobile responsivitiy */
@media screen and (max-width: 768px) {
    .work-hero-section {
        flex-direction: column;
        padding-top: 5rem;
    }

    .hero-right {
        width: 100%;
    }

    .infinity-box {
        width: 100%;
        height: 200px;
    }

    .infinity-track img {
        width: 100vw;
        max-width: 100%;
        height: auto;
    }

    .project-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-box {
        padding: 2rem;
    }

    .project-title {
        font-size: 3rem;
    }

    .social-gallery {
        height: 300px;
    }
}