/* =====================
   Base styles
===================== */
:root {
    --milka-purple: #3B2774;
    --milka-light-blue: #8BD1F0;
    --milka-white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Base styles are inherited from main CSS */
    font-family: 'Congenial', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    background-image: url('../images/bg-dt.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; /* Keep background fixed */
}

@media (max-width: 768px) {
    body {
        background-image: url('../images/bg-m.jpg');
        background-attachment: scroll; /* Allow background to scroll on mobile */
    }
}

.landing-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

.full-width-bg {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: var(--milka-purple);
    position: relative;
}

/* Common section styles */
.section-title {
    font-family: 'Lorrach', sans-serif;
    font-size: 55px;
    line-height: 1.15em;
    text-transform: uppercase;
    color: var(--milka-white);
    text-align: center;
    margin-bottom: 60px;
}

.section-description {
    font-family: 'Congenial', sans-serif;
    font-size: 26px;
    line-height: 1em;
    color: var(--milka-white);
    margin-top: 20px;
}

/* =====================
   Header/Navigation
===================== */
.header {
    padding: 0;
    background-color: var(--milka-purple);
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    justify-content: center;
}

.header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 160px;
    width: 100%;
    max-width: 1440px;
}

.header-logo img {
    max-height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: 'Lorrach', sans-serif;
    font-size: 25px;
    line-height: 2.4em;
    text-transform: uppercase;
    color: var(--milka-white);
    text-decoration: none;
}

.nav-link.active {
    color: var(--milka-light-blue);
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 102;
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.hamburger-lines .line {
    height: 3px;
    width: 100%;
    background-color: var(--milka-white);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--milka-purple);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 99;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu a {
    font-family: 'Lörrach', sans-serif;
    font-weight: 800;
    font-size: 25px;
    text-transform: uppercase;
    line-height: 2.4em;
    color: var(--milka-white);
    text-decoration: none;
}

.mobile-menu a.active {
    color: var(--milka-light-blue);
}

/* Language Selector Dropdown */
.header-language-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.language-selected {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selected .flag {
    width: 36px;
    border-radius: 6px;
    height: auto;
    object-fit: cover;
}

.dropdown-icon {
    width: 24px;
    height: 24px;
    fill: var(--milka-white);
    transition: transform 0.3s ease;
}

.header-language-selector.open .dropdown-icon {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 25px;
    background-color: var(--milka-purple);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 10px;
    margin-top: 8px;
}

.header-language-selector.open .language-dropdown {
    display: flex;
    gap: 15px;
}

.language-dropdown .flag-container {
    padding: 6px;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-dropdown .flag-container:hover {
    border: 2px solid var(--milka-light-blue);
}

.language-dropdown .flag-container.active {
    opacity: 0.3;
}

.language-dropdown .flag-container.active {
    border: none;
}

.language-dropdown .flag {
    width: 36px;
    height: auto;
    object-fit: cover;
}

.language-selector-wrapper {
    display: flex;
    gap: 10px;
}

.flag-container {
    cursor: pointer;
    transition: opacity 0.3s;
    width: 30px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
}

.flag-container.active {
    opacity: 1;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================
   Hero Section
===================== */
.hero-section {
    color: var(--milka-white);
    position: relative;
    overflow: hidden;
}

.main-wrapper {
    padding: 40px 80px 0;
}

.hero-content {
    z-index: 2;
    position: relative;
    max-width: 630px;
    flex: 1;
    padding-right: 2rem;
}

.logo-section {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Lorrach', sans-serif;
    font-size: 3rem;
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-family: 'Congenial', sans-serif;
    font-size: 1.6rem;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 2rem;
}

.app-links {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
    opacity: 0.3;
}

.app-link img {
    height: 50px;
}

.desktop-hero-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 700px;
}

.mobile-hero-container {
    display: none;
}

.hero-section .hero-content .hero-button-container {
    max-width: 300px;
    margin: 48px 0 0 0;
}

.hero-button-container img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero-section .hero-content .hero-button-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 24px auto 0 auto;
    }
}

@media (max-width: 450px) {
    .hero-section .hero-content .hero-button-container {
        width: 80%;
        max-width: 80%;
    }
}

/* =====================
   How-to Section
===================== */
.how-to-section {
    position: relative;
    padding: 100px 0;
    margin: calc(10vh + 30px) 0; /* Match the wave height */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: max(calc(10vh + 30px), 80px);
    margin-bottom: max(calc(10vh + 30px), 80px);
}

/* Main purple background */
.how-to-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--milka-purple);
    z-index: -2;
}

/* Top wave */
.how-to-section .wave-top {
    position: absolute;
    top: calc(-10vh - 29px);
    left: 0;
    width: 100%;
    height: calc(10vh + 30px); /* Dynamic height based on viewport */
    background-image: url('../images/background-top.svg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    z-index: -1;
    min-height: 80px; /* Minimum height for very small screens */
    max-height: 180px; /* Maximum height for ultra-large screens */
}

/* Bottom wave */
.how-to-section .wave-bottom {
    position: absolute;
    bottom: calc(-10vh - 29px);
    left: 0;
    width: 100%;
    height: calc(10vh + 30px); /* Dynamic height based on viewport */
    background-image: url('../images/background-bottom.svg');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    z-index: -1;
    min-height: 80px; /* Minimum height for very small screens */
    max-height: 180px; /* Maximum height for ultra-large screens */
}

.how-to-content {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
}

.how-to-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.how-to-card {
    background-color: #7D69AF;
    border-radius: 16px;
    width: 350px;
    padding: 2.5rem 2rem;
    box-shadow: 0px 2px 4px 0px rgba(62, 52, 69, 0.04), 0px 24px 48px -8px rgba(62, 52, 69, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    flex: 1 0 calc(33.33% - 30px);
    max-width: 350px;
}

.how-to-card:hover {
    transform: translateY(-5px);
}

.step-number-container {
    width: 45px;
    height: 45px;
    background-color: #8BD1F0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.step-number {
    font-family: 'Congenial-Bold', sans-serif;
    font-size: 32px;
    color: #FFFFFF;
    line-height: 1em;
    letter-spacing: 1.1%;
}

.step-title {
    font-family: 'Congenial-Bold', sans-serif;
    font-size: 32px;
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: 0.875em;
    margin: 0;
    text-align: center;
}

.step-icon {
    width: 148px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    margin: 0.5rem 0;
}

.step-text {
    font-family: 'Congenial', sans-serif;
    font-size: 26px;
    line-height: 1.077em;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
    margin-top: auto;
    max-width: 311px;
}

/* =====================
   Products Section
===================== */
.products-section {
    padding: 80px 0;
    text-align: center;
}

.products-section-title,
.prizes-section-title {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.products-slider,
.prizes-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Product Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    /* Adjust container width to fit exactly 3 cards */
    max-width: calc((350px * 3) + (35px * 2));
    margin: 0 auto;
}

.slider-wrapper {
    display: flex;
    gap: 35px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    margin: 0 auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-snap-type: x mandatory;
}

.slider-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.product-card {
    flex: 0 0 350px;
    width: 350px;
    height: 575px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 0 10px 15px;
    gap: 8px;
    color: white;
    scroll-snap-align: center;
}

.product-image {
    height: 320px; /* Fixed height for image section */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.product-info {
    padding: 0 10px;
    text-align: left;
    margin-bottom: 8px;
}

.product-name {
    font-family: 'CongenialMilka Bold', 'Congenial', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1em;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.product-description {
    padding: 0 10px;
    text-align: left;
    flex-grow: 1; /* Allow description to take remaining space */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.product-description p {
    font-family: 'CongenialMilka Regular', 'Congenial', sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.15em;
    margin: 0;
}

/* Slider Navigation - positioned relative to the products-slider */
.slider-navigation {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: calc(100% + 100px); /* Make wider than container for button placement */
    left: -50px; /* Half the extra width */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0;
    z-index: 10;
}

.slider-button {
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: opacity 0.3s ease;
}

.slider-button-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #8BD1F0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-button:hover .slider-button-circle {
    background-color: #6BB5D4;
    transform: scale(1.05);
}

.slider-button:active .slider-button-circle {
    transform: scale(0.95);
}

/* Added separate background on buttons for visibility */
.slider-button::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(59, 39, 116, 0.1);
    z-index: -1;
}

/* Media queries for different screen sizes */
/* Large screens (≤1400px): 3 cards */
@media (max-width: 1400px) {
    .slider-navigation {
        width: calc(100% + 80px);
        left: -40px;
    }
}

/* Medium screens (≤1200px): 2 cards */
@media (max-width: 1200px) {
    .slider-container {
        /* Adjust container width to fit exactly 2 cards */
        max-width: calc((350px * 2) + 35px);
    }
    
    .slider-navigation {
        width: calc(90%);
        left: 5%;
    }
    
    .product-card {
        flex: 0 0 350px;
        width: 350px;
    }
}

/* Small desktops/tablets (≤992px): 2 cards but smaller */
@media (max-width: 992px) {
    .product-card {
        flex: 0 0 300px;
        width: 300px;
        height: 500px;
    }
    
    .product-image {
        height: 280px;
        margin-bottom: 15px;
    }
    
    .product-image img {
        max-height: 240px;
    }
    
    .product-name {
        font-size: 28px;
    }
    
    .product-description p {
        font-size: 22px;
    }
    
    .slider-wrapper {
        gap: 20px;
    }
}

/* Tablets/Mobile (≤768px): 1 card */
@media (max-width: 768px) {
    .hero-button-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        max-width: min(300px, 80vw);
        margin: 24px auto 0 auto;
    }

    .hero-button-container img {
        width: 100%;
    }

    .hero-content {
        position: relative;
        max-width: 600px;
        flex: 1;
        padding: 0;
    }

    .slider-container {
        /* Adjust container width to fit exactly 1 card */
        max-width: 280px;
        padding: 20px 0;
        margin: 0 auto;
        position: relative;
    }
    
    .slider-wrapper {
        gap: 20px;
        padding: 0;
        justify-content: flex-start;
    }
    
    .product-card {
        flex: 0 0 280px;
        width: 280px;
        height: 450px;
        scroll-snap-align: center;
        margin: 0 auto;
    }
    
    .product-image {
        height: 240px;
        margin-bottom: 12px;
    }
    
    .product-image img {
        max-height: 200px;
    }
    
    .product-name {
        font-size: 24px;
    }
    
    .product-description p {
        font-size: 18px;
    }
    
    /* Position buttons absolutely */
    .slider-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .slider-button.prev-button {
        left: -20px;
    }
    
    .slider-button.next-button {
        right: -20px;
    }
    
    .slider-button-circle {
        width: 50px;
        height: 50px;
    }
    
    .slider-button::before {
        width: 60px;
        height: 60px;
    }
}

/* Extra small screens (≤480px): 1 card but smaller */
@media (max-width: 480px) {
    .slider-container {
        max-width: 240px;
    }
    
    .product-card {
        flex: 0 0 240px;
        width: 240px;
        height: 400px;
    }
    
    .product-image {
        height: 200px;
        margin-bottom: 10px;
    }
    
    .product-image img {
        max-height: 180px;
    }
    
    .product-name {
        font-size: 22px;
    }
    
    .product-description p {
        font-size: 16px;
    }
    
    .slider-button.prev-button {
        left: -18px;
    }
    
    .slider-button.next-button {
        right: -18px;
    }
    
    .slider-button-circle {
        width: 40px;
        height: 40px;
    }
    
    .slider-button::before {
        width: 50px;
        height: 50px;
    }
}

.products-placeholder,
.prizes-placeholder {
    width: 100%;
    margin-bottom: 60px;
}

.products-image,
.prizes-image {
    max-width: 100%;
    height: auto;
}

.points-notice {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================
   Prizes Section
===================== */
.prizes-section {
    padding: 80px 0;
    text-align: center;
}

/* Prize Slider Styles */
.prizes-slider .slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    /* Adjust container width to fit exactly 3 cards */
    max-width: calc((350px * 3) + (35px * 2));
    margin: 0 auto;
}

.prize-card {
    flex: 0 0 350px;
    width: 350px;
    height: 600px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 0 10px 15px;
    gap: 8px;
    background-color: var(--milka-purple);
    color: white;
    scroll-snap-align: center;
}

.prize-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    gap: 22px;
    position: relative;
}

.prize-quantity {
    font-family: 'CongenialMilka Heavy', 'Congenial Bold', 'Congenial', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 0.5em;
    color: white;
    margin-bottom: 8px;
}

.prize-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.prize-name {
    font-family: 'CongenialMilka Heavy', 'Congenial Bold', 'Congenial', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 0.8em;
    text-align: center;
    color: white;
    margin: 0;
    margin-top: 10px;
}

.prize-description {
    padding: 0 20px;
    margin-top: 40px;
    text-align: center;
    flex-grow: 1;
}

.prize-description p {
    font-family: 'CongenialMilka Regular', 'Congenial', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.6em;
    text-align: center;
    color: white;
    margin: 0;
}

/* Media queries for prize cards */
@media (max-width: 1200px) {
    .prizes-slider .slider-container {
        max-width: calc((350px * 2) + 35px);
    }
}

@media (max-width: 992px) {
    .prizes-slider .slider-container {
        max-width: calc((300px * 2) + 20px);
    }
    
    .prize-card {
        flex: 0 0 300px;
        width: 300px;
        height: 530px;
    }
    
    .prize-quantity {
        font-size: 40px;
    }
    
    .prize-name {
        font-size: 28px;
    }
    
    .prize-description {
        margin-top: 40px;
    }
    
    .prize-description p {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .prizes-slider .slider-container {
        max-width: 280px;
    }
    
    .prize-card {
        flex: 0 0 280px;
        width: 280px;
        height: 480px;
    }
    
    .prize-image {
        padding-top: 30px;
        gap: 15px;
    }
    
    .prize-quantity {
        font-size: 36px;
    }
    
    .prize-image img {
        max-height: 180px;
    }
    
    .prize-name {
        font-size: 24px;
    }
    
    .prize-description {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .prize-description p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .prizes-slider .slider-container {
        max-width: 240px;
    }
    
    .prize-card {
        flex: 0 0 240px;
        width: 240px;
        height: 420px;
    }
    
    .prize-image {
        padding-top: 20px;
        gap: 10px;
    }
    
    .prize-quantity {
        font-size: 32px;
    }
    
    .prize-image img {
        max-height: 150px;
    }
    
    .prize-name {
        font-size: 22px;
    }
    
    .prize-description {
        margin-top: 20px;
        padding: 0 10px;
    }
    
    .prize-description p {
        font-size: 16px;
    }
}

/* =====================
   App Links Section
===================== */
.app-links-section {
    padding: 80px 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.app-links-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-links-description {
    font-family: 'Congenial', sans-serif;
    font-size: 26px;
    line-height: 1em;
    color: var(--milka-white);
    margin-bottom: 30px;
}

.app-download-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0.3;
}

/* =====================
   Footer
===================== */
.footer {
    position: relative;
    padding: 0;
    padding-top: max(calc(10vh + 60px), 140px); /* Increased top padding to account for wave + content spacing */
    padding-bottom: 30px;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(10vh + 31px); /* Dynamic height based on viewport */
    background-image: url('../images/background-top.svg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    z-index: 0;
    min-height: 80px; /* Minimum height for very small screens */
    max-height: 180px; /* Maximum height for ultra-large screens */
}

.background-middle {
    position: absolute;
    top: calc(10vh + 30px); /* Match the wave height */
    left: 0;
    width: 100%;
    height: calc(100% - (10vh + 30px));
    background-color: var(--milka-purple);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 60px 20px 0;
}

.footer-link {
    font-family: 'Congenial', sans-serif;
    font-size: 26px;
    color: var(--milka-white);
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.social-icon img {
    width: 50px;
    height: 50px;
}

.footer-logo img {
    height: 60px;
}

.copyright {
    font-family: 'Congenial', sans-serif;
    font-size: 18px;
    color: var(--milka-white);
    line-height: 1em;
    margin-top: 10px;
}

/* =====================
   Media Queries
===================== */

/* Large screens (≤1200px) */
@media (max-width: 1200px) {
    /* Header */
    .header .header-inner {
        padding: 16px 80px;
    }
    
    .nav-link {
        font-size: 20px;
    }

    /* Hero */
    .main-wrapper {
        padding: 40px 80px 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-text {
        font-size: 1.4rem;
    }
    
    /* How-to section */
    .section-title {
        font-size: 48px;
    }

    .how-to-card {
        width: 320px;
        padding: 2rem 1.5rem;
        flex: 1 1 320px;
    }
    
    .step-text {
        font-size: 24px;
    }
    
    /* Wave elements */
    .how-to-section .wave-top {
        top: calc(-8vh - 29px);
        height: calc(8vh + 30px);
    }
    
    .how-to-section .wave-bottom {
        bottom: calc(-8vh - 29px);
        height: calc(8vh + 30px);
    }
    
    .background-top {
        height: calc(8vh + 31px);
    }
    
    .background-middle {
        top: calc(8vh + 30px);
        height: calc(100% - (8vh + 30px));
    }
    
    .how-to-section {
        margin-top: max(calc(8vh + 30px), 80px);
        margin-bottom: max(calc(8vh + 30px), 80px);
    }
    
    .footer {
        padding-top: max(calc(8vh + 60px), 120px);
    }
}

/* Medium screens (≤992px) */
@media (max-width: 992px) {
    /* Hero */
    .hero-text {
        max-width: 70%;
    }

    /* How-to section */
    .how-to-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 42px;
        margin-bottom: 40px;
    }

    .how-to-grid {
        gap: 25px;
    }

    .how-to-card {
        flex: 1 0 calc(33.33% - 20px);
        min-width: 250px;
        max-width: 320px;
        padding: 1.8rem 1.2rem;
        gap: 1.2rem;
    }

    .step-icon {
        width: 120px;
    }
    
    .step-title {
        font-size: 28px;
    }
    
    .step-text {
        font-size: 20px;
    }
    
    /* Content sections */
    .section-description,
    .app-links-description {
        font-size: 22px;
    }
    
    /* Footer */
    .footer-link {
        font-size: 22px;
    }
}

/* Intermediate breakpoint for 2-card layout */
@media (max-width: 850px) and (min-width: 769px) {
    .how-to-grid {
        gap: 20px;
    }
    
    .how-to-card {
        flex: 1 0 calc(50% - 20px); /* Force 2 cards per row */
        max-width: calc(50% - 20px);
    }
}

/* Small screens (≤768px) */
@media (max-width: 768px) {
    /* Header */
    .header {
        position: relative;
        z-index: 100;
    }
    
    .header .header-inner {
        padding: 12px 40px;
        position: relative;
        justify-content: space-between;
    }
    
    /* Hide desktop navigation on mobile */
    .header-right .nav-links {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile menu when active */
    .mobile-menu.show {
        display: flex;
    }
    
    /* Hero */
    .main-wrapper {
        padding: 30px 10px;
    }

    .hero-section .logo-section {
        margin: 0 auto 1.5rem;
        text-align: center;
    }

    .hero-section .hero-title {
        font-size: 2.25rem;
        margin: 0 auto 1.25rem;
        text-align: center;
    }

    .hero-section .hero-text {
        font-size: 1.125rem;
        margin: 0 auto 2rem;
        text-align: center;
        max-width: 90%;
    }

    .hero-section .app-links {
        justify-content: center;
        margin: 0 auto 1.5rem;
    }
    
    /* Add mobile-desktop container switching */
    .desktop-hero-container {
        display: none;
    }

    .mobile-hero-container {
        display: block;
        margin: 0 auto 1.5rem;
        text-align: center;
    }
    
    /* How-to section */
    .how-to-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .how-to-grid {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .how-to-card {
        width: 90%;
        max-width: 350px;
        padding: 2rem 1.5rem;
        gap: 1rem;
        flex: 0 0 auto;
    }
    
    .step-title {
        font-size: 26px;
    }
    
    /* Content sections */
    .products-section,
    .prizes-section,
    .app-links-section {
        padding: 60px 0;
    }

    .products-section-title,
    .prizes-section-title {
        margin-bottom: 40px;
    }

    .section-description,
    .app-links-description {
        font-size: 18px;
    }
    
    /* Footer */
    .footer {
        padding-top: max(calc(6vh + 60px), 100px);
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-link {
        font-size: 18px;
    }

    .social-icon img {
        width: 50px;
        height: 50px;
    }

    .footer-logo img {
        height: 40px;
    }

    .copyright {
        font-size: 14px;
    }
    
    /* Wave elements */
    .how-to-section .wave-top {
        top: calc(-6vh - 29px);
        height: calc(6vh + 30px);
    }
    
    .how-to-section .wave-bottom {
        bottom: calc(-6vh - 29px);
        height: calc(6vh + 30px);
    }
    
    .background-top {
        height: calc(6vh + 31px);
    }
    
    .background-middle {
        top: calc(6vh + 30px);
        height: calc(100% - (6vh + 30px));
    }
    
    .how-to-section {
        margin-top: max(calc(6vh + 30px), 80px);
        margin-bottom: max(calc(6vh + 30px), 80px);
    }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
    /* How-to section */
    .how-to-card {
        width: 95%;
        padding: 1.5rem 1rem;
        gap: 0.8rem;
    }
    
    .step-number-container {
        width: 40px;
        height: 40px;
        margin-bottom: 0.3rem;
    }
    
    .step-number {
        font-size: 28px;
    }
    
    .step-title {
        font-size: 24px;
    }
    
    .step-icon {
        width: 100px;
        margin: 0.3rem 0;
    }
    
    .step-text {
        font-size: 18px;
    }
}