@import url('https://bit.ly/3CZa0Sz');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
    --primary-dark: #1a1a1a;
    --accent-gray: #f8f9fa;
    --text-muted: #6c757d;
    --ls-spacing: 0.15em;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'line_seed_sans_th', 'Inter', Arial, sans-serif;
}

body {
    font-family: 'line_seed_sans_th', 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

/* Nav */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-dark) !important;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-dark);
    transition: var(--transition-smooth);
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* --- Minimal Viewer --- */
.cinematic-viewer {
    min-height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 120px;
    /* Space for nav */
}

.viewer-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('pic/bg8.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.15) grayscale(0.2);
    opacity: 0.8;
    z-index: 1;
}

.minimal-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Content Layout --- */
.content-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.text-content {
    flex: 1;
    color: #fff;
    text-align: right;
}

.text-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-align: left;
}

.text-content p {
    text-align: left;
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.8;
}

.grid-content {
    flex: 1.5;
}

/* --- Stand-alone Image Grid --- */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 12px;
}

.grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    background: #111;
    border-radius: 2px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

/* --- Bottom Navigation --- */
.nav-controls {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 100;
    align-items: center;
}

.nav-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.slide-count {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

footer {
    position: relative;
    z-index: 10;
    background-color: #fff !important;
    opacity: 1 !important;
    border-top: 1px solid #eee;
}

footer .text-muted {
    color: #666 !important;
}

/* --- Responsive design --- */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .text-content {
        text-align: center;
    }

    .cinematic-viewer {
        padding-top: 120px;
    }
}

@media (max-width: 576px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .text-content h1 {
        font-size: 2rem;
    }
}
