.cards-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.interstellar-card {
    width: 340px;
    height: 190px;
    background: #ffffff;
    border: rgb(53,53,53) 0.1rem solid;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2rem;
    border-color: rgb(163, 163, 163);

}

/* Rotating outer ring - inspired by the space station */
.interstellar-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid #000000;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
    animation: rotate 20s linear infinite;
}

.interstellar-card:hover::before {
    opacity: 0.3;
}

/* Inner geometric pattern */
.interstellar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 49%, #000000 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, #000000 50%, transparent 51%);
    background-size: 40px 40px;
    opacity: 0.02;
    transition: opacity 0.4s ease;
}

.interstellar-card:hover::after {
    opacity: 0.05;
}

.card-content {
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: #000000;
    transition: width 0.4s ease;
}

.interstellar-card:hover .card-title::after {
    width: 80px;
}

.card-text {
    color: #333333;
    line-height: 1.8;
    text-align: center;
    font-size: 14px;
    font-weight: 300;
}

.card-text p {
    margin-bottom: 6px;
    transition: opacity 0.3s ease;
    font-size: 12px;
}

.card-background {
    position: absolute;
    z-index: -1;
    margin-left: -60px;
    height: 200px;
    opacity: 0.15;
}


.interstellar-card:hover .card-text p {
    opacity: 1;
}

.highlight {
    font-weight: 500;
    color: #000000;
}

/* Hover effects */
.interstellar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Subtle corner dots - inspired by UI elements in the movie */
.corner-dots {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #000000;
    border-radius: 50%;
    opacity: 0.4;
    transition: all 0.4s ease;
}

.corner-dots.top-left {
    top: 15px;
    left: 15px;
}

.corner-dots.top-right {
    top: 15px;
    right: 15px;
}

.corner-dots.bottom-left {
    bottom: 15px;
    left: 15px;
}

.corner-dots.bottom-right {
    bottom: 15px;
    right: 15px;
}

.interstellar-card:hover .corner-dots {
    opacity: 0.8;
    transform: scale(1.2);
}

/* Rotating animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Subtle pulse animation for the dots */
.corner-dots {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .interstellar-card {
        width: 100%;
        max-width: 340px;
    }
}