//* Base Reset & Typography */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    color: #333;
    background-color: #9b7ebd;
    min-height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    overflow-x: hidden;
}

img {
    vertical-align: middle;
    max-width: 100%;
    display: inline-block;
}

/* Headings */
h1 {
    color: #f49bab;
    margin-top: 0;
    margin-bottom: 1.875rem;
    font-family: Roboto, sans-serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 3.25rem;
}

/* Layout Containers */
.w-layout-blockcontainer {
    max-width: 58.75rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 87.5rem;
    height: 4.375rem;
    display: flex;
    justify-content: center;
}

.container-2 {
    width: 95%;
    max-width: 87.5rem;
    height: 100%;
    margin-left: 1.875rem;
    margin-right: 1.875rem;
}

/* Navigation Section */
.nav-bar {
    background-color: #7f55b1;
    border-bottom-right-radius: 12.5rem;
    border-bottom-left-radius: 12.5rem;
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    height: 4.375rem;
    padding-left: 3rem;
    padding-right: 3rem;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0.1875rem 0.625rem 0.1875rem rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle svg {
    width: 1.75rem;
    height: 1.75rem;
    stroke: var(--text-primary, #f49bab);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Mobile Menu Dropdown */
.mobile-menu {
    display: none;
    position: fixed;
    top: 4.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background-color: #7f55b1;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    overflow: hidden;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.mobile-menu-items .button-withoutbg {
    padding: 1rem 1.5rem !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 225, 224, 0.1);
}

.mobile-menu-items .button-withoutbg:last-child {
    border-bottom: none;
}

.mobile-menu-items .button-withoutbg:active {
    background-color: rgba(59, 2, 112, 0.3);
}

/* Logo Container */
.image {
    width: 11.25rem;
    min-width: 11.25rem;
    height: 100%;
    display: block;
    flex-shrink: 0;
    margin-right: auto;
}

.image-2 {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

/* Navigation Buttons */
.button-withoutbg {
    color: #f49bab !important;
    background-color: transparent !important;
    border: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Roboto, sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    line-height: 100% !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
    display: block !important;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Theme toggle alignment */
.theme-toggle {
    margin-left: auto;
    flex-shrink: 0;
}

/* Desktop nav items container */
.nav-items {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Main Content Wrapper */
.main-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Content Section */
.section-1 {
    width: 100%;
    height: auto;
    margin-top: 6.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

/* Discord wrapper */
.discord-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

/* Content Blocks */
.body-main {
    background-color: #7f55b1;
    border-left: 0.5rem solid #ffe1e0;
    border-radius: 1.875rem;
    box-shadow: 0.1875rem 0.1875rem 0.625rem 0.1875rem rgba(0, 0, 0, 0.2);
    max-width: 56.25rem;
    width: 100%;
    height: auto;
    margin-right: 0;
    padding: 1.875rem 3.75rem 1.875rem 1.875rem;
    flex-shrink: 1;
    min-width: 0;
}

.div-block-default {
    background-color: #7f55b1;
    border-left: 0.5rem solid #ffe1e0;
    border-radius: 1.875rem;
    box-shadow: 0.1875rem 0.1875rem 0.625rem 0.1875rem rgba(0, 0, 0, 0.2);
    height: auto;
    padding: 1.875rem 3.75rem 1.875rem 1.875rem;
    width: 25rem;
    margin-top: 0;
    margin-left: 0;
    flex-shrink: 0;
}

.image-big {
    width: 32.5rem;
    height: 32.5rem;
    margin-left: 0;
    margin-right: 0;
    display: block;
    flex-shrink: 0;
    position: relative;
    overflow: visible;

    /* Background image with mask applied */
    background-image: url('../images/pack.png');
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #7f55b1;
    transition: background-position 0.3s ease-out;

    /* Mask using the star shape */
    -webkit-mask-image: url('../images/star_masked.png');
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('../images/star_masked.png');
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
}

/* Wrapper for glow effect */
.image-big::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(249, 155, 171, 0.6) 0%, rgba(249, 155, 171, 0.4) 40%, transparent 70%);
    z-index: -1;
    animation: subtle-glow 4s ease-in-out infinite;
    pointer-events: none;
    filter: blur(30px);
}

/* Subtle glow animation */
@keyframes subtle-glow {
    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Text Blocks */
.text-block {
    color: #f49bab;
    font-family: Roboto, sans-serif;
    font-size: 1.25rem;
    line-height: 1.875rem;
}

.text-block strong {
    font-weight: 700;
}

.text-block-small {
    color: #f49bab;
    font-family: Roboto, sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.75rem;
}

.text-block-small strong {
    font-weight: 600;
}

/* Images */
.image-3 {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.star-main {
    z-index: 1;
}

.star-glow {
    z-index: 2;
    transform: scale(1.15);
    filter: brightness(2) blur(25px);
    opacity: 0.7;
    animation: glow-pulse 4s ease-in-out infinite;
}

.star-glow {
    z-index: 1;
    transform: scale(1.05);
    filter: brightness(0) invert(1) blur(24px);
    opacity: 0.8;
    animation: glow-pulse 2.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* Copy Button */
.copy-button-withbg {
    color: #f49bab !important;
    background-color: #3b0270 !important;
    border: none !important;
    border-radius: 1.875rem !important;
    margin-top: 3.75rem !important;
    margin-bottom: 0.5rem !important;
    padding: 0.75rem 1.25rem !important;
    font-family: Roboto, sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    line-height: 1.5rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.copy-button-withbg:hover {
    background-color: #531e9c !important;
    color: #ffe1e0 !important;
}

/* Discord Widget Container */
.discord-container {
    width: 25rem;
    aspect-ratio: 350 / 500;
    margin: 0 auto;
    position: relative;
    flex-shrink: 0;
}

.discord-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Star wrapper for proper sizing */
.star-wrapper {
    width: 32.5rem;
    height: 32.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design for tablets and smaller laptops */
@media screen and (max-width: 991px) {
    .w-layout-blockcontainer {
        max-width: 45.5rem;
    }

    .nav-bar {
        border-bottom-right-radius: 2.8125rem;
        border-bottom-left-radius: 2.8125rem;
        gap: 1.2rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .image {
        width: 8rem;
        min-width: 8rem;
    }

    .button-withoutbg {
        font-size: 1.15rem !important;
    }

    h1 {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .main-content-wrapper {
        padding: 0 2rem;
    }
}

/* Responsive Design for mobile devices */
@media screen and (max-width: 767px) {
    .w-layout-blockcontainer {
        max-width: none;
    }

    h1 {
        font-size: 1.75rem;
        line-height: 2rem;
        margin-bottom: 1.25rem;
    }

    /* Mobile Navigation - Compact with hamburger menu */
    .nav-bar {
        height: 3.5rem;
        padding: 0.5rem 1rem;
        border-bottom-right-radius: 1.25rem;
        border-bottom-left-radius: 1.25rem;
        gap: 0.75rem;
        max-width: 100%;
    }

    /* Hide desktop nav items on mobile */
    .nav-items {
        display: none;
    }

    /* Show hamburger menu button on mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Adjust mobile menu position */
    .mobile-menu {
        top: 3.5rem;
    }

    /* Logo smaller on mobile */
    .image {
        width: 7rem;
        min-width: 7rem;
        height: 2.5rem;
    }

    .image-2 {
        height: 100%;
        width: auto;
    }

    /* Theme toggle on mobile */
    .theme-toggle {
        padding: 0.25rem !important;
        margin-left: auto !important;
    }

    .theme-toggle svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    /* Main content adjustments */
    .main-content-wrapper {
        padding: 0 1rem;
    }

    .section-1 {
        flex-direction: column;
        margin-top: 4.5rem;
        gap: 1.5rem;
    }

    .body-main {
        margin-right: 0;
        margin-bottom: 0;
        padding: 1.25rem 1.25rem 1.5rem 1.25rem;
        width: 100%;
        border-left-width: 0.375rem;
    }

    .text-block {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .text-block-small {
        font-size: 0.95rem;
        line-height: 1.4rem;
    }

    .copy-button-withbg {
        margin-top: 1.5rem !important;
        width: 100%;
    }

    /* Star wrapper responsive - DISABLE PARALLAX */
    .star-wrapper {
        width: 100%;
        max-width: 20rem;
        height: auto;
        aspect-ratio: 1;
    }

    .image-big {
        width: 100%;
        height: 100%;
        margin-left: 0;
        margin-bottom: 0;
        pointer-events: none; /* Disable parallax interaction */
    }

    .container-2 {
        margin-left: 0.9375rem;
        margin-right: 0.9375rem;
    }

    .discord-wrapper {
        width: 100%;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }

    .div-block-default {
        margin-top: 0;
        padding: 1.25rem;
        width: 100%;
        max-width: 25rem;
        margin-left: auto;
        margin-right: auto;
        border-left-width: 0.375rem;
    }

    .discord-container {
        width: 100%;
        max-width: 21.875rem;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .nav-bar {
        height: 3.25rem;
        padding: 0.5rem 0.75rem;
    }

    .mobile-menu {
        top: 3.25rem;
    }

    .image {
        width: 6rem;
        min-width: 6rem;
        height: 2.25rem;
    }

    .mobile-menu-items .button-withoutbg {
        font-size: 1.1rem !important;
        padding: 0.875rem 1.25rem !important;
    }

    h1 {
        font-size: 1.5rem;
        line-height: 1.75rem;
    }

    .text-block {
        font-size: 0.95rem;
        line-height: 1.4rem;
    }

    .body-main {
        padding: 1rem;
    }

    .div-block-default {
        padding: 1rem;
    }

    .star-wrapper {
        max-width: 18rem;
    }
}