/* ==========================================================
   CUSTOM FONT DECLARATION
   ========================================================== */

/* Import Press Start 2P font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* ==========================================================
   CSS VARIABLES (ROOT COLORS) - WINDOWS 97 CLASSIC THEME
   ========================================================== */
:root {
    /* 🎨 PRIMARY COLORS - BENK ORANGE PASTEL THEME */
    --primary-orange: #FFB366;
    --primary-orange-light: #FFC285;
    --primary-orange-dark: #FF8C42;
    --primary-orange-pastel: #FFD4A3;
    --primary-orange-accent: #FF6B35;
    --primary-brown: #8B4513;
    --primary-brown-light: #A0522D;
    --primary-brown-dark: #654321;
    --primary-black: #000000;
    --primary-white: #ffffff;

    /* 🌙 BENK ORANGE PASTEL THEME COLORS */
    --bg-primary: #FFD4A3;
    --bg-secondary: #FFC285;
    --bg-card: #FFD4A3;
    --bg-overlay: rgba(255, 179, 102, 0.9);
    --bg-navbar: rgba(255, 212, 163, 0.95);

    /* 📝 TEXT COLORS */
    --text-primary: #8B4513;
    --text-secondary: #A0522D;
    --text-muted: #654321;
    --text-gray: #8B4513;
    --text-gray-light: #A0522D;
    --text-gray-dark: #654321;

    /* 🔗 BORDER COLORS */
    --border-primary: #FF8C42;
    --border-gray: #FF8C42;
    --border-gray-light: #FFC285;
    --border-gray-dark: #654321;

    /* ✨ BENK ORANGE EFFECTS */
    --shadow-inset: inset 1px 1px 0px 0px #FFC285, inset -1px -1px 0px 0px #FF8C42;
    --shadow-outset: 3px 3px 0px 0px #000000;
    --shadow-button: inset 1px 1px 0px 0px #FFC285, inset -1px -1px 0px 0px #FF8C42;

    /* 🌟 SHINE EFFECT COLORS */
    --shine-color: rgba(255, 242, 228, 0.8);

    /* 🎯 NOTIFICATION COLORS */
    --success-color: #00ff00;
    --error-color: #ff0000;
    --info-color: #0000ff;

    /* 🎨 BUTTON COLORS */
    --btn-buy-bg: #FF6B35;
    --btn-buy-bg-hover: #FF8C42;
    --btn-buy-border: #654321;
    --btn-buy-border-hover: #8B4513;
    --btn-buy-shadow: #000000;
    --btn-buy-shadow-hover: #000000;
    --btn-buy-shine: #FFC285;

    /* 🎨 TEXT SECTION COLORS */
    --text-marketcap: #ff6a00;
    --text-volume: #ff6a00;
    --text-liquidity: #ff6a00;
    --text-fdv: #ff6a00;
    --text-supply: #ff6a00;
    --text-tokenomics-marketcap: #ff6a00;
    --text-tokenomics-priceusd: #ff6a00;
    --text-hero-priceusd: #ff6a00;
    --text-hero-pricenative: #ff6a00;
    --text-hero-change: #ff6a00;

    /* 🎨 SECONDARY BUTTON COLORS */
    --btn-secondary-bg: #FFB366;
    --btn-secondary-bg-hover: #FFC285;
    --btn-secondary-border: #FF8C42;
    --btn-secondary-border-hover: #654321;
    --btn-secondary-shadow: #000000;
    --btn-secondary-shadow-hover: #000000;
    --btn-secondary-shine: #FFC285;

    --notif-green: #00ff00;

    /* ==========================================================
       BENK ORANGE PASTEL COLOR PALETTE
       ========================================================== */
    /* PRIMARY (Orange Pastel Variasi) */
    --boonk-contract: #fff;
    --boonk-orange: #ff8000;
    --boonk-orange-light: #FFC285;
    --boonk-orange-dark: #FF8C42;
    --boonk-orange-pastel: #FFD4A3;
    --boonk-orange-accent: #FF6B35;
    --boonk-brown: #ff6a00;
    --boonk-brown-light: #A0522D;
    --boonk-brown-dark: #654321;

    /* BACKGROUND (Orange Pastel Desktop) */
    --boonk-desktop: #FFD4A3;
    --boonk-window: #FFD4A3;
    --boonk-taskbar: #FFC285;

    /* GRADIENTS */
    --boonk-gradient-main: linear-gradient(90deg, #FFB366 0%, #FFC285 100%);
    --boonk-gradient-accent: linear-gradient(90deg, #FF8C42 0%, #FFB366 100%);
    --boonk-gradient-button: linear-gradient(90deg, #FFC285 0%, #FFB366 100%);
}

/* ==========================================================
   PRESS START 2P FONT STYLING
   ========================================================== */

/* Apply Press Start 2P font to text elements only */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div,
a,
button,
input,
textarea,
label {
    font-family: 'Press Start 2P', cursive !important;
}

/* Override any pixel-font classes to use Press Start 2P */
.pixel-font,
.pixel-heading {
    font-family: 'Press Start 2P', cursive !important;
}

/* Preserve FontAwesome icons - don't change their font */
.fas,
.fab,
.far,
.fa,
i[class*="fa-"],
i[class*="fas"],
i[class*="fab"],
i[class*="far"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Regular", "FontAwesome" !important;
}

/* Adjust font sizes for better readability with pixel font */
body {
    font-size: 12px;
    line-height: 1.4;
}

/* Larger text for headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 16px;
    line-height: 1.3;
}

/* Medium text for buttons and important elements */
.btn-buy,
.btn-secondary,
.pixel-button {
    font-size: 10px;
}

/* Smaller text for details */
.text-sm,
.text-xs {
    font-size: 8px;
}

/* Contract address and technical text */
#contract-address,
.font-mono {
    font-size: 8px;
    letter-spacing: 0.5px;
}

/* Navigation text */
.nav-content span,
.win97-titlebar-title {
    font-size: 10px;
}

/* Hero title - make it stand out */
#jarz-hero-title {
    color: var(--boonk-contract) !important;
    font-size: 3rem !important;
}

/* Hero subtitle */
.hero-content p {
    font-size: 10px;
}

/* Card titles and stats */
.card div,
.uiverse-flip-title {
    font-size: 10px;
}

/* Flip cards - use smaller font for better fit */
.uiverse-flip-title {
    font-size: 8px !important;
    line-height: 1.2 !important;
}

.uiverse-flip-overlay h3 {
    font-size: 8px !important;
    line-height: 1.2 !important;
}

.uiverse-flip-overlay p {
    font-size: 6px !important;
    line-height: 1.3 !important;
}

/* ==========================================================
   BENK ORANGE PASTEL THEME - HARMONIZED STYLING
   ========================================================== */

/* Global harmonized styling */

/* Solid black shadows for all interactive elements */
.card,
.btn-secondary,
.btn-buy,
.pixel-button,
.contract-address-card,
.win97-window {
    box-shadow: 3px 3px 0px 0px #000000 !important;
    border: 2px solid var(--boonk-orange-dark) !important;
}

/* Hover effects */
.card:hover,
.btn-secondary:hover,
.btn-buy:hover,
.pixel-button:hover,
.uiverse-flip-card:hover {
    box-shadow: 4px 4px 0px 0px #000000 !important;
    transform: translate(-1px, -1px);
    transition: all 0.2s ease;
}

/* Active/pressed effects */
.card:active,
.btn-secondary:active,
.btn-buy:active,
.pixel-button:active {
    box-shadow: 1px 1px 0px 0px #000000 !important;
    transform: translate(2px, 2px);
}

/* Harmonized color scheme */
.bg-gray-200,
.card,
.contract-address-card,
.win97-window-content {
    background-color: var(--boonk-orange-pastel) !important;
}

.text-gray-800,
.text-gray-700,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--boonk-brown) !important;
}

.text-gray-600 {
    color: var(--boonk-brown) !important;
}

/* Harmonized buttons */
.btn-secondary {
    background: linear-gradient(135deg, var(--boonk-orange) 0%, var(--boonk-orange-light) 100%) !important;
    border-color: var(--boonk-orange-dark) !important;
    color: var(--boonk-contract) !important;
    font-weight: bold !important;
}

.btn-buy {
    background: linear-gradient(135deg, var(--boonk-orange-accent) 0%, var(--boonk-orange) 100%) !important;
    border-color: var(--boonk-brown-dark) !important;
    color: white !important;
    font-weight: bold !important;
}

/* Harmonized navigation */
.navbar-overlay {
    background: rgba(255, 212, 163, 0.95) !important;
    border-bottom: 2px solid var(--boonk-orange-dark) !important;
}

.nav-content span {
    color: var(--boonk-brown) !important;
}

/* Harmonized flip cards */
.uiverse-flip-card {
    background: var(--boonk-orange-pastel) !important;
    border-color: var(--boonk-orange-dark) !important;
}

.uiverse-flip-overlay {
    background: rgba(255, 229, 211, 0.9) !important;
    color: var(--boonk-orange-pastel) !important;
}

/* Harmonized Windows 97 elements */
.win97-titlebar {
    background: linear-gradient(135deg, var(--boonk-orange) 0%, var(--boonk-orange-light) 100%) !important;
    border-bottom: 2px solid var(--boonk-orange-dark) !important;
}

.win97-titlebar-title {
    color: var(--boonk-contract) !important;
    font-weight: bold !important;
}

/* Harmonized social buttons */
.win97-btn-social-blue {
    background: linear-gradient(135deg, var(--boonk-orange-accent) 0%, var(--boonk-orange) 100%) !important;
}

/* Harmonized footer */
footer {
    background: linear-gradient(135deg, var(--boonk-orange-pastel) 0%, var(--boonk-orange-light) 100%) !important;
    border-color: var(--boonk-orange-dark) !important;
    color: var(--boonk-contract) !important;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
    font-size: 8px;
}

/* Harmonized icons */
.fas,
.fab,
.far {
    color: #fe3f00 !important;
}

/* Harmonized contract address */
#contract-address {
    background: transparent !important;
    border: none !important;
    color: var(--boonk-brown) !important;
}

/* Original primary gradient overlay - restored */
.primary-gradient-overlay {
    /* Removed all custom styling to restore original overlay */
}

body,
html,
* {
    color: var(--text-marketcap) !important;
}

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

body {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--bg-primary);
    /* Windows 97 classic gray background */
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    color: var(--text-primary);
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
}

/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #c0c0c0;
}

::-webkit-scrollbar-thumb {
    background: #808080;
}

::-webkit-scrollbar-thumb:hover {
    background: #404040;
}

/* Flash effect for data updates */
@keyframes flash-update {
    0% {
        color: inherit;
        transform: scale(1);
    }

    50% {
        color: #22d3ee;
        transform: scale(1.02);
    }

    100% {
        color: inherit;
        transform: scale(1);
    }
}

.flash-update {
    animation: flash-update 0.5s ease-in-out;
}

/* Custom styles for the crypto tracking website */

/* Loading animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Green flash effect for increasing values */
@keyframes flashGreen {
    0% {
        color: inherit;
        transform: scale(1);
    }

    50% {
        color: #00ff5e;
        transform: scale(1.05);
    }

    100% {
        color: inherit;
        transform: scale(1);
    }
}

.flash-green {
    animation: flashGreen 0.6s ease-in-out;
}

/* Red flash effect for decreasing values */
@keyframes flashRed {
    0% {
        color: inherit;
        transform: scale(1);
    }

    50% {
        color: #ef4444;
        transform: scale(1.05);
    }

    100% {
        color: inherit;
        transform: scale(1);
    }
}

.flash-red {
    animation: flashRed 0.6s ease-in-out;
}

/* Custom font */
.font-inter {
    font-family: 'Byrd', 'Inter', sans-serif;
}

/* Windows 97 effect for navbar */
.backdrop-blur-md {
    background: var(--bg-navbar);
    border: 2px solid var(--border-gray);
}

/* Gradient text effect */
.bg-gradient-to-r {
    background: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Windows 97 card shadows */
.shadow-\[0_0_32px_0_\#22d3ee55\] {
    box-shadow: var(--shadow-outset);
}

/* Loading state styling */
.loading-data {
    color: var(--text-primary);
    font-style: italic;
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }

    .text-6xl {
        font-size: 3rem;
    }

    .text-4xl {
        font-size: 2rem;
    }

    .text-3xl {
        font-size: 1.5rem;
    }
}

/* Card hover effect */
.bg-\[#23272f\]:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px 0 rgba(34, 211, 238, 0.4);
    transition: all 0.3s ease;
}

/* Smooth transitions for all cards */
.bg-\[#23272f\] {
    transition: all 0.3s ease;
}

/* ==========================================================
   ANIMASI NOTIFIKASI
   ========================================================== */

/* Notification always on top */
.notification {
    z-index: 9999 !important;
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(90deg, var(--notif-green) 80%, #38bdf8 100%);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 8px 32px 0 rgba(34, 211, 238, 0.33), 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--notif-green);
    animation: notif-in 0.5s cubic-bezier(0.4, 0, 0.2, 1), shine-green 1.2s linear 0.2s;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s, transform 0.4s;
}

@keyframes notif-in {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateX(-8px) scale(1.03);
    }

    80% {
        transform: translateX(4px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes notif-out {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
}

@keyframes shine-green {
    0% {
        box-shadow: 0 0 0 0 var(--notif-green);
    }

    50% {
        box-shadow: 0 0 24px 8px var(--notif-green);
    }

    100% {
        box-shadow: 0 0 0 0 var(--notif-green);
    }
}

.shake-notif {
    animation: shake-notif 0.5s;
}

/* Notification color classes */
.notification.success {
    background-color: var(--success-color);
    color: var(--text-primary);
}

.notification.error {
    background-color: var(--error-color);
    color: var(--text-primary);
}

.notification.info {
    background-color: var(--info-color);
    color: var(--text-primary);
}

/* ==========================================================
   EFEK HOVER CARD
   ========================================================== */

/* Efek hover untuk semua card */
.card,
.contract-address-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    /* Hapus glow default */
    box-shadow: none;
    /* Tambahkan position relative untuk shine effect */
    position: relative;
    overflow: hidden;
}

.card:hover,
.contract-address-card:hover {
    transform: scale(0.98);
    /* Windows 97 inset shadow on hover */
    box-shadow: var(--shadow-inset);
}

.card:active,
.contract-address-card:active {
    transform: scale(0.95);
}

/* Efek hover untuk icon di dalam card */
.card svg,
.contract-address-card svg {
    transition: transform 0.4s ease;
}

.card:hover svg,
.contract-address-card:hover svg {
    transform: scale(1.05);
}

/* Efek kilauan (shine effect) untuk semua card */
.card::before,
.contract-address-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--shine-color), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.card:hover::before,
.contract-address-card:hover::before {
    left: 100%;
}

/* ==========================================================
   ANIMASI PULSE
   ========================================================== */

#market-marketcap {
    color: var(--text-marketcap);
}

#market-volume24h {
    color: var(--text-volume);
}

#market-liquidity {
    color: var(--text-liquidity);
}

#fdv {
    color: var(--text-fdv);
}

#tokenomics-supply {
    color: var(--text-supply);
}

#tokenomics-marketcap {
    color: var(--text-tokenomics-marketcap);
}

#tokenomics-priceusd {
    color: var(--text-tokenomics-priceusd);
}

#price-usd {
    color: var(--text-hero-priceusd);
}

#price-native {
    color: var(--text-hero-pricenative);
}

#price-change-24h {
    color: var(--text-hero-change);
}

/* ==========================================================
   BUTTON BUY STYLE
   ========================================================== */

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    cursor: pointer;
    width: 150px;
    height: 50px;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-button);
}

/* Button buy untuk navbar (ukuran lebih kecil) */
nav .btn-buy {
    width: auto;
    height: 40px;
    padding: 0 20px;

}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    cursor: pointer;
    width: 150px;
    height: 50px;


    border-radius: 0;
    transition: all 0.2s ease;


    font-weight: bold;

    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-button);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--btn-secondary-shine), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover {
    transform: translateY(1px);
    box-shadow: var(--shadow-inset);
    border-color: var(--btn-secondary-border-hover);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow:
        0 4px 15px var(--btn-secondary-shadow-hover),
        0 2px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary:focus {
    outline: none;
    box-shadow:
        0 0 0 3px var(--btn-secondary-shine),
        0 8px 25px var(--btn-secondary-shadow),
        0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-buy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--btn-buy-shine), transparent);
    transition: left 0.5s ease;
}

.btn-buy:hover {
    transform: translateY(1px);
    box-shadow: var(--shadow-inset);
    border-color: var(--btn-buy-border-hover);
}

.btn-buy:hover::before {
    left: 100%;
}

.btn-buy:active {
    transform: translateY(0);
    box-shadow:
        0 4px 15px var(--btn-buy-shadow-hover),
        0 2px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-buy:focus {
    outline: none;
    box-shadow:
        0 0 0 3px var(--btn-buy-shine),
        0 8px 25px var(--btn-buy-shadow),
        0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   PARALLAX BACKGROUND EFFECT
   ========================================================== */

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.1s ease-out;
    will-change: transform;
    pointer-events: none;
    z-index: -10;
}

.parallax-container {
    position: relative;
    overflow: hidden;
}

/* ==========================================================
   NAVBAR STYLE - OVERLAY ON HERO
   ========================================================== */

.navbar-overlay {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-navbar);
    border-bottom: 2px solid var(--border-gray);
    box-shadow: var(--shadow-outset);
    height: 2.5rem;
}

.nav-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2.5rem;
}

.nav-content .flex.items-center.gap-3 img {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.nav-content .flex.items-center.gap-3 span {
    font-size: 1.125rem !important;
}

.nav-content .hidden.md\:flex.gap-8.text-lg.font-medium {
    gap: 1rem !important;
    font-size: 0.875rem !important;
}

.btn-social img {
    width: 1rem !important;
    height: 1rem !important;
}

.btn-buy.pixel-button {
    font-size: 0.875rem !important;
    padding: 0.25rem 0.75rem !important;
    height: 1.75rem !important;
    min-width: 0 !important;
}

@media (max-width: 900px) {

    .navbar-overlay,
    .nav-content {
        height: 2rem;
    }

    .nav-content .flex.items-center.gap-3 img {
        width: 1.1rem !important;
        height: 1.1rem !important;
    }

    .nav-content .flex.items-center.gap-3 span {
        font-size: 1rem !important;
    }

    .btn-buy.pixel-button {
        font-size: 0.75rem !important;
        height: 1.25rem !important;
    }
}

/* ==========================================================
   HERO SECTION - FULL SCREEN WITH NAVBAR OVERLAY
   ========================================================== */

.hero-fullscreen {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-fullscreen .hero-content {
    padding-top: 120px;
    padding-bottom: 80px;
    z-index: 10;
    position: relative;
}

/* ==========================================================
   MARQUEE STYLES
   ========================================================== */

.marquee-outer-container {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.marquee-row {
    overflow: hidden;
}

.marquee-content-wrapper {
    display: inline-block;
    white-space: nowrap;
    font-size: 0;
    will-change: transform;
}

.marquee-image {
    height: 240px;
    width: 240px;
    object-fit: cover;
    margin-right: 1.2rem;
    display: inline-block;
    vertical-align: middle;
    background-color: var(--bg-card);
    border: 2px solid var(--border-gray);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-outset);
}

.marquee-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.marquee-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--shine-color), transparent);
    transition: left 0.5s ease;
    z-index: 2;
}

/* Marquee hover effects removed */

/* Marquee active and focus effects removed */

/* Responsive adjustments for marquee images */
@media (max-width: 768px) {
    .marquee-image {
        height: 180px;
        width: 180px;
        margin-right: 0.9rem;
    }
}

@media (max-width: 640px) {
    .marquee-image {
        height: 120px;
        width: 120px;
        margin-right: 0.6rem;
    }
}

/* Fade-in animation for marquee images */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-image {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Social button blur effect */
.btn-social img {
    transition: filter 0.3s ease;
}

.btn-social:hover img {
    filter: none;
}

/* Blur other social buttons when one is hovered */
.navbar-overlay:has(.btn-social:hover) .btn-social:not(:hover) img {
    opacity: 0.3;
    transform: scale(0.9);
}

/* ==========================================================
   TWITTER EMBED SECTION STYLES
   ========================================================== */

/* Twitter Embed Container Styling */
.twitter-embed-container {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-gray);
    padding: 1.5rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-outset);
    border-radius: 0;
}

/* Hilangkan semua efek hover di section Twitter */
.twitter-embed-container:hover,
.twitter-embed-container:focus,
.twitter-tweet:hover,
.twitter-tweet:focus {
    box-shadow: none !important;
    border: 1px solid #808080 !important;
    background: #c0c0c0 !important;
    transform: none !important;
    outline: none !important;
}

.twitter-tweet {
    width: 100% !important;
    max-width: 100% !important;
}

.twitter-tweet iframe {
    width: 100% !important;
    max-width: 100% !important;
}

.twitter-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    color: var(--text-primary);
    font-size: 1rem;
    min-height: 200px;
}

.twitter-loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-gray);
    border-top: 3px solid var(--text-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* RSS Feed Content Styling */
.twitter-embed-container .bg-[#23272f] {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-gray);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.twitter-embed-container .bg-[#23272f] h3 {
    color: var(--text-primary) !important;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.twitter-embed-container .bg-[#23272f] p {
    color: var(--text-primary) !important;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.twitter-embed-container .bg-[#23272f] a {
    color: var(--text-primary) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.twitter-embed-container .bg-[#23272f] a:hover {
    color: var(--text-secondary) !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .twitter-embed-container {
        min-height: 250px;
        padding: 1rem;
    }

    .twitter-loading {
        min-height: 150px;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .twitter-embed-container {
        min-height: 200px;
        padding: 0.75rem;
    }

    .twitter-loading {
        min-height: 120px;
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .twitter-loading {
        min-height: 100px;
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .twitter-loading::before {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }
}

/* ==========================================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ========================================================== */

/* Large screens (1200px+) */
@media (min-width: 1200px) {
    .max-w-5xl {
        max-width: 1200px;
    }

    .max-w-6xl {
        max-width: 1280px;
    }

    /* Hero section improvements */
    .hero-content h1 {
        font-size: 4.5rem;
        line-height: 1.1;
    }

    /* Market cards spacing */
    .grid[class*="grid-cols-3"] {
        gap: 2rem;
    }
}

/* Tablet landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Hero adjustments */
    .hero-content h1 {
        font-size: 3.5rem;
        line-height: 1.2;
    }

    .hero-content {
        padding: 1.5rem;
    }

    /* Twitter embeds - 2 columns */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .twitter-embed-container {
        min-height: 400px;
    }
}

/* Mobile landscape (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {

    /* Hero section */
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .hero-content {
        padding: 1rem;
        gap: 1.5rem;
    }

    /* Contract address card */
    .contract-address-card {
        padding: 1rem;
        font-size: 0.875rem;
    }

    /* Card padding adjustments */
    .card {
        padding: 1.5rem;
    }

    .twitter-embed-container {
        padding: 0.75rem;
        min-height: 350px;
    }

    .twitter-loading {
        height: 300px;
        font-size: 0.875rem;
    }

    /* Navbar adjustments */
    .nav-content {
        padding: 0.75rem 1rem;
    }

    .btn-buy {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Mobile portrait (320px - 479px) */
@media (max-width: 479px) {

    /* Hero section */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.4;
    }

    .hero-content {
        padding: 0.75rem;
        gap: 1rem;
    }

    /* Contract address card */
    .contract-address-card {
        padding: 0.75rem;
        font-size: 0.75rem;
    }

    .contract-address-card .flex.items-center {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    /* Section spacing */
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Section titles */
    .text-4xl.md\\:text-5xl {
        font-size: 1.875rem !important;
    }

    /* Card adjustments */
    .card {
        padding: 1rem;
    }

    .card .text-2xl.md\\:text-3xl {
        font-size: 1.5rem !important;
    }

    /* Twitter embeds */
    .twitter-embed-container {
        padding: 0.5rem;
        min-height: 280px;
    }

    .twitter-loading {
        height: 250px;
        font-size: 0.75rem;
    }

    /* Navbar mobile */
    .nav-content {
        padding: 0.5rem 0.75rem;
    }

    .nav-content .flex.items-center.gap-3 {
        gap: 0.5rem;
    }

    .nav-content .flex.items-center.gap-3 span {
        font-size: 1.25rem;
    }

    .nav-content .flex.items-center.gap-3 img {
        width: 2rem;
        height: 2rem;
    }

    .btn-buy {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Hide social icons on very small screens */
    .hidden.md\\:flex {
        display: none !important;
    }

    /* Marquee adjustments */
    .marquee-image {
        height: 100px;
        width: 100px;
        margin-right: 0.5rem;
    }

    /* Buttons mobile stack */
    .flex.flex-col.sm\\:flex-row {
        gap: 0.75rem;
    }

    .flex.flex-col.sm\\:flex-row .btn-buy,
    .flex.flex-col.sm\\:flex-row .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Extra small screens optimization */
@media (max-width: 359px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .contract-address-card {
        font-size: 0.625rem;
        padding: 0.5rem;
    }

    .card div {
        font-size: 1.25rem !important;
    }

    .twitter-loading {
        height: 200px;
        font-size: 0.625rem;
    }

    .btn-buy {
        padding: 0.25rem 0.5rem;
        font-size: 0.625rem;
    }

    section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ==========================================================
   FINAL MOBILE OPTIMIZATIONS
   ========================================================== */

/* Touch-friendly button sizing */
@media (max-width: 768px) {

    .btn-buy,
    .btn-secondary {
        min-height: 44px;
        /* Apple's recommended touch target */
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        /* Prevent zoom on touch */
    }

    /* Stack buttons vertically on mobile */
    .flex.flex-col.sm\\:flex-row.gap-4 {
        flex-direction: column;
        gap: 1rem;
    }

    .flex.flex-col.sm\\:flex-row.gap-4>* {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Improve text readability on small screens */
@media (max-width: 640px) {

    /* Ensure sufficient contrast and spacing */
    .text-gray-400 {
        color: #d1d5db;
        /* Lighter gray for better readability */
    }

    /* Better spacing for section headers */
    section h2 {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    section p {
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }

    /* Improve card readability */
    .card .text-gray-400 {
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }
}

/* Prevent horizontal scrolling */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Ensure contract address doesn't overflow */
    .contract-address-card .flex.items-center span {
        word-break: break-all;
        font-size: 0.75rem;
        line-height: 1.2;
    }

    /* Better marquee performance on mobile */
    .marquee-outer-container {
        will-change: transform;
        transform: translateZ(0);
        /* Force hardware acceleration */
    }
}

.text-sm,
.text-xs,
small,
.text-muted,
.text-gray-400,
.text-gray-300 {
    color: #fff !important;
}

/* JAX Features Section & Card Flip */
.jax-features-section {
    padding: 64px 0 32px 0;
    background: var(--jax-space);
}

.jax-features-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.jax-feature-card {
    overflow: visible;
    width: 190px;
    height: 254px;
}

.jax-feature-card .content {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 300ms;
    box-shadow: 0px 0px 10px 1px #000000ee;
    border-radius: 5px;
}

.jax-feature-card .front,
.jax-feature-card .back {
    background-color: var(--jax-space-light, #151515);
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 5px;
    overflow: hidden;
}

.jax-feature-card .back {
    width: 100%;
    height: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.jax-feature-card .back::before {
    position: absolute;
    content: ' ';
    display: block;
    width: 160px;
    height: 160%;
    background: linear-gradient(90deg, transparent, var(--jax-yellow), var(--jax-yellow), var(--jax-yellow), var(--jax-yellow), transparent);
    animation: rotation_481 5000ms infinite linear;
}

.jax-feature-card .back-content-jax {
    position: absolute;
    width: 99%;
    height: 99%;
    background-color: var(--jax-space-light, #151515);
    border-radius: 5px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.jax-feature-card:hover .content {
    transform: rotateY(180deg);
}

@keyframes rotation_481 {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

.jax-feature-card .front {
    transform: rotateY(180deg);
    color: white;
}

.jax-feature-card .front-content-jax {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.jax-feature-card .badge {
    background-color: #00000055;
    padding: 2px 10px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    width: fit-content;
}

.jax-feature-card .description {
    box-shadow: 0px 0px 10px 5px #00000088;
    width: 100%;
    padding: 10px;
    background-color: #00000099;
    backdrop-filter: blur(5px);
    border-radius: 5px;
}

.jax-feature-card .title {
    font-size: 11px;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
}

.jax-feature-card .title p {
    width: 50%;
}

.jax-feature-card .card-footer {
    color: #ffffff88;
    margin-top: 5px;
    font-size: 8px;
}

.jax-feature-card .jax-feature-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.jax-feature-card .circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--jax-yellow, #ffbb66);
    position: relative;
    filter: blur(15px);
    animation: floating 2600ms infinite linear;
}

.jax-feature-card #bottom {
    background-color: var(--jax-orange, #ff8866);
    left: 50px;
    top: 0px;
    width: 150px;
    height: 150px;
    animation-delay: -800ms;
}

.jax-feature-card #right {
    background-color: var(--jax-red, #ff2233);
    left: 160px;
    top: -80px;
    width: 30px;
    height: 30px;
    animation-delay: -1800ms;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 900px) {
    .jax-features-grid {
        gap: 1.2rem;
    }

    .jax-feature-card {
        width: 170px;
        height: 230px;
    }
}

@media (max-width: 600px) {
    .jax-features-section {
        padding: 32px 0 16px 0;
    }

    .jax-features-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .jax-feature-card {
        width: 95vw;
        max-width: 320px;
        height: 200px;
    }
}

/* Uiverse.io Flip Card Style khusus section utilitas JAX */
.uiverse-flip-section {
    padding: 48px 0 32px 0;
    background: transparent;
}

.uiverse-flip-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.uiverse-flip-card {
    overflow: visible;
    width: 190px;
    height: 254px;
    perspective: 1000px;
    border: 2px solid var(--border-gray);
    box-shadow: var(--shadow-outset);
}

.uiverse-flip-content {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 300ms;
    box-shadow: var(--shadow-outset);
    position: relative;
}

.uiverse-flip-card:hover .uiverse-flip-content {
    transform: rotateY(180deg);
}

.uiverse-flip-front,
.uiverse-flip-back {
    background-color: var(--bg-card);
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: 2px solid var(--border-gray);
    overflow: hidden;
}

.uiverse-flip-front {
    z-index: 2;
    color: var(--text-primary);
}

.uiverse-flip-front-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 18px 0 10px 0;
    gap: 0;
}

.uiverse-flip-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60%;
    min-height: 80px;
}

.uiverse-flip-card-body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 40%;
    min-height: 40px;
    padding-top: 8px;
}

.uiverse-flip-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.uiverse-flip-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.uiverse-flip-icon {
    font-size: 3rem;
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

.uiverse-flip-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
    max-width: 90%;
    display: block;
}

.uiverse-flip-back {
    transform: rotateY(180deg);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.uiverse-flip-back::before {
    position: absolute;
    content: ' ';
    display: block;
    width: 160px;
    height: 160%;
    border: 6px solid var(--jax-orange, #ff7c1a);
    background: linear-gradient(90deg, transparent, var(--jax-orange, #ff7c1a), var(--jax-orange, #ff7c1a), var(--jax-orange, #ff7c1a), var(--jax-orange, #ff7c1a), transparent);
    animation: rotation_481 2.5s infinite linear;
    z-index: 1;
    opacity: 0.7;
}

@keyframes rotation_481 {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

.uiverse-flip-back-content {
    position: absolute;
    width: 99%;
    height: 99%;
    background-color: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 2;
}

.uiverse-flip-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.uiverse-flip-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 18px 12px 16px 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    text-align: left;
    z-index: 2;
    border-top: 2px solid var(--border-gray);
}

.uiverse-flip-overlay h3 {
    color: var(--text-primary) !important;
    font-weight: bold;
    margin: 0 0 6px 0;
    font-size: 1.1rem;
}

.uiverse-flip-overlay p {
    color: var(--text-primary) !important;
    font-size: 0.72rem;
    margin: 0;
}

.uiverse-flip-icon .fa-lock {
    margin-top: 12px;
    font-size: 2.6rem;
}

@media (max-width: 600px) {
    .uiverse-flip-card-img {
        min-height: 56px;
    }

    .uiverse-flip-card-body {
        min-height: 28px;
    }

    .uiverse-flip-title {
        font-size: 1rem;
    }
}

.btn-social img,
.btn-buy img,
.btn-secondary img {
    filter: brightness(0) invert(1) !important;
}

.primary-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(360deg, var(--bg-primary) 5%, rgba(255, 255, 255, 0.0) 25%);
    opacity: 1;
    pointer-events: none;
    z-index: 1;

}

/* ==========================================================
   TWITTER FEED IMAGES STYLING
   ========================================================== */

.tweet-images {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tweet-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tweet-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tweet-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Multiple images layout */
.tweet-images:has(.tweet-image-container:nth-child(2)) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.tweet-images:has(.tweet-image-container:nth-child(3)) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.tweet-images:has(.tweet-image-container:nth-child(3)) .tweet-image-container:last-child {
    grid-column: 1 / -1;
}

.tweet-images:has(.tweet-image-container:nth-child(4)) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Image loading state */
.tweet-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.tweet-image-container img[src] {
    position: relative;
    z-index: 2;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

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

/* Responsive adjustments for tweet images */
@media (max-width: 768px) {
    .tweet-image {
        max-height: 150px;
    }

    .tweet-images:has(.tweet-image-container:nth-child(2)),
    .tweet-images:has(.tweet-image-container:nth-child(3)),
    .tweet-images:has(.tweet-image-container:nth-child(4)) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tweet-image {
        max-height: 120px;
    }

    .tweet-image-container {
        margin-bottom: 0.25rem;
    }
}

/* ==========================================================
   END TWITTER FEED IMAGES STYLING
   ========================================================== */

/* Windows 97 Title Bar Navbar */
.win97-titlebar {
    width: 100%;
    height: 32px;
    background: #000080;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
    box-sizing: border-box;
    font-family: 'Vividly-Regular', 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: bold;
    padding: 0 0.5rem;
    user-select: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    border-bottom: 2px solid #000;
}

.win97-titlebar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.win97-titlebar-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.4rem;
    image-rendering: pixelated;
}

.win97-titlebar-title {
    color: #fff !important;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-shadow: 1px 1px 0 #000, 0 1px 0 #000, 1px 0 0 #000;
    font-family: inherit;
}

.win97-titlebar-controls {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.win97-titlebar-btn {
    width: 24px;
    height: 22px;
    background: #c0c0c0;
    border: 2px solid #fff;
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    margin-left: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: background 0.1s;
}

.win97-titlebar-btn:active {
    background: #808080;
}

.win97-btn-symbol {
    color: #000;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1;
    pointer-events: none;
}

.win97-close {
    background: #c0c0c0;
}

.win97-close .win97-btn-symbol {
    color: #800000;
    font-weight: bold;
}

/* Win97 style social button for hero social box */
.win97-btn-social {
    background: #c0c0c0;
    border: 2px solid #808080;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-radius: 4px;
    box-shadow: 1px 1px 0 #404040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, background 0.18s;
}

.win97-btn-social:hover,
.win97-btn-social:focus {
    background: #e0e0e0;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
    border: 2px solid #404040;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    outline: none;
}

.win97-btn-social:active {
    background: #b0b0b0;
    box-shadow: inset 2px 2px 2px #808080;
    border: 2px solid #404040;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
}

/* Win97 style blue social button for hero social box */
.win97-btn-social-blue {
    background: #000080;
    border: 2px solid #808080;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-radius: 4px;
    box-shadow: 1px 1px 0 #404040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, background 0.18s;
}

.win97-btn-social-blue:hover,
.win97-btn-social-blue:focus {
    background: #0000a0;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
    border: 2px solid #404040;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    outline: none;
}

.win97-btn-social-blue:active {
    background: #000060;
    box-shadow: inset 2px 2px 2px #808080;
    border: 2px solid #404040;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
}

@media (max-width: 600px) {
    .win97-titlebar {
        font-size: 0.85rem;
        height: 28px;
    }

    .win97-titlebar-icon {
        width: 16px;
        height: 16px;
    }

    .win97-titlebar-btn {
        width: 20px;
        height: 18px;
        font-size: 0.9rem;
    }
}

/* Windows 97 Window Wrapper */
.win97-window {
    background: #c0c0c0;
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: 2px 2px 0 #808080, 4px 4px 0 #fff;
    max-width: 100%;
    margin: 0 auto 2rem auto;
    overflow: hidden;
}

.win97-window-content {
    padding: 1.5rem 1rem 1rem 1rem;
    background: #dfdfdf;
    border-top: 2px solid #808080;
}

.hero-window-content {
    padding-top: 32px;
    padding-right: 12px;
    padding-bottom: 16px;
    padding-left: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 120px;
    border-top: 1px solid #808080;
}

.hero-window-video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-window-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border-radius: 0;
    display: block;
}

.twitter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.twitter-embed-container {
    border-radius: 0;
    margin: 0;
    border: 1px solid #808080;
    border-top: none;
    border-left: none;
    background: #c0c0c0;
    box-shadow: none;
    min-height: 180px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.twitter-embed-container:first-child,
.twitter-embed-container:nth-child(2),
.twitter-embed-container:nth-child(3) {
    border-top: 1px solid #808080;
}

.twitter-embed-container:nth-child(3n+1) {
    border-left: 1px solid #808080;
}

/* Floating Windows 97 Error Cards in Hero - Vertical Centered Stacks */
.hero-floating-windows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.hero-float-stack {
    position: absolute;
    top: 50%;
    width: 280px;
    height: 180px;
    overflow: visible;
    transform: translateY(-50%);
}

.hero-float-stack-left {
    left: 3vw;
}

.hero-float-stack-right {
    right: 3vw;
}

.hero-float-1,
.hero-float-3 {
    position: relative;
    z-index: 2;
    transform: none;
    opacity: 1;
}

.hero-float-2 {
    position: absolute;
    top: 80px;
    left: 130px;
    z-index: 1;
    opacity: 0.85;
    transform: rotate(-6deg);
}

.hero-float-4 {
    position: absolute;
    top: 80px;
    right: 130px;
    z-index: 1;
    opacity: 0.85;
    transform: rotate(6deg);
}

.hero-float {
    width: 260px;
}

.hero-float-1.hero-float-front-reveal,
.hero-float-3.hero-float-front-reveal {
    transform: translateY(-100px) !important;
    transition: transform 0.5s cubic-bezier(.22, 1.61, .36, 1);
}

@media (max-width: 900px) {

    .hero-float-1.hero-float-front-reveal,
    .hero-float-3.hero-float-front-reveal {
        transform: translateY(-60px) !important;
    }
}

@media (max-width: 600px) {

    .hero-float-1.hero-float-front-reveal,
    .hero-float-3.hero-float-front-reveal {
        transform: translateY(-32px) !important;
    }
}

@media (max-width: 900px) {
    .hero-float-stack {
        width: 200px;
        height: 120px;
    }

    .hero-float-stack-left {
        left: 2vw;
    }

    .hero-float-stack-right {
        right: 2vw;
    }

    .hero-float-2 {
        top: 40px;
        left: 65px;
    }

    .hero-float-4 {
        top: 40px;
        right: 65px;
    }
}

@media (max-width: 600px) {
    .hero-float-stack {
        width: 130px;
        height: 70px;
    }

    .hero-float-2 {
        top: 18px;
        left: 32px;
    }

    .hero-float-4 {
        top: 18px;
        right: 32px;
    }
}

/* Windows error pop-in animation */
@keyframes win97-error-pop {
    0% {
        transform: scale(0.7) translateY(-40px) rotate(-12deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.05) translateY(8px) rotate(2deg);
        opacity: 1;
    }

    80% {
        transform: scale(0.98) translateY(-2px) rotate(-2deg);
    }

    100% {
        transform: scale(1) translateY(0) rotate(var(--final-rot, 0deg));
        opacity: 1;
    }
}

.animate-win97-error {
    animation: win97-error-pop 0.7s cubic-bezier(.22, 1.61, .36, 1) both;
}

.animate-win97-error-delay {
    animation: win97-error-pop 0.7s 0.25s cubic-bezier(.22, 1.61, .36, 1) both;
}

/* Windows 97 Progress Bar */
.win97-progress-bar {
    width: 80%;
    height: 18px;
    background: #fff;
    border: 2px inset #808080;
    margin: 32px auto 0 auto;
    box-shadow: 1px 1px 0 #c0c0c0;
    position: relative;
    overflow: hidden;
}

.win97-progress {
    width: 0%;
    height: 100%;
    background: repeating-linear-gradient(135deg, #008080 0 10px, #00ffff 10px 20px);
    animation: win97-progress-move 2s linear infinite;
}

@keyframes win97-progress-move {
    0% {
        width: 0%;
    }

    80% {
        width: 90%;
    }

    100% {
        width: 100%;
    }
}

.hero-btn-buy {
    @apply btn-secondary pixel-button;
    /* If @apply is not supported, copy the exact styles from .btn-secondary and .pixel-button below: */
    background: #c0c0c0;
    color: #111;
    border: 2px solid #808080;
    box-shadow: 2px 2px 0 #404040;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    min-width: 120px;
    text-align: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    outline: none;
    border-radius: 0;
    display: inline-block;
}

.hero-btn-buy:hover,
.hero-btn-buy:focus {
    background: #e0e0e0;
    color: #000;
    box-shadow: 2px 2px 0 #000;
    border-color: #404040;
}

.navbar-overlay .btn-social img {
    filter: grayscale(1) brightness(0) contrast(200%);
    transition: filter 0.3s, opacity 0.3s;
}

.navbar-overlay:has(.btn-social:hover) .btn-social:not(:hover) img {
    filter: grayscale(1) brightness(0) blur(2px);
    opacity: 0.4;
}

/* ==========================================================
   PRELOADER STYLES
   ========================================================== */

#preloader {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

#laptop-screen {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    border: 2px solid #333;
}

#laptop-screen::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 20px;
    background: #333;
    border-radius: 5px 5px 0 0;
    z-index: -1;
}

#enter-video {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#laptop-screen:hover #enter-video {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00, 0 0 60px #00ff00;
}

/* Overlay removed - video is directly clickable */

/* Full Screen Preloader Styles */
#preloader {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: var(--primary-orange);
}

/* Full Screen Spline Viewer Styling */
spline-viewer {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

spline-viewer:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 176, 79, 0.6), 0 0 40px rgba(255, 132, 0, 0.4);
}



/* Full Screen Spline Viewer is responsive by default */

/* Spline Overlay Text Styling */
.spline-overlay-text {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    text-align: center;
    pointer-events: none;
}

.overlay-title {
    color: var(--primary-orange);
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(254, 165, 61, 0.8);
    letter-spacing: 2px;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

/* Click Counter Styling */
.click-counter-container {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    text-align: center;
    pointer-events: none;
}

.click-counter {
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-orange);
    border-radius: 10px;
    padding: 15px 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(254, 165, 61, 0.6);
}

#click-count {
    color: var(--primary-orange);
    font-weight: bold;
}

/* Watermark Cover */
.watermark-cover {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 100px;
    background-color: #FFCF69;
    z-index: 10001;
    pointer-events: none;
}

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 10px rgba(254, 165, 61, 0.8);
    }

    100% {
        text-shadow: 0 0 20px rgba(254, 165, 61, 1), 0 0 30px rgba(254, 165, 61, 0.6);
    }
}

/* Responsive overlay text */
@media (max-width: 768px) {
    .overlay-title {
        font-size: 1rem;
    }

    .click-counter {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .watermark-cover {
        width: 150px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .overlay-title {
        font-size: 0.8rem;
    }

    .click-counter {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    .watermark-cover {
        width: 120px;
        height: 60px;
    }
}

/* ==========================================================
   TWITTER PRELOADER STYLES
   ========================================================== */

.twitter-preloader {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.8) contrast(1.2);
}

.preloader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.preloader-overlay .flex {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.preloader-overlay i {
    color: #1DA1F2;
    font-size: 1.5rem;
}

.preloader-overlay span {
    color: #333;
    font-weight: 500;
}

/* Hide preloader when tweet is loaded */
.twitter-embed-container.loaded .twitter-preloader {
    display: none;
}

/* ==========================================================
   TWITTER EMBED SECTION STYLES
   ========================================================== */