:root {
    /* Color Palette */
    --bg-color: #0f172a; /* Tailwindslate-900 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Card Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(16px);
    
    /* Theme Accents */
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-emerald: #10b981;
    --accent-red: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* --- Animated Gradient Blobs (Ambient Background) --- */
.blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-indigo), transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--accent-blue), transparent 60%);
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -5%) scale(0.9); }
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* --- Header Section --- */
.header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fade-in-down 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header-logo-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    transform: rotate(-10deg);
    transition: transform 0.5s ease;
}

.header:hover .header-logo-wrapper {
    transform: rotate(0deg) scale(1.05);
}

.header-icon {
    font-size: 2.5rem;
    color: white;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.title span {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Applications Grid --- */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    animation: fade-in-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
}

/* --- Application Card --- */
.app-card {
    display: flex;
    align-items: flex-start;
    padding: 1.75rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    group: hover;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.4s ease;
}

/* Hover Effects */
.app-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255,255,255, 0.05);
    background: rgba(255, 255, 255, 0.06);
}

.app-card:hover .card-arrow {
    transform: translateX(0);
    opacity: 1;
}

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

/* Card Themes (Top Borders & Icon Backgrounds) */
.app-card:has(.pdf-theme):hover::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.app-card:has(.tiktok-theme):hover::before { background: linear-gradient(90deg, #25f4ee, #fe2c55); }
.app-card:has(.carwash-theme):hover::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.app-card:has(.shield-theme):hover::before { background: linear-gradient(90deg, #10b981, #34d399); }
.app-card:has(.corporate-theme):hover::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.app-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-right: 1.25rem;
    transition: transform 0.4s ease;
}

/* Specific Icon Styling */
.pdf-theme { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.tiktok-theme { background: rgba(254, 44, 85, 0.15); color: #fe2c55; border: 1px solid rgba(254, 44, 85, 0.3); box-shadow: inset 0 0 10px rgba(37,244,238,0.2); }
.carwash-theme { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.shield-theme { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.corporate-theme { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }

/* Content within Card */
.app-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.app-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
}

/* Animated Arrow */
.card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: var(--glass-blur);
    margin-top: auto;
}

/* --- Keyframe Animations --- */
@keyframes fade-in-down {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        padding: 1.5rem;
    }
}
