/* General styles */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    display: flex;
    flex-direction: column; /* Ensure content stacks vertically */
    min-width: 320px; /* Minimum supported width */
    max-width: 100vw;
}

/* Magnetic Badge Effect - Global */
.magnetic-badge {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
    transform-origin: center;
}

.magnetic-badge:hover {
    transform: scale(1.05);
}

.header-spacer {
    width: 100%;
    height: clamp(10px, 2vw, 40px);
}

/* Root font size for responsive scaling */
html {
    font-size: 16px; /* Base font size */
}

/* Responsive font scaling */
@media (max-width: 480px) {
    html { font-size: 14px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    html { font-size: 15px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    html { font-size: 16px; }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    html { font-size: 17px; }
}

@media (min-width: 1441px) {
    html { font-size: 18px; }
    body { max-width: 2560px; margin: 0 auto; }
}

/* Background color strips */
.color-strip {
    position: fixed;
    top: 0;
    height: 100%;
    width: 12.5vw;
    left: 0;
    filter: blur(clamp(10px, 2vw, 15px));
    opacity: 0.68;
    transform: scaleX(1.07) scaleY(1.02);
    transform-origin: center;
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 0;
    min-width: 40px;
    max-width: 320px;
}

/* Responsive color strip adjustments */
@media (max-width: 480px) {
    .color-strip {
        filter: blur(8px);
        opacity: 0.6;
    }
}

@media (min-width: 1441px) {
    .color-strip {
        filter: blur(18px);
    }
}

.color1 { background-color: #f5deb3; left: 0; }
.color2 { background-color: #d4a017; left: 12.5vw; }
.color3 { background-color: #cd5c5c; left: 25vw; }
.color4 { background-color: #bf5700; left: 37.5vw; }
.color5 { background-color: #8b8e33; left: 50vw; }
.color6 { background-color: #5b2c46; left: 62.5vw; }
.color7 { background-color: #8b0000; left: 75vw; }
.color8 { background-color: #5c4033; left: 87.5vw; }

/* Content container */
.content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    padding: clamp(55px, 5.5vw, 110px) clamp(10px, 2vw, 20px) clamp(120px, 15vw, 180px) clamp(10px, 2vw, 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Responsive padding for content */
@media (max-width: 480px) {
    .content {
        padding: 45px 8px 110px 8px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .content {
        padding: 55px 12px 130px 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .content {
        padding: 65px 16px 150px 16px;
    }
}

@media (min-width: 1025px) {
    .content {
        padding: 75px 20px 180px 20px;
    }
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
    padding: 0;
    border-radius: clamp(12px, 2vw, 24px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin: clamp(70px, 7vw, 150px) auto clamp(40px, 6vw, 120px);
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-sizing: border-box;
    max-width: 1600px;
    min-width: 280px;
    width: clamp(280px, 95%, 1600px);
    height: auto;
    overflow: hidden; /* Preserve rounded edges */
}

/* Responsive hero-container adjustments */
@media (max-width: 480px) {
    .hero-container {
        width: 98%;
        margin: 20px auto;
        border-radius: 12px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero-container {
        width: 96%;
        margin: 30px auto;
        border-radius: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        width: 92%;
        margin: 40px auto;
        border-radius: 20px;
    }
}

@media (min-width: 1025px) {
    .hero-container {
        width: min(90%, 1600px);
        margin: 60px auto;
    }
}

.section-block {
    padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 50px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.section-block:last-of-type {
    border-bottom: none;
    padding-bottom: clamp(40px, 6vw, 70px);
}

/* Responsive section-block adjustments */
@media (max-width: 480px) {
    .section-block {
        padding: 25px 15px;
    }
    .section-block:last-of-type {
        padding-bottom: 35px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .section-block {
        padding: 35px 25px;
    }
    .section-block:last-of-type {
        padding-bottom: 45px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .section-block {
        padding: 45px 35px;
    }
    .section-block:last-of-type {
        padding-bottom: 55px;
    }
}

.section-block .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
    width: 100%;
    max-width: 100%;
}

/* Responsive hero adjustments */
@media (max-width: 480px) {
    .section-block .hero {
        gap: 15px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .section-block .hero {
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .section-block .hero {
        gap: 25px;
    }
}

.bottom-panel {
    width: 100%;
    max-width: 100vw;
    background-color: #ffffff;
    color: #000;
    text-align: center;
    padding: clamp(12px, 2.5vw, 24px) clamp(8px, 1.5vw, 16px);
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -18px 35px rgba(0, 0, 0, 0.18), 0 -4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2;
    min-height: 60px;
    max-height: 150px;
}

.bottom-text {
    margin: clamp(2px, 0.6vw, 5px) 0;
    font-size: clamp(0.6rem, 1.1vw, 0.8rem);
    letter-spacing: 0.05em;
    line-height: 1.3;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile responsive for bottom panel */
@media (max-width: 480px) {
    .bottom-panel {
        padding: 10px 6px;
        min-height: 55px;
    }
    
    .bottom-text {
        font-size: 0.6rem;
        margin: 2px 0;
        padding: 0 5px;
        word-spacing: 0.18em;
        line-height: 1.5;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .bottom-panel {
        padding: 14px 10px;
        min-height: 58px;
    }
    
    .bottom-text {
        font-size: 0.68rem;
        margin: 3px 0;
        padding: 0 8px;
        word-spacing: 0.15em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bottom-panel {
        padding: 18px 12px;
        min-height: 62px;
    }
    
    .bottom-text {
        font-size: 0.74rem;
        margin: 4px 0;
    }
}

@media (min-width: 1025px) {
    .bottom-panel {
        padding: 22px 15px;
        min-height: 65px;
    }
    
    .bottom-text {
        font-size: 0.78rem;
        margin: 4px 0;
    }
}

/* Arrow container */
.arrow-up-container {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 1100;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px 20PX 0PX 20PX; /* Reduced padding */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Arrow style */
.arrow-up {
    width: 15px; /* Reduced width */
    height: 15px; /* Reduced height */
    border: solid #333;
    border-width: 0 3px 3px 0; /* Adjusted border width */
    display: inline-block;
    padding: 3px; /* Reduced padding */
    transform: rotate(-135deg);
}

/* Hover effect */
.arrow-up-container:hover .arrow-up {
    transform: rotate(-135deg) scale(1.2);
}