:root {
    --primary-color: #0a192f;
    --secondary-color: #64ffda;
    --background-start: #0a192f;
    --background-end: #112240;
    --text-color-secondary: #8892b0;
    --card-bg: rgba(17, 34, 64, 0.9);
    --text-default: #ccd6f6;
    --glass-border: rgba(100, 255, 218, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px 20px 40px 20px;
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    color: var(--text-default);
    min-height: 100vh;
}

.space {
    padding: 1rem;
    text-align: center;
}

.space h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 2rem 2rem 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.card {
    padding: 0.75rem;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
}

.anchorCard {
    text-decoration: none;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0.75rem;
    color: var(--text-default);
    box-shadow: 0 10px 30px rgba(2,12,27,0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.anchorCard:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(2,12,27,0.7);
}

.title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
}

.image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image:hover {
    transform: scale(1.02);
}

.description {
    font-size: 0.85rem;
    color: var(--text-color-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

.responsive-space {
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

@media (max-width: 1200px) {
    .card-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body {
        padding: 15px 15px 30px 15px;
    }
    
    .card-container {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 3rem 1rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    .card { aspect-ratio: auto; }
    .space h1 { font-size: 2.5rem; }
    .responsive-space {
        padding: 15px;
    }

    .responsive-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
}