:root {
    --primary-color: #ffffff;
    --text-color-dark: #000000;
    --accent-color: #ff0000;
    --hover-bg: #f0f0f0;
    --nav-height: 10vh;
}

html {
    cursor: url('cursor_xl.png'), auto;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('cursor_xl.png'), auto;
}

body {
    background-color: #000000;
    /* Black to prevent red flash */
    font-family: 'Henny Penny', system-ui, cursive;
    color: var(--primary-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Dedicated Fixed Background Element for Performance */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('wojakmasbackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    will-change: transform;
    /* Hint to browser for optimization */
    background-color: #000000;
    /* Fallback color */
}

.main-wrapper {
    width: 100%;
    min-height: 100vh;
    /* Background removed here, handled by .fixed-background */
    display: block;
    padding-top: calc(var(--nav-height) + 5vh);
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-image: url('navbar_pattern.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5vh 3.2vh;
    z-index: 1000;
    box-shadow: 0 0.2vh 1vh rgba(0, 0, 0, 0.3);
}

.nav-button-link {
    display: block;
}

.nav-button-img {
    height: auto;
    width: auto;
    filter: drop-shadow(0 0.2vh 0.4vh rgba(0, 0, 0, 0.1));
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-button-link:hover .nav-button-img {
    transform: scale(1.1);
}

/* Nav Menu (Desktop) */
.nav-menu {
    display: flex;
    gap: 1.6vh;
    align-items: center;
}

.hamburger-menu {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 3vh;
    height: 2.5vh;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 3vh;
    height: 0.3vh;
    background: white;
    border-radius: 1vh;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 0.1vh;
}

/* Mobile Right Controls (X + Hamburger) */
.mobile-right-controls {
    display: none;
    /* Hidden on desktop */
}

/* Specific button sizing */
.buy-link {
    position: absolute;
    left: 16%;
    top: 50%;
    transform: translateY(-50%);
}

.buy-link .nav-button-img {
    height: 13vh;
}

.about-link .nav-button-img {
    height: 7vh;
}

.roadmap-link .nav-button-img {
    height: 14vh;
}

.how-to-buy-link .nav-button-img {
    height: 7vh;
}

.art-link .nav-button-img {
    height: 11vh;
}

.x-link-desktop {
    position: absolute;
    right: 22%;
    top: 50%;
    transform: translateY(-50%);
}

.x-link-desktop .nav-button-img {
    height: 8vh;
}

.container {
    text-align: center;
    padding: 3.2vh;
    width: 100%;
    max-width: 120vh;
    margin: 0 auto;
}

.title {
    font-size: 13.2vh;
    margin-top: 23vh;
    margin-bottom: 2.5vh;
    letter-spacing: 0.2vh;
    text-shadow:
        0 0 1vh rgba(255, 255, 255, 0.8),
        0 0 2vh rgba(255, 255, 255, 0.6),
        0 0 3vh rgba(255, 255, 255, 0.4),
        0.4vh 0.4vh 0vh rgba(0, 0, 0, 0.5);
}

.ca-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6vh;
    background: rgba(255, 255, 255, 0.5);
    padding: 1.3vh 2.4vh;
    border-radius: 5vh;
    box-shadow: 0 0.4vh 2vh rgba(0, 0, 0, 0.2);
    border: 0.2vh solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-wrap: nowrap;
    margin-bottom: 20vh;
    color: var(--text-color-dark);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.ca-container:hover {
    transform: translateY(-0.2vh);
    box-shadow: 0 0.8vh 3vh rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.ca-text {
    font-size: 2.5vh;
    word-break: break-all;
    font-family: 'Unkempt', cursive;
    font-weight: bold;
}

.copy-btn {
    background: black;
    color: white;
    border: none;
    padding: 1.3vh 2.4vh;
    border-radius: 3vh;
    font-family: 'Henny Penny', cursive;
    font-size: 1.9vh;
    display: flex;
    align-items: center;
    gap: 0.8vh;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #333;
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-icon {
    width: 1.2em;
    height: 1.2em;
}

.video-container {
    margin: 6.4vh auto 3.2vh;
    width: 90%;
    max-width: 60vh;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.meow-video {
    width: 150%;
    border-radius: 2vh;
    border: 0.3vh solid #fff;
    box-shadow:
        0 0 2vh rgba(255, 255, 255, 0.9),
        0 0 4vh rgba(255, 215, 0, 0.6),
        0 0 6vh rgba(255, 69, 0, 0.4);
    transition: transform 0.3s ease;
}

.meow-video:hover {
    transform: scale(1.02);
}

/* About Section Styles */
.about-section {
    padding: 6.4vh 3.2vh;
    margin-top: 20vh;
    text-align: center;
    opacity: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 3vh;
    scroll-margin-top: calc(var(--nav-height) + 3.2vh);
    font-family: 'Unkempt', cursive;
    max-width: 100vh;
    margin-left: auto;
    margin-right: auto;
}

.about-title {
    font-size: 6.4vh;
    margin-bottom: 2.4vh;
    text-shadow: 0.2vh 0.2vh 0vh rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.about-text {
    font-size: 2.9vh;
    max-width: 80vh;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0.1vh 0.1vh 0vh rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

/* Roadmap Section Styles */
.roadmap-section {
    padding: 6.4vh 3.2vh;
    margin-top: 10vh;
    text-align: center;
    opacity: 0;
}

.roadmap-title {
    font-size: 9.6vh;
    margin-bottom: 4.8vh;
    text-shadow: 0.2vh 0.2vh 0vh rgba(0, 0, 0, 0.5);
    color: #fff;
}

.roadmap-phases {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 70vh;
    margin: 0 auto;
    position: relative;
    padding: 3.2vh 0;
}

/* Vertical Christmas path connecting phases */
.roadmap-phases::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0.6vh;
    background: linear-gradient(to bottom,
            #e74c3c 0%,
            #f39c12 20%,
            #2ecc71 40%,
            #3498db 60%,
            #9b59b6 80%,
            #e74c3c 100%);
    transform: translateX(-50%);
    border-radius: 1vh;
    box-shadow: 0 0 2vh rgba(255, 255, 255, 0.3);
}

.phase {
    background: rgba(0, 0, 0, 0.8);
    padding: 2.4vh 3.2vh;
    border-radius: 1.5vh;
    border: 0.3vh solid;
    transition: all 0.3s ease;
    position: relative;
    margin: 2.4vh 0;
    z-index: 1;
    box-shadow: 0 0.4vh 1.5vh rgba(0, 0, 0, 0.3);
    font-family: 'Unkempt', cursive;
}

/* Alternating left and right */
.phase:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
    width: 45%;
}

.phase:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    width: 45%;
}

/* Christmas ornament on the path */
.phase::after {
    content: '🎄';
    position: absolute;
    font-size: 3.2vh;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.phase:nth-child(odd)::after {
    right: -6vh;
}

.phase:nth-child(even)::after {
    left: -6vh;
}

/* Different Christmas icons for variety */
.phase-1::after {
    content: '🎁';
}

.phase-2::after {
    content: '🧥';
}

.phase-3::after {
    content: '🎄';
}

.phase-4::after {
    content: '💎';
}

.phase:hover {
    transform: scale(1.05);
    box-shadow: 0 0.8vh 2.5vh rgba(255, 255, 255, 0.4);
}

.phase-1 {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
}

.phase-2 {
    border-color: #f39c12;
    background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
}

.phase-3 {
    border-color: #2ecc71;
    background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
}

.phase-4 {
    border-color: #3498db;
    background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
}

.phase-number {
    font-size: 2.7vh;
    font-weight: bold;
    margin-bottom: 0.8vh;
    color: #ffffff;
    text-shadow: 0.1vh 0.1vh 0.2vh rgba(0, 0, 0, 0.5);
}

.phase-content {
    font-size: 3.4vh;
    color: #ffffff;
    text-shadow: 0.1vh 0.1vh 0.2vh rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Art Gallery Section */
.art-section {
    padding: 6.4vh 0 0 0;
    margin-top: 0;
    text-align: center;
    opacity: 0;
    width: 100%;
    background-color: #8B0000;
    background-image: url('art_background.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    /* Removed background-attachment: scroll as it is default */
    position: relative;
    min-height: 100vh;
    z-index: 10;
    /* Ensure it sits on top */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.art-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8vh;
    width: 100%;
    max-width: 100%;
    margin: 1.2vh auto 0;
    padding: 0 0.8vh;
}

.art-gallery img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: 0 0.4vh 1.5vh rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    /* Optimize for hover effect */
}

.art-gallery img:hover {
    box-shadow: 0 0.8vh 2.5vh rgba(255, 255, 255, 0.4);
    z-index: 10;
    position: relative;
}

/* Snowflakes */
.snowflake {
    position: fixed;
    top: -1vh;
    color: #fff;
    font-size: 1em;
    font-family: Arial;
    text-shadow: 0 0 0.1vh #000;
    user-select: none;
    z-index: 9999;
    pointer-events: none;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2vh);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* How to Buy Section */
.how-to-buy-section {
    background: rgba(18, 24, 38, 0.95);
    border-radius: 3vh;
    padding: 6.4vh 4.8vh;
    margin: 8vh auto;
    max-width: 110vh;
    box-shadow: 0 0 4vh rgba(0, 0, 0, 0.5);
    text-align: left;
    color: white;
    font-family: sans-serif;
    border: 0.1vh solid rgba(255, 255, 255, 0.1);
    scroll-margin-top: calc(var(--nav-height) + 3.2vh);
}

.htb-subtitle {
    font-size: 1.4vh;
    letter-spacing: 0.3vh;
    color: #64748b;
    margin-bottom: 0.8vh;
    text-transform: uppercase;
    font-weight: bold;
}

.htb-title {
    font-size: 5.6vh;
    font-weight: 800;
    margin-bottom: 4.8vh;
    font-family: 'Unkempt', cursive;
    text-shadow: none;
}

.steps-container {
    font-family: 'Unkempt';
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30vh, 1fr));
    gap: 3.2vh;
    margin-bottom: 6.4vh;
}

.step-card {
    background: rgba(30, 41, 59, 0.6);
    padding: 4vh;
    border-radius: 2vh;
    border: 0.1vh solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-0.5vh);
    background: rgba(30, 41, 59, 0.8);
}

.step-number {
    width: 10vh;
    height: 3vh;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 2.4vh;
    box-shadow: 0 0 1.5vh rgba(59, 130, 246, 0.5);
    margin: 0 auto;
}

.step-title {
    font-size: 2.4vh;
    margin-bottom: 1.6vh;
    font-weight: bold;
    margin: 1.5vh 0;
}

.step-desc {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 1.8vh;
}

.buy-now-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background: #60a5fa;
    color: #0f172a;
    padding: 1.9vh 4.8vh;
    border-radius: 5vh;
    font-weight: bold;
    font-size: 1.9vh;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 2vh rgba(96, 165, 250, 0.4);
    font-family: 'Unkempt';
}

.buy-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 3vh rgba(96, 165, 250, 0.6);
    background: #93c5fd;
}

/* Footer */
.footer {
    text-align: center;
    padding: 4.8vh 3.2vh 3.2vh;
    font-family: 'Unkempt', cursive;
    color: var(--primary-color);
    margin-top: 3.2vh;
    position: relative;
}

.footer-divider {
    width: 80%;
    max-width: 60vh;
    height: 0.3vh;
    background: white;
    margin: 0 auto 3.2vh;
    box-shadow: 0 0 1vh rgba(255, 255, 255, 0.5);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.2vh;
    margin-bottom: 2.4vh;
    flex-wrap: wrap;
}

.footer-pfp {
    width: 12vh;
    height: 12vh;
    border-radius: 50%;
    border: 0.4vh solid white;
    box-shadow: 0 0 2vh rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.3s ease;
}

.footer-pfp:hover {
    box-shadow: 0 0 3vh rgba(255, 255, 255, 0.8);
}

.footer-x-button {
    background: white;
    color: #000;
    padding: 1.6vh 3.2vh;
    border-radius: 5vh;
    font-family: 'Unkempt', cursive;
    font-size: 2.1vh;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0.4vh 1.5vh rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.footer-x-button:hover {
    background: #f0f0f0;
    transform: translateY(-0.3vh);
    box-shadow: 0 0.6vh 2vh rgba(255, 255, 255, 0.5);
}

.footer-copyright {
    font-size: 1.6vh;
    opacity: 0.8;
    text-transform: uppercase;
    margin-top: 1.6vh;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.5vh 1.6vh;
        height: 10vh;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-right-controls {
        display: flex;
        align-items: center;
        gap: 1.6vh;
    }

    .hamburger-menu {
        display: flex;
        position: static;
        /* Reset absolute */
        transform: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 10vh;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 3.2vh 0;
        gap: 3.2vh;
        border-bottom: 0.2vh solid white;
    }

    .nav-menu.active {
        display: flex;
    }

    .x-link-desktop {
        display: none;
    }

    .x-link-mobile-navbar {
        display: block;
    }

    .buy-link {
        position: static;
        transform: none;
        margin-left: 0;
    }

    .buy-link .nav-button-img {
        height: 9vh;
        /* Increased size using vh */
    }

    .nav-button-img {
        height: 4vh !important;
    }

    .x-link-mobile-navbar .nav-button-img {
        height: 8vh !important;
        /* Updated to 8vh */
    }

    .title {
        font-size: 5vh;
        /* Reduced size to fit on one line */
        margin-top: 10vh;
        word-wrap: normal;
        /* Prevent wrapping */
        padding: 0 0.5vh;
        white-space: nowrap;
        /* Force single line */
    }

    .ca-container {
        flex-direction: column;
        padding: 2.4vh 1.6vh;
        border-radius: 2vh;
        margin-bottom: 5vh;
        width: 95%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ca-text {
        font-size: 1.6vh;
        text-align: center;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .about-title {
        font-size: 4vh;
    }

    .about-text {
        font-size: 1.9vh;
        padding: 0 1.6vh;
    }

    .roadmap-title {
        font-size: 4.8vh;
    }

    .roadmap-section {
        margin-top: 9.6vh;
    }

    /* Mobile: stack phases vertically */
    .phase:nth-child(odd),
    .phase:nth-child(even) {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .phase::after {
        left: -4vh !important;
        right: auto !important;
    }

    .roadmap-phases::before {
        left: 2vh;
    }

    .phase {
        padding: 1.9vh 2.4vh;
        margin-left: 5vh;
    }

    .phase-number {
        font-size: 1.8vh;
    }

    .phase-content {
        font-size: 1.8vh;
    }

    .art-gallery {
        grid-template-columns: 1fr;
        gap: 2.4vh;
    }

    .how-to-buy-section {
        padding: 3.2vh 1.6vh;
        margin: 4.8vh auto;
        width: 95%;
    }

    .htb-title {
        font-size: 4vh;
    }

    .buy-now-btn {
        font-size: 1.6vh;
        /* Smaller font for button */
        padding: 1.6vh 2.4vh;
        /* Reduced padding */
        width: 90%;
        /* Fit container width */
        white-space: nowrap;
        /* Prevent wrapping */
    }
}