/* ================================
   Animated Forgejo Homepage
   ================================ */

.custom-home {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(80, 120, 255, 0.12),
            transparent 45%
        ),
        #080b12;
    color: #fff;
}

/* Animated grid */
.custom-home::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    animation: gridMove 15s linear infinite;

    pointer-events: none;
}

@keyframes gridMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

/* Particle canvas */
.custom-home-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Content */
.custom-home-content {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 40px 20px;
}

/* Glass card */
.custom-home-card {
    width: min(700px, 95%);

    padding: 60px 40px;

    background: rgba(10, 14, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 24px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 0 40px rgba(255, 255, 255, 0.015);
}

/* Logo */
.custom-home-logo {
    /* width: 90px; */
    height: 90px;
    margin-bottom: 25px;

    animation: floatingLogo 4s ease-in-out infinite;
}

@keyframes floatingLogo {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Heading */
.custom-home-title {
    font-size: clamp(36px, 6vw, 34px);
    font-weight: 700;

    margin: 0 0 15px;

    background: linear-gradient(
        90deg,
        #ffffff,
        #8da2ff,
        #ffffff
    );

    background-size: 200% auto;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    animation: titleGradient 5s linear infinite;
}

@keyframes titleGradient {
    to {
        background-position: 200% center;
    }
}

/* Description */
.custom-home-description {
    color: #aeb7c9;

    font-size: 18px;
    line-height: 1.7;

    margin: 0 auto 35px;

    max-width: 560px;
}

/* Buttons */
.custom-home-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.custom-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 140px;

    padding: 13px 25px;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.custom-home-button:hover {
    transform: translateY(-3px);
}

.custom-home-button-primary {
    background: #4f6cff;
    color: white;

    box-shadow:
        0 10px 30px rgba(79, 108, 255, 0.3);
}

.custom-home-button-primary:hover {
    background: #607cff;

    box-shadow:
        0 15px 40px rgba(79, 108, 255, 0.45);
}

.custom-home-button-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-home-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.full.height {
    padding-bottom: 0px !important;
}

.user-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    margin: 6px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    border: 2px solid rgba(255, 255, 255, 0.15);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.user-bubble a {
    display: flex;
    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    border-radius: 50%;
}

.user-bubble img {
    width: 48px;
    height: 48px;

    border-radius: 50%;
    object-fit: cover;
}

.user-bubble:hover {
    transform: translateY(-6px) scale(1.08);

    border-color: rgba(100, 140, 255, 0.8);

    box-shadow:
        0 8px 25px rgba(80, 110, 255, 0.35);
}

.user-bubble {
    animation: userBubbleFloat 4s ease-in-out infinite;
}

.user-bubble:nth-child(2n) {
    animation-delay: -1s;
}

.user-bubble:nth-child(3n) {
    animation-delay: -2s;
}

.user-bubble:nth-child(4n) {
    animation-delay: -3s;
}

@keyframes userBubbleFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.user-bubble:hover {
    animation-play-state: paused;
    transform: scale(1.12);
}

/* Mobile */
@media (max-width: 600px) {

    .custom-home-card {
        padding: 45px 22px;
    }

    .custom-home-description {
        font-size: 16px;
    }

    .custom-home-logo {
        /* width: 70px; */
        height: 70px;
    }
}