:root {
    --bs-body-bg: #003c63;
    --page-text: #f8fbff;
    --panel: rgba(8, 26, 46, 0.82);
    --panel-border: rgba(255, 255, 255, 0.18);
    --muted: rgba(248, 251, 255, 0.75);
}

body {
    min-height: 100vh;
    color: var(--page-text);
    font-family:
        "Reddit Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 18px;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    backface-visibility: hidden;
}

body::before {
    inset: -16%;
    background: linear-gradient(
        135deg,
        #14a9ff 0%,
        rgb(4, 36, 104) 45%,
        rgb(0, 177, 168) 100%
    );
    animation: bggradientmoveA 14s ease-in-out infinite alternate;
    will-change: transform;
}

body::after {
    inset: -18%;
    background: linear-gradient(
        225deg,
        rgb(5, 13, 134) 0%,
        #003c63 50%,
        rgb(104, 195, 248) 100%
    );
    opacity: 0.45;
    animation: bggradientmoveB 18s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes bggradientmoveA {
    0% {
        transform: translate3d(-10%, -6%, 0) scale(1.03);
    }
    50% {
        transform: translate3d(8%, 5%, 0) scale(1.08);
    }
    100% {
        transform: translate3d(-4%, 9%, 0) scale(1.05);
    }
}

@keyframes bggradientmoveB {
    0% {
        transform: translate3d(10%, -8%, 0) scale(1.04);
        opacity: 0.25;
    }
    50% {
        transform: translate3d(-9%, 6%, 0) scale(1.09);
        opacity: 0.72;
    }
    100% {
        transform: translate3d(5%, 10%, 0) scale(1.06);
        opacity: 0.35;
    }
}

.page-shell {
    width: min(1040px, calc(100% - 28px));
    margin: 0 auto;
    padding: 32px 0;
}

.home-panel {
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);

}

.hero {
    padding: clamp(24px, 5vw, 44px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 7vw, 4.6rem);
    line-height: 0.95;
}

.hero-copy {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.kofi-button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    transition:
        transform 0.12s ease,
        filter 0.2s ease;
}

.kofi-button:hover,
.kofi-button:focus {
    transform: translateY(-1px);
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.kofi-button img {
    display: block;
    width: auto;
    height: 48px;
    border: 0;
}

.support-ask {
    max-width: 360px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.35;
}

.support-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-block {
    padding: clamp(22px, 4vw, 34px) clamp(20px, 5vw, 44px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section-block:last-child {
    border-bottom: 0;
}

.section-heading {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
}

.section-heading p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.project-card {
    position: relative;
    display: grid;
    min-height: 156px;
    padding: 18px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition:
        transform 0.12s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.project-card:hover,
.project-card:focus {
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.project-card.is-disabled {
    cursor: default;
    opacity: 0.68;
}

.project-card.is-disabled:hover,
.project-card.is-disabled:focus {
    transform: none;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.project-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 1.7rem;
}

.project-icon img {
    max-width: 42px;
    max-height: 42px;
}

.project-cappuccino .project-icon,
.project-grapper .project-icon {
    width: 86px;
    height: 64px;
}

.project-cappuccino .project-icon img,
.project-grapper .project-icon img {
    max-width: 76px;
    max-height: 54px;
}

.project-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.project-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.35;
}

.status-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.72rem;
}

.project-pnidlt {
    background: radial-gradient(
        circle at top left,
        rgba(228, 40, 233, 0.96),
        rgba(57, 8, 92, 0.9)
    );
}
.project-xgalt {
    background: linear-gradient(
        135deg,
        rgba(177, 255, 138, 0.95),
        rgba(34, 160, 37, 0.94)
    );
}
.project-cappuccino {
    background: linear-gradient(
        135deg,
        rgba(179, 31, 48, 0.95),
        rgba(108, 70, 34, 0.94) 48%,
        rgba(209, 174, 136, 0.86)
    );
}
.project-grapper {
    background: linear-gradient(
        135deg,
        rgba(0, 110, 255, 0.88),
        rgba(2, 185, 100, 0.82)
    );
}
.project-gabpenguin {
    background: linear-gradient(
        135deg,
        rgba(251, 88, 6, 0.82),
        rgba(0, 184, 237, 0.76)
    );
}
.project-ivy {
    background: radial-gradient(
        circle at top left,
        rgba(20, 170, 72, 0.95),
        rgba(0, 94, 66, 0.9)
    );
}

.project-grid-past {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.project-grid-past .project-card {
    min-height: 140px;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transition:
        opacity 0.2s ease,
        transform 0.12s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.project-grid-past .project-card:hover {
    opacity: 1;
}

.project-grid-past .project-card .project-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-grid-past .project-card h3 {
    font-size: 1.05rem;
}

.project-grid-past .project-card p {
    font-size: 0.88rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.contact-link {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.contact-link:hover,
.contact-link:focus {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.13);
}

.contact-icon {
    display: inline-flex;
    width: 28px;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}

.contact-icon img {
    width: 22px;
    height: 22px;
}

.contact-link small {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
}

.courtesy-link {
    display: block;
    padding: 16px 20px 20px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(
        270deg,
        rgb(19, 230, 219),
        rgba(255, 51, 204, 0.91)
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientMove 2s ease-in-out infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.turbo-progress-bar {
    visibility: hidden;
}

#loading {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

#loading-bar {
    width: 100%;
    height: 5px;
    background: gray;
    position: relative;
}

#loading-progress {
    height: 100%;
    width: 0%;
    background: blue;
    position: absolute;
}

#likeBtn {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(3px);
    transition:
        transform 0.08s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

#likeBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

#likeBtn:active {
    transform: translateY(0);
}

#likeBtn .sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#likeBtn.sparkle .sparkles::before,
#likeBtn.sparkle .sparkles::after {
    content: "!";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, #8ecfff 60%, transparent 61%);
    box-shadow:
        -60px -6px 0 0 rgba(255, 255, 255, 0.85),
        50px -12px 0 0 rgba(142, 207, 255, 0.9),
        -30px 18px 0 0 rgba(142, 255, 235, 0.9),
        40px 12px 0 0 rgba(255, 200, 120, 0.95),
        -10px -30px 0 0 rgba(255, 150, 200, 0.95),
        12px -52px 0 0 rgba(120, 220, 255, 0.9);
    animation: burst 600ms ease-out forwards;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

#likeBtn.sparkle .sparkles::after {
    transform: rotate(25deg);
    animation-delay: 30ms;
}

@keyframes burst {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

#likeBtn.success {
    animation: pulsePop 0.5s ease;
}

@keyframes pulsePop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.06);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 1.65rem;
        line-height: 1;
    }

    .page-shell {
        width: min(100% - 18px, 1040px);
        padding: 10px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        margin-bottom: 8px;
    }

    .support-ask {
        max-width: 100%;
    }
}
