/* Intro Section */
.intro-section {
    margin-top: -40px;
    padding: 160px 0 80px;
    background-color: #000;
    color: #fff;
    border-radius: 8px 8px 0 0;
    position: relative;
    z-index: 2;
}

.intro-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-width: none;
    gap: 160px;
}

.home .intro-section .section-title {
    color: var(--White, #FFF);
    text-align: center;
    leading-trim: both;
    text-edge: cap;

    /* Desktop/H2 */
    font-size: 64px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%; /* 64px */
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    height: calc(100vh - 80px);
    display: flex;
    justify-content: start;
    flex-direction: row;
    align-items: end;
    padding-bottom: 88px;
    position: relative;
}

.hero-title {
    color: var(--Black, #000);
    leading-trim: both;
    text-edge: cap;

    /* Desktop/Titling Display 1 */
    font-size: 128px;
    font-style: normal;
    font-weight: 300;
    line-height: 90%; /* 115.2px */
    letter-spacing: -2.56px;
    text-transform: uppercase;
}

.hero-line.line-2 {
    background: var(--color-background);
}

.hero-title .highlight {
    border-radius: 8px;
    border: 1px solid var(--color-primary);
    padding: 24px;
    display: inline-flex;
    align-items: center;
    line-height: 84px;
}

.hero-line .yellow-background-hover {
    height: calc(100% - 16px);
    top: 8px;
    transition: width 0.5s cubic-bezier(0.07, 0.32, 0.04, 1);
    transform: none;
    width: 0;
}

.hero-line.yellow-hover:hover .yellow-background-hover {
    width: 100%;
}

.project-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 8px;
    background: var(--White, #FFF);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.project-info > div {
    /* flex: 1; */
    z-index: 10;
}

.project-info .arrow-icon {
    display: flex;
    justify-content: end;
}

.project-info img {
    width: 120px;
}

.project-name {
    font-weight: 500;
}

.arrow-icon {
    font-size: 1.5rem;
} 

/* Clients Logos */
.clients-logos {
    width: 100%;
    overflow: hidden;
}

.logos-slider {
    position: relative;
    width: 100%;
}

.logos-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.client-logo {
    flex-shrink: 0;
    padding: 0 64px;
    display: flex;
    align-items: center;
}

.client-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.view-projects-btn {
    
    /* height: 40px; */
    padding: 14px 16px;
    
    border-radius: 8px;
    background: var(--White, #FFF);
    color: #000;
    backdrop-filter: blur(22px);

    color: var(--Black, #000);

    /* Common/Body button */
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; 
    letter-spacing: -0.32px;
    text-transform: uppercase;

}

.yellow-hover-text {
    z-index: 1;
    position: relative;
}

.view-projects-btn .yellow-hover-text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 11px;
    line-height: 16px;
}

.view-projects-btn img {
    width: 12px;
    height: 12px;
}

/* Featured Projects */
.featured-projects {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    max-width: 427px;
    margin-left: auto;
    opacity: 0;
    transform: translateX(20px);
    /* transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out; */
}

/* .featured-projects.visible {
    opacity: 1;
    transform: translateX(0);
} */

.featured-projects .project-name {
    color: var(--Black, #000);
    leading-trim: both;
    text-edge: cap;
    
    /* Common/Body button */
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.32px;
    text-transform: uppercase;

    display: flex;
    flex-direction: column;
    gap: 0;
}

.featured-projects .project-info {
    justify-content: space-between;
}

.featured-projects .project-client {
    color: var(--color-primary);
}

.project-meta {
    padding: 1.5rem;
}

.project-category {
    display: block;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 0.5rem;
}

/* Internal Links */
.internal-links {
    padding: 6rem 0;
    background-color: #000;
    color: #fff;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.internal-link {
    display: block;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.internal-link:hover {
    transform: translateY(-10px);
}

.link-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.link-description {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.link-arrow {
    font-size: 1.5rem;
    display: block;
    margin-top: auto;
}

/* Responsive */

.toast-messages {
    position: absolute;
    top: 24px;
    right: -48px;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 523px;
    z-index: 10;
    overflow: hidden;
}

.toast-message {
    background-color: var(--color-primary);
    border-radius: 8px;
    padding: 8px 8px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    will-change: transform;
    color: #fff;
    border: 1px solid rgb(255 255 255 / 20%);
    width: 100%;
}

.toast-link {
    opacity: 0;
    transform: translateX(100%);
    width: 100%;
}

.toast-message img {
    min-width: 125px;
    max-width: 125px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-title {
    color: var(--White, #FFF);
    leading-trim: both;
    text-edge: cap;

    /* Common/Body button */
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 70%; /* 22.4px */
    letter-spacing: -0.32px;
    text-transform: uppercase;
}

.toast-description {
    color: var(--White, #FFF);
    leading-trim: both;
    text-edge: cap;

    /* Mobile/Body */
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.32px;

    margin-top: -4px;
    margin-bottom: -4px;
}

.toast-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero title animation */
.hero-line {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    line-height: 90%;
}

.hero-line.line-1 { animation-delay: 0.2s; }
.hero-line.line-2 { animation-delay: 0.4s; }
.hero-line.line-3 { animation-delay: 0.6s; }
.hero-line.line-4 { animation-delay: 0.8s; margin-bottom: -8px; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-line {
    margin-bottom: 16px;
}

.featured-project-slide {
    display: inline-block;
    position: absolute;
    bottom: 0;
    right: 0;
}

.featured-project-slide-content {
    width: 427px;
    height: 334px;
    margin-bottom: 8px;
}

.featured-project-slide-content img,
.featured-project-slide-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    overflow: hidden;
}

.yellow-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-secondary);
    z-index: 0;
    animation: growWidth 5.8s ease-in-out forwards;
}

@keyframes growWidth {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.selected-projects {
    display: flex;
    flex-direction: row;
    padding: 0 48px;
    flex-wrap: wrap;
    width: 100%;
}

.selected-projects .project-description {
    margin-bottom: 0px;
}

.project-item {
    flex: 0 0 calc(33.3333% - 32px);
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 32px;
    margin: 0 16px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.project-item a {
    position: relative;
}

.yellow-hover-container {
    position: relative;
    overflow: hidden;
    /* border-radius: 8px; */
}

.yellow-background-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    z-index: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    border-radius: 8px;
    transform: translateX(-101%);
    transition: transform 0.2s ease;
}

.project-item .yellow-background-hover {
    height: 480px;
}

.yellow-background-hover img {
    width: auto;
    height: auto;
    margin-right: 96px;
    margin-bottom: 32px;
    opacity: 0;
    transition: opacity 0.3s ease 0.15s, margin-right 0.3s ease 0.15s;
}

.project-item:hover .yellow-background-hover, .yellow-hover:hover .yellow-background-hover {
    transform: translateX(0);
}

.project-item:hover .yellow-background-hover img, .yellow-hover:hover .yellow-background-hover img {
    opacity: 1;
    margin-right: 32px;
}

.project-item .project-image-container {
    width: 100%;
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.project-item .project-image {
    max-width: none;
    min-width: 100%;
    height: 480px;
    object-fit: cover;
}

.selected-projects .project-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #fff;
    padding: 16px 0;
}

.selected-projects .project-client-name {
    color: var(--White, #FFF);

/* Mobile/Body */
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 140%; /* 22.4px */
letter-spacing: -0.32px;
}

.selected-projects .project-title {
    color: var(--White, #FFF);

/* Desktop/H4 */
font-size: 32px;
font-style: normal;
font-weight: 400;
line-height: 130%; /* 41.6px */
letter-spacing: -0.64px;
text-transform: uppercase;
}

.selected-articles-rows .article-item {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.selected-articles-rows .article-item {
    justify-content: space-between;
}

.selected-articles-rows {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex-wrap: wrap;
    padding: 0px 64px;
    width: 100%;
}

.selected-articles-rows .article-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    padding: 0 0 32px;
}

.selected-articles-rows .article-item > div {
    flex: 1;
}

.selected-articles-rows .article-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
}

.selected-articles-rows .article-title {
    color: var(--White, #FFF);

    /* Desktop/H4 */
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 41.6px */
    letter-spacing: -0.64px;
    text-transform: uppercase;

    max-width: 750px;
}
.selected-articles-rows .article-description {
    text-overflow: ellipsis;
    
     /* Desktop/Body */
     font-size: 18px;
     font-style: normal;
     font-weight: 400;
     line-height: 140%; /* 25.2px */
     letter-spacing: -0.36px;
     height: 45px;
     
     display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    max-width: 750px;
}

.selected-articles-rows .article-image-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.selected-articles-rows .article-image {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    max-width: 524px;
}

.selected-articles-rows .article-image img {
    max-height: 165px;
}

/* Responsive styles */

@media (max-height: 800px) and (min-width: 1024px) {
    .hero-title {
        font-size: 100px;
    }

    .hero-title .highlight {
        padding: 8px 24px;
    }


    .project-info img {
        width: 76px;
    }

    .featured-project-slide-content {
        width: 340px;
        height: 275px;
        margin-bottom: 8px;
    }

    .featured-projects .project-expertise {
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 16px;
        letter-spacing: -0.24px;
    }
   
    .featured-projects .project-client {
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 14px;
        letter-spacing: -0.24px;
    }
} 


@media screen and (max-width: 1024px) { /* Mobile and Tablet */

    .toast-messages {
        display: none;
    }

    .hero-title {
        font-size: 54px;
    }

    .hero-section {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        padding-bottom: 68px;
        gap: 16px;
    }

    .hero-title .highlight {
        padding: 8px;
        line-height: 52px;
    }

    .hero-title .highlight img {
        height: 36px;
    }

    .hero-line {
        margin-bottom: 8px;
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }

    .featured-projects {
        max-width: 100%;
        width: 100%;
        height: 139px;
        transform: translate(0px, 0px);
        opacity: 1;
        transition: none;
    }


    .featured-project-slide-container {
        display: inline-flex;
        flex-direction: row;
        gap: 4px;
        height: 123px;
        width: 100%;
    }

    .featured-project-slide-container > div {
        flex: 1;
    }

    .featured-project-slide {
        width: 100%;
    }

    .featured-project-slide-content {
        min-width: 50%;
        height: 100%;
    }

    .featured-project-slide-container .arrow-icon img {
        width: 48px;
        height: 42px;
    }

    .featured-projects .project-name {
        gap: 4px;
    }

    .featured-projects .project-expertise, .featured-projects .project-client {
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 12px;
        letter-spacing: -0.24px;
    }

    .home .intro-section {
        margin-top: -24px;
        border-radius: 0;
        margin-right: -8px;
        margin-left: -8px;
        padding: 48px 8px 80px;
    }

    .site-main .page-cross {
        top: -63px;
        left: 0px;
    }
    
    .home .intro-section .section-title {
        font-size: 32px;
    }

    .home .intro-section .container {
        gap: 64px;
    }

    .client-logo img {
        max-height: 48px;
    }

    .home .selected-projects {
        flex-direction: column;
        padding: 0;
        width: 100%;
        gap: 64px;
    }

    .home .selected-projects .project-item {
        margin: 0;
        flex: auto;
        width: 100%;
        gap: 24px;
    }

    .home .project-description {
        margin-bottom: 0px;
    }
    
    .selected-projects .project-client-name {
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 28px; /* 200% */
        letter-spacing: -0.28px;
    }

    .selected-projects .project-title {
        font-size: 24px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%; /* 24px */
        letter-spacing: -0.48px;
    }

    .selected-articles-rows {
        padding: 0;
        gap: 56px;
    }

    .selected-articles-rows .article-item {
        flex-direction: column-reverse;
        gap: 24px;
        border: none;
    }

    .selected-articles-rows .article-item {
        padding: 0;
    }

    .selected-articles-rows .article-image {
        max-width: 100%;
    }

    .home .article-content {
        gap: 16px;
    }

    .home .article-title {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%; /* 19.2px */
        letter-spacing: -0.32px;
    }

    .article-description {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 130%; /* 20.8px */
        letter-spacing: -0.32px;
    }


    .article-image {
        width: 100%;
        max-width: 100%;
    }

    .article-image img {
        width: 100%;
        object-fit: cover;
    }

    .yellow-background-hover {
        width: 0;
    }

    .hero-line.yellow-hover:hover .yellow-background-hover {
        width: 0;
    }
    
    .project-item:hover .yellow-background-hover, .yellow-hover:hover .yellow-background-hover {
        transform: none;
        width: 0;
    }

    .project-item:hover .yellow-background-hover img, .yellow-hover:hover .yellow-background-hover img {
        opacity: 0;
    }

}