body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #000;
    color: #fff;
}

/* SECTION */
.showreel {
    position: relative;
    padding: 40px 20px;
    z-index: 1;
    overflow-x: hidden;
}

/* BACKGROUND */
.bg-overlay {
    position: absolute;
    inset: 0;
    background: url('../images/4.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
}

/* TITLES */
.main-title {
    font-size: 80px;
    color: #ff6a00;
    font-weight: 800;
}

/* DESC */
.desc {
    max-width: 700px;
    margin: 20px 0 40px;
    line-height: 1.6;
}

/* TABS */
.tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.tab {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.tab.active {
    color: #ff6a00;
    border-bottom: 2px solid #ff6a00;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.item {
    height: 380px;
    cursor: pointer;
    position: relative;
}

.item img,
.item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* VIDEO ICON */
.item.video::after {
    content: "▶";
    position: absolute;
    font-size: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* MODAL */
.preview-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.preview-modal.active {
    display: flex;
}

.preview img,
.preview video {
    max-width: 90vw;
    max-height: 90vh;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    cursor: pointer;
    z-index: 3;
}

.counter {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 3;
}

/* NAV */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 3;
}

.prev { left: 20px; }
.next { right: 20px; }
.website-card {
    grid-column: 1 / -1; /* full width */
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* TOP INFO BAR */
.website-info {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.website-info span {
    color: #ffffff;
    font-size: 14px;
    display: block;
}

/* IMAGE */
.website-image img {
    width: 100%;
    display: block;
}
@media (max-width: 1024px) {

    /* SECTION SPACING */
    .showreel {
        padding: 30px 18px;
    }

    /* CONTAINER WIDTH */
    .container {
        max-width: 1000px;
    }

    /* TITLE SCALE DOWN (IMPORTANT) */
    .main-title {
        font-size: 60px;
        line-height: 1.1;
    }

    /* DESCRIPTION */
    .desc {
        max-width: 600px;
        font-size: 14px;
        line-height: 1.5;
        margin: 15px 0 30px;
    }

    /* TABS */
    .tabs {
        gap: 20px;
        margin-bottom: 25px;
    }

    .tab {
        font-size: 16px;
    }

    /* GRID SPACING */
    .grid {
        gap: 16px;
    }

    /* ITEMS */
    .item {
        height: 320px;
    }

    /* VIDEO ICON */
    .item.video::after {
        font-size: 32px;
    }

    /* WEBSITE CARD */
    .website-info {
        padding: 16px;
        font-size: 13px;
    }

    .website-info span {
        font-size: 12px;
    }

    /* MODAL */
    .preview img,
    .preview video {
        max-width: 85vw;
        max-height: 85vh;
    }

    .close {
        font-size: 32px;
        top: 15px;
        right: 20px;
    }

    .counter {
        font-size: 14px;
        top: 15px;
        left: 20px;
    }

    .nav {
        font-size: 32px;
    }

}
@media (max-width: 768px) {

    /* SECTION */
    .showreel {
        padding: 25px 15px;
    }

    /* CONTAINER */
    .container {
        max-width: 100%;
    }

    /* TITLE */
    .main-title {
        font-size: 42px;
        line-height: 1.2;
    }

    /* DESC */
    .desc {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.5;
        margin: 12px 0 25px;
    }

    /* TABS */
    .tabs {
        gap: 15px;
        margin-bottom: 20px;
        flex-wrap: wrap; /* prevent overflow */
    }

    .tab {
        font-size: 15px;
    }

    /* 🔥 GRID → 2 COLUMN */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* ITEMS */
    .item {
        height: 260px;
    }

    /* VIDEO ICON */
    .item.video::after {
        font-size: 28px;
    }

    /* WEBSITE CARD */
    .website-card {
        grid-column: 1 / -1; /* still full width */
    }

    .website-info {
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .website-info span {
        font-size: 11px;
    }

    /* MODAL */
    .preview img,
    .preview video {
        max-width: 95vw;
        max-height: 75vh;
    }

    .close {
        font-size: 28px;
        top: 10px;
        right: 15px;
    }

    .counter {
        font-size: 12px;
        top: 10px;
        left: 15px;
    }

    .nav {
        font-size: 28px;
    }

}
@media (max-width: 480px) {

    /* SECTION */
    .showreel {
        padding: 20px 12px;
    }

    /* TITLE */
    .main-title {
        font-size: 32px;
        line-height: 1.2;
    }

    /* DESC */
    .desc {
        font-size: 12px;
        line-height: 1.5;
        margin: 10px 0 20px;
    }

    /* TABS */
    .tabs {
        gap: 10px;
        margin-bottom: 18px;
        flex-wrap: wrap;
    }

    .tab {
        font-size: 13px;
        padding-bottom: 3px;
    }

    /* 🔥 GRID → SINGLE COLUMN */
    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* ITEMS */
    .item {
        height: 220px;
    }

    /* VIDEO ICON */
    .item.video::after {
        font-size: 24px;
    }

    /* WEBSITE CARD */
    .website-card {
        grid-column: 1 / -1;
    }

    .website-info {
        flex-direction: row;
        gap: 6px;
        padding: 12px;
    }

    .website-info span {
        font-size: 10px;
    }

    /* IMAGE */
    .website-image img {
        border-radius: 0;
    }

    /* MODAL */
    .preview img,
    .preview video {
        max-width: 95vw;
        max-height: 70vh;
    }

    /* CLOSE */
    .close {
        font-size: 26px;
        top: 8px;
        right: 12px;
    }

    /* COUNTER */
    .counter {
        font-size: 11px;
        top: 8px;
        left: 12px;
    }

    /* NAV */
    .nav {
        font-size: 24px;
    }

}