body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); /* Subtle dark background */
    font-family: 'Inter', sans-serif;
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    max-width: 1200px;
    padding: 40px;
    text-align: center;
}

.title {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 50px;
    /* Light Blue/Pink Gradient for the Title */
    background: linear-gradient(90deg, #6495ed, #ff69b4); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Default Grid: 3 columns for desktop */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    text-decoration: none;
    color: inherit;
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    /* Core Translucent (Glass-Morphism) Style */
    background: rgba(40, 40, 40, 0.7); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card:hover {
    transform: translateY(-5px);
    /* Subtle glow effect on hover (Blue/Pink accent) */
    box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(100, 150, 237, 0.5); 
}

.card h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 0;
}

.card p {
    font-size: 0.9em;
    opacity: 0.7;
}

/* Service-specific accents (Light Blue and Pink) */
.jellyfin-bg { border-left: 5px solid #ff69b4; } /* Pink accent */
.cloud-bg { border-left: 5px solid #6495ed; }   /* Blue accent */
.npm-bg { border-left: 5px solid #ff69b4; }
.portainer-bg { border-left: 5px solid #6495ed; }
.sonarr-bg { border-left: 5px solid #ff69b4; }
.radarr-bg { border-left: 5px solid #6495ed; }

.footer {
    margin-top: 50px;
    font-size: 0.8em;
    opacity: 0.5;
}


/* =================================================== */
/* MOBILE OPTIMIZATION: MEDIA QUERIES                  */
/* =================================================== */

/* Layout for tablets and most phones (less than 768px wide) */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    /* Change to a 2-column layout (2x3 vertical stack) */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card {
        padding: 20px;
    }
}

/* Layout for very small/narrow phones (less than 480px wide) */
@media (max-width: 480px) {
    .grid {
        /* Stack cards entirely vertically (1 column) */
        grid-template-columns: 1fr;
    }
}
