:root {
    --color-bg-start: rgb(6, 2, 12);
    --color-bg-end: rgb(12, 4, 24);
    --color1: 147, 51, 234;  /* Vibrant Purple */
    --color2: 37, 99, 235;   /* Royal Blue */
    --color3: 219, 39, 119;  /* Bright Pink */
    --color4: 79, 70, 229;   /* Indigo */
    --color5: 124, 58, 237;  /* Violet */
    --circle-size: 80vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-bg-start);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
}

/* Background animated gradient container */
.gradient-bg {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
    overflow: hidden;
    z-index: 1;
}

/* Glowing fluid blobs */
.blob {
    position: absolute;
    mix-blend-mode: screen;
    width: var(--circle-size);
    height: var(--circle-size);
    border-radius: 50%;
    opacity: 0.75;
    filter: blur(80px);
    will-change: transform;
}

@media (min-width: 768px) {
    :root {
        --circle-size: 50vw;
    }
    .blob {
        filter: blur(120px);
    }
}

.g1 {
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
    top: 5%;
    left: 10%;
    animation: move1 8s ease-in-out infinite alternate;
}

.g2 {
    background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
    bottom: 5%;
    right: 10%;
    animation: move2 9s ease-in-out infinite alternate;
}

.g3 {
    background: radial-gradient(circle at center, rgba(var(--color3), 0.75) 0, rgba(var(--color3), 0) 50%) no-repeat;
    top: 40%;
    left: 30%;
    animation: move3 7s ease-in-out infinite alternate;
}

.g4 {
    background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
    bottom: 30%;
    left: 5%;
    animation: move4 10s ease-in-out infinite alternate;
}

.g5 {
    background: radial-gradient(circle at center, rgba(var(--color5), 0.75) 0, rgba(var(--color5), 0) 50%) no-repeat;
    top: 20%;
    right: 5%;
    animation: move5 8s ease-in-out infinite alternate;
}

/* Fast and smooth movement keyframes */
@keyframes move1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25%, 15%) scale(1.15); }
    100% { transform: translate(-10%, 30%) scale(0.9); }
}

@keyframes move2 {
    0% { transform: translate(0, 0) scale(1.1); }
    50% { transform: translate(-20%, -30%) scale(0.85); }
    100% { transform: translate(15%, -10%) scale(1.05); }
}

@keyframes move3 {
    0% { transform: translate(0, 0) scale(0.9); }
    50% { transform: translate(30%, -20%) scale(1.1); }
    100% { transform: translate(-25%, 25%) scale(1); }
}

@keyframes move4 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15%, 20%) scale(0.9); }
    100% { transform: translate(20%, -15%) scale(1.2); }
}

@keyframes move5 {
    0% { transform: translate(0, 0) scale(1.15); }
    50% { transform: translate(15%, -25%) scale(1); }
    100% { transform: translate(-20%, 10%) scale(0.85); }
}

/* Global clickable layout */
.global-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    padding: 20px;
    cursor: pointer;
}

.card-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Liquid glass glassmorphism card */
.card {
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 40px 32px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.4), 
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 10px 20px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: 0.8s;
}

/* Card hover animation - scale and deep glow */
.global-link:hover .card {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5), 
        0 0 40px rgba(124, 58, 237, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.global-link:hover .card::before {
    left: 100%;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Typography styles */
.card-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 12px;
}

.card-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 36px;
    letter-spacing: -0.01em;
}

/* Outlined Glass Button */
.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button interactive states */
.global-link:hover .card-btn {
    background: #ffffff;
    color: #0c0418;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.global-link:hover .btn-icon {
    transform: translate(2px, -2px);
}

/* Active touch state for mobile screens */
.global-link:active .card {
    transform: scale(0.98);
}

/* Responsive tweaks for smaller screens */
@media (max-width: 480px) {
    .card {
        padding: 32px 24px;
        border-radius: 24px;
    }
    .card-title {
        font-size: 1.85rem;
    }
    .card-subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }
    .card-btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    .btn-icon {
        width: 16px;
        height: 16px;
    }
}
