/* 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;
}

.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 {
    transform: translateZ(0);
    will-change: transform;
    z-index: 1;
}

/* 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%);
}

/* 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-1 {
    transform: translateY(var(--scroll-y-1, 0px)) translateZ(0);
}

.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;
}

#home .bg-layer-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#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;
}

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

    .scroll-triggered .bg-layer-1,
    .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) {
    #home .bg-layer-2 {
        background-size: contain !important;
        background-position: center !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 - Transparent */
body {
    background-color: transparent !important;
    position: relative;
    z-index: 1;
}

/* Section Background Override - Exclude Hero Section and Footer */
section:not(#home):not(footer) {
    background-color: var(--white) !important;
    position: relative;
    z-index: 1;
}

/* 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);
    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;
    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;
}


.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;
}

.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 */
@media (max-width: 768px) {

    .about-container-tl,
    .about-container-tr,
    .about-container-bl,
    .about-container-br {
        width: 200px !important;
        padding: 12px !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;
    }
}

@media (max-width: 480px) {

    .about-container-tl,
    .about-container-tr,
    .about-container-bl,
    .about-container-br {
        width: 150px !important;
        padding: 8px !important;
    }

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

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