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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    background: 
        radial-gradient(circle at 1px 1px, #652383 0.8px, transparent 0),
        radial-gradient(circle at 1px 1px, rgba(101, 35, 131, 0.3) 0.5px, transparent 0),
        radial-gradient(circle at 1px 1px, black 0.8px, transparent 0);
    background-size: 20px 20px, 15px 15px, 20px 20px;
    background-position: 0 0, 10px 10px, 10px 10px;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(101, 35, 131, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(101, 35, 131, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 0%, rgba(101, 35, 131, 0.03) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(101, 35, 131, 0.03) 50%, transparent 100%);
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s linear infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes backgroundShift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(200px, 200px);
    }
}

.container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 60px;
    padding: 40px;
    max-width: 1800px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.top-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: stretch;
}

.top-row-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Left Column */
.left-column {
    align-items: center;
}

.donation-encouragement {
    text-align: center;
    background: rgba(101, 35, 131, 0.2);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #652383;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.donation-encouragement h2 {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 1.5em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.donation-encouragement p {
    color: #e0e0e0;
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Hide mobile text by default on desktop, hide desktop text by default on mobile */
.donation-text-mobile {
    display: none;
}

@media (max-width: 1023px) {
    .donation-text-desktop {
        display: none;
    }
    
    .donation-text-mobile {
        display: block;
    }
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(101, 35, 131, 0.3);
    margin-top: 15px;
    display: block;
    width: 100%;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Hide QR code on mobile/tablet by default (will be shown by JS on desktop) */
@media (max-width: 1023px) {
    .qr-code-container {
        display: none;
    }
}

.donation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid #FFD700;
    width: 100%;
    max-width: fit-content;
}

.donation-link:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.donation-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(101, 35, 131, 0.4);
}

.donation-link-text {
    color: #0a0a0a;
    font-weight: bold;
}

.donation-link-arrow {
    font-size: 1.3em;
    transition: transform 0.3s ease;
    color: #0a0a0a;
    font-weight: bold;
}

.donation-link:hover .donation-link-arrow {
    transform: translateX(5px);
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrcode canvas {
    border-radius: 10px;
}

.foundation-header {
    background: rgba(101, 35, 131, 0.15);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #652383;
    width: 100%;
    backdrop-filter: blur(10px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: fit-content;
    box-sizing: border-box;
}

.foundation-logo {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 10px;
}

.foundation-logo-img {
    height: auto;
    width: 85%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(101, 35, 131, 0.5));
}

/* Responsive logo sizing */
@media (max-width: 1200px) {
    .foundation-logo-img {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .foundation-logo-img {
        width: 75%;
    }
}

@media (max-width: 480px) {
    .foundation-logo-img {
        width: 70%;
    }
}

.campaign-motto-container {
    background: rgba(101, 35, 131, 0.15);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #652383;
    width: 100%;
    backdrop-filter: blur(10px);
    text-align: center;
}

.campaign-motto {
    color: #00FF88;
    font-size: 2.2em;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    margin: 0;
    line-height: 1.4;
}

.legend-container {
    background: rgba(101, 35, 131, 0.15);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #652383;
    width: 100%;
    backdrop-filter: blur(10px);
}

.legend-container h3 {
    color: #00CED1;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(0, 206, 209, 0.5);
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 15%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2em;
    color: #e0e0e0;
}

.heart-icon {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
}

/* Center Column */
.center-column {
    align-items: center;
    gap: 40px;
}

.donation-status {
    text-align: center;
    background: rgba(101, 35, 131, 0.2);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #652383;
    backdrop-filter: blur(10px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donation-status p {
    font-size: 1.4em;
    color: #ffffff;
    line-height: 1.8;
}

.donation-status strong {
    color: #FFD700;
    font-size: 1.2em;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.logo-container {
    width: 80%;
    /* max-width: 700px; */
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: rgba(101, 35, 131, 0.1); */
    border-radius: 20px;
    padding: 40px;
    /* border: 3px solid #652383; */
}

.logo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-trace,
.logo-center {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(101, 35, 131, 0.5));
}

.logo-trace {
    z-index: 2;
}

.logo-center {
    z-index: 1;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1s ease;
}

.percentage-display {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.percentage-circle {
    position: relative;
    width: 200px;
    height: 200px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-background {
    opacity: 0.3;
}

.progress-ring-progress {
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease;
}

.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Right Column */
.right-column {
    align-items: center;
}

.donor-list-header {
    text-align: center;
    background: rgba(101, 35, 131, 0.2);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #652383;
    backdrop-filter: blur(10px);
    width: 100%;
}

.donor-list-header h2 {
    color: #FF6B6B;
    font-size: 1.5em;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.donor-list-container {
    background: rgba(101, 35, 131, 0.1);
    border: 2px solid #652383;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    height: clamp(400px, 60vh, 910px);
    max-height: calc(100vh - 200px);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.donor-list {
    list-style: none;
    animation: scroll 30s linear infinite;
    padding: 0;
}

.donor-list li {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(101, 35, 131, 0.2);
    border-radius: 10px;
    border-left: 4px solid #652383;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    color: #ffffff;
    transition: transform 0.3s ease, background 0.3s ease;
}

.donor-list li:hover {
    transform: translateX(5px);
    background: rgba(101, 35, 131, 0.4);
}

.donor-name {
    font-weight: 600;
}

.donor-amount {
    margin-left: auto;
    color: #652383;
    font-weight: bold;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Responsive Design */

/* Large screens (1600px and below) */
@media (max-width: 1600px) {
    .container {
        gap: 50px;
        padding: 35px;
        max-width: 1600px;
    }
    
    .logo-container {
        width: 75%;
        padding: 35px;
    }
    
    .donor-list-container {
        height: clamp(400px, 60vh, 850px);
        max-height: calc(100vh - 250px);
    }
    
    .foundation-header {
        padding: 18px;
    }
    
    .campaign-motto {
        font-size: 2em;
    }
    
    .donation-status p {
        font-size: 1.3em;
    }
    
    .percentage-circle {
        width: 180px;
        height: 180px;
    }
    
    .percentage-text {
        font-size: 2.7em;
    }
}

/* Medium-large screens (1400px and below) */
@media (max-width: 1400px) {
    .container {
        gap: 40px;
        padding: 30px;
    }
    
    .top-row {
        gap: 35px;
    }
    
    .column {
        gap: 25px;
    }
    
    .center-column {
        gap: 35px;
    }
    
    .logo-container {
        width: 70%;
        padding: 30px;
    }
    
    .donor-list-container {
        height: clamp(400px, 55vh, 750px);
        max-height: calc(100vh - 220px);
    }
    
    .foundation-header {
        padding: 16px;
    }
    
    .campaign-motto {
        font-size: 1.9em;
    }
    
    .donation-status {
        padding: 22px;
    }
    
    .donation-status p {
        font-size: 1.25em;
    }
    
    .donation-status strong {
        font-size: 1.1em;
    }
    
    .percentage-circle {
        width: 170px;
        height: 170px;
    }
    
    .percentage-text {
        font-size: 2.5em;
    }
    
    .donation-encouragement h2 {
        font-size: 1.4em;
    }
    
    .donation-encouragement p {
        font-size: 1.15em;
    }
    
    .legend-container h3 {
        font-size: 1.25em;
    }
    
    .legend-item {
        font-size: 1.15em;
    }
    
    .donor-list-header h2 {
        font-size: 1.4em;
    }
    
    .donor-list li {
        font-size: 1.15em;
        padding: 14px;
    }
}

/* Tablets and small desktops (1200px and below) */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 30px;
        padding: 25px;
    }
    
    .top-row {
        grid-column: 1;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .column {
        gap: 20px;
    }
    
    .center-column {
        gap: 30px;
    }
    
    .left-column {
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
    }
    
    .logo-container {
        width: 60%;
        max-width: 500px;
        padding: 30px;
    }
    
    .donor-list-container {
        height: clamp(400px, 50vh, 650px);
        max-height: calc(100vh - 200px);
    }
    
    .foundation-header,
    .campaign-motto-container,
    .legend-container,
    .donation-encouragement {
        padding: 18px;
    }
    
    .donation-encouragement {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .qr-code-container {
        display: block;
        width: 100%;
        max-width: fit-content;
    }
    
    .donation-link {
        display: inline-flex;
        width: auto;
        max-width: 100%;
    }
    
    .campaign-motto {
        font-size: 1.7em;
    }
    
    .donation-status {
        padding: 20px;
    }
    
    .donation-status p {
        font-size: 1.2em;
    }
    
    .percentage-circle {
        width: 160px;
        height: 160px;
    }
    
    .percentage-text {
        font-size: 2.3em;
    }
    
    .donation-encouragement h2 {
        font-size: 1.3em;
    }
    
    .donation-encouragement p {
        font-size: 1.1em;
    }
    
    .qr-code-container {
        padding: 18px;
    }
    
    .donation-link {
        padding: 13px 28px;
        font-size: 1.15em;
    }
    
    .legend {
        margin-left: 10%;
    }
    
    .legend-container h3 {
        font-size: 1.2em;
    }
    
    .legend-item {
        font-size: 1.1em;
    }
    
    .donor-list-header {
        padding: 18px;
    }
    
    .donor-list-header h2 {
        font-size: 1.3em;
    }
    
    .donor-list-container {
        padding: 18px;
    }
    
    .donor-list li {
        font-size: 1.1em;
        padding: 13px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        gap: 25px;
        padding: 20px;
    }
    
    .top-row {
        gap: 18px;
    }
    
    .column {
        gap: 18px;
    }
    
    .center-column {
        gap: 25px;
    }
    
    .left-column {
        max-width: 100%;
    }
    
    .logo-container {
        width: 80%;
        max-width: 450px;
        padding: 25px;
    }
    
    .donor-list-container {
        height: clamp(350px, 50vh, 550px);
        max-height: calc(100vh - 180px);
    }
    
    .foundation-header,
    .campaign-motto-container,
    .legend-container,
    .donation-encouragement {
        padding: 15px;
    }
    
    .donation-encouragement {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .qr-code-container {
        display: block;
        width: 100%;
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .donation-link {
        display: inline-flex;
        width: auto;
        max-width: 100%;
    }
    
    .foundation-header {
        min-height: auto;
    }
    
    .foundation-logo-img {
        width: 75%;
    }
    
    .campaign-motto {
        font-size: 1.5em;
        line-height: 1.3;
    }
    
    .donation-status {
        padding: 18px;
    }
    
    .donation-status p {
        font-size: 1.15em;
        line-height: 1.6;
    }
    
    .donation-status strong {
        font-size: 1.05em;
    }
    
    .percentage-circle {
        width: 150px;
        height: 150px;
    }
    
    .percentage-text {
        font-size: 2em;
    }
    
    .donation-encouragement h2 {
        font-size: 1.25em;
        margin-bottom: 8px;
    }
    
    .donation-encouragement p {
        font-size: 1.05em;
        margin-bottom: 18px;
    }
    
    .qr-code-container {
        padding: 15px;
    }
    
    #qrcode img {
        max-width: 150px;
        max-height: 150px;
        height: auto;
    }
    
    .donation-link {
        padding: 12px 25px;
        font-size: 1.1em;
        margin-top: 18px;
    }
    
    .legend {
        margin-left: 5%;
        gap: 10px;
    }
    
    .legend-container h3 {
        font-size: 1.15em;
        margin-bottom: 12px;
    }
    
    .legend-item {
        font-size: 1.05em;
        gap: 10px;
    }
    
    .heart-icon {
        font-size: 1.4em;
        width: 28px;
    }
    
    .donor-list-header {
        padding: 15px;
    }
    
    .donor-list-header h2 {
        font-size: 1.25em;
    }
    
    .donor-list-container {
        padding: 15px;
    }
    
    .donor-list li {
        font-size: 1.05em;
        padding: 12px;
        margin-bottom: 8px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .container {
        gap: 20px;
        padding: 15px;
    }
    
    .top-row {
        gap: 15px;
    }
    
    .column {
        gap: 15px;
    }
    
    .center-column {
        gap: 20px;
    }
    
    .logo-container {
        width: 90%;
        max-width: 100%;
        padding: 20px;
    }
    
    .donor-list-container {
        height: clamp(300px, 45vh, 450px);
        max-height: calc(100vh - 150px);
    }
    
    .foundation-header,
    .campaign-motto-container,
    .legend-container,
    .donation-encouragement {
        padding: 12px;
    }
    
    .donation-encouragement {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .qr-code-container {
        display: block;
        width: 100%;
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .donation-link {
        display: inline-flex;
        width: auto;
        max-width: 100%;
    }
    
    .foundation-header {
        min-height: auto;
        padding: 12px;
    }
    
    .foundation-logo-img {
        width: 70%;
    }
    
    .campaign-motto {
        font-size: 1.2em;
        line-height: 1.25;
    }
    
    .donation-status {
        padding: 15px;
    }
    
    .donation-status p {
        font-size: 1.05em;
        line-height: 1.5;
    }
    
    .donation-status strong {
        font-size: 1em;
    }
    
    .percentage-circle {
        width: 120px;
        height: 120px;
    }
    
    .percentage-text {
        font-size: 1.5em;
    }
    
    .donation-encouragement h2 {
        font-size: 1.15em;
        margin-bottom: 6px;
    }
    
    .donation-encouragement p {
        font-size: 0.95em;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .qr-code-container {
        padding: 12px;
    }
    
    #qrcode img {
        max-width: 150px;
        max-height: 150px;
        height: auto;
    }
    
    .donation-link {
        padding: 10px 20px;
        font-size: 1em;
        margin-top: 15px;
    }
    
    .legend {
        margin-left: 0;
        gap: 8px;
    }
    
    .legend-container h3 {
        font-size: 1.05em;
        margin-bottom: 10px;
    }
    
    .legend-item {
        font-size: 0.95em;
        gap: 8px;
    }
    
    .heart-icon {
        font-size: 1.3em;
        width: 25px;
    }
    
    .donor-list-header {
        padding: 12px;
    }
    
    .donor-list-header h2 {
        font-size: 1.15em;
    }
    
    .donor-list-container {
        padding: 12px;
    }
    
    .donor-list li {
        font-size: 0.95em;
        padding: 10px;
        margin-bottom: 6px;
    }
}

/* Very small mobile phones (360px and below) */
@media (max-width: 360px) {
    .container {
        gap: 15px;
        padding: 10px;
    }
    
    .top-row {
        gap: 12px;
    }
    
    .column {
        gap: 12px;
    }
    
    .center-column {
        gap: 15px;
    }
    
    .logo-container {
        width: 95%;
        padding: 15px;
    }
    
    .donor-list-container {
        height: clamp(250px, 40vh, 400px);
        max-height: calc(100vh - 120px);
    }
    
    .foundation-header,
    .campaign-motto-container,
    .legend-container,
    .donation-encouragement {
        padding: 10px;
    }
    
    .donation-encouragement {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .qr-code-container {
        display: block;
        width: 100%;
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .donation-link {
        display: inline-flex;
        width: auto;
        max-width: 100%;
    }
    
    .foundation-header {
        min-height: auto;
        padding: 10px;
    }
    
    .foundation-logo-img {
        width: 65%;
    }
    
    .campaign-motto {
        font-size: 1.1em;
    }
    
    .donation-status {
        padding: 12px;
    }
    
    .donation-status p {
        font-size: 1em;
    }
    
    .percentage-circle {
        width: 100px;
        height: 100px;
    }
    
    .percentage-text {
        font-size: 1.3em;
    }
    
    .donation-encouragement h2 {
        font-size: 1.1em;
    }
    
    .donation-encouragement p {
        font-size: 0.9em;
    }
    
    #qrcode img {
        max-width: 150px;
        max-height: 150px;
    }
    
    .donation-link {
        padding: 8px 18px;
        font-size: 0.95em;
    }
    
    .legend-item {
        font-size: 0.9em;
    }
    
    .donor-list-header h2 {
        font-size: 1.1em;
    }
    
    .donor-list li {
        font-size: 0.9em;
        padding: 8px;
    }
}

