@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #14ff72cb;
    --accent-solid: #14ff72;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(20px);
}

body {
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* ── Header / Nav ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

header nav {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 3px;
    flex-shrink: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    transition: 0.2s;
}

.nav-links a.active,
.nav-links a:hover {
    background: var(--accent);
    color: #000;
    border-radius: 4px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* ── Slider ── */
.slider {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.slider .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay on each slide */
.slider .list .item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.35) 60%,
        transparent 100%
    );
}

/* ── Slide Content ── */
.slider .list .item .content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 50%;
    translate: -50% 0;
    width: 90%;
    max-width: 1140px;
    padding-right: 45%;
    color: #fff;
}

.slider .list .item .content .tag {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 3px;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.slider .list .item .content .title {
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--accent);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.slider .list .item .content .description {
    font-size: clamp(12px, 1.4vw, 15px);
    color: rgba(255, 255, 255, 0.78);
    margin-top: 14px;
    line-height: 1.75;
    max-width: 440px;
}

.slider .list .item .content .button {
    margin-top: 24px;
}

/* Glass "See More" button */
.see-more-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: #fff;
    padding: 10px 28px;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.35s;
}

.see-more-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 255, 114, 0.25);
}

/* ── Dot Indicators ── */
.dots {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 150;
}

.dot {
    width: 4px;
    height: 22px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s;
}

.dot.active {
    height: 44px;
    background: var(--accent);
}

/* ── Thumbnails ── */
.thumbnail {
    display: flex;
    gap: 16px;
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    z-index: 100;
}

.thumbnail .item {
    width: 130px;
    height: 195px;
    flex-shrink: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border 0.3s;
    cursor: pointer;
}

.thumbnail .item:hover {
    border-color: var(--accent);
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 10px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-align: center;
    text-transform: uppercase;
}

/* ── Prev/Next Arrows ── */
.nextPrevArrows {
    position: absolute;
    top: 75%;
    right: calc(100% + 20px);
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}

.nextPrevArrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--accent);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.35s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nextPrevArrows button:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* ── Animations ── */
.slider .list .item:nth-child(1) {
    z-index: 1;
}

.slider .list .item:nth-child(1) .content .tag,
.slider .list .item:nth-child(1) .content .title,
.slider .list .item:nth-child(1) .content .description,
.slider .list .item:nth-child(1) .content .button {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 1s linear 1 forwards;
}

@keyframes showContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.slider .list .item:nth-child(1) .content .tag        { animation-delay: 0.3s; }
.slider .list .item:nth-child(1) .content .title       { animation-delay: 0.5s; }
.slider .list .item:nth-child(1) .content .description { animation-delay: 0.7s; }
.slider .list .item:nth-child(1) .content .button      { animation-delay: 0.9s; }

.slider .list .item:nth-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
    to {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.slider.next .thumbnail .item:nth-last-child(1) {
    overflow: hidden;
    animation: showThumbnail 0.5s linear 1 forwards;
}

.slider.prev .list .item img {
    z-index: 100;
}

@keyframes showThumbnail {
    from { width: 0; opacity: 0; }
}

.slider.next .thumbnail {
    animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext {
    from { transform: translateX(calc(-50% + 150px)); }
}

.slider.prev .list .item:nth-child(2) {
    z-index: 2;
}

.slider.prev .list .item:nth-child(2) img {
    position: absolute;
    bottom: 0;
    left: 0;
    animation: outFrame 0.5s linear 1 forwards;
}

@keyframes outFrame {
    to {
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.slider.prev .thumbnail .item:nth-child(1) {
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail 0.5s linear 1 forwards;
}

.slider.prev .list .item:nth-child(1) .content .title,
.slider.prev .list .item:nth-child(1) .content .tag,
.slider.prev .list .item:nth-child(1) .content .description,
.slider.prev .list .item:nth-child(1) .content .button {
    animation: contentOut 0.5s 1s linear 1 forwards;
}

@keyframes contentOut {
    to {
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.35s;
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.15);
}

.modal-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.modal-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.modal-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.85;
}

.modal-cta {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 26px;
    background: var(--accent);
    color: #000;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 30px;
    transition: 0.3s;
}

.modal-cta:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* ── Responsive ── */
@media screen and (max-width: 900px) {
    .slider .list .item .content {
        padding-right: 10%;
    }

    .thumbnail .item {
        width: 100px;
        height: 150px;
    }
}

@media screen and (max-width: 678px) {
    .slider .list .item .content {
        padding-right: 0;
        top: 55%;
    }

    .slider .list .item .content .title {
        font-size: 2rem;
    }

    .thumbnail {
        display: none;
    }

    .dots {
        right: 16px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 16px 20px;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 10px 14px;
        margin: 0;
        border-radius: 8px;
    }
}

@media screen and (max-width: 400px) {
    .slider .list .item .content .title {
        font-size: 1.6rem;
    }

    .modal-box {
        padding: 28px 20px;
    }
}
