/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */
   :root {
    --max-width: 1280px;
    --primary-color: #764393;
    --secondary-color: #f5f5f5;
    --section-spacing: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/*Note that this part is SC version specific*/
body {
    font-family: 'DM Sans', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    background: linear-gradient(22deg, #ae8fce 0%, #d3c6dd 10%, #F1ECF4 50%,  #d7c6de 80%, #ddd7df 90%, #bf84b7 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

/* New pseudo-element for colorful, moving radial gradients */
body::before {
    content: '';
    position: fixed;
    inset: -20%; /* Make it larger than the viewport to avoid hard edges when rotating */
    z-index: -5; /* Place it behind content but above the base background */
    pointer-events: none;
    background: 
        radial-gradient(circle at 15% 25%, #e8cce4 0%, transparent 25%),
        radial-gradient(circle at 85% 35%, #e0a8e8 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, #8244a5 0%, transparent 25%),
        radial-gradient(circle at 20% 85%, #bfa9d3 0%, transparent 20%);
    filter: blur(120px);
    opacity: 0.6;
    animation: background-pan 60s linear infinite;
}



/*Note that this part is TC version specific*/
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    font-weight: 700;
}

@keyframes banner-arrow-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* New animation for the body background effect */
@keyframes background-pan {
    0% { transform: rotate(0deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1.2); }
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0);}
}

main {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1rem;
}

.section-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.nowrap {
    white-space: nowrap;
}
/* ==========================================================================
   1.2 Background Bubbles
   ========================================================================== */
.bubble-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(35px);
    opacity: 0.3;
    animation: bubble-move 24s linear infinite;
    will-change: transform, opacity;
    background: radial-gradient(circle at 60% 40%, var(--bubble-color1), var(--bubble-color2) 50%);
}

/* New style for darker bubbles */
.bubble--dark {
    opacity: 0.45;
    filter: blur(50px);
    background: radial-gradient(circle at 60% 40%, var(--bubble-color1), var(--bubble-color2) 70%);
}

@keyframes bubble-move {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.38;
    }
    50% {
        opacity: 0.55;
    }
    100% {
        transform: translateY(-120vh) scale(1.12);
        opacity: 0.38;
    }
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease, transform 0.35s ease;
    z-index: 1000;
    height: 80px;
}

.top-nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(106, 44, 145, 0.06);
    transition: background 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    height: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    height: 56px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #764393;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-links a:hover {
    color: #5c3572;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 1001;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

.nav-item:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: normal;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #F1ECF4;
    color: #764393;
}

/* Language Selector */
.language-selector select {
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.3);
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23764393" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.language-selector select:hover {
    border-color: var(--primary-color);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 44, 145, 0.1);
}

.language-selector option {
    padding: 0.5rem;
    background: white;
    color: #333;
}

/* Hamburger & Mobile Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none; /* Hidden by default, shown in media query */
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-item a {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    color: #764393;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.mobile-menu-item .toggle-arrow {
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: #764393;
    transition: transform 0.3s ease;
}

.mobile-menu-item.active .toggle-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f8f8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-submenu.active {
    max-height: 200px;
}

.mobile-submenu li a {
    display: block;
    padding: 1rem 1.5rem 1rem 2.5rem;
    color: #333;
    font-weight: normal;
    font-size: 1rem;
    text-decoration: none;
}

.mobile-submenu li a:hover {
    color: #764393;
}

.mobile-language-selector {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Changed from flex-end */
    padding: 1rem 1.5rem; /* Adjusted padding */
    gap: 1rem; /* Increased gap */
    color: #764393;
}

.mobile-language-selector i {
    font-size: 1.2rem;
    padding: 0; /* Removed padding */
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 1rem; /* Added gap between language links */
}

.lang-switch a {
    text-decoration: none;
    color: #764393;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.lang-switch a:hover {
    color: #5E3676;
}

.lang-switch a.active {
    color: #764393;
}

/* ==========================================================================
   3. Banner / Hero Section
   ========================================================================== */
.banner {
    position: relative;
    width: 100%;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 40px;
    z-index: 1;
    
}

.banner::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Gradient background with soft colors, fading to transparent at the bottom */
    background: linear-gradient(
        180deg,
        #d95ec8 15%, /* Soft Pink */
        #957aa7 50%, /* Purple */
        rgba(255, 255, 255, 0) 100% /* Transparent */
    );
    filter: blur(100px);
    /* Add animation for a breathing effect */
    background-size: 100% 200%;
    animation: banner-bg-move 15s ease-in-out infinite;
}

.banner-inner {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 2rem 2.5rem; /* Increased top padding from 2.5rem to 5rem */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-sizing: border-box;
    position: relative;
    min-height: 130px;
    z-index: 2;
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #764393;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 16px rgba(213,197,222,0.18);
}

.banner-title .brand {
    font-weight: 600;
    font-family: 'DM Sans', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    display: block;
    position: relative;
    
    /* --- Shine Effect on Text --- */
    /* 1. Set a base color and the shine gradient as background layers */
    background-image: linear-gradient(70deg, transparent 15%, #472858 40%, transparent 80%),
                      linear-gradient(170deg, #5E3676, #764393);
    
    /* 2. Set background size and position for animation */
    background-size: 200% 100%, 100% 100%;
    background-position: 200% 0, 0 0;
    background-repeat: no-repeat;

    /* 3. Clip the background to the text shape */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* 4. Make the text color transparent to reveal the background */
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* --- End Shine Effect --- */

    animation: slide-fade-up 900ms cubic-bezier(.16, .8, .24, 1) both, 
               subtle-breathe 4200ms ease-in-out 1200ms infinite,
               text-shine 5s ease-in-out 2s infinite; /* Re-using the text-shine animation */
    animation-delay: 120ms, 1200ms, 2s;
    will-change: transform, opacity, background-position;
}


.banner-title .title-rest {
    color: var(--primary-color);
    font-weight: 500;
    font-family: 'DM Sans', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
    font-size: clamp(3rem, 3.6vw, 4rem);
    display: block;
    animation: slide-fade-up 900ms cubic-bezier(.16, .8, .24, 1) both;
    animation-delay: 420ms;
    will-change: transform, opacity;
}

.banner-arrow {
    position: absolute;
    bottom: 28px;
    transform: translateX(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(118, 67, 147, 0.9), rgba(106, 44, 145, 0.9));
    border: 1px solid rgba(213, 197, 222, 0.18);
    display: none; /* changed from inline-flex to flex for better centering */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(118, 67, 147, 0.18);
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
    animation: arrow-bounce 1.8s infinite;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    /* Remove any margin or float that could affect centering */
}

.banner-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.12) 60%, rgba(255, 255, 255, 0.00) 100%);
    mix-blend-mode: overlay;
    opacity: 0.9;
    transform: translateX(-120%);
    transition: opacity 0.3s;
    animation: banner-arrow-shine 2.6s linear infinite;
    pointer-events: none;
}

.banner-arrow svg {
    display: block;
    margin: 0 auto;
    transform-origin: center;
    animation: banner-arrow-float 2.6s ease-in-out infinite;
}

.banner-arrow:hover {
    transform: translateX(-50%) scale(1.06);
    box-shadow: 0 18px 44px rgba(118, 67, 147, 0.22);
}

.banner-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 6px rgba(106, 44, 145, 0.12);
}

/* Animations */
@keyframes banner-bg-move {
    0% { background-position: center 40%; }
    50% { background-position: center 60%; }
    100% { background-position: center 40%; }
}

@keyframes banner-overlay-breathe {
    0% { transform: translateY(0) scale(1); opacity: 0.02; }
    50% { transform: translateY(-8px) scale(1.01); opacity: 0.06; }
    100% { transform: translateY(0) scale(1); opacity: 0.02; }
}

@keyframes slide-fade-up {
    0% { opacity: 0; transform: translateY(28px); }
    60% { opacity: 1; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes subtle-breathe {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

@keyframes banner-arrow-shine {
    0% { transform: translateX(-140%); opacity: 0; }
    10% { opacity: 0.6; }
    50% { transform: translateX(20%); opacity: 0.9; }
    90% { opacity: 0.4; }
    100% { transform: translateX(120%); opacity: 0; }
}

@keyframes text-shine {
    from { background-position: 200% 0, 0 0; }
    to { background-position: -200% 0, 0 0; }
}

@keyframes banner-arrow-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0);}
    50% { transform: translateY(12px);}
}

.categories h2,
.sticker-pack-title,
.platform-carousel-section h2,
.faq-section h2 {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.9s cubic-bezier(0.16, 0.8, 0.24, 1);
    will-change: opacity, transform;
}

/* State when the element is visible in the viewport */
.categories h2.in-view,
.sticker-pack-title.in-view,
.platform-carousel-section h2.in-view,
.faq-section h2.in-view {
    opacity: 1;
    transform: translateY(0);
}



/* ==========================================================================
   4. Content Sections
   ========================================================================== */

/* Category Section */
.categories h2 {
    margin: 2rem 0 1rem;
    color: #764393;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.category-card {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #7D2882;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-card:hover::before {
    opacity: 0.8;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    z-index: 2;
}

.card-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

/* Sticker Pack Title Styling */
.sticker-pack-title {
    grid-column: 1 / -1; /* Make title span all grid columns */
    text-align: center;
    margin-bottom: 2rem; /* Space between title and stickers */
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: slide-fade-up 900ms cubic-bezier(.16, .8, .24, 1) both;
    animation-delay: 200ms;
    will-change: transform, opacity;
}

.sticker-pack-title h3 {
    font-size: 2.1rem;
    font-weight: 700;
    /* color: #5E3676; */ /* Replaced with gradient */
    margin-bottom: 0.5rem;
    text-shadow: none;
    position: relative;
    /* Add gradient text effect */
    background: linear-gradient(180deg, #5E3676 0%, rgba(126, 78, 155, 0.9) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.sticker-pack-title h3::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #764393, #5E3676);
    border-radius: 2px;
    margin: 0 auto 1rem;
}

.sticker-pack-title p {
    font-size: 1.2rem;
    color: #666; /* Changed from semi-transparent white */
    margin: 0;
    text-shadow: none;
}

/* Sticker Grid Section */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(243, 238, 246, 0.36), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(106, 44, 145, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sticker-grid::before {
    content: '';
    position: absolute;
    inset: -2%;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(216, 207, 222, 0.75), rgba(122, 46, 146, 0.10));
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 0;
}

.sticker-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(204, 176, 222, 0.12);
}

.sticker-grid:hover::before {
    opacity: 0.12;
    transform: scale(1);
}

.sticker-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* Download Section */
.download-section {
    grid-column: 1 / -1;
    text-align: center;
    margin: 2rem 0 0;
    padding: 1rem;
    display: flex;
    flex-direction: column; /* FIX 2: Ensure vertical layout on mobile */
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* FIX 2: Adjust gap for vertical layout */
}

.download-title {
    font-size: 1.5rem;
    color: #764393;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.download-platforms {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Adjusted gap for better spacing */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center the icons */
}

.platform-icon {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(118, 67, 147, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* overflow is visible by default, which is correct for the tooltip */
}
.platform-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #764393, rgba(118, 67, 147, 0.5));
    border: 1px solid rgba(213, 197, 222, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 0;
}
/* Tooltip layer */
.platform-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5E3676;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.platform-icon:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 9px 22px rgba(118, 67, 147, 0.2);
}

.platform-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
    transition-delay: 0.3s;
}

/* Image is the top layer */
.platform-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.28s ease;
    will-change: transform;
    position: relative; /* Ensures image is on top of the ::before pseudo-element */
    z-index: 1;
}

.platform-icon:active img {
    transform: scale(0.92);
}



.sticker-section-outro {
    text-align: center;
    color: #555;
    font-size: 1.2rem;
    max-width: 1000px;
    margin: 2rem auto 12rem;
    line-height: 1.7;
}

.sticker-pack-spacer {
    height: 60px;
    width: 100%;
}

/* Carousel Buttons (Shared) */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(118, 67, 147, 0.14);
    color: rgba(118, 67, 147, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
    box-shadow: 0 4px 10px rgba(118, 67, 147, 0.06);
}

.carousel-button:hover {
    background: rgba(118, 67, 147, 0.24);
    box-shadow: 0 8px 20px rgba(118, 67, 147, 0.10);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

/* Download Banner Section */
.download-banner {
    background: linear-gradient(135deg, #000000 0%, #6a2c91 100%);
    padding: 4rem 0;
    margin-top: 4rem;
    overflow: hidden;
}

.download-banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.download-text {
    flex: 1;
    color: white;
    margin-bottom: 10px;
}

.download-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.download-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.download-video {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.download-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* Platform Carousel Section */
.platform-carousel-section {
    margin: 4rem 0;
}

.platform-carousel-section h2 {
    color: #764393;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.platform-carousel {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 50px;
}

.platform-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.platform-grid::-webkit-scrollbar {
    display: none;
}

.platform-card {
    scroll-snap-align: start;
    flex: 0 0 24%;
    margin-right: 1.333%;
    margin-top: 1.333%;
    margin-bottom: 2.333%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(224, 211, 231, 0.36), rgba(255, 255, 255, 0.17));
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(106, 44, 145, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.platform-card::before {
    content: '';
    position: absolute;
    inset: -2%;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(213, 197, 222, 0.75), rgba(122, 46, 146, 0.10));
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 0;
}

.platform-card > * {
    position: relative;
    z-index: 1;
}

.platform-card:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 14px 36px rgba(204, 176, 222, 0.12);
    background: linear-gradient(135deg, rgba(234, 221, 241, 0.4), rgba(247, 245, 248, 0.489));
}

.platform-card:hover::before {
    opacity: 0.12;
    transform: scale(1);
}

.platform-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.platform-card img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.platform-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 0 2rem;
}

.faq-section h2 {
    color: #764393;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(213, 197, 222, 0.35), rgba(255, 255, 255, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(106, 44, 145, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.faq-item::before {
    content: '';
    position: absolute;
    inset: -2%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(213, 197, 222, 0.65), rgba(122, 46, 146, 0.08));
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.32s ease, transform 0.32s ease;
    z-index: 0;
}

.faq-item > * {
    position: relative;
    z-index: 1;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(106, 44, 145, 0.09);
}

.faq-item:hover::before {
    opacity: 0.4;
    transform: scale(1);
}

.faq-question {
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: stretch;
    transition: background-color 0.3s;
    gap: 1.5rem;
}

.faq-question::before {
    content: attr(data-number);
    background: none;
    color: #764393;
    font-size: 2rem;
    font-weight: 700;
    margin-right: 1rem;
    margin-left: 1rem;
    padding: 0;
    min-width: 0;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    line-height: 1;
}

.faq-question:hover {
    background-color: rgba(241, 236, 244, 0.5);
}

.faq-question span {
    padding: 1.5rem 0;
    flex: 1;
}

.faq-question i {
    margin: auto 1.5rem;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    background-color: transparent;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-email-link {
    color: #764393;
    font-weight: bold;
    text-decoration: underline;
}

.faq-email-link:hover {
    color: #5c3572;
}

/* WhatsApp confirm modal */
.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45); 
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.confirm-modal.open {
  display: flex;
}
.confirm-dialog {
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  width: min(560px, calc(100% - 2rem));
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  border-left: 4px solid #764393; /* WhatsApp green accent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.confirm-dialog h4 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
}
.confirm-message {
  margin: 0 0 14px 0;
  color: #374151;
  line-height: 1.4;
}
.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.confirm-actions .btn {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
.confirm-actions .btn.ok {
  background: #764393;
  border-color: #764393;
  color: #fff;
}
.confirm-actions .btn:focus {
  outline: 2px solid #763793;
  outline-offset: 2px;
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
footer {
    position: relative;
    padding: 2.5rem 0;
    margin-top: 4rem;
    background: linear-gradient(180deg, rgba(227, 220, 231, 0.53), rgba(212, 203, 224, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: #111;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 36px rgba(106, 44, 145, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: visible;
}

footer::before {
    content: '';
    position: absolute;
    inset: -2%;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(213, 197, 222, 0.65), rgba(122, 46, 146, 0.06));
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 0;
    border-radius: inherit;
}



footer:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(106, 44, 145, 0.08);
}

footer:hover::before {
    opacity: 0.08;
    transform: scale(1);
}

.footer-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-content h4 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.footer-content p {
    color: #111;
    margin: 1rem 0;
}

.footer-content a {
    color: #111;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-left {
    flex: 2;
    text-align: left;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-icons img {
    width: 20px;
    height: 20px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.social-icons img:hover {
    opacity: 1;
}

/* ==========================================================================
   6. Modal
   ========================================================================== */
.modal {
    display: none; /* Changed to flex by JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    animation: modal-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* This class will be added by JS to show the modal */
.modal.is-visible {
    display: flex;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 420px;
    text-align: center;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modal-pop-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
}

.close-modal,
.close-sticker-modal {
    color: #888;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(230, 230, 230, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

.close-modal:hover,
.close-sticker-modal:hover {
    background-color: rgba(210, 210, 210, 0.8);
    color: #333;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-pop-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==========================================================================
   7. Responsive Styles
   ========================================================================== */

/* Medium Desktops / Laptops */
@media (max-width: 1000px) {
    /* Navigation */
    .nav-content {
        padding: 0 1rem;
    }
    .nav-links,
    .desktop-language-selector {
        display: none;
    }
    .logo {
        height: 45px;
    }
    .hamburger {
        display: block;
    }
    .mobile-menu {
        display: block;
    }

    /* Banner */
    .banner {
        min-height: 55vh; /* FIX 1: Use min-height for flexibility */
        padding: 8rem 1rem 6rem; /* FIX 1: Adjust padding */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .banner-inner {
        width: 90%;
        padding: 1.25rem 1rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: auto; /* FIX 1: Remove fixed min-height */
    }
    .banner-title {
        width: 100%; /* FIX 1: Allow full width within inner container */
        gap: 0.5rem;
    }
    .banner-title .brand {
        font-size: clamp(2.8rem, 12vw, 4.5rem); /* Increased font size for mobile */
        line-height: 1.2; 
    }
    .banner-title .title-rest {
        font-size: clamp(1.3rem, 5vw, 1.8rem); /* Increased font size for mobile */
        opacity: 0.98;
    }

    .banner-arrow {
        display: flex; /* Show the arrow on mobile */
    }

    /* Grids */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Carousels */
    .platform-card {
        flex: 0 0 32%;
    }

    /* Download Banner */
    .download-banner-content {
        flex-direction: column;
        gap: 2rem;
    }
    .download-text {
        text-align: center;
    }
    .download-video {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-right {
        align-items: center;
    }
    .social-icons {
        justify-content: center;
    }

    .social-icons img {
        width: 25px;
        height: 25px;
        opacity: 0.9;
        transition: opacity 0.3s;
    }
}


/* Large Phones / Small Tablets */
@media (max-width: 768px) {

    .banner {
        min-height: 70vh; 
    }

    .banner-inner {
        min-height: auto; 
    }

    .categories h2 {
        margin: 10rem 0 1rem;
    }

    /* Grids */
    .sticker-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Download Section */
    .download-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    .download-platforms {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Download platforms one-line-mobile adjustments */
    .download-platforms.one-line-mobile {
        display: flex;
        flex-wrap: nowrap;
        gap: 7px;
        justify-content: flex-start;
        align-items: center;
        padding-bottom: 6px;
    }
    /* Make icons flexible instead of fixed size */
    .download-platforms.one-line-mobile .platform-icon {
        flex: 1 1 0; /* Allow icons to grow and shrink */
        width: auto;
        height: auto;
        aspect-ratio: 1 / 1; /* Maintain a square/circular shape */
        max-width: 60px; /* Set a maximum size to prevent them from becoming too large */
    }

    /* Adjust the image size within the flexible icon */
    .download-platforms.one-line-mobile .platform-icon img {
        width: 60%;
        height: 60%;
    }

    .download-text h2 {
        font-size: 1.5rem;
    }
    .download-text p {
        font-size: 1rem;
    }

    /* Platform Carousel */
    .platform-carousel {
        padding: 10px;
    }
    .platform-grid {
        transition: transform 0.5s ease;
    }
    .platform-card {
        flex: 0 0 100%;
        margin-right: 0;
    }

    /* FAQ - Reduce padding and gaps for mobile */
    .faq-section {
        padding: 0 0.5rem;
    }
    .faq-question {
        font-size: 1.1rem;
        padding: 0.5rem 0.5rem;
        gap: 0.75rem;
    }
    .faq-question::before {
        font-size: 1.6rem;
        margin-right: 0.5rem;
        margin-left: 0.5rem;
    }
    .faq-question span {
        padding: 0.5rem 0;
    }
    .faq-question i {
        margin: auto 0.5rem;
    }
    .faq-answer {
        padding: 0 0.5rem;
    }
    .faq-answer.active {
        padding: 0.5rem;
    }
    .faq-item {
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   8. Accessibility - Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    /* Make scroll behavior instant */
    html {
        scroll-behavior: auto;
    }

    /* Slow down the background bubbles instead of hiding them */
    .bubble {
        animation-duration: 200s !important; /* Makes movement very slow */
        animation-iteration-count: infinite; /* Ensure they still loop */
    }

    /* Slow down the rotating background gradient */
    body::before {
        animation-duration: 300s !important;
    }

    /* Disable jarring transform animations but allow fades */
    .banner-title .brand,
    .banner-title .title-rest,
    .categories h2,
    .sticker-pack-title,
    .platform-carousel-section h2,
    .faq-section h2 {
        transform: none; /* Remove slide-up effect */
        animation: modal-fade-in 1s both; /* Replace with a simple fade-in */
    }

    /* Remove hover transformations that shift elements */
    .category-card:hover,
    .sticker-grid:hover,
    .platform-card:hover,
    .faq-item:hover,
    footer:hover,
    .platform-icon:hover,
    .banner-arrow:hover {
        transform: none;
    }

    /* Disable other specific, non-essential animations */
    .banner-arrow,
    .banner-arrow svg,
    .banner-title .brand,
    .banner-title .title-rest {
        animation: none; /* Disables breathing, floating, and bouncing */
    }

    /* Re-apply the initial slide-up animation for the banner title, but without the transform */
    .banner-title .brand,
    .banner-title .title-rest {
        animation: slide-fade-up 900ms cubic-bezier(.16, .8, .24, 1) both;
    }
    
    /* Override the slide-up keyframes to be a simple fade */
    @keyframes slide-fade-up {
        from { opacity: 0; transform: none; }
        to { opacity: 1; transform: none; }
    }
}