* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0c171e;
}

nav {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    background: #1a303b;
    color: white;

    border-radius: 0;

    transition:
        width 0.5s ease,
        left 0.5s ease,
        padding 0.5s ease,
        border-radius 0.5s ease,
        box-shadow 0.5s ease;

    z-index: 1000;

    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

nav.scrolled {
    width: 25vw;
    left: 37.5vw;

    padding: 0 25px;

    border-radius: 0 0 20px 20px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

.carousel {
    background: linear-gradient(#1a303b, #0c171e);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-track {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.images-loading .imageholder {
    visibility: hidden;
}

.images-loaded .imageholder {
    visibility: visible;
}

.card {
    position: absolute;
    top: 50%;
    left: 50%;

    aspect-ratio: 1232 / 706;
    width: clamp(320px, 60vw, 2304px);
    height: auto;

    overflow: hidden;

    border: none;
    box-shadow: none;
}

.card.image-loaded {
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
}

.carousel-ready .card {
    transition: transform 0.4s ease;
}

/* --------------------------------
   IMAGE HOLDER
-------------------------------- */

.imageholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* --------------------------------
   IMAGE
-------------------------------- */

.imageholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------
   IMAGES LOADED
-------------------------------- */

.images-loaded .imageholder img {
    visibility: visible;
}

/* =========================
   CENTER
========================= */

.card.center {
    z-index: 10;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    filter: brightness(1);
    cursor:pointer;
}

/* =========================
   LEFT
========================= */

.card.left {
    z-index: 5;
    transform: translate(calc(-50% - 60%), -50%) scale(0.88);
    opacity: 0.75;
    filter: brightness(0.65);
    cursor:pointer;
}

/* =========================
   RIGHT
========================= */

.card.right {
    z-index: 5;
    transform: translate(calc(-50% + 60%), -50%) scale(0.88);
    opacity: 0.75;
    filter: brightness(0.65);
    cursor:pointer;
}

/* =========================
   HIDDEN
========================= */

.card.hidden {
    z-index: 0;
    display: none;
    pointer-events: none;
}

/* =========================
   SMALL SCREEN
========================= */

@media (max-width: 1440px) {

    nav.scrolled {
    width: 50vw;
    left: 25vw;

        padding: 0 40px;

    border-radius: 0 0 20px 20px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 425px) {

    nav {
        width: 100vw;
        height: auto;
        min-height: 65px;

        padding: 18px 20px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 15px;

        border-radius: 0;

        transition:
            padding 0.3s ease,
            box-shadow 0.3s ease;
    }


    /* Logo */

    nav .logo {
        margin: 0;

        display: flex;
        align-items: center;

        min-height: 30px;
    }


    /* Links container */

    nav > div:not(.logo) {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }


    /* Links */

    nav a {
        display: block;

        width: 100%;

        margin: 0;
        padding: 12px 5px;

        color: white;
        text-decoration: none;

        border-radius: 8px;
    }


    nav a:hover {
        background: rgba(255, 255, 255, 0.08);
        padding-left: 12px;
    }
}

@media (max-width: 900px) { 
    nav.scrolled { 
        left: 0; 
        width: 100vw; 
        padding: 0 40px; 
        border-radius: 0; 
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7); 
    } 
}

@media (max-width: 425px) {
    /* =========================
       MOBILE SCROLLED
    ========================= */

    nav.scrolled {
        left: 0;
        width: 100vw;

        padding: 18px 20px;

        border-radius: 0px;

        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    }

    .carousel-track {
        height: 40%;
        margin-top: 25vh;
    }
}







/* =====================================
   FEATURED PROJECT
===================================== */

.featured-project-holder{
    height: 100vh;
    width: 100vw;
}

.featured-project {
    height: 90vh;
    width: 90vh;
    display: grid;
    grid-auto-flow: row;
    align-content: space-between;
    border: 1px solid rgba(255,255,255,.08);
}

.part-project{
    height: 50vh;
    display: grid;
    grid-auto-flow: column;
    align-content: center;
    justify-content: center;
}

/* =====================================
   FEATURED IMAGE
===================================== */

.featured-image {
    position: relative;

    aspect-ratio: 1232 / 706;
    width: clamp(320px, 50vw, 2304px);

    height: auto;

    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: opacity .25s ease;
}


/* BADGE */

.featured-badge {
    position: absolute;

    top: 20px;
    left: 20px;

    padding: 8px 12px;

    background: rgba(0,0,0,.75);

    color: #66c0f4;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.5px;
}


/* =====================================
   FEATURED INFO
===================================== */

.featured-info {
    padding: 45px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-type {
    color: #66c0f4;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 2px;
}

.featured-info h1 {
    margin: 12px 0 20px;

    font-size: clamp(40px, 4vw, 65px);

    font-weight: 400;

    line-height: 1;
}

.featured-info p {
    max-width: 500px;

    color: #9db0b9;

    font-size: 16px;

    line-height: 1.7;
}


/* =====================================
   TAGS
===================================== */

.featured-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin: 20px 0 30px;
}

.featured-tags span {
    padding: 6px 10px;

    background: rgba(102,192,244,.08);

    color: #8cb6cb;

    border: 1px solid rgba(102,192,244,.15);

    font-size: 11px;
}


/* =====================================
   PLAY / WEBSITE BUTTON
===================================== */

.play-button {
    display: flex;
    align-items: center;

    width: fit-content;

    min-width: 220px;

    padding: 10px 18px;

    gap: 15px;

    background:
        linear-gradient(
            to bottom,
            #75c8f5,
            #4c9bc5
        );

    border: 1px solid #8bd4f7;

    color: #07151d;

    text-decoration: none;

    box-shadow:
        0 3px 12px rgba(0,0,0,.35);

    transition: .2s;
}

.play-button:hover {
    filter: brightness(1.12);

    transform: translateY(-2px);
}

.play-icon {
    font-size: 24px;
}

.play-button small {
    display: block;

    font-size: 10px;

    letter-spacing: 1px;
}

.play-button strong {
    display: block;

    font-size: 16px;

    font-weight: 600;
}