:root {
    --primary-bg: #0a0e17;
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(30, 41, 59, 0.7);
    --card-hover-border: rgba(56, 189, 248, 0.3);
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #38bdf8;
    --accent-indigo: #818cf8;
    --gradient-glow: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    /* Needed for pseudo-elements */
}

/* Vivid Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Stronger, more colorful gradient */
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%),
        linear-gradient(125deg, rgba(56, 189, 248, 0.4) 0%, transparent 40%),
        linear-gradient(215deg, rgba(99, 102, 241, 0.4) 0%, transparent 40%),
        linear-gradient(35deg, rgba(236, 72, 153, 0.2) 0%, transparent 40%);
    background-size: 150% 150%;
    z-index: -2;
    animation: gradientPulse 15s ease-in-out infinite alternate;
}

/* Clear Puzzle/Tech Grid Pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Hexagonal / Puzzle-like pattern using CSS gradients */
    background-image:
        linear-gradient(30deg, #1e293b 12%, transparent 12.5%, transparent 87%, #1e293b 87.5%, #1e293b),
        linear-gradient(150deg, #1e293b 12%, transparent 12.5%, transparent 87%, #1e293b 87.5%, #1e293b),
        linear-gradient(30deg, #1e293b 12%, transparent 12.5%, transparent 87%, #1e293b 87.5%, #1e293b),
        linear-gradient(150deg, #1e293b 12%, transparent 12.5%, transparent 87%, #1e293b 87.5%, #1e293b),
        linear-gradient(60deg, rgba(56, 189, 248, 0.1) 25%, transparent 25.5%, transparent 75%, rgba(56, 189, 248, 0.1) 75%, rgba(56, 189, 248, 0.1)),
        linear-gradient(60deg, rgba(56, 189, 248, 0.1) 25%, transparent 25.5%, transparent 75%, rgba(56, 189, 248, 0.1) 75%, rgba(56, 189, 248, 0.1));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.15;
    /* Increased opacity for visibility */
    z-index: -1;
    animation: puzzleFloat 20s linear infinite;
}

@keyframes gradientPulse {
    0% {
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }

    100% {
        transform: scale(1.1) rotate(5deg);
        filter: hue-rotate(15deg);
    }
}

@keyframes puzzleFloat {
    0% {
        background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    }

    100% {
        background-position: 0 140px, 0 140px, 40px 210px, 40px 210px, 0 140px, 40px 210px;
    }
}

.container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

/* Header - More Compact */
header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease-out;
}

.logo-container {
    margin-bottom: 0.75rem;
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    padding: 1rem;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.05);
}

.logo-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
}

/* Compact Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(56, 189, 248, 0.1);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.app-card:hover .icon-box {
    background: var(--gradient-glow);
    color: white;
    border-color: transparent;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.card-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.arrow-icon {
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s ease;
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.app-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Footer - Minimalist */
.features-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.feature-icon {
    color: var(--accent-indigo);
    font-size: 1rem;
    margin-bottom: 0;
}

.feature-item h4 {
    margin: 0;
    font-weight: 400;
    font-size: 0.85rem;
}

/* Under Construction Specifics */
.construction-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.gear-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    animation: spin-slow 10s linear infinite;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.construction-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.construction-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    width: 75%;
    /* Simulating progress */
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo));
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(-45deg,
            rgba(255, 255, 255, .2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, .2) 50%,
            rgba(255, 255, 255, .2) 75%,
            transparent 75%,
            transparent);
    z-index: 1;
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

.btn-back {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
    filter: brightness(1.1);
}

@keyframes spin-slow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .app-grid {
        grid-template-columns: 1fr;
    }

    .features-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .construction-title {
        font-size: 2rem;
    }
}