:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(20, 25, 40, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-border: rgba(100, 150, 255, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-color: #3b82f6;
    --accent-glow: #60a5fa;
    --blob-1: #3b82f6;
    --blob-2: #8b5cf6;
    --blob-3: #10b981;
}

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

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--blob-1);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--blob-3);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
}

.header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.glow-text {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--blob-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

/* Glassmorphism Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out backwards;
}

.grid-container .card:nth-child(1) { animation-delay: 0.1s; }
.grid-container .card:nth-child(2) { animation-delay: 0.2s; }
.grid-container .card:nth-child(3) { animation-delay: 0.3s; }
.grid-container .card:nth-child(4) { animation-delay: 0.4s; }
.grid-container .card:nth-child(5) { animation-delay: 0.5s; }
.grid-container .card:nth-child(6) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--card-hover-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(59, 130, 246, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-glow);
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), var(--blob-2));
}

.card-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover .card-hover-effect {
    opacity: 1;
}

/* Footer */
.footer {
    margin-top: 5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive & Mobile Adaptation */
@media (max-width: 768px) {
    .header {
        margin-bottom: 2rem;
    }
    .header h1 {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .container {
        padding: 2rem 1rem;
    }
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .card {
        padding: 1.5rem;
    }
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .blob-1 {
        width: 300px;
        height: 300px;
    }
    .blob-2 {
        width: 350px;
        height: 350px;
    }
    .blob-3 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    .card-content h3 {
        font-size: 1.2rem;
    }
    .card-content p {
        font-size: 0.9rem;
    }
}
