:root {
    --bg-color: #0f0f13;
    --text-color: #ffffff;
    --text-secondary: #a0a0b0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-bg: rgba(255, 255, 255, 0.1);
    --accent-color: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.5);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4f46e5, #0000);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #c026d3, #0000);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06b6d4, #0000);
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* Container */
.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #d8c66d 0%, #ff6600 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    background: linear-gradient(135deg, #ffb84d 0%, #faa66e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* Grid (Now Flex) */
.apps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 1.5rem;
    flex-grow: 1;
}

/* Card */
/* Card */
.app-card {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.05), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 20px;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align to top */
    align-items: flex-start;
    /* Align left */
    text-align: left;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out backwards;
    aspect-ratio: 1 / 1;
}

/* ... hover effects ... */
.app-card:nth-child(1) {
    animation-delay: 0.2s;
}

.app-card:nth-child(2) {
    animation-delay: 0.4s;
}

.app-card:nth-child(3) {
    animation-delay: 0.6s;
}

.app-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.08), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 102, 0, 0.5);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.15);
}

.app-card::before {
    content: '';
    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.5s;
    pointer-events: none;
}

.app-card:hover::before {
    opacity: 1;
}

/* New Header Layout */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    /* Removed margin */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card h2 {
    font-size: 1rem;
    margin-bottom: 0;
    /* Removed margin */
    font-weight: 600;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card p {
    color: var(--text-secondary);
    line-height: 1.2;
    margin-bottom: auto;
    /* Push button to bottom if needed, or just flow */
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Allow more lines for description */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    /* Allow description to take space */
}

.launch-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--accent-color);
    transition: transform 0.3s;
    font-size: 0.7rem;
}

.arrow {
    margin-left: 0.25rem;
    transition: transform 0.3s;
}

.app-card:hover .arrow {
    transform: translateX(3px);
}

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

.heart {
    color: #ef4444;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
.app-card {
    width: 46%;
    /* 2 columns on mobile with gap */
}

@media (min-width: 640px) {
    .app-card {
        width: 30%;
        /* 3 columns on SM */
    }
}

@media (min-width: 768px) {
    .app-card {
        width: 30%;
        /* Keep 3 columns on MD for more space */
        padding: 1rem;
    }

    .icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 0.75rem;
    }

    .app-card h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .app-card p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .launch-btn {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .app-card {
        width: 22%;
        /* 4 columns on LG */
    }
}

@media (min-width: 1280px) {
    .app-card {
        width: 18%;
        /* 5 columns on XL */
        padding: 1.25rem;
    }

    .icon-wrapper {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .app-card h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .app-card p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .launch-btn {
        font-size: 0.9rem;
    }
}

@media (min-width: 1536px) {
    .app-card {
        width: 15%;
        /* 6 columns on 2XL */
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .apps-grid {
        gap: 0.75rem;
    }
}