* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0b0b0d;
    color: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;

    padding: 1.25rem 5%;
    border-bottom: 1px solid #26262b;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.12rem;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #b8b8c0;
}

nav a:hover {
    color: white;
}

main {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.hero {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 850px;
}

.hero h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(2.8rem, 7vw, 6rem);
    line-height: 1;
}

.hero p {
    max-width: 650px;
    color: #b8b8c0;
    font-size: 1.1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16rem;
    font-size: 0.8rem;
}

.portfolio {
    padding: 4rem 0 7rem;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 2.3rem;
}

.section-heading p {
    color: #b8b8c0;
}

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

.collection-card {
    overflow: hidden;
    background: #151519;
    border: 1px solid #26262b;
    border-radius: 14px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
    border-color: #60606d;
}

.collection-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.collection-card div {
    padding: 1.2rem;
}

.collection-card h3 {
    margin: 0;
    font-size: 1.4rem;
}

.collection-card p {
    margin-bottom: 0;
    color: #b8b8c0;
}

footer {
    padding: 2rem 5%;
    color: #85858f;
    border-top: 1px solid #26262b;
}

@media (max-width: 800px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        flex-wrap: wrap;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }
}

.links-section{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:1.5rem;

    padding-bottom:5rem;
}

.social-card{

    background:#151519;

    border:1px solid #26262b;
    border-radius:15px;

    padding:2rem;

    transition:.25s ease;

}

.social-card:hover{

    transform:translateY(-6px);

    border-color:#5b5b67;

    background:#1c1c22;

}

.social-card h2{

    margin-top:0;
    margin-bottom:.5rem;

}

.social-card p{

    color:#b8b8c0;

}

.project-page {
    max-width: 1000px;
    padding: 6rem 0;
}

.project-page h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
}

.project-page > p {
    max-width: 700px;
    color: #b8b8c0;
}

.project-page video {
    margin: 3rem 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-gallery img {
    border-radius: 14px;
}

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

.project-page{

    width:min(1100px,90%);

    margin:auto;

}

.project-hero{

    padding:5rem 0 3rem;

}

.hero-render img{

    width:100%;

    border-radius:15px;

}

.project-info{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:1rem;

    margin:3rem 0;

}

.project-info div{

    background:#151519;

    padding:20px;

    border-radius:12px;

}

.gallery{

    margin-top:4rem;

}

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

}

.gallery-grid img{

    width:100%;

    border-radius:12px;

}

.animation{

    margin-top:4rem;

}

.animation video{

    width:100%;

    border-radius:15px;

}

.breakdown{

    margin-top:4rem;

}

.navigation{

    margin:4rem 0;

}

.navigation a{

    color:white;

}

video {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
}

.divider-text{
    display:flex;
    align-items:center;
    gap:20px;
    margin:4rem 0;
}

.divider-text::before,
.divider-text::after{

    content:"";

    flex:1;

    height:1px;

    background:#2d2d35;

}

.divider-text span{

    color:#888;

    text-transform:uppercase;

    letter-spacing:3px;

}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    display: block;
    width: 90px;
    height: auto;
    object-fit: contain;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
}

.logo img {
    width: 70px;
    height: auto;
}

/* Prevent images and videos from overflowing */
img,
video {
    max-width: 100%;
    height: auto;
}

/* Tablet and mobile layout */
@media (max-width: 800px) {

    main {
        width: 92%;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 4%;
    }

    nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.7rem;
    }

    nav a {
        flex: 1;
        min-width: 90px;
        text-align: center;
        padding: 0.75rem;
        background: #151519;
        border: 1px solid #26262b;
        border-radius: 8px;
    }

    .logo img {
        width: 65px;
    }

    .hero {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero h1,
    .project-page h1,
    .collection-intro h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
        line-height: 1.05;
    }

    .collection-grid,
    .project-grid,
    .gallery-grid,
    .links-section {
        grid-template-columns: 1fr;
    }

    .project-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .collection-card,
    .project-card,
    .social-card {
        width: 100%;
    }

    .social-card {
        padding: 1.4rem;
    }

    footer {
        padding: 2rem 4%;
    }
}

/* Extra-small phones */
@media (max-width: 480px) {

    .project-info {
        grid-template-columns: 1fr;
    }

    nav a {
        width: 100%;
        flex: none;
    }

    .hero h1,
    .project-page h1,
    .collection-intro h1 {
        font-size: 2.6rem;
    }

    body {
        font-size: 0.95rem;
    }
}

.search-bar{

    margin:3rem auto;

    width:min(600px,90%);

}

.search-bar input{

    width:100%;

    padding:18px;

    border-radius:12px;

    border:1px solid #333;

    background:#111;

    color:white;

    font-size:18px;

}

.search-container {
    position: relative;
    width: min(650px, 100%);
    margin: 2rem 0 3rem;
}

.search-container input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #33333b;
    border-radius: 12px;
    background: #111115;
    color: white;
    font: inherit;
    font-size: 1rem;
    outline: none;
}

.search-container input:focus {
    border-color: #6c6c78;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 100;

    display: none;
    width: 100%;
    overflow: hidden;

    background: #18181d;
    border: 1px solid #33333b;
    border-radius: 12px;
}

.search-result {
    display: block;
    padding: 1rem 1.2rem;
    color: white;
    border-bottom: 1px solid #2b2b32;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover,
.search-result:focus {
    background: #25252c;
}

.fade-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-on-scroll.is-visible {
    opacity: 1;
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

    will-change: opacity, transform;
}

.fade-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

    margin-top:50px;

}

.project-card{

    background:#161616;

    border-radius:15px;

    overflow:hidden;

    transition:.3s;

}

.project-card img{

    width:100%;

    aspect-ratio:16/9;

    object-fit:cover;

    display:block;

}

.project-card-content{

    padding:20px;

}

@media(max-width:1000px){

    .project-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:700px){

    .project-grid{

        grid-template-columns:1fr;

    }

}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
    margin: 3rem 0 6rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #151519;
    border: 1px solid #29292f;
    border-radius: 14px;

    color: white;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #666673;
}

.project-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    order: 1;
}

.project-card-content {
    padding: 1.4rem;
    order: 2;
}

.project-card-content h2 {
    margin: 0 0 0.75rem;
}

.project-card-content p {
    margin: 0 0 1rem;
    color: #b8b8c0;
}

.project-card-content span {
    font-weight: 700;
}

.project-card{

    overflow:hidden;

}

.project-card img{

    transition:transform .4s ease;

}

.project-card:hover img{

    transform:scale(1.05);

}

@media (max-width: 700px) {
    .project-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }

    .project-card {
        width: 100%;
        min-width: 0;
    }

    .project-card img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .project-card-content {
        padding: 1.25rem;
    }

    .project-card-content h2 {
        font-size: 1.5rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .project-card-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    main {
        width: 92%;
        margin: 0 auto;
    }
}

.collection-search {
    width: min(650px, 100%);
    margin: 0 0 3rem;
}

.collection-search input {
    width: 100%;

    padding: 1rem 1.2rem;

    background: #111115;
    color: #f5f5f5;

    border: 1px solid #303038;
    border-radius: 12px;

    font: inherit;
    font-size: 1rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.collection-search input::placeholder {
    color: #777780;
}

.collection-search input:focus {
    background: #151519;
    border-color: #696975;

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.05);
}

.empty-collection {
    grid-column: 1 / -1;

    padding: 3rem 0;

    color: #888891;

    font-size: 1.05rem;
}

.lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.95);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:9999;

}

.lightbox.active{

    opacity:1;

    visibility:visible;

}

.lightbox img{

    max-width:90vw;

    max-height:90vh;

    border-radius:12px;

    object-fit:contain;

}

#lightboxClose{

    position:absolute;

    top:25px;

    right:40px;

    color:white;

    font-size:50px;

    cursor:pointer;

    user-select:none;

}