html,
body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #111111;
    color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.work-container {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 30px;
}

.work-header {
    text-align: center;
    margin-bottom: 25px;
}

.work-section {
    margin-bottom: 25px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}

.section-heading span {
    color: #555555;
    font-size: 13px;
    font-weight: 700;
}

.section-heading h2 {
    color: #dddddd;
    font-size: 25px;
    font-weight: 700;
}

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

.work-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    min-height: 270px;
    background: #171717;
    border: 1px solid #292929;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.work-card-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.card-type {
    color: #666666;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
}

.work-card h3 {
    color: #dddddd;
    font-size: 21px;
    font-weight: 700;
}

.card-number {
    color: #444444;
    font-size: 13px;
    font-weight: 700;
}

.work-card p {
    color: #999999;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 12px;
}

.skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #292929;
}

.skill-group {
    padding: 22px 10px;
    border-bottom: 1px solid #292929;
}

.skill-group:nth-child(odd) {
    padding-left: 0;
    padding-right: 30px;
    border-right: 1px solid #292929;
}

.skill-group h3 {
    color: #dddddd;
    font-size: 15px;
    margin-bottom: 7px;
}

.skill-group p {
    color: #777777;
    font-size: 13px;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 700px) {
    .work-container {
        padding: 45px 18px 35px;
    }

    .work-header {
        margin-bottom: 50px;
    }

    .work-section {
        margin-bottom: 55px;
    }

    .section-heading {
        margin-bottom: 14px;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .work-card {
        min-height: 0;
        padding: 21px;
    }

    .work-card h3 {
        font-size: 19px;
    }

    .work-card p {
        font-size: 14px;
    }

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

    .skill-group,
    .skill-group:nth-child(odd),
    .skill-group:nth-child(even) {
        padding: 18px 0;
        border-right: none;
    }
}

.work-card-media {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.work-card-media img,
.work-card-media video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
}

/* Makes clickable media feel intentional */
.work-card-media a {
    display: block;
    line-height: 0;
}

.work-card-media a img,
.work-card-media a video {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.work-card-media a:hover img,
.work-card-media a:hover video {
    transform: scale(1.02);
    opacity: 0.9;
}

.work-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    justify-content: center;
}

.work-card-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 15px;

    border: 1px solid #333;
    border-radius: 7px;

    background: #151515;
    color: #eeeeee;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

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

.work-card-links a:hover {
    background: #222;
    border-color: #555;
    transform: translateY(-1px);
}


/* ================================
   Mobile
   ================================ */

@media (max-width: 600px) {

    .work-card-media {
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .work-card-media img,
    .work-card-media video {
        max-height: 250px;
    }

    .work-card-links {
        gap: 8px;
        margin-top: 20px;
    }

    .work-card-links a {
        padding: 8px 12px;
        font-size: 13px;
    }

}

/* ================================
   Work Card Carousel
   ================================ */

.work-card-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
    background: #0d0d0d;
}

.carousel-radio {
    display: none;
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease;
}

.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
}

.carousel-slide img,
.carousel-slide video {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}


/* ================================
   Slide Position
   ================================ */

#slide-1:checked ~ .carousel-track {
    transform: translateX(0);
}

#slide-2:checked ~ .carousel-track {
    transform: translateX(-100%);
}

#slide-3:checked ~ .carousel-track {
    transform: translateX(-200%);
}

#slide-4:checked ~ .carousel-track {
    transform: translateX(-300%);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    transform: translateY(-50%);

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);
    color: white;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease;
}

.work-card-carousel:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-arrow-left {
    left: 12px;
}

.carousel-arrow-right {
    right: 12px;
}

#slide-1:checked ~ .carousel-arrows .slide-1-left,
#slide-1:checked ~ .carousel-arrows .slide-1-right {
    display: flex;
}

#slide-2:checked ~ .carousel-arrows .slide-2-left,
#slide-2:checked ~ .carousel-arrows .slide-2-right {
    display: flex;
}

#slide-3:checked ~ .carousel-arrows .slide-3-left,
#slide-3:checked ~ .carousel-arrows .slide-3-right {
    display: flex;
}

#slide-4:checked ~ .carousel-arrows .slide-4-left,
#slide-4:checked ~ .carousel-arrows .slide-4-right {
    display: flex;
}

.carousel-arrows label {
    display: none;
}

.carousel-nav {
    position: absolute;
    bottom: 12px;
    left: 50%;
    z-index: 5;

    display: flex;
    gap: 7px;

    padding: 6px 9px;

    transform: translateX(-50%);

    border-radius: 20px;
    background: rgba(0, 0, 0, 0.65);
}

.carousel-nav label {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #888;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.carousel-nav label:hover {
    transform: scale(1.2);
}

#slide-1:checked ~ .carousel-nav label[for="slide-1"],
#slide-2:checked ~ .carousel-nav label[for="slide-2"],
#slide-3:checked ~ .carousel-nav label[for="slide-3"],
#slide-4:checked ~ .carousel-nav label[for="slide-4"] {
    background: #fff;
}

@media (max-width: 600px) {

    .carousel-slide img,
    .carousel-slide video {
        height: 220px;
    }

    .carousel-arrow {
        width: 34px;
        height: 34px;

        font-size: 20px;

        opacity: 1;
    }

    .carousel-arrow-left {
        left: 8px;
    }

    .carousel-arrow-right {
        right: 8px;
    }

}