html {
    --darkreader-inline-bgimage: none !important;
    --darkreader-inline-bgcolor: none !important;
    --darkreader-inline-color: none !important;
}

:root {
    align-items: center;
    color-scheme: dark;
    --surface: #181a1b;
    --card-surface: #202224;
    --text-color: #e8e6e3;
    --text-secondary: #a09e9b;
    --border-color: rgba(232, 230, 227, 0.1);
}

html {
    box-sizing: border-box;
    font-family: "JetBrains Mono Propo", monospace !important;
    background-color: var(--surface);
    color: var(--text-color);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh; /* Takes up the full height of the screen */
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
}

a {
    color: inherit;
    text-decoration: none;
    text-decoration: underline;
}

.app-card {
    background: #1f2122 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;

    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;

    transition:
        transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.3s ease,
        background-color 0.2s ease;
}
.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--surface);
}

.app-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(232, 230, 227, 0.08) !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem;
}

.basic-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

a.app-card {
    color: inherit;
    text-decoration: none;
}

.app-card.is-link:hover {
    border-color: rgba(232, 230, 227, 0.25);
}

/* 2. Your actual grid container */
.apps-grid {
    display: grid; /* Uncommented this so it behaves like a grid */
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%; /* Ensures it can utilize the max-width layout */
    max-width: 1440px;
    margin: 0 auto; /* Keeps it safe on wider screens */

    /* Removed the calc(height/2) entirely */
}

.app-content {
    padding: 32px;
    box-sizing: border-box;
}

.app-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.app-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.error-message {
    grid-column: 1 / -1;
    color: #ff6b6b;
    font-size: 14px;
}

/* 5. Utility Styles */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

/* 6. Media Queries */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 1rem;
    }

    .app-card {
        flex-shrink: 0;
        width: 85vw;
        scroll-snap-align: start;
    }
}
