/* Global Styles */
body {
    font-family: "Poppins", sans-serif;
    background-color: #000;
    margin: 0;
    color: #f2f2f2;
    overflow-x: hidden;
}

/* Navbar */
.topnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #000;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topnav a {
    color: #f2f2f2;
    padding: 16px 20px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.topnav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Slider Container */
.slider {
    width: 100vw;
    height: 100vh; /* Full screen height */
    position: relative;
    overflow: hidden;
    margin-top: -60px; /* Pulls it under the navbar if needed */
}

.slider .list .item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.8s ease-in-out;
    display: flex;
    align-items: center;     /* Vertically Center */
    justify-content: center; /* Horizontally Center */
}

.slider .list .item.active {
    opacity: 1;
    z-index: 10;
}

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

/* Dark Gradient Overlay for the background image */
.slider .list .item::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Darkens the image so text is readable */
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%),
                linear-gradient(to bottom, rgba(0,0,0,0.4), transparent, rgba(0,0,0,0.7));
    z-index: 15;
}

/* Info Box - Centered */
.slider .list .item .content {
    position: relative;
    z-index: 20;
    text-align: center; /* Center text alignment */
    max-width: 800px;
    padding: 20px;
}

.slider .list .item .content p:nth-child(1) {
    text-transform: uppercase;
    letter-spacing: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    color: #bbb;
}

.slider .list .item .content h2 {
    font-size: 4rem;
    margin: 10px 0;
    font-weight: 600;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.slider .list .item .content p:nth-child(3) {
    font-size: 18px;
    color: #ddd;
    line-height: 1.6;
    margin: 0 auto;
}

/* Thumbnail Box (Hidden on Mobile) */
.thumbnail-box {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    justify-content: center;
    width: 100%;
}

.thumbnail {
    display: flex;
    gap: 20px;
    align-items: center;
}

.thumbnail .item {
    width: 100px;
    height: 150px; /* Portrait style */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

/* Stretching Effect for Active Thumbnail */
.thumbnail .item.active {
    width: 200px; /* Stretches wider */
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.thumbnail .item.active img {
    opacity: 1;
}

.thumbnail .item .content {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Arrows */
.arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    box-sizing: border-box;
    pointer-events: none;
    transform: translateY(-50%);
}

.arrows button {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.2);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    font-size: 24px;
}

.arrows button:hover {
    background: #fff;
    color: #000;
}

/* Responsiveness */

/* Hide thumbnails on mobile and adjust text */
@media (max-width: 768px) {
    .thumbnail-box {
        display: none; /* Gone for phone users */
    }

    .slider .list .item .content h2 {
        font-size: 2.5rem;
    }

    .slider .list .item .content p:nth-child(3) {
        font-size: 15px;
        padding: 0 20px;
    }

    .topnav a {
        font-size: 12px;
        padding: 12px 10px;
    }
    
    .arrows {
        bottom: 20px;
        top: auto;
        justify-content: center;
        gap: 40px;
        transform: none;
    }
}