/* Modern CSS with mesh gradient and glassmorphism effects */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #ff006e;
    --accent-color: #8338ec;
    --background-start: #0d1b2a;
    --background-end: #1b263b;
    --card-background: rgba(255, 255, 255, 0.07);
    --text-primary: #e0e1dd;
    --text-secondary: #8d99ae;
    --gradient-1: #3a86ff;
    --gradient-2: #ff006e;
    --gradient-3: #8338ec;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    background-color: #000000; /* If background was blue, now black */
    color: #ffffff; /* Ensuring readability */
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(at 0% 0%, rgba(58, 134, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 0, 110, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(58, 134, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(255, 0, 110, 0.15) 0px, transparent 50%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.header-content {
    position: relative;
    display: inline-block;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
}

.title-decoration {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    border-radius: 2px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-content {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card:hover .card-content {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(58, 134, 255, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(58, 134, 255, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    height: 64px;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.card:hover .card-shine {
    transform: translateX(100%);
}

.return-card .card-content {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(58, 134, 255, 0.2);
}

/* Animations */
@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.container {
    animation: fadeScale 0.6s ease-out;
}

.card {
    animation: fadeScale 0.6s ease-out backwards;
}

/* Staggered card animations */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.25s; }
.card:nth-child(5) { animation-delay: 0.3s; }
.card:nth-child(6) { animation-delay: 0.35s; }
.card:nth-child(7) { animation-delay: 0.4s; }
.card:nth-child(8) { animation-delay: 0.45s; }
.card:nth-child(9) { animation-delay: 0.5s; }
.card:nth-child(10) { animation-delay: 0.55s; }
.card:nth-child(11) { animation-delay: 0.6s; }
.card:nth-child(12) { animation-delay: 0.65s; }
.card:nth-child(13) { animation-delay: 0.7s; }
.card:nth-child(14) { animation-delay: 0.75s; }
.card:nth-child(15) { animation-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .card-icon {
        font-size: 2rem;
        height: 48px;
        width: 48px;
    }

    .card-title {
        font-size: 1.1rem;
    }
}
