.welcome-text {
    font-family: "Times New Roman", Times, serif !important;
        font-weight: bold;
        font-size: 5rem;
        color: white;
        letter-spacing: 3px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
        margin: 0;
}

.hover-word {
    margin: 0 10px;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    cursor: default;
}

.hover-word:hover {
    transform: translateY(-10px) scale(1.1);
    color: #fff8dc;
    text-shadow: 0 0 25px rgba(255, 255, 224, 0.9), 0 0 50px rgba(255, 255, 200, 0.7);
    transition: transform 0.4s ease, text-shadow 0.4s ease, color 0.4s ease;
}

/* Hover Card Boxes */
.card-box {
    position: relative;
    width: 320px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Skewed background strips */
.card-box::before,
.card-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
}

.card-box::after {
    filter: blur(30px);
}

.card-box:hover::before,
.card-box:hover::after {
    transform: skewX(0deg);
    left: 20px;
    width: calc(100% - 90px);
}

/* Per-card gradient colors */
.card-box:nth-child(1)::before,
.card-box:nth-child(1)::after {
    background: linear-gradient(315deg, #8a85e9, #fb4cdc);
}

.card-box:nth-child(2)::before,
.card-box:nth-child(2)::after {
    background: linear-gradient(315deg, #fb4cdc, #45a8f7);
}

.card-box:nth-child(3)::before,
.card-box:nth-child(3)::after {
    background: linear-gradient(315deg, #fb4cdc, #8032e9);
}

/* Floating corner orbs */
.card-box > span {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.card-box > span::before,
.card-box > span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: 0.5s;
    animation: card-float 2s ease-in-out infinite;
}

.card-box > span::before {
    top: 0;
    left: 0;
}

.card-box > span::after {
    bottom: 0;
    right: 0;
    animation-delay: -1s;
}

.card-box:hover > span::before {
    top: -50px;
    left: 50px;
    width: 100px;
    height: 100px;
    opacity: 1;
}

.card-box:hover > span::after {
    bottom: -50px;
    right: 50px;
    width: 100px;
    height: 100px;
    opacity: 1;
}

@keyframes card-float {
    0%, 100% { transform: translateY(10px); }
    50%      { transform: translateY(-10px); }
}

/* Card content panel */
.card-box .card-content {
    position: relative;
    left: 0;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1;
    color: #fff;
    transition: 0.5s;
}

.card-box:hover .card-content {
    left: -25px;
    padding: 60px 40px;
}

.card-box .card-content h2 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 10px;
}

.card-box .card-content p {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.4em;
}

.card-box .card-content a {
    display: inline-block;
    font-size: 1.1em;
    color: #111;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 5px;
}

.card-box .card-content a:hover {
    background: #ffcf4d;
    border: 1px solid rgba(255, 0, 88, 0.4);
    box-shadow: 0 1px 15px rgba(1, 1, 1, 0.2);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .welcome-text {
        font-size: 2.5rem;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hover-word {
        margin: 0 5px;
    }

    .card-box {
        width: 100%;
        max-width: 300px;
        height: auto;
        min-height: 280px;
    }

    .card-box:hover .card-content {
        left: 0;
        padding: 30px 20px;
    }

    .card-box .card-content {
        padding: 20px;
    }

    .card-box .card-content h2 {
        font-size: 1.4em;
    }

    .card-box .card-content p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .welcome-text {
        font-size: 1.8rem;
    }

    .card-box {
        max-width: 260px;
        min-height: 240px;
    }
}