/*<--PROJECT PAGE-->*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(#Ffb5bf, #797ac0);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 270px;
    height: 100vh;
    background: #4f5296;
    transition: all 0.4s ease;
}

.sidebar.collapsed {
    width: 85px;
}

.sidebar .sidebar-header {
    display: flex;
    position: relative;
    padding: 25px 20px;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .header-logo img {
    width: 46px;
    height: 46px;
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

.sidebar-header .sidebar-toggler,
.sidebar-menu-button {
    position: absolute;
    right: 20px;
    height: 35px;
    width: 35px;
    color: #4f5296;
    border: none;
    cursor: pointer;
    display: flex;
    background: #EEF2FF;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.4s ease;
}

.sidebar.collapsed .sidebar-header .sidebar-toggler {
    transform: translate(-4px, 65px);
}

.sidebar-header .sidebar-toggler span,
.sidebar-menu-button span {
    font-size: 1.75rem;
    transition: 0.4s ease;
}

.sidebar.collapsed .sidebar-header .sidebar-toggler span {
    transform: rotate(180deg);
}

.sidebar-header .sidebar-toggler:hover {
    background: #d9e1fd;
}

.sidebar-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 0 15px;
    flex-direction: column;
    transform: translateY(15px);
    transition: 0.4s ease;
}

.sidebar .sidebar-nav .primary-nav {
    overflow-y: auto;
    scrollbar-width: thin;
    padding-bottom: 20px;
    height: calc(100vh - 227px);
    scrollbar-color: transparent transparent;
}

.sidebar .sidebar-nav .primary-nav:hover {
    scrollbar-color: #EEF2FF transparent;
}

.sidebar.collapsed .sidebar-nav .primary-nav {
    overflow: unset;
    transform: translateY(65px);
}

.sidebar-nav .nav-item .nav-link {
    color: #fff;
    display: flex;
    gap: 12px;
    white-space: nowrap;
    border-radius: 8px;
    padding: 11px 15px;
    align-items: center;
    text-decoration: none;
    border: 1px solid #4f5296;
    transition: 0.4s ease;
}

.sidebar-nav .nav-item:is(:hover, .open)>.nav-link:not(.dropdown-title) {
    color: #4f5296;
    background: #EEF2FF;
}

.sidebar .nav-link .nav-label {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-link :where(.nav-label, .dropdown-icon) {
    opacity: 0;
    pointer-events: none;
}

.sidebar.collapsed .nav-link .dropdown-icon {
    transition: opacity 0.3s 0s ease;
}

.sidebar-nav .secondary-nav {
    position: absolute;
    bottom: 35px;
    width: 100%;
    background: #4f5296;
}

.sidebar-nav .nav-item {
    position: relative;
}

/* Dropdown Stylings */
.sidebar-nav .dropdown-container .dropdown-icon {
    margin: 0 -4px 0 auto;
    transition: transform 0.4s ease, opacity 0.3s 0.2s ease;
}

.sidebar-nav .dropdown-container.open .dropdown-icon {
    transform: rotate(180deg);
}

.sidebar-nav .dropdown-menu {
    height: 0;
    overflow-y: hidden;
    list-style: none;
    padding-left: 15px;
    transition: height 0.4s ease;
}

.sidebar.collapsed .dropdown-menu {
    position: absolute;
    top: -10px;
    left: 100%;
    opacity: 0;
    height: auto !important;
    padding-right: 10px;
    overflow-y: unset;
    pointer-events: none;
    border-radius: 0 10px 10px 0;
    background: #4f5296;
    transition: 0s;
}

.sidebar.collapsed .dropdown-menu:has(.dropdown-link) {
    padding: 7px 10px 7px 24px;
}

.sidebar.sidebar.collapsed .nav-item:hover>.dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(12px);
    transition: all 0.4s ease;
}

.sidebar.sidebar.collapsed .nav-item:hover>.dropdown-menu:has(.dropdown-link) {
    transform: translateY(10px);
}

.dropdown-menu .nav-item .nav-link {
    color: #F1F4FF;
    padding: 9px 15px;
}

.sidebar.collapsed .dropdown-menu .nav-link {
    padding: 7px 15px;
}

.dropdown-menu .nav-item .nav-link.dropdown-title {
    display: none;
    color: #fff;
    padding: 9px 15px;
}

.dropdown-menu:has(.dropdown-link) .nav-item .dropdown-title {
    font-weight: 500;
    padding: 7px 15px;
}

.sidebar.collapsed .dropdown-menu .nav-item .dropdown-title {
    display: block;
}

.sidebar-menu-button {
    display: none;
}

/* Responsive media query code for small screens */
@media (max-width: 768px) {
    .sidebar-menu-button {
        position: fixed;
        left: 20px;
        top: 20px;
        height: 40px;
        width: 42px;
        display: flex;
        color: #F1F4FF;
        background: #4f5296;
    }

    .sidebar.collapsed {
        width: 270px;
        left: -270px;
    }

    .sidebar.collapsed .sidebar-header .sidebar-toggler {
        transform: none;
    }

    .sidebar.collapsed .sidebar-nav .primary-nav {
        transform: translateY(15px);
    }
}

h1 {
    font-family: "Amarante", serif;
    font-size: 90px !important;
    color: #fefefe !important;
    text-shadow: 0 0 3px #fefefe, 0 0 10px #fefefe;
}

h2 {
    font-family: "Amarante", serif;
    font-size: 40px !important;
    color: #fefefe !important;
    text-align: left !important;

}

p {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.text-center {
    padding: 60px;
}

.personal {
    margin-left: 180px;
}

div.gallery {
    border: 3px solid #5e9895;
    background-color: #5e9895;
}

div.gallery:hover {
    border: 3px solid #ffffff;
}

div.gallery img {
    width: 100%;
    height: auto;

}

div.desc {
    padding: 15px;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: #fefefe;
}


.responsive {
    padding: 0 6px;
    float: left;
    width: 24.99999%;
}

@media only screen and (max-width: 700px) {
    .responsive {
        width: 49.99999%;
        margin: 6px 0;
    }
}

@media only screen and (max-width: 500px) {
    .responsive {
        width: 100%;
    }
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.galmargin {
    margin-left: 250px;
}

.row1 {
    margin-top: 20px;
}

.row2 {
    margin-top: 600px;
}

.left-content {
    margin-top: 150px;
}

.left-content h2 {
    margin-left: 180px;
}

.left-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.left-content p {
    margin-left: 180px;
    color: #fefefe;
}

.right-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.right-gallery img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* HP responsif */
@media (max-width: 768px) {
    .right-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Responsif untuk HP */
@media (max-width: 768px) {
    .two-columns {
        flex-direction: column;
    }
}

.gallery-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.thumbnails {
    position: absolute;
    bottom: 8px;
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.thumbnails div {
    width: 8px;
    height: 8px;
    cursor: pointer;
    background: #aaa;
    border-radius: 100%;
}

.thumbnails div.highlighted {
    background-color: #777;
}

.slides {
    margin: 0 16px;
    display: grid;
    grid-auto-flow: column;
    gap: 1rem;
    width: 540px;
    padding: 0 0.25rem;
    height: 720px;
    overflow-y: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.slides div {
    scroll-snap-align: start;
}

.slides img {
    width: 540px;
    object-fit: contain;
}

.slides::-webkit-scrollbar {
    display: none;
}

.container-graphdes {
    margin-top: 180px;
    margin-bottom: 100px;
}

.gallery-container {
    margin-left: 100px;
}

.container-desc {
    color: #fefefe;
    margin-right: 50px;
}

.game-layout {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
    text-align: center;
}

.game-title h2 {
    text-align: center !important;
}

/* Main image (responsive 16:9) */
.main-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 ratio */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 14px;
}

.main-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Thumbnails row */
.thumb-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0 18px 0;
    align-items: center;
    height: 100px;
}

.thumb-row img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    display: block;
}

/* Game description */
.game-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #fefefe;
    max-width: 820px;
    margin: 0 auto;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .game-title {
        font-size: 24px;
    }

    .thumb-row {
        grid-template-columns: repeat(3, 1fr);
        /* keep 3 but smaller */
        gap: 8px;
    }

    .thumb-row img {
        height: 64px;
    }

    .main-image-wrap {
        padding-top: 56.25%;
    }
}

@media (max-width: 380px) {
    .thumb-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .thumb-row img {
        height: 64px;
    }
}

.media-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0;
}


.container-mng {
    margin-top: 230px;
}

/* LEFT / RIGHT columns */
.media-left {
    flex: 1;
    max-width: 720px;
    /* optional limit for big screens */
}

.media-right {
    flex: 1;
}

/* Title */
.media-left h2 {
    margin: 0 0 16px 0;
    font-size: 28px;
    line-height: 1.2;
}

.container-3d {
    margin-top: 180px;
}

/* Responsive YouTube embed (16:9) */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 ratio */
    margin-bottom: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Small image row (3 images side-by-side) */
.thumb-row {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.thumb-row img {
    width: calc((100% / 2) - 6.666px);
    /* three equal images with gap */
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Right column text */
.media-right h2 {
    margin-top: 0;
    font-size: 22px;
}

.media-right p {
    line-height: 1.6;
    color: #fefefe;
}

.media-left p {
    line-height: 1.6;
    color: #fefefe;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .media-row {
        flex-direction: column;
    }

    .thumb-row img {
        height: 80px;
    }
}

.media-left {
    margin-left: 180px;
}

.media-right {
    margin-right: 50px;
    margin-top: 150px;
}

.media-right p {
    color: #fefefe;
}

.game-layout {
    margin-top: 80px;
}

.container-branding {
    margin-top: 200px;
}

.container-organization {
    margin-top: 400px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

ul.gallery {
    --numcolumns: 4;
    --gap: 0.25em;
    --size: calc(100vw / var(--numcolumns));
    display: grid;
    grid-template-columns: repeat(var(--numcolumns), 1fr);

    grid-template-rows: auto;
    gap: var(--gap);
    align-items: stretch;
    list-style: none;
}

ul.gallery>li {
    display: block;
    height: calc(var(--size) - var(--gap));
}


ul.gallery>li.wide {
    grid-column: span 2;
}

ul.gallery>li.wider {
    grid-column: span 3;
}

ul.gallery>li.high {
    grid-row: span 2;
    height: auto;
    /* to undo the height */
}

ul.gallery>li img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.project-layout p {
    color: #fefefe !important;
}

/* SLIDESHOW */
.slideshow-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    height: 600px;
    /* fixed height for slideshow */
    overflow: hidden;
}

.image-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    height: 600px;
    /* fixed height for slideshow */
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeSlideshow 9s infinite;
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 3s;
}

.slide:nth-child(3) {
    animation-delay: 6s;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@keyframes fadeSlideshow {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    41% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* VIDEO */
.video-wrapper {
    width: 100%;
    height: 250px;
    /* atur tinggi sesuai keinginan */
    position: relative;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 10px;
    margin-left: px;
}

/* RIGHT DESCRIPTION */
.right-desc {
    height: 100%;
    padding: 20px;
}

.right-desc h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.right-desc p {
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive */
@media(max-width: 992px) {
    .right-desc {
        margin-top: 25px;
        text-align: center;
        height: auto;
    }
}

.project-layout {
    margin-top: 30px;
}

.left-wrapper {
    padding-left: 140px;
    margin-top: 80px;
    
}

.left-column {
    display: flex;
    flex-direction: column;
}

.project-title {
    margin-bottom: 15px;
}

.left-img {
    width: 80%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.project-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #Fefefe !important;
}

.right-column {
    display: flex;
    align-items: stretch;
}

.right-img {
    width: 70%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 80px;
}

footer p {
    color: #Fefefe;
    text-align: center;
}

.game-button {
    background-color: #4f5296;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    margin-bottom: 10px;
   
}

.game-button:hover {
    background-color: #ffffff;
    color: #4f5296;
}