html {
    font-family: 'Cal Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: rgb(0, 0, 0);
    background-color: black;
    text-align: center;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    --theme-color: #0D3B3B;
    --orange-theme: #FF8C00;
    --glass-light: rgba(255, 255, 255, 0.08);
    --glass-dark: rgba(13, 59, 59, 0.1);
    --glass-orange: rgba(255, 140, 0, 0.1);
    --border-light: rgba(255, 255, 255, 0.15);
    --border-dark: rgba(13, 59, 59, 0.3);
    --border-orange: rgba(255, 140, 0, 0.3);
}

body {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOutLoading {
    0% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes pageEnter {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes languageSwitch {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes buttonSwitch {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translate(-50%, -50%) translateY(50px); }
    100% { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}

@keyframes lightboxFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes imageFadeInScale {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes eyeFadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-800px * 6 - 15px * 6)); }
}

/* ===== LANGUAGE & UI ===== */
.language-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999;
    background: var(--glass-light);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* Dark Theme */
.language-toggle.dark-theme,
.lang-btn.dark-theme {
    background: rgba(13, 59, 59, 0.2);
    border: 1px solid rgba(13, 59, 59, 0.3);
}

.lang-btn.dark-theme:hover {
    background: rgba(13, 59, 59, 0.3);
    border: 1px solid rgba(13, 59, 59, 0.5);
}

/* Orange Theme */
.language-toggle.orange-theme,
.lang-btn.orange-theme {
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.lang-btn.orange-theme:hover {
    background: rgba(255, 140, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.5);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOutLoading 0.5s ease-in 2s forwards;
}

.loader {
    text-align: center;
    background: var(--glass-light);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader p {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0;
}

.loading-bar-container {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.loading-percentage,
.loading-status {
    color: #ffffff;
    margin: 10px 0 0 0;
}

.loading-percentage {
    font-size: 14px;
    font-weight: 600;
}

.loading-status {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 15px;
    min-height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== PAGES ===== */

page1 {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
}

page2, page3 {
    width: 100%;
    height: 100vh;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

page4 {
    width: 100%;
    min-height: 100vh;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

page5 {
    display: none;
    min-height: 100vh;
    width: 100%;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

page5.active {
    display: flex;
}

wt {
    font-size: clamp(10px, 4vw, 60px);
    line-height: 1.2;
    color: #e0e0e0;
    text-align: center;
    font-family: "Cal Sans", sans-serif;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s ease-out forwards, fadeIn 5s ease-out 0s forwards;
}

.portfolio-subtitle {
    font-size: clamp(8px, 1.5vw, 20px);
    color: rgba(224, 224, 224, 0.6);
    letter-spacing: 3px;
    margin: 5px 0 0 0;
    font-weight: 300;
}

.videohomepage {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(clamp(10px, 1.5vw, 8px));
    animation: 3s fadeIn;
    will-change: transform;
    z-index: 0;
}

@media (max-width: 768px) {
    .videohomepage {
        filter: blur(clamp(5px, 2vw, 6px));
    }
}

[data-i18n].language-changing {
    animation: languageSwitch 0.4s ease-in-out;
}

button[data-i18n].button-switching {
    animation: buttonSwitch 0.4s ease-in-out;
}

/* ===== SCROLL BUTTONS ===== */
.scroll-button {
    position: absolute;
    bottom: 30px;
    padding: 12px 24px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: 1s fadeIn 2s backwards;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-button.scroll-button-top {
    bottom: auto;
    top: 30px;
}

.scroll-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
}

.scroll-button:active {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

.scroll-button.dark-theme {
    background: rgba(13, 59, 59, 0.2);
    border: 1px solid rgba(13, 59, 59, 0.3);
    color: #ffffff;
}

.scroll-button.dark-theme:hover {
    background: rgba(13, 59, 59, 0.3);
    border: 1px solid rgba(13, 59, 59, 0.5);
}

.scroll-button.orange-theme {
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: #ffffff;
}

.scroll-button.orange-theme:hover {
    background: rgba(255, 140, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.5);
}

/* ===== NAVIGATION ===== */
.floating-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    background: var(--glass-light);
    padding: 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.floating-nav.dark-theme {
    background: var(--glass-dark);
    border: 1px solid var(--border-dark);
}

.floating-nav.orange-theme {
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.nav-link {
    padding: 10px 12px;
    text-decoration: none;
    color: #ffffff;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateX(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.nav-link:active {
    transform: translateX(-1px);
}

.nav-link.dark-theme {
    background: rgba(13, 59, 59, 0.2);
    border: 1px solid rgba(13, 59, 59, 0.3);
}

.nav-link.dark-theme:hover {
    background: rgba(13, 59, 59, 0.4);
    border: 1px solid rgba(13, 59, 59, 0.6);
}

.nav-link.orange-theme {
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.nav-link.orange-theme:hover {
    background: rgba(255, 140, 0, 0.4);
    border: 1px solid rgba(255, 140, 0, 0.6);
}

/* ===== PAGE 4 & 5 CAROUSELS ===== */
.page4-container,
.page5-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.page5-container {
    flex-direction: row-reverse;
}

.page4-left,
.page5-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--glass-dark);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-dark);
    box-shadow: 0 8px 32px rgba(13, 59, 59, 0.2);
}

.page5-left {
    background: var(--glass-orange);
    border: 1px solid var(--border-orange);
    box-shadow: 0 8px 32px rgba(255, 140, 0, 0.15);
}

.game-carousel-main,
.page5-carousel {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(13, 59, 59, 0.2);
    border: 1px solid rgba(13, 59, 59, 0.2);
    position: relative;
}

.page5-carousel {
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.15);
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.game-carousel-main img,
.page5-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

/* Eye Icon Button */
.open-image-btn,
.open-image-btn5 {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(13, 59, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 59, 59, 0.6);
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 50;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.open-image-btn5 {
    background: rgba(255, 140, 0, 0.4);
    border: 1px solid rgba(255, 140, 0, 0.6);
}

.open-image-btn::before,
.open-image-btn5::before {
    content: '👁';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.open-image-btn:hover {
    background: rgba(13, 59, 59, 0.6);
    border: 1px solid rgba(13, 59, 59, 0.8);
    transform: scale(1.1);
}

.open-image-btn5:hover {
    background: rgba(255, 140, 0, 0.6);
    border: 1px solid rgba(255, 140, 0, 0.8);
    transform: scale(1.1);
}

@media (min-width: 1025px) {
    .game-carousel-main:hover .open-image-btn,
    .page5-carousel:hover .open-image-btn5 {
        display: flex;
        animation: eyeFadeIn 0.3s ease-out;
    }
}

/* Carousel Navigation */
.carousel-nav,
#carouselPrev5,
#carouselNext5 {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 59, 59, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 59, 59, 0.5);
    color: #ffffff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

#carouselPrev5,
#carouselNext5 {
    background: rgba(255, 140, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.5);
}

.carousel-nav-prev,
#carouselPrev5 {
    left: 10px;
}

.carousel-nav-next,
#carouselNext5 {
    right: 10px;
}

.carousel-nav:hover,
#carouselPrev5:hover,
#carouselNext5:hover {
    background: rgba(13, 59, 59, 0.5);
    border: 1px solid rgba(13, 59, 59, 0.8);
}

#carouselPrev5:hover,
#carouselNext5:hover {
    background: rgba(255, 140, 0, 0.5);
    border: 1px solid rgba(255, 140, 0, 0.8);
}

.carousel-nav-prev:hover {
    transform: translateY(-50%) scale(1.1) translateX(-3px);
}

.carousel-nav-next:hover {
    transform: translateY(-50%) scale(1.1) translateX(3px);
}

#carouselPrev5:hover {
    transform: translateY(-50%) scale(1.1) translateX(-3px);
}

#carouselNext5:hover {
    transform: translateY(-50%) scale(1.1) translateX(3px);
}

@media (max-width: 768px) {
    .carousel-nav,
    #carouselPrev5,
    #carouselNext5 {
        display: flex;
    }
}

/* Thumbnails */
.game-carousel-thumbnails,
.page5-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: none;
}

.game-carousel-thumbnails::-webkit-scrollbar,
.page5-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    min-width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(13, 59, 59, 0.4);
    transition: all 0.3s ease;
    object-fit: cover;
    opacity: 0.6;
    background: rgba(13, 59, 59, 0.1);
}

.page5-thumbnails .thumbnail {
    border: 2px solid rgba(255, 140, 0, 0.4);
    background: rgba(255, 140, 0, 0.1);
}

.thumbnail:hover {
    opacity: 0.8;
    border: 2px solid rgba(13, 59, 59, 0.6);
    transform: scale(1.05);
    background: rgba(13, 59, 59, 0.2);
}

.page5-thumbnails .thumbnail:hover {
    border: 2px solid rgba(255, 140, 0, 0.6);
    background: rgba(255, 140, 0, 0.2);
}

.thumbnail.active {
    border: 2px solid rgba(13, 59, 59, 0.9);
    opacity: 1;
    box-shadow: 0 0 20px rgba(13, 59, 59, 0.5);
    background: rgba(13, 59, 59, 0.15);
}

.page5-thumbnails .thumbnail.active {
    border: 2px solid rgba(255, 140, 0, 0.9);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
    background: rgba(255, 140, 0, 0.15);
}

/* Page Right Text */
.page4-right,
.page5-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--glass-dark);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-dark);
    box-shadow: 0 8px 32px rgba(13, 59, 59, 0.2);
}

.page5-right {
    background: var(--glass-orange);
    border: 1px solid var(--border-orange);
    box-shadow: 0 8px 32px rgba(255, 140, 0, 0.15);
}

.page4-right h2,
.page5-right h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.page5-right h2 {
    color: #FF8C00;
}

.page4-right p,
.page5-right p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.page5-right p {
    color: rgba(0, 0, 0, 0.7);
}

/* ===== LIGHTBOX ===== */
.image-lightbox,
#imageLightbox5 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
}

/* ===== IMAGE VIEWER MODAL ===== */
.image-viewer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99998;
}

.image-viewer-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    padding: 0;
}

.image-viewer-modal.active,
.image-viewer-overlay.active {
    display: block;
}

.image-viewer-overlay.active ~ .floating-nav {
    display: none !important;
}

.viewer-image {
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
}

.viewer-close, .viewer-prev, .viewer-next {
    position: absolute;
    background: rgba(13, 59, 59, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 59, 59, 0.4);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
}

.viewer-close {
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 35px;
    border-radius: 50%;
}

.viewer-close:hover {
    background: rgba(13, 59, 59, 0.5);
    border: 1px solid rgba(13, 59, 59, 0.7);
    transform: scale(1.1);
}

.viewer-prev, .viewer-next {
    width: 60px;
    height: 60px;
    font-size: 45px;
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.viewer-prev {
    left: 15px;
}

.viewer-next {
    right: 15px;
}

.viewer-prev:hover, .viewer-next:hover {
    background: rgba(13, 59, 59, 0.5);
    border: 1px solid rgba(13, 59, 59, 0.7);
}

.viewer-prev:hover {
    transform: translateY(-50%) scale(1.1) translateX(-3px);
}

.viewer-next:hover {
    transform: translateY(-50%) scale(1.1) translateX(3px);
}

.lightbox-overlay,
#lightboxOverlay5 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 99998;
}

.lightbox-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 40px;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img,
#lightboxImage,
#lightboxImage5 {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(13, 59, 59, 0.5);
    animation: imageFadeInScale 0.3s ease-out;
    cursor: pointer;
}

.lightbox-close, .lightbox-prev, .lightbox-next,
#lightboxClose5, #lightboxPrev5, #lightboxNext5 {
    position: fixed;
    background: rgba(13, 59, 59, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 59, 59, 0.3);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
}

#lightboxClose5, #lightboxPrev5, #lightboxNext5 {
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.lightbox-close, #lightboxClose5 {
    top: 20px;
    right: 30px;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.lightbox-prev, .lightbox-next,
#lightboxPrev5, #lightboxNext5 {
    font-size: 50px;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev, #lightboxPrev5 {
    left: 20px;
}

.lightbox-next, #lightboxNext5 {
    right: 20px;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(13, 59, 59, 0.4);
    border: 1px solid rgba(13, 59, 59, 0.6);
}

#lightboxClose5:hover, #lightboxPrev5:hover, #lightboxNext5:hover {
    background: rgba(255, 140, 0, 0.4);
    border: 1px solid rgba(255, 140, 0, 0.6);
}

.lightbox-close:hover, #lightboxClose5:hover {
    transform: scale(1.1);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1) translateX(-5px);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1) translateX(5px);
}

#lightboxPrev5:hover {
    transform: translateY(-50%) scale(1.1) translateX(-5px);
}

#lightboxNext5:hover {
    transform: translateY(-50%) scale(1.1) translateX(5px);
}

.image-lightbox.active,
#imageLightbox5.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CAROUSEL PAGE 3 ===== */
.carousel-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 15px;
}

.carousel {
    display: flex;
    gap: 15px;
    animation: carousel-scroll 30s linear infinite;
}

.carousel-item {
    min-width: 800px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.carousel-item:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
}

.carousel-item:active {
    transform: translateY(-1px) scale(1.01);
    background: rgba(255, 255, 255, 0.12);
}

.carousel-container:hover .carousel,
.carousel-container.paused .carousel {
    animation-play-state: paused;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-scroll-nav {
    position: fixed;
    top: 50%;
    right: 8px;
    left: auto;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 998;
    background: var(--glass-light);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.mobile-scroll-nav.dark-theme {
    background: var(--glass-dark);
    border: 1px solid var(--border-dark);
}

.mobile-scroll-nav.orange-theme {
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.nav-scroll-up, .nav-scroll-down {
    width: 26px;
    height: 26px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.nav-scroll-up:hover, .nav-scroll-down:hover {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.nav-scroll-up.dark-theme, .nav-scroll-down.dark-theme {
    background: rgba(13, 59, 59, 0.2);
    border: 1px solid rgba(13, 59, 59, 0.3);
}

.nav-scroll-up.dark-theme:hover, .nav-scroll-down.dark-theme:hover {
    background: rgba(13, 59, 59, 0.4);
    border: 1px solid rgba(13, 59, 59, 0.6);
}

.nav-scroll-up.orange-theme, .nav-scroll-down.orange-theme {
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.nav-scroll-up.orange-theme:hover, .nav-scroll-down.orange-theme:hover {
    background: rgba(255, 140, 0, 0.4);
    border: 1px solid rgba(255, 140, 0, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .page4-container,
    .page5-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .page4-right,
    .page5-right {
        padding: 20px;
    }
    
    .page4-right h2,
    .page5-right h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    html, body {
        scrollbar-width: none;
    }
    
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
    }
    
    .language-toggle {
        top: auto;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .scroll-button {
        display: none;
    }
    
    .floating-nav {
        top: auto;
        right: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 20px;
    }
    
    .nav-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
        padding: 8px 10px;
    }
    
    .nav-link:hover {
        transform: translateY(-2px);
    }
    
    .nav-link:active {
        transform: translateY(-1px);
    }
    
    .mobile-scroll-nav {
        display: flex !important;
    }
    
    /* Page 4 & 5 Mobile */
    .page4-left,
    .page5-left {
        max-width: 100%;
        padding: 15px;
        order: 2;
    }
    
    .page4-right,
    .page5-right {
        order: 1;
        padding: 15px;
        gap: 15px;
    }
    
    .page4-container,
    .page5-container {
        gap: 20px;
        max-width: 100%;
    }
    
    .game-carousel-main,
    .page5-carousel {
        aspect-ratio: 16 / 9;
        max-height: 300px;
    }
    
    .game-carousel-thumbnails,
    .page5-thumbnails {
        gap: 10px;
        padding: 8px 0;
        max-height: 100px;
    }
    
    .thumbnail {
        min-width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .page4-right h2,
    .page5-right h2 {
        font-size: 24px;
    }
    
    .page4-right p,
    .page5-right p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    page5 {
        padding: 40px 20px;
    }
    
    .page5-container {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
    }
    
    .page5-left {
        max-width: 100%;
        padding: 15px;
        order: 2;
    }
    
    .page5-right {
        order: 1;
    }
    
    .image-lightbox.active ~ .floating-nav {
        display: none;
    }
    
    .lightbox-close, #lightboxClose5 {
        top: auto;
        right: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .lightbox-prev, .lightbox-next,
    #lightboxPrev5, #lightboxNext5 {
        width: 50px;
        height: 50px;
        font-size: 30px;
        top: auto;
        bottom: 80px;
    }
    
    .lightbox-prev, #lightboxPrev5 {
        left: 10px;
    }
    
    .lightbox-next, #lightboxNext5 {
        right: 10px;
    }
    
    .lightbox-prev:hover {
        transform: translateY(0) scale(1.1) translateX(-3px);
    }
    
    .lightbox-next:hover {
        transform: translateY(0) scale(1.1) translateX(3px);
    }
    
    #lightboxPrev5:hover {
        transform: translateY(0) scale(1.1) translateX(-3px);
    }
    
    #lightboxNext5:hover {
        transform: translateY(0) scale(1.1) translateX(3px);
    }
    
    .floating-nav.hidden {
        display: none;
    }
    
    .carousel-item {
        min-width: 350px;
        height: 280px;
    }
    
    @keyframes carousel-scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-350px * 6 - 15px * 6)); }
    }
}

@media (max-width: 480px) {
    .floating-nav {
        bottom: 15px;
        padding: 10px 12px;
        gap: 8px;
    }
    
    .nav-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
        padding: 6px 8px;
    }
    
    .mobile-scroll-nav {
        display: flex !important;
    }
    
    .carousel-item {
        min-width: 140px;
        height: 140px;
    }
    
    @keyframes carousel-scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-140px * 6 - 15px * 6)); }
    }
}

@media (min-width: 769px) {
    .mobile-scroll-nav {
        display: none !important;
    }
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Dark theme for page 4 */
.language-toggle.dark-theme {
    background: rgba(13, 59, 59, 0.2);
    border: 1px solid rgba(13, 59, 59, 0.3);
}

.lang-btn.dark-theme {
    background: rgba(13, 59, 59, 0.2);
    border: 1px solid rgba(13, 59, 59, 0.3);
}

.scroll-button.dark-theme {
    background: rgba(13, 59, 59, 0.2);
    border: 1px solid rgba(13, 59, 59, 0.3);
    color: #ffffff;
}

.scroll-button.dark-theme:hover {
    background: rgba(13, 59, 59, 0.3);
    border: 1px solid rgba(13, 59, 59, 0.5);
}

.floating-nav.dark-theme {
    background: rgba(13, 59, 59, 0.2);
    border: 1px solid rgba(13, 59, 59, 0.3);
}

.nav-link.dark-theme {
    background: rgba(13, 59, 59, 0.2);
    border: 1px solid rgba(13, 59, 59, 0.3);
}

.nav-link.dark-theme:hover {
    background: rgba(13, 59, 59, 0.4);
    border: 1px solid rgba(13, 59, 59, 0.6);
}

.lang-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOutLoading 0.5s ease-in 2s forwards;
}

.loader {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader p {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0;
}

.loading-bar-container {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.loading-percentage {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 0 0;
}

.loading-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 15px;
    min-height: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeOutLoading {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes languageSwitch {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes buttonSwitch {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

[data-i18n].language-changing {
    animation: languageSwitch 0.4s ease-in-out;
}

button[data-i18n].button-switching {
    animation: buttonSwitch 0.4s ease-in-out;
}

page1, page2, page3, page4 {
    animation: pageEnter 0.8s ease-out forwards;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

wt {
    font-size: clamp(10px, 4vw, 60px);
    line-height: 1.2;
    color: #e0e0e0;
    text-align: center;
    font-family: "Cal Sans", sans-serif;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s ease-out forwards, fadeIn 5s ease-out 0s forwards;
}

.portfolio-subtitle {
    font-size: clamp(8px, 1.5vw, 20px);
    color: rgba(224, 224, 224, 0.6);
    letter-spacing: 3px;
    margin: 5px 0 0 0;
    font-weight: 300;
}

.videohomepage {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(clamp(10px, 1.5vw, 8px));
    animation: 3s fadeIn;
    will-change: transform;
}

page1 {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
}
page2 {
    width: 100%;
    height: 100vh;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

page3 {
    width: 100%;
    height: 100vh;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

page4 {
    width: 100%;
    min-height: 100vh;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.page4-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.page4-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(13, 59, 59, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(13, 59, 59, 0.3);
    box-shadow: 0 8px 32px rgba(13, 59, 59, 0.2);
}

.game-carousel-main {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(13, 59, 59, 0.2);
    border: 1px solid rgba(13, 59, 59, 0.2);
    position: relative;
}

.game-carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

/* Eye overlay on hover (PC only) */
.open-image-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(13, 59, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 59, 59, 0.6);
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 50;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.open-image-btn::before {
    content: '👁';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.open-image-btn:hover {
    background: rgba(13, 59, 59, 0.6);
    border: 1px solid rgba(13, 59, 59, 0.8);
    transform: scale(1.1);
}

@media (min-width: 1025px) {
    .game-carousel-main:hover .open-image-btn {
        display: flex;
        animation: eyeFadeIn 0.3s ease-out;
    }
}

/* Carousel Navigation Buttons */
.carousel-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 59, 59, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 59, 59, 0.5);
    color: #ffffff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.carousel-nav-prev {
    left: 10px;
}

.carousel-nav-next {
    right: 10px;
}

.carousel-nav:hover {
    background: rgba(13, 59, 59, 0.5);
    border: 1px solid rgba(13, 59, 59, 0.8);
}

.carousel-nav-prev:hover {
    transform: translateY(-50%) scale(1.1) translateX(-3px);
}

.carousel-nav-next:hover {
    transform: translateY(-50%) scale(1.1) translateX(3px);
}

@media (max-width: 768px) {
    .carousel-nav {
        display: flex;
    }
}

.game-carousel-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: none;
}

.game-carousel-thumbnails::-webkit-scrollbar {
    display: none;
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 99998;
}

.lightbox-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 0;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(13, 59, 59, 0.5);
    animation: lightboxFadeIn 0.3s ease-out;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: fixed;
    background: rgba(13, 59, 59, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 59, 59, 0.3);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
}

.lightbox-close {
    top: 20px;
    right: 30px;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.lightbox-prev, .lightbox-next {
    font-size: 50px;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(13, 59, 59, 0.4);
    border: 1px solid rgba(13, 59, 59, 0.6);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1) translateX(-5px);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1) translateX(5px);
}

/* Hide sidebar on mobile when lightbox is open */
@media (max-width: 768px) {
    .image-lightbox.active ~ .floating-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .lightbox-close {
        top: auto;
        right: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .lightbox-prev, .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 30px;
        top: auto;
        bottom: 80px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-prev:hover {
        transform: translateY(0) scale(1.1) translateX(-3px);
    }
    
    .lightbox-next:hover {
        transform: translateY(0) scale(1.1) translateX(3px);
    }
    
    .floating-nav.hidden {
        display: none;
    }
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes lightboxFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.lightbox-content img {
    animation: imageFadeInScale 0.3s ease-out;
}

@keyframes imageFadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.thumbnail {
    min-width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(13, 59, 59, 0.4);
    transition: all 0.3s ease;
    object-fit: cover;
    opacity: 0.6;
    background: rgba(13, 59, 59, 0.1);
}

.thumbnail:hover {
    opacity: 0.8;
    border: 2px solid rgba(13, 59, 59, 0.6);
    transform: scale(1.05);
    background: rgba(13, 59, 59, 0.2);
}

.thumbnail.active {
    border: 2px solid rgba(13, 59, 59, 0.9);
    opacity: 1;
    box-shadow: 0 0 20px rgba(13, 59, 59, 0.5);
    background: rgba(13, 59, 59, 0.15);
}

.page4-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(13, 59, 59, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(13, 59, 59, 0.3);
    box-shadow: 0 8px 32px rgba(13, 59, 59, 0.2);
}

.page4-right h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.page4-right p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

@media (max-width: 1024px) {
    .page4-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .page4-right {
        padding: 20px;
    }
    
    .page4-right h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page4-left {
        max-width: 100%;
        padding: 15px;
        order: 2;
    }
    
    .page4-right {
        order: 1;
    }
    
    .page4-container {
        gap: 20px;
        max-width: 100%;
    }
    
    .game-carousel-main {
        aspect-ratio: 16 / 9;
        max-height: 300px;
    }
    
    .game-carousel-thumbnails {
        gap: 10px;
        padding: 8px 0;
        max-height: 100px;
    }
    
    .thumbnail {
        min-width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .page4-right {
        padding: 15px;
        gap: 15px;
    }
    
    .page4-right h2 {
        font-size: 24px;
    }
    
    .page4-right p {
        font-size: 14px;
        line-height: 1.6;
    }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(50px);  
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

.scroll-button {
    position: absolute;
    bottom: 30px;
    padding: 12px 24px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: 1s fadeIn 2s backwards;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-button.scroll-button-top {
    bottom: auto;
    top: 30px;
}

.scroll-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
}

.scroll-button:active {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

/* Floating Navigation Bar */
.floating-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.nav-link {
    padding: 10px 12px;
    text-decoration: none;
    color: #ffffff;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateX(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.nav-link:active {
    transform: translateX(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .scroll-button {
        display: none;
    }
    
    .floating-nav {
        top: auto;
        right: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 20px;
    }
    
    .nav-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
        padding: 8px 10px;
    }
    
    .nav-link:hover {
        transform: translateY(-2px);
    }
    
    .nav-link:active {
        transform: translateY(-1px);
    }
    
    /* Mobile scroll navigation bar */
    .mobile-scroll-nav {
        position: fixed;
        top: 50%;
        right: 8px;
        left: auto;
        transform: translateY(-50%);
        display: none;
        flex-direction: column;
        gap: 4px;
        z-index: 998;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        padding: 4px;
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    }
    
    .nav-scroll-up, .nav-scroll-down {
        width: 26px;
        height: 26px;
        padding: 0;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        transition: all 0.3s ease;
    }
    
    .nav-scroll-up:hover, .nav-scroll-down:hover {
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.4);
        transform: scale(1.1);
    }
    
    /* Dark theme for mobile scroll bar */
    .mobile-scroll-nav.dark-theme {
        background: rgba(13, 59, 59, 0.2);
        border: 1px solid rgba(13, 59, 59, 0.3);
    }

    .mobile-scroll-nav.orange-theme {
        background: rgba(255, 140, 0, 0.2);
        border: 1px solid rgba(255, 140, 0, 0.3);
    }
    
    .nav-scroll-up.dark-theme, .nav-scroll-down.dark-theme {
        background: rgba(13, 59, 59, 0.2);
        border: 1px solid rgba(13, 59, 59, 0.3);
    }

    .nav-scroll-up.orange-theme, .nav-scroll-down.orange-theme {
        background: rgba(255, 140, 0, 0.2);
        border: 1px solid rgba(255, 140, 0, 0.3);
    }
    
    .nav-scroll-up.dark-theme:hover, .nav-scroll-down.dark-theme:hover {
        background: rgba(13, 59, 59, 0.4);
        border: 1px solid rgba(13, 59, 59, 0.6);
    }

    .nav-scroll-up.orange-theme:hover, .nav-scroll-down.orange-theme:hover {
        background: rgba(255, 140, 0, 0.4);
        border: 1px solid rgba(255, 140, 0, 0.6);
    }
}@media (max-width: 480px) {
    .floating-nav {
        bottom: 15px;
        padding: 10px 12px;
        gap: 8px;
    }
    
    .nav-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
        padding: 6px 8px;
    }
    
    /* Show mobile scroll nav on small screens */
    .mobile-scroll-nav {
        display: flex !important;
    }
}

/* Hide mobile scroll nav on PC/Tablet */
@media (min-width: 769px) {
    .mobile-scroll-nav {
        display: none !important;
    }
}

/* Carousel Styles */
.carousel-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 15px;
}

.carousel {
    display: flex;
    gap: 15px;
    animation: carousel-scroll 30s linear infinite;
}

.carousel-item {
    min-width: 800px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.carousel-item:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
}

.carousel-item:active {
    transform: translateY(-1px) scale(1.01);
    background: rgba(255, 255, 255, 0.12);
}

.carousel-container:hover .carousel {
    animation-play-state: paused;
}

.carousel-container.paused .carousel {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-800px * 6 - 15px * 6));
    }
}

@media (max-width: 768px) {
    .language-toggle {
        top: auto;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .carousel-item {
        min-width: 350px;
        height: 280px;
    }
    
    @keyframes carousel-scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-350px * 6 - 15px * 6));
        }
    }
}

@media (max-width: 480px) {
    .carousel-item {
        min-width: 140px;
        height: 140px;
    }
    
    @keyframes carousel-scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-140px * 6 - 15px * 6));
        }
    }
}

/* ===== PAGE 5: ORANGE LIGHT THEME ===== */
page5 {
    display: none;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, rgba(255, 165, 0, 0.05) 100%);
    position: relative;
}

page5.active {
    display: flex;
}

.page5-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.page5-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 140, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 8px 32px rgba(255, 140, 0, 0.15);
}

.page5-carousel {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.15);
    border: 1px solid rgba(255, 140, 0, 0.2);
    position: relative;
}

.page5-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.open-image-btn5 {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 140, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 0, 0.6);
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 50;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.open-image-btn5::before {
    content: '👁';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.open-image-btn5:hover {
    background: rgba(255, 140, 0, 0.6);
    border: 1px solid rgba(255, 140, 0, 0.8);
    transform: scale(1.1);
}

@media (min-width: 1025px) {
    .page5-carousel:hover .open-image-btn5 {
        display: flex;
        animation: eyeFadeIn 0.3s ease-out;
    }
}

#carouselPrev5, #carouselNext5 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 140, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 0, 0.5);
    color: #ffffff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

#carouselPrev5 {
    left: 10px;
}

#carouselNext5 {
    right: 10px;
}

#carouselPrev5:hover, #carouselNext5:hover {
    background: rgba(255, 140, 0, 0.5);
    border: 1px solid rgba(255, 140, 0, 0.8);
}

#carouselPrev5:hover {
    transform: translateY(-50%) scale(1.1) translateX(-3px);
}

#carouselNext5:hover {
    transform: translateY(-50%) scale(1.1) translateX(3px);
}

@media (max-width: 768px) {
    #carouselPrev5, #carouselNext5 {
        display: flex;
    }
}

.page5-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: none;
}

.page5-thumbnails::-webkit-scrollbar {
    display: none;
}

.page5-thumbnails .thumbnail {
    min-width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 140, 0, 0.4);
    transition: all 0.3s ease;
    object-fit: cover;
    opacity: 0.6;
    background: rgba(255, 140, 0, 0.1);
}

.page5-thumbnails .thumbnail:hover {
    opacity: 0.8;
    border: 2px solid rgba(255, 140, 0, 0.6);
    transform: scale(1.05);
    background: rgba(255, 140, 0, 0.2);
}

.page5-thumbnails .thumbnail.active {
    border: 2px solid rgba(255, 140, 0, 0.9);
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
    background: rgba(255, 140, 0, 0.15);
}

.page5-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 140, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 8px 32px rgba(255, 140, 0, 0.15);
}

.page5-right h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    color: #FF8C00;
}

.page5-right p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Page 5 Lightbox */
#imageLightbox5 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
}

#lightboxOverlay5 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 99998;
}

#lightboxClose5, #lightboxPrev5, #lightboxNext5 {
    position: fixed;
    background: rgba(255, 140, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
}

#lightboxClose5 {
    top: 20px;
    right: 30px;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

#lightboxPrev5, #lightboxNext5 {
    font-size: 50px;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#lightboxPrev5 {
    left: 20px;
}

#lightboxNext5 {
    right: 20px;
}

#lightboxClose5:hover, #lightboxPrev5:hover, #lightboxNext5:hover {
    background: rgba(255, 140, 0, 0.4);
    border: 1px solid rgba(255, 140, 0, 0.6);
}

#lightboxClose5:hover {
    transform: scale(1.1);
}

#lightboxPrev5:hover {
    transform: translateY(-50%) scale(1.1) translateX(-5px);
}

#lightboxNext5:hover {
    transform: translateY(-50%) scale(1.1) translateX(5px);
}

#imageLightbox5.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
        page5 {
            padding: 40px 20px;
        }
        
        .page5-container {
            flex-direction: column;
            gap: 20px;
            max-width: 100%;
        }
        
        .page5-left {
            max-width: 100%;
            padding: 15px;
            order: 2;
        }
        
        .page5-right {
            order: 1;
        }
        
        .page5-right h2 {
            font-size: 28px;
        }
        
        .page5-right p {
            font-size: 14px;
    }
}

