@import url(vars.css);
@import url(reset.css);
@import url(components/body.css);
@import url(components/container.css);
@import url(components/nav.css);
@import url(components/header.css);
@import url(components/anchor.css);
@import url(components/button.css);
@import url(components/section.css);
@import url(components/main.css);
@import url(components/footer.css);
@import url(components/article.css);
@import url(components/carousel.css);
@import url(components/slides.css);
@import url(components/video.css);

html {
  scroll-behavior: smooth;
}

main .container {
    position: relative;
}

.projects-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--padding-24) 0;
}

.projects-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--gray);
}

.projects-nav a img {
    margin: 0;
    transition: margin 0.3s ease;
}

.projects-nav a.prev:hover img {
    margin-right: 4px;
}

.projects-nav a.next:hover img {
    margin-left: 4px;
}

.project-cover {
    width: 100%;
    max-height: 600px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
}

.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-nav-wrapper {
    position: absolute;
    height: 100%;
    width: 180px;
    left: 0;
    top: 100px;
}

.project-nav-wrapper .project-nav {
    position: relative;
    height: 100%;
}

.project-nav-wrapper .project-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 144px;
    background: rgba(var(--white), 0.8);
    backdrop-filter: blur(4px);
    z-index: 999;
    border-radius: 10px;
    padding: var(--padding-16) ;
}

.project-nav-wrapper .project-nav ul li a {
    font-size: 16px;
    color: var(--gray);
    font-weight: 400;
}

.project-nav-wrapper .project-nav ul li a:hover,
.project-nav-wrapper .project-nav ul li a.active {
    color: var(--primary);
    font-weight: 600;
}

.project-nav-wrapper .project-nav .section-subnav {
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
    padding: 4px 12px;
}

.project-nav li.active > .section-subnav {
  display: flex;
  max-height: 500px;
}

.text {
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 600px;
    width: 100%;
}

.text p {
    color: var(--black-lighter);
    line-height: 1.5;
}

.text ul {
    color: var(--black-lighter);
    list-style: disc;
    line-height: 1.5;
    padding-left: var(--padding-24);
}

.text .subtext h3 {
    margin-bottom: 16px;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.project-details h6 {
    color: var(--gray);
    margin-bottom: 4px;
}

.project-details span {
    color: var(--black-lighter)
}

.visuals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    max-width: 1000px;
    width: 100%;
}

.visuals img.visual {
    width: 100%;
    object-fit: cover;
}

.visuals img.visual.w-800 {
    max-width: 800px
}

.insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.insights .insight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.insights .insight .percentage {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.insights .insight .info {
    font-size: 14px;
}

.source {
    display: inline-block;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 16px;
}

.source a {
    font-size: 14px;
    color: var(--primary);
    text-decoration: underline;
}

sup {
    text-transform: super;
    color: var(--primary);
}

section#final-design {
    flex-direction: column;
    gap: 36px;
}

section#other-projects {
    flex-direction: column;
    align-items: flex-start;
}

section#other-projects .projects-list {
    display: flex;
    gap: 24px;
    width: 100%;
}

section#contact {
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

@media (max-width: 991px) {
    .project-nav-wrapper {
        display: none;
    }

    .project-cover {
        border-radius: 16px;
    }
}

@media (max-width: 767px) {
    .project-details {
        grid-template-columns: 1fr;
    }

    .projects-list {
        flex-direction: column;
    }
}