:root {
    --bg-color: #0a0a0a;
    --text-color: #00ff0d;
    --accent-color: #e100ff;
    --card-bg: rgba(0, 255, 0, 0.1);
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100%;
    touch-action: pan-y;
    overscroll-behavior: none;
}

.header-letter {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top center;
    position: relative;
    margin: 0;
    padding: 0;
    letter-spacing: -0.00em;
}

#rocketgod-header {
    letter-spacing: -0.00em;
    display: inline-flex;
    justify-content: center;
}

h2 a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

h2 a:hover {
    color: var(--text-color);
    text-shadow:
        0 0 5px var(--text-color),
        0 0 10px var(--text-color),
        0 0 15px var(--accent-color),
        0 0 20px var(--accent-color);
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    touch-action: pan-y;
}

h1,
h2,
h3 {
    text-align: center;
    text-transform: uppercase;
    margin: 0.5rem 0;
}

h1 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 4rem;
    color: var(--text-color);
    text-shadow:
        0 0 5px var(--text-color),
        0 0 10px var(--text-color),
        0 0 15px var(--accent-color),
        0 0 20px var(--accent-color);
    letter-spacing: 4px;
    transform: rotate(-2deg);
    text-align: center;
    text-transform: uppercase;
    margin: 0.5rem 0;
}

.links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
    width: 100%;
}

.links-section {
    text-align: center;
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .links {
        white-space: nowrap;
        flex-wrap: wrap;
        justify-content: center;
    }

    .links a {
        white-space: nowrap;
    }
}

.links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.links a:hover {
    color: var(--text-color);
    text-shadow: 0 0 5px var(--text-color);
}

.repo-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.repo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.repo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--text-color);
    padding: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    height: auto;
    min-height: 100px;
}

@media (hover: hover) and (pointer: fine) {
    .repo-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
        background-color: rgba(0, 255, 0, 0.2);
        color: var(--text-color);
    }

    .repo-card:hover h3 a {
        color: var(--text-color);
    }
}

.repo-card h3 {
    margin-top: 0;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    color: var(--text-color);
}

.repo-card h3 a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    text-align: center;
}

#loading {
    text-align: center;
    font-size: 1rem;
    margin-top: 1rem;
}

.repo-card h3 {
    margin-top: 0;
    font-size: 1rem;
}

.repo-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.pagination button {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 0.25rem 0.5rem;
    margin: 0 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#bouncing-image {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    width: 150px;
    height: auto;
    touch-action: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    left: 0;
    top: 0;
    transform: translate(0px, 0px);
    will-change: transform;
}

.links a.social-icon {
    font-size: 36px;
    margin: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.links a.social-icon:hover {
    transform: scale(1.1);
}

.def-con-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

@media screen and (max-width: 480px) {
    .links a.social-icon {
        font-size: 36px;
        margin: 5px;
    }

    .def-con-icon {
        width: 42px;
        height: 42px;
    }
}

.project-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 5px;
}

.project-card {
    flex: 1 1 calc(50% - 1rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--card-bg);
    border: 1px solid var(--text-color);
    padding: 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
    min-height: 80px;
    box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
        background-color: rgba(0, 255, 0, 0.2);
        color: var(--text-color);
    }
}

.project-title {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.project-desc {
    font-size: 0.8rem;
    color: var(--text-color);
}

@media screen and (min-width: 769px) {
    .project-card {
        flex: 1 1 calc(25% - 1rem);
    }
}

@media screen and (max-width: 768px) {
    .project-card {
        flex: 1 1 calc(50% - 1rem);
    }
}