/* Vexly-inspired "Warm Light" Theme with Amber Accent */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');

:root {
    /* Base Colors - Light Theme */
    --bg-color: #fdfcfb;
    --surface-color: #ffffff;
    --text-main: #171717;
    --text-muted: #575757;
    --border-color: #e5e5e5;

    /* Brand Amber/Brown */
    --primary-color: #bb851d;
    --primary-hover: #9a6e17;
    --primary-light: #e2d2b4;
    --highlight-bg: rgba(226, 210, 180, 0.5);

    /* Layout */
    --max-width: 1200px;
    --header-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    /* Pattern Color */
    --pattern-color: rgba(7, 7, 7, 0.014);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #0f0f0f;
    --surface-color: #1a1a1a;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --border-color: #2a2a2a;
    --primary-light: #3d3020;
    --highlight-bg: rgba(40, 35, 30, 0.9);
    --pattern-color: rgba(255, 255, 255, 0.027);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #404040;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

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

main {
    flex: 1;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Repeating Icon Pattern (Plus Sign for ThoughtsPlus) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;

    /* Use the pattern color variable for the icons */
    background-color: var(--pattern-color);

    /* Create a repeating mask with a 'plus' icon */
    /* Viewbox 0 0 40 40 with a centered 12px plus sign gives nice breathing room */
    /* Rotated 45 degrees within the SVG itself */
    --plus-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath transform='rotate(45 20 20)' d='M19 19V13h2v6h6v2h-6v6h-2v-6H13v-2h6z' fill='black'/%3E%3C/svg%3E");

    -webkit-mask-image: var(--plus-icon);
    mask-image: var(--plus-icon);
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 40px 40px;
    mask-size: 40px 40px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Text Highlight - Rounded rectangle behind text, angled */
.text-highlight {
    position: relative;
    display: inline;
    white-space: nowrap;
}

.text-highlight::before {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: 30%;
    bottom: 5%;
    background-color: var(--highlight-bg);
    z-index: -1;
    border-radius: 6px;
    transform: rotate(-2deg);
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(187, 133, 29, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 10px 15px -3px rgba(187, 133, 29, 0.2);
    animation: subtleBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary {
    background-color: var(--surface-color);
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: var(--surface-color);
    animation: subtleBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5ch;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 1.5rem;
}

.badge ion-icon {
    font-size: 1.1em;
    color: white;
}

/* Header/Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(251, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] header {
    background: rgba(15, 15, 15, 0.95);
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--surface-color);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.theme-toggle:hover {
    border-color: var(--text-muted);
    transform: scale(1.05);
}

.theme-toggle:hover ion-icon {
    animation: toggleWobble 0.6s ease-in-out;
}

@keyframes toggleWobble {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg) scale(1.1);
    }

    50% {
        transform: rotate(15deg) scale(1.15);
    }

    75% {
        transform: rotate(-10deg) scale(1.1);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: relative;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    z-index: 2000;
}

.mobile-menu.active {
    display: flex;
}

/* Hero Section - Split Layout */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1.2;
    min-width: 300px;
}

.hero-subtext {
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

/* MS Store Badge sizing - scale down and compensate layout */
.hero-actions ms-store-badge,
.cta-section ms-store-badge {
    transform: scale(0.5);
    transform-origin: left center;
    margin-right: -185px;
    /* Compensate for the scaled-down empty space */
}

/* Match button corners to MS Store badge style */
.hero-actions .btn,
.hero-actions .btn-donate {
    border-radius: 6px;
    padding: 0.625rem 1.5rem;
}

.hero-visual {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-stack-image {
    max-width: 650px;
    width: 140%;
    margin-right: -150px;
    transform: translateX(20px);
}

/* Dashboard image section below hero */
.hero-dashboard-wrapper {
    position: relative;
    margin-top: 3rem;
    padding: 0 1rem;
}

/* Dashboard Carousel - Fixed height container */
.dashboard-carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    /* Use aspect ratio to maintain consistent height regardless of which image is showing */
    aspect-ratio: 16 / 9.5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 6px solid var(--surface-color);
}

.hero-dashboard-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    /* Parent has border-radius */
    box-shadow: none;
    /* Parent has shadow */
    border: none;
    /* Parent has border */
    margin: 0;
    display: block;
}

/* Carousel slide stacking and transitions */
.dashboard-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    transform: scale(1.02);
}

.dashboard-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Specific fixes for images with black line artifacts */
/* dashboardcal.png (index 1) - black line on LEFT */
.dashboard-slide[data-index="1"] {
    clip-path: inset(0 0 0 8px);
    transform: scale(1.03);
}

/* timelinedashboard.png (index 3) - black line on TOP and RIGHT */
.dashboard-slide[data-index="3"] {
    clip-path: inset(8px 8px 0 0);
    transform: scale(1.03);
}

/* Smooth fade-in animation for entering slides */
@keyframes dashboardFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.04);
    }

    100% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.dashboard-slide.active {
    animation: dashboardFadeIn 0.8s ease-out forwards;
}

.hero-character {
    position: absolute;
    top: -155.7px;
    right: 10%;
    width: 170px;
    z-index: 20;
    pointer-events: none;
}

/* Social Proof */
.social-proof {
    padding: 2rem 0;
    text-align: center;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.proof-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.stat-item ion-icon {
    font-size: 1.2rem;
}

/* Features Grid */
.features-section {
    padding: 5rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-card-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Screenshots Row */
.screenshots-row {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    align-items: flex-start;
}

/* Carousel */
.carousel-container {
    margin-top: 3rem;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-card {
    flex-shrink: 0;
    width: 320px;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1rem;
    transition: all 0.2s ease;
}

.carousel-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.carousel-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.02);
}

.carousel-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.carousel-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Feature Alternating Section */
.showcase-section {
    padding: 5rem 0;
    background-color: var(--surface-color);
}

.feature-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
}

.feature-split:last-child {
    margin-bottom: 0;
}

.feature-split:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text .badge {
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.feature-list ion-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-visual {
    flex: 1;
}

.feature-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* FAQ */
.faq-section {
    padding: 6rem 0;
    background: transparent;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question ion-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    display: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Contributors Section */
.contributors-section {
    padding: 1.5rem 2rem;
    background: transparent;
}

.contributors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.contributor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: var(--text-main);
    min-width: 100px;
}

.contributor-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(187, 133, 29, 0.15);
}

.contributor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.contributor-card:hover .contributor-avatar {
    border-color: var(--primary-color);
}

.contributor-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contributor-commits {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.contributor-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Download CTA */
.cta-section {
    padding: 6rem 1rem;
    text-align: center;
    background: transparent;
}

/* Footer */
footer {
    padding: 3rem 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Media Queries */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.col-span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-split {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stack-image {
        max-width: 320px;
        width: 100%;
        margin-right: 0;
        transform: none;
    }

    .hero-character {
        width: 100px;
        top: -89px;
        /* Mobile height alignment - adjust this to move character up/down */
        right: 5%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-row {
        flex-direction: column;
    }

    .screenshot-img.screenshot-small {
        max-width: 100%;
    }

    .feature-split {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .feature-split:nth-child(even) {
        flex-direction: column;
    }

    .feature-list {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 0.7;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-image {
    cursor: pointer;
}

/* ============================================
   DONATE BUTTON - OVER THE TOP ANIMATION
   ============================================ */
.donate-btn-wrapper {
    position: relative;
    display: inline-block;
}

.btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #db61a2 0%, #ff6b9d 50%, #db61a2 100%);
    background-size: 200% 200%;
    color: white;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 1;
}

.btn-donate ion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-donate:hover {
    box-shadow:
        0 0 20px rgba(219, 97, 162, 0.6),
        0 0 40px rgba(219, 97, 162, 0.4),
        0 0 60px rgba(219, 97, 162, 0.2);
    animation: donateGradient 1s ease infinite, donateGlow 1.5s ease-in-out infinite alternate, donateBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.btn-donate:hover ion-icon {
    animation: heartbeat 0.6s ease-in-out infinite;
}

@keyframes donateGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes donateGlow {
    0% {
        box-shadow: 0 0 20px rgba(219, 97, 162, 0.6), 0 0 40px rgba(219, 97, 162, 0.4);
    }

    100% {
        box-shadow: 0 0 30px rgba(255, 107, 157, 0.8), 0 0 60px rgba(255, 107, 157, 0.5), 0 0 80px rgba(255, 107, 157, 0.3);
    }
}

@keyframes donateBounce {
    0% {
        transform: translateY(0) scaleX(1) scaleY(1);
    }

    20% {
        transform: translateY(-8px) scaleX(0.95) scaleY(1.08);
    }

    40% {
        transform: translateY(0) scaleX(1.05) scaleY(0.95);
    }

    60% {
        transform: translateY(-4px) scaleX(0.98) scaleY(1.03);
    }

    80% {
        transform: translateY(0) scaleX(1.02) scaleY(0.98);
    }

    100% {
        transform: translateY(0) scaleX(1) scaleY(1);
    }
}

/* Subtle bounce for other buttons */
@keyframes subtleBounce {
    0% {
        transform: translateY(0) scaleX(1) scaleY(1);
    }

    25% {
        transform: translateY(-4px) scaleX(0.98) scaleY(1.04);
    }

    50% {
        transform: translateY(0) scaleX(1.02) scaleY(0.97);
    }

    75% {
        transform: translateY(-2px) scaleX(0.99) scaleY(1.01);
    }

    100% {
        transform: translateY(0) scaleX(1) scaleY(1);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.3);
    }
}

/* Particle Effects */
.donate-particles,
.btn-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn-particle-wrapper {
    position: relative;
    display: inline-block;
}

/* Particles are now handled via JavaScript for random positioning */

/* Multiple sparkle particles via box-shadow trick */
.btn-donate::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: var(--radius-pill);
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-donate:hover::before {
    opacity: 1;
    animation: sparkleRing 0.8s ease-out;
}


@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(-60px) scale(1.5) rotate(20deg);
    }
}

@keyframes sparkleRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
        box-shadow:
            0 0 0 0 rgba(255, 107, 157, 0.7),
            0 0 0 0 rgba(219, 97, 162, 0.5);
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
        box-shadow:
            0 0 0 15px rgba(255, 107, 157, 0),
            0 0 0 30px rgba(219, 97, 162, 0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(187, 133, 29, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(187, 133, 29, 0.4);
    animation: subtleBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}