/* Global Reset untuk Overflow */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
    display: none;
}

/* Color Classes - Moved from inline HTML */
.text-liberty-white {
    color: #ffffff;
}

.text-liberty-yellow {
    color: #fbbf24;
}

.text-liberty-black {
    color: #000000;
}

.text-liberty-gray {
    color: #374151;
}

.bg-liberty-white {
    background-color: #8fe2c7;
}

.bg-liberty-yellow {
    background-color: #8fe2c7;
}

.bg-liberty-black {
    background-color: #000000;
}

/* Navbar Banner Styling */
.navbar-banner {
    background-color: transparent;
    border: none;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    margin: 0;
    z-index: 10000;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Hide scrollbar for navbar */
.navbar-banner::-webkit-scrollbar {
    display: none;
}

/* Desktop Navigation */
.navbar-desktop {
    display: flex;
    align-items: normal;
    justify-content: space-between;
    height: 50px;
    width: 100%;
}

/* Mobile Navigation */
.navbar-mobile {
    display: none;
    width: 100%;
    height: 50px;
}

/* Left Container */
.navbar-left-container {
    background-color: rgba(143, 226, 199, 0.9);
    border: none;
    padding: 12px 20px;
    clip-path: polygon(0% 0%, 0% 100%, 98% 100%, 100% 0%);
    position: relative;
    z-index: 10;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    flex: 1;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    box-shadow:
        -4px 0 0 #000000,
        0 -4px 0 #000000,
        0 4px 0 #000000,
        4px 0 0 #000000;
}

.navbar-left-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    align-content: stretch;
    flex-direction: row;
    flex-wrap: nowrap;
}

/* Right Container */
.navbar-right-container {
    background-color: rgba(143, 226, 199, 0.9);
    border: none;
    padding: 12px 20px;
    clip-path: polygon(0% 0%, 2% 100%, 100% 100%, 100% 0%);
    position: relative;
    z-index: 10;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    flex: 1;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    box-shadow:
        -4px 0 0 #000000,
        0 -4px 0 #000000,
        0 4px 0 #000000,
        4px 0 0 #000000;
}

.navbar-right-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Center Logo */
.navbar-center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background-color: transparent;
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(3px 3px 0px #000000) drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(5px)) {

    .navbar-left-container,
    .navbar-right-container {
        background-color: rgba(143, 226, 199, 0.95);
    }
}

/* Navbar Link Styling */
.navbar-link {
    font-family: 'Comic Book Bold', cursive;
    font-weight: bold;
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 5px 10px;
    margin: 0 8px;
}

.navbar-link:hover {
    color: #5fa68d;
    transform: translateY(-2px);
}

.navbar-separator {
    font-family: 'Comic Book Bold', cursive;
    font-size: 14px;
    color: #000000;
    line-height: 1;
    margin: 0 8px;
}

.navbar-logo-mobile {
    height: 60px;
    width: auto;
    filter: drop-shadow(3px 3px 0px #000000);
}

/* Mobile Navbar Header */
.navbar-mobile-header {
    background-color: rgba(143, 226, 199, 0.95);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10001;
}

/* Mobile Hamburger Button */
.mobile-hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10002;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.mobile-hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background-color: rgba(143, 226, 199, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    width: 100vw;
    max-width: 100vw;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-link {
    font-family: 'Comic Book Bold', cursive;
    font-weight: bold;
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    padding: 12px 16px;
    border: 2px solid #000000;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0px #000000;
}

.mobile-menu-link:hover {
    background-color: #7dd3b0;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #000000;
}

/* Responsive Navbar */
@media (max-width: 1024px) {
    .navbar-link {
        font-size: 16px;
    }

    .navbar-logo {
        height: 70px;
    }
}

/* Mobile Responsive - Simple Fix */
@media (max-width: 768px) {

    /* 1. Perbaiki navbar mobile */
    .navbar-desktop {
        display: none !important;
    }

    .navbar-mobile {
        display: block !important;
    }

    /* 2. Perbaiki BG2 positioning */
    #home .bg-layer-2.custom-transform {
        background-position: center bottom !important;
    }

    /* 3. Perbaiki about section untuk mobile - 1 kolom 4 baris */
    #about {
        position: relative !important;
        padding: 20px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
    }

    /* Container wrapper untuk mobile layout */
    #about .absolute.inset-0 {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .about-container-tl,
    .about-container-tr,
    .about-container-bl,
    .about-container-br {
        position: relative !important;
        width: calc(100% - 20px) !important;
        max-width: 280px !important;
        margin: 0 !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        order: 0 !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    /* Urutan kontainer untuk mobile: TL, TR, BL, BR */
    .about-container-tl {
        order: 1 !important;
    }

    .about-container-tr {
        order: 2 !important;
    }

    .about-container-bl {
        order: 3 !important;
    }

    .about-container-br {
        order: 4 !important;
    }

    /* CA Address container mobile fix */
    #about .absolute.bottom-8 {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 20px !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .ca-address-container {
        width: 100% !important;
        max-width: 280px !important;
        min-width: auto !important;
        margin: 0 auto !important;
    }

    .ca-copy-button {
        margin: 0 auto !important;
    }

    /* Gallery marquee mobile */
    .gallery-marquee-section {
        height: 140px;
    }

    .gallery-image {
        height: 100px;
        margin: 0 8px;
    }

    .gallery-video {
        height: 100px;
        margin: 0 8px;
    }
}

.bg-liberty-gray {
    background-color: #f9fafb;
}

.bg-liberty-gray-dark {
    background-color: #111827;
}

.bg-liberty-gray-light {
    background-color: #f3f4f6;
}

.hover-liberty-yellow:hover {
    color: #fbbf24;
}

.hover-liberty-gray:hover {
    background-color: #f3f4f6;
}

.hover-liberty-scale:hover {
    transform: scale(1.05);
}

/* Section Title Color */
.text-section-title {
    color: #8fe2c7;
}

/* Scroll Trigger Parallax Backgrounds - bg-layer-1 removed, using body background */

/* BG2 Transform Variables */
.bg-layer-2 {
    transform: translateZ(0);
    will-change: transform;
    opacity: 1;
    z-index: 2;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

/* Logo Image Styles */
.logo-image {
    width: 300px;
    height: 150px;
    z-index: 1;
    transform-origin: center center;
    transition: transform 0.3s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}

/* BG2 Custom Transform Classes - APPLIED USER SETTINGS */
.bg-layer-2.custom-transform {
    transform: translate(0%, -13%) scale(1.36) translateZ(0) !important;
    background-size: contain !important;
    background-position: center !important;
}

/* FORCE BG2 UKURAN TETAP SAAT SCROLL */
.scroll-triggered .bg-layer-2.custom-transform {
    transform: translate(0%, calc(-13% + var(--scroll-y-2, 0px))) scale(1.36) translateZ(0) !important;
    background-size: contain !important;
    background-position: center !important;
}

/* BG2 dengan scroll parallax - KOMBINASI USER SETTINGS + SCROLL */
.scroll-triggered .bg-layer-2.custom-transform {
    transform: translate(0%, calc(-13% + var(--scroll-y-2, 0px))) scale(1.36) translateZ(0) !important;
    background-size: contain !important;
    background-position: center !important;
}

/* BG2 No Crop Protection - Force contain */
.bg-layer-2,
.bg-layer-2.custom-transform {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* CRITICAL: BG2 UKURAN TETAP SAAT SCROLL */
.bg-layer-2.custom-transform,
.scroll-triggered .bg-layer-2.custom-transform {
    transform: translate(0%, calc(-13% + var(--scroll-y-2, 0px))) scale(1.36) translateZ(0) !important;
    background-size: contain !important;
    background-position: center !important;
}

/* Scroll-triggered parallax effect - HANYA POSISI Y */
.scroll-triggered .bg-layer-2 {
    transform: translateY(var(--scroll-y-2, 0px)) translateZ(0);
}

/* BG2 dengan scroll parallax - KOMBINASI CONTROL PANEL + SCROLL */
/* UKURAN DAN POSISI X DARI CONTROL PANEL TETAP DIPERTAHANKAN */
.scroll-triggered .bg-layer-2.custom-transform {
    transform: translate(0%, calc(-13% + var(--scroll-y-2, 0px))) scale(1.36) translateZ(0);
    background-size: contain !important;
    background-position: center !important;
}

/* Hero Section Background Layers */
#home {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    z-index: 1;
}

#home .bg-layer-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    /* Tidak terpotong di semua sisi */
    background-position: center;
    /* Posisi tengah untuk tidak terpotong */
    background-repeat: no-repeat;
    z-index: 2;
}

/* Mobile optimization for parallax */
@media (max-width: 768px) {

    .scroll-triggered .bg-layer-2 {
        transform: none;
    }

    /* Ensure BG2 doesn't crop on mobile */
    #home .bg-layer-2 {
        background-size: contain !important;
        background-position: center !important;
    }
}

/* Tablet optimization */
@media (max-width: 1024px) and (min-width: 769px) {
    #home .bg-layer-2 {
        background-size: contain !important;
        background-position: center !important;
    }

    /* Tablet: Tetap menggunakan layout desktop */
    #about {
        position: relative !important;
        display: block !important;
    }

    #about .absolute.inset-0 {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: block !important;
    }

    .about-container-tl,
    .about-container-tr,
    .about-container-bl,
    .about-container-br {
        position: absolute !important;
        width: 180px !important;
        padding: 10px !important;
    }
}

/* Large screen optimization */
@media (min-width: 1920px) {
    #home .bg-layer-2 {
        background-size: contain !important;
        background-position: center !important;
    }
}

/* Color Variables */
:root {
    --white: #ffffff;
    --black: #000000;
    --red: #FF5A3C;
    --blue: #16B6FF;
    --green: #6CBF43;
    --sky: #7EC8FF;
}

/* Font Families */
@font-face {
    font-family: 'Comic Book Bold';
    src: url('../assets/font/Comic Book Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

.font-luckiest {
    font-family: 'Comic Book Bold', cursive;
}

.font-comic {
    font-family: 'Comic Neue', cursive;
}

/* Comic Style Helpers */
.comic-border {
    border: 2px solid var(--black);
    /* border-radius akan diatur oleh global styling */
}

.comic-border-b {
    border-bottom: 2px solid var(--black);
}

.comic-border-t {
    border-top: 2px solid var(--black);
}

.sticker-shadow {
    box-shadow: 4px 4px 0px var(--black);
}

.btn-comic {
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 15px !important;
    transition: all 0.2s ease;
    font-family: 'Comic Book Bold', cursive !important;
}

.btn-comic:hover {
    transform: scale(1.03);
    animation: wiggle 0.3s ease-in-out;
}

.btn-comic:active {
    transform: translateY(2px) scale(1.03);
    box-shadow: 2px 2px 0px var(--black);
}

/* Removed marquee styles - no longer needed */

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-2deg);
    }

    75% {
        transform: rotate(2deg);
    }
}

@keyframes noise {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-1px, -1px);
    }

    20% {
        transform: translate(1px, 1px);
    }

    30% {
        transform: translate(-1px, 1px);
    }

    40% {
        transform: translate(1px, -1px);
    }

    50% {
        transform: translate(-1px, -1px);
    }

    60% {
        transform: translate(1px, 1px);
    }

    70% {
        transform: translate(-1px, 1px);
    }

    80% {
        transform: translate(1px, -1px);
    }

    90% {
        transform: translate(-1px, -1px);
    }
}

/* Removed chat and marquee styles - no longer needed */


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduced Motion Support - Updated */
@media (prefers-reduced-motion: reduce) {
    .btn-comic:hover {
        animation: none;
    }

    .animate-wiggle {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Mobile Responsiveness - Updated */
@media (max-width: 768px) {

    /* Reduce parallax effect on mobile for better performance */
    .scroll-triggered .bg-layer-1,
    .scroll-triggered .bg-layer-2 {
        transform: none;
    }
}

/* Custom Tailwind Utilities - Override dengan !important */
.bg-white {
    background-color: var(--white) !important;
}

.bg-red {
    background-color: #FF9800 !important;
}

.bg-blue {
    background-color: var(--blue) !important;
}

.bg-green {
    background-color: var(--green) !important;
}

.bg-sky {
    background-color: var(--sky) !important;
}

.text-black {
    color: #FFC107 !important;
}

/* Removed footer text white styles - no longer needed */

.text-red {
    color: var(--red) !important;
}

.text-blue {
    color: var(--blue) !important;
}

.text-green {
    color: var(--green) !important;
}

/* Body Background - bg1.png memenuhi viewport */
body {
    background-image: url('../assets/bg1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    padding-top: 50px;
    background-color: #000000;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Global scrollbar hiding for all elements */
* {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Section Background Override - Exclude Hero Section, Footer, dan Gallery Marquee */
section:not(#home):not(footer):not(.gallery-marquee-section) {
    background-color: var(--white) !important;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Hide scrollbar for all sections */
section::-webkit-scrollbar {
    display: none;
}

/* Container Background Override */
.comic-border.bg-white {
    background-color: var(--white) !important;
}

/* Removed navbar container styles - no longer needed */

/* Global Container Styling - Konsisten dengan Navbar */
.comic-border {
    border-radius: 20px !important;
}

/* Removed marquee text container styles - no longer needed */


/* Container dengan sticker-shadow */
.comic-border.sticker-shadow {
    border-radius: 20px !important;
}

/* Removed chat container styles - no longer needed */

/* Input fields */
input.comic-border {
    border-radius: 15px !important;
}

/* Removed chat input focus styles - no longer needed */

/* Buttons */
button.comic-border {
    border-radius: 15px !important;
}

/* Removed chat button styles - no longer needed */

/* Social icons */
a.comic-border {
    border-radius: 15px !important;
}

/* Updated dropdown styling for Liberty */
#liberty-dropdown {
    border-radius: 15px !important;
}

#liberty-dropdown a {
    border-radius: 0 !important;
}

#liberty-dropdown a:first-child {
    border-radius: 15px 15px 0 0 !important;
}

#liberty-dropdown a:last-child {
    border-radius: 0 0 15px 15px !important;
}

/* Marquee Text Styling - Fixed */
.marquee-text-container {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    border: 4px solid #000000;
    /* Thick black border */
    padding: 4px 0;
    /* Slim vertical padding */
}

.marquee-text-track {
    display: inline-block;
    animation: marquee-text 15s linear infinite;
    white-space: nowrap;
}

.marquee-text-content {
    display: inline-block;
    white-space: nowrap;
}

/* Marquee Text Color - All Black */
.marquee-text-content span {
    color: #000000 !important;
}

/* Marquee Star Icons */
.marquee-text-content .marquee-star {
    color: #000000;
    /* Black stars */
    font-size: 1.2em;
    margin: 0 8px;
}

@keyframes marquee-text {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Removed meme gallery styles - no longer needed */



/* Removed old hero section styles - replaced with scroll trigger parallax */

/* Removed chat container styles - no longer needed */


/* Focus States for Accessibility */
.btn-comic:focus,
.comic-border:focus {
    outline: 3px solid #facc15;
    /* yellow-400 */
    outline-offset: 2px;
}

/* Removed floating hero image styles - no longer needed */

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Removed chat scrollbar styles - no longer needed */

/* About Section Content Styling */
.about-content-container {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
}

.about-point-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-point-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* About Container Positioning - APPLIED USER SETTINGS */
:root {
    --about-vertical-spacing: 161px;
    --about-horizontal-spacing: 115px;
}

.about-container-tl {
    top: var(--about-vertical-spacing) !important;
    left: var(--about-horizontal-spacing) !important;
    position: absolute !important;
    transition: all 0.3s ease !important;
}

.about-container-tr {
    top: var(--about-vertical-spacing) !important;
    right: var(--about-horizontal-spacing) !important;
    position: absolute !important;
    transition: all 0.3s ease !important;
}

.about-container-bl {
    bottom: var(--about-vertical-spacing) !important;
    left: var(--about-horizontal-spacing) !important;
    position: absolute !important;
    transition: all 0.3s ease !important;
}

.about-container-br {
    bottom: var(--about-vertical-spacing) !important;
    right: var(--about-horizontal-spacing) !important;
    position: absolute !important;
    transition: all 0.3s ease !important;
}


.about-bg-container {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* Ensure about section background covers entire section */
#about {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* Mobile and Small Screen Responsive */
@media (max-width: 1024px) {
    .about-bg-container {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }

    #about {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
}

@media (max-width: 768px) {
    .about-bg-container {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }

    #about {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
}

@media (max-width: 480px) {
    .about-bg-container {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }

    #about {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
}

/* CA Address Container Styling */
.ca-address-container {
    background-color: #ffffff;
    /* Wooden desk color */
    border: 2px solid #000000;
    /* Darker wood border */
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 300px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.ca-address-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    color: #000000;
    letter-spacing: 0.5px;
    -webkit-user-select: all;
    user-select: all;
}

.ca-copy-button {
    background-color: #352a3b;
    /* Wooden desk color */
    border: 2px solid #000000;
    /* Golden border like desk */
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-copy-button:hover {
    background-color: #A0522D;
    /* Slightly lighter wood */
    transform: translateY(-1px);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.copy-icon {
    width: 20px;
    height: 20px;
    color: #FFFFFF;
    stroke-width: 2.5;
}

/* Copy success animation */
.ca-copy-button.copied {
    background-color: #228B22;
    /* Green when copied */
    border-color: #32CD32;
}

.ca-copy-button.copied .copy-icon {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .ca-address-text {
        font-size: 12px;
    }

    .ca-copy-button {
        padding: 10px;
    }

    .copy-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .ca-address-container {
        min-width: 200px;
        padding: 8px 10px;
    }

    .ca-address-text {
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .ca-copy-button {
        padding: 8px;
    }

    .copy-icon {
        width: 16px;
        height: 16px;
    }
}

.logo-image.custom-logo-transform {
    transform: translate(calc(-50% + 0%), calc(-50% + -96% + 3%)) scale(1.25) translateZ(0) !important;
}

/* Logo dengan scroll parallax - EFEK BERBEDA DARI BG1 DAN BG2 */
.scroll-triggered .logo-image.custom-logo-transform {
    transform: translate(calc(-50% + 0%), calc(-50% + -96% + 3% + var(--scroll-y-logo, 0px))) scale(1.25) translateZ(0) !important;
}

/* Join Us Section Parallax Styling */
.join-us-bg-container {
    min-height: 100vh;
    overflow: hidden;
    padding-bottom: 200px;
}

.bg-layer-3 {
    z-index: 1;
    background-attachment: fixed;
}

.bg-layer-4 {
    z-index: 2;
    transform: translateY(150px);
    transition: transform 0.1s ease-out;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Join Us Parallax Scroll Effect */
.scroll-triggered .bg-layer-4 {
    transform: translateY(calc(150px + var(--scroll-y-4, 0px)));
}

/* Mobile optimization for Join Us parallax */
@media (max-width: 768px) {
    .bg-layer-3 {
        background-attachment: scroll;
    }

    .join-us-bg-container {
        background-attachment: scroll;
    }

    .bg-layer-4 {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
}

@media (max-width: 480px) {
    .bg-layer-4 {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
}

/* Join Us Section Content Styling */
.join-us-content {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buy-liberty-btn {
    background-color: #8fe2c7;
    border: 3px solid #000000;
    border-radius: 12px;
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px #000000;
    position: relative;
    z-index: 10;
    text-decoration: none;
    display: inline-block;
}

.buy-liberty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px #000000;
    background-color: #7dd3b0;
}

.buy-liberty-btn:active {
    transform: translateY(0px);
    box-shadow: 2px 2px 0px #000000;
}

.buy-btn-text {
    font-family: 'Luckiest Guy', cursive;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Media Icons Styling */
.social-icon {
    background-color: #8fe2c7;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0px #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 0px #000000;
    background-color: #7dd3b0;
}

.social-icon:active {
    transform: translateY(0px);
    box-shadow: 1px 1px 0px #000000;
}

.social-icon-img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(0);
}

/* Responsive Styling for Join Us Content */
@media (max-width: 768px) {
    .join-us-content {
        top: 60px;
    }

    .buy-liberty-btn {
        padding: 12px 24px;
    }

    .buy-btn-text {
        font-size: 16px;
    }

    .social-icon {
        padding: 10px;
    }

    .social-icon-img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .join-us-content {
        top: 40px;
    }

    .buy-liberty-btn {
        padding: 10px 20px;
    }

    .buy-btn-text {
        font-size: 14px;
    }

    .social-icon {
        padding: 8px;
    }

    .social-icon-img {
        width: 18px;
        height: 18px;
    }
}

/* About Container Responsive Styling - Desktop Only */
@media (min-width: 769px) {

    /* Pastikan tampilan desktop tetap seperti semula */
    #about {
        position: relative !important;
        display: block !important;
    }

    #about .absolute.inset-0 {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: block !important;
        flex-direction: initial !important;
        align-items: initial !important;
        justify-content: initial !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .about-container-tl,
    .about-container-tr,
    .about-container-bl,
    .about-container-br {
        position: absolute !important;
        width: 200px !important;
        max-width: none !important;
        padding: 12px !important;
        margin: 0 !important;
        order: initial !important;
    }

    /* Reset positioning untuk desktop */
    .about-container-tl {
        top: var(--about-vertical-spacing) !important;
        left: var(--about-horizontal-spacing) !important;
        right: auto !important;
        bottom: auto !important;
    }

    .about-container-tr {
        top: var(--about-vertical-spacing) !important;
        right: var(--about-horizontal-spacing) !important;
        left: auto !important;
        bottom: auto !important;
    }

    .about-container-bl {
        bottom: var(--about-vertical-spacing) !important;
        left: var(--about-horizontal-spacing) !important;
        right: auto !important;
        top: auto !important;
    }

    .about-container-br {
        bottom: var(--about-vertical-spacing) !important;
        right: var(--about-horizontal-spacing) !important;
        left: auto !important;
        top: auto !important;
    }

    .about-container-tl h3,
    .about-container-tr h3,
    .about-container-bl h3,
    .about-container-br h3 {
        font-size: 12px !important;
    }

    .about-container-tl p,
    .about-container-tr p,
    .about-container-bl p,
    .about-container-br p {
        font-size: 10px !important;
    }
}

/* Gallery Marquee Section Styling */
.gallery-marquee-section {
    background-color: #000000 !important;
    /* border: 4px solid #ffffff; */
    border-top: none;
    border-bottom: none;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    height: 180px;
    z-index: 10;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5);
}

/* Override body background untuk gallery section */
section.gallery-marquee-section {
    background-color: #ffffff !important;
}

.gallery-marquee-container {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.gallery-marquee-track {
    display: inline-block;
    animation: gallery-marquee 30s linear infinite;
    white-space: nowrap;
    height: auto;
}

.gallery-marquee-content {
    display: inline-block;
    white-space: nowrap;
    height: auto;
}

.gallery-image {
    height: 140px;
    width: auto;
    border: 3px solid #000000;
    border-radius: 15px;
    margin: 0 10px;
    object-fit: cover;
    box-shadow: 3px 3px 0px #000000;
    display: inline-block;
    vertical-align: middle;
}

.gallery-video {
    height: 140px;
    width: auto;
    border: 3px solid #000000;
    border-radius: 15px;
    margin: 0 10px;
    object-fit: cover;
    box-shadow: 3px 3px 0px #000000;
    display: inline-block;
    vertical-align: middle;
}

@keyframes gallery-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Small Screens */
@media (max-width: 480px) {
    .gallery-marquee-section {
        height: 120px;
        box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.5);
    }

    .gallery-marquee-container {
        padding: 10px 0;
    }

    .gallery-image {
        height: 80px;
        margin: 0 6px;
        border-radius: 8px;
    }

    .gallery-video {
        height: 80px;
        margin: 0 6px;
        border-radius: 8px;
    }

    .gallery-marquee-track {
        animation: gallery-marquee 20s linear infinite;
    }
}