/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    justify-content: center;
    transition: background 0.3s ease;
}

.island {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto 10px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.island.scrolled {
    background-color: rgba(50, 149, 255, 0.7) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 20%;
    object-fit: cover;
}

.game-title {
    margin-bottom: 10px;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-title a {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.game-title a:hover {
    color: #58a1ea;
}

.menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu ul li a {
    display: block;
    font-size: 16px;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.menu ul li a:hover {
    color: #58a1ea;
    font-weight: bold;
}

.menu ul li a.active {
    background-color: #004084;
    color: #fff;
    border-radius: 25px;
    font-weight: bold;
}

/* Hamburger Menu */
.menu-toggle {
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    display: none;
}

.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    left: 0;
    transition: 0.25s ease-in-out;
    display: block;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.menu-toggle.active .hamburger span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-60px);
}

.menu-toggle.active .hamburger span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

@media screen and (min-width: 768px) {
    .menu {
        display: flex;
    }

    .game-title {
        display: none;
    }

    .logo:after {
        content: attr(data-title);
        margin-left: 15px;
        font-size: 24px;
        font-weight: bold;
        color: white;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .island {
        width: 95%;
        padding: 12px 15px;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo:after {
        font-size: 20px;
    }

    .menu ul {
        gap: 15px;
    }

    .game-title a {
        font-size: 20px;
    }
}

@media screen and (max-width: 767px) {
    .navbar {
        padding: 0;
    }

    .island {
        position: relative;
        flex-direction: column;
        padding: 10px;
        margin-top: 10px;
        width: 90%;
        transition: all 0.3s ease;
    }
    
    .island.scrolled {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 5px;
        z-index: 1001;
    }

    .header-container {
        width: 100%;
        justify-content: space-between;
    }

    .logo {
        justify-content: center;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }
    
    .hamburger span {
        display: block !important;
        background-color: white !important;
    }

    .menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        flex-direction: column;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .menu.active {
        left: 0;
    }

    .menu ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .menu ul li {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .menu ul li a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        text-align: left;
        border-radius: 8px;
        margin: 0 10px;
    }

    .menu ul li:last-child a {
        border-bottom: none;
    }

    .game-title {
        display: block;
    }
    
    .menu.active ul li {
        animation: fadeInLeft 0.5s forwards;
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .menu.active ul li:nth-child(1) { animation-delay: 0.1s; }
    .menu.active ul li:nth-child(2) { animation-delay: 0.2s; }
    .menu.active ul li:nth-child(3) { animation-delay: 0.3s; }
    .menu.active ul li:nth-child(4) { animation-delay: 0.4s; }
    
    @keyframes fadeInLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

@media screen and (max-width: 480px) {
    .island {
        margin-top: 15px;
        width: 95%;
        padding: 8px 10px;
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

    .game-title a {
        font-size: 18px;
    }

    .menu ul li a {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .menu-toggle {
        right: 10px;
    }
}

/* ≤320px */
@media screen and (max-width: 320px) {
    .header-container {
        gap: 10px;
    }

    .logo img {
        width: 30px;
        height: 30px;
    }

    .game-title a {
        font-size: 16px;
    }

    .hamburger {
        width: 25px;
        height: 20px;
    }

    .hamburger span:nth-child(2) { top: 8px; }
    .hamburger span:nth-child(3) { top: 16px; }
}


/* Bubble */
.komentar-bubble {
    position: fixed;
    bottom: 50px;
    right: 50px;
    background-color: #e9e9e9;
    color: white;
    padding: 25px;
    border-radius: 50%;
    text-align: center;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.komentar-bubble:hover {
    background-color: #004084;
    transform: scale(1.1);
}

.icon-comment {
    width: 50px;
    height: 50px;
}

/* Footer */
.footer {
    background-color: #000000;
    color: white;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-right,
.footer-left {
    flex: 1;
    min-width: 250px;
    margin: 10px;
}

.footer-right {
    text-align: right;
}

.footer-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 15%;
    margin-bottom: 10px;
}

.footer-left h3 {
    margin: 10px 0;
    font-size: 18px;
    border-bottom: 2px solid #58a1ea;
    display: inline-block;
    padding-bottom: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info ul {
    margin: 8px 0;
    font-size: 16px;
}

.contact-info i {
    margin-right: 10px;
    color: #58a1ea;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-right: 20px;
}

.quick-links li {
    margin: 8px 0;
}

.quick-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 16px;
    transition: color 0.3s;
}

.quick-links a:hover {
    color: #58a1ea;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 10px;
    text-align: center;
    width: 100%;
    font-size: 14px;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .footer-content {
        gap: 20px;
    }

    .footer-logo {
        width: 100px;
        height: 100px;
    }
}

@media screen and (max-width: 767px) {

    .komentar-bubble {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        padding: 15px;
    }

    .icon-comment {
        width: 30px;
        height: 30px;
    }

    .footer {
        padding: 20px 15px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        text-align: center;
        margin: 0 0 20px 0;
    }

    .quick-links {
        margin-right: 0;
    }

    .footer-logo {
        margin: 0 auto 10px;
    }

    .contact-info {
        text-align: center;
    }

    .footer-bottom {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .komentar-bubble {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        padding: 12px;
    }

    .icon-comment {
        width: 25px;
        height: 25px;
    }

    .footer-logo {
        width: 80px;
        height: 80px;
    }

    .footer-left h3 {
        font-size: 16px;
    }

    .contact-info ul,
    .quick-links a {
        font-size: 14px;
    }

    .footer {
        font-size: 14px;
    }
}