/* MyCard -> Card Glow */
.card--glow {
    background-color: transparent;
    width: 190px;
    height: 254px;
    perspective: 1000px;
    position: relative;
    isolation: isolate;
    cursor: pointer;
}

.title {
    font-size: 1.5em;
    font-weight: 900;
    text-align: center;
    margin: 0;
    pointer-events: none;
}

.innerCard {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
    transform: rotateY(0deg);
}

/* Only use flipped class - no hover conflicts */
.card--glow.flipped .innerCard {
    transform: rotateY(180deg);
}

.frontSide,
.backSide {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.effect--glow .frontSide,
.effect--glow .backSide {
    box-shadow: 0 0 0.3em rgba(255, 255, 255, 0.5);
}

.frontSide {
    background: linear-gradient(43deg, rgb(65, 88, 208) 0%, rgb(200, 80, 192) 46%, rgb(255, 204, 112) 100%);
}

.effect--glow .frontSide::before {
    background: linear-gradient(43deg, rgb(65, 88, 208) 0%, rgb(200, 80, 192) 46%, rgb(255, 204, 112) 100%);
}

.backSide {
    background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
}

.effect--glow .backSide::before {
    background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
}

.backSide {
    transform: rotateY(180deg);
}

.effect--glow .frontSide::before,
.effect--glow .backSide::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: '';
    width: 110%;
    height: 110%;
    position: absolute;
    z-index: -1;
    border-radius: 1em;
    filter: blur(20px);
    animation: animate 5s linear infinite;
}

/* Features -> Card Info */
.card--info-container {
    display: flex;
    /* Note: keeping original .features logic if it was a container, but wait, .features is the container. User didn't ask to rename .features, only .feature (singular) */
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
}

.card--info {
    max-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card--info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--glow);
    border-color: var(--main-color);
}

.card--featured {
    border: 1px solid rgba(var(--main-color-rgb), 0.5);
    /* Assuming rgb var exists, or just use variable opacity */
    border-color: rgba(51, 102, 255, 0.4);
    /* Hardcoded fallback or use theme color */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(51, 102, 255, 0.05) 100%);
    position: relative;
}

.card--featured::after {
    content: '★';
    /* Star icon to indicate special content */
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--main-color);
    font-size: 0.8rem;
    opacity: 0.7;
}

.card--info h3,
.card--info h4 {
    color: var(--main-color);
    /* text-shadow: none; */
    margin-bottom: 1rem;
}

.card--info--full {
    max-width: 100%;
    text-align: left;
    margin-bottom: 30px;
}

.card--info--full h4 {
    margin-top: 0;
}

/* Rotating Gradient Card -> Card Neon */
/* Base Card Class - For structural commonalities if any */
/* Base Card Class - For structural commonalities if any */
.card {
    position: relative;
}

.card--neon {
    width: 190px;
    height: 254px;
    background: #07182E;
    position: relative;
    display: flex;
    place-content: center;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
}

.card--neon h2,
.card--neon h3 {
    z-index: 1;
    color: white;
    display: block;
}

.card--neon h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    margin-top: 0;
}

.card--neon h3 {
    font-size: 1em;
    margin-top: 15px;
    margin-bottom: 0;
}

.card--neon::before {
    content: '';
    position: absolute;
    width: 100px;
    background-image: linear-gradient(180deg, rgb(0, 183, 255), rgb(255, 48, 255));
    height: 130%;
    animation: rotBGimg 3s linear infinite;
    transition: all 0.2s linear;
}

.card--neon::after {
    content: '';
    position: absolute;
    background: #07182E;
    inset: 5px;
    border-radius: 15px;
}




/* Card Another -> Card Filled */
.card--filled {
    position: relative;
    width: 190px;
    height: 254px;
    background: #f00;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card--filled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(315deg, #03a9f4, #ff0058);
}

.card--filled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(315deg, #03a9f4, #ff0058);
    filter: blur(30px);
}

.card--filled .card__inset {
    position: absolute;
    inset: 6px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.card--filled img {
    position: absolute;
    z-index: 3;
    scale: 0.8;
    opacity: 0.25;
    transition: 0.5s;
}

.card--filled:hover img {
    scale: 0.5;
    opacity: 0.9;
    transform: translateY(-70px);
}

.card--filled .content {
    position: absolute;
    z-index: 3;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0);
    transition: 0.5s;
}

.card--filled:hover .content {
    transform: scale(1);
    bottom: 25px;
}

.card--filled .title {
    position: relative;
    color: #fff;
    font-weight: 500;
    line-height: 1em;
    font-size: 1em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.card--filled .title span {
    font-weight: 300;
    font-size: 0.70em;
}

/* Mobile Responsive - Cards */
@media (max-width: 768px) {
    .card--neon {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .card--glow {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Features - Stack vertically */
    .card--info-container {
        flex-direction: column;
        padding: 20px 10px;
    }

    .card--info {
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 480px) {

    /* Cards - Even smaller */
    .card--neon,
    .card--glow {
        max-width: 240px;
    }
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {

    /* Disable hover effects on touch devices */
    .card--neon:hover::before {
        animation: none;
        transform: none;
    }

    /* Use active state instead of hover for rotating cards */
    .card--neon:active::before {
        animation: rotBGimg 3.5s linear infinite;
    }
}