/* Custom Styles for OS Emulator */

body {
    background-color: #131313;
    background-image: radial-gradient(#222 1px, transparent 0);
    background-size: 24px 24px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.dot-matrix-text {
    letter-spacing: 0.1em;
    font-family: 'Space Grotesk', sans-serif;
}

/* Module card hover */
.module-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(155deg, #1f1f1f 0%, #191919 100%);
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.module-card:hover {
    border-color: rgba(192, 1, 0, 0.35);
    background: linear-gradient(155deg, #212121 0%, #1b1b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.module-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 90% at 100% 0%, rgba(192, 1, 0, 0.1) 0%, rgba(192, 1, 0, 0) 60%);
    opacity: 0.6;
}

.module-card:hover h3 {
    color: #ffdad4;
}

.module-card > div:first-child > div:first-child {
    border-radius: 0.9rem;
}

.module-card > div:first-child > div:last-child {
    width: 1.9rem;
    height: 1.9rem;
}

.module-card > div:first-child > div:last-child .material-symbols-outlined {
    font-size: 0.82rem;
}

.module-card p {
    color: #80848c;
    line-height: 1.45;
}

/* Contributor card hover */
.contributor-card {
    min-height: 6.9rem;
    border-radius: 0.95rem;
    background: linear-gradient(160deg, #101010 0%, #151515 100%);
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.contributor-card:hover {
    border-color: rgba(192, 1, 0, 0.42);
    background: linear-gradient(160deg, #151515 0%, #1a1a1a 100%);
}

.contributor-card h4 {
    font-size: 1.02rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.contributor-card p {
    font-size: 0.74rem;
    color: #ff8a78;
}

/* Center-out ripple animation */
.orbital-core-wrap {
    position: relative;
    --core-size: 110px;
}

.orbital-core {
    position: relative;
    z-index: 2;
    box-shadow: 0 0 34px rgba(255, 255, 255, 0.2);
}

.ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--core-size);
    height: var(--core-size);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: ripple-out 4.8s linear infinite;
}

.ripple-ring-1 {
    animation-delay: 0s;
}

.ripple-ring-2 {
    animation-delay: 1.2s;
}

.ripple-ring-3 {
    animation-delay: 2.4s;
}

.ripple-ring-4 {
    animation-delay: 3.6s;
}

@keyframes ripple-out {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    6% {
        opacity: 0.78;
    }
    72% {
        opacity: 0.24;
    }
    100% {
        transform: translate(-50%, -50%) scale(3.1);
        opacity: 0;
    }
}

/* Boot button shine */
.btn-boot {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-boot:hover {
    box-shadow: 0 0 15px rgba(192, 1, 0, 0.4);
}

@media (max-width: 768px) {
    .module-card {
        border-radius: 1.25rem;
    }

    .contributor-card {
        min-height: 6.2rem;
    }

    .contributor-card:hover {
        background: linear-gradient(160deg, #151515 0%, #1a1a1a 100%);
    }

    .orbital-core-wrap {
        --core-size: 96px;
    }
}