@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #0f172a;
    --text-muted: #64748b;
    --blue-primary: #2563eb;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f1f5f9 100%);
    background-attachment: fixed;
    color: var(--ink);
    min-height: 100vh;
}

.bg-blobs { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100vw; height: 100vh; 
    z-index: -1; 
    overflow: hidden; 
}

.blob { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(100px); 
    opacity: 0.6; 
    animation: float 15s infinite ease-in-out alternate; 
}

.blob-1 { 
    width: 600px; height: 600px; 
    background: rgba(255, 255, 255, 0.9); 
    top: -100px; right: -100px; 
}

.blob-2 { 
    width: 500px; height: 500px; 
    background: rgba(37, 99, 235, 0.08); 
    bottom: -150px; left: -100px; 
    animation-delay: -5s; 
}

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

.glass-panel { 
    background: var(--glass-bg); 
    backdrop-filter: blur(24px); 
    border: 1px solid var(--glass-border); 
    border-radius: 24px; 
    box-shadow: var(--glass-shadow); 
}

.glass-input { 
    width: 100%; 
    padding: 0.75rem 1rem; 
    border: 1px solid rgba(0, 0, 0, 0.1); 
    border-radius: 8px; 
    background: rgba(255, 255, 255, 0.8); 
    color: var(--ink); 
    transition: all 0.3s ease; 
}

.glass-input:focus { 
    outline: none; 
    border-color: var(--blue-primary); 
    background: #fff; 
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); 
}

.btn-primary { 
    background: var(--blue-primary); 
    color: white; 
    padding: 0.75rem 1.5rem; 
    border-radius: 8px; 
    font-weight: 600; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.btn-primary:hover { 
    background: #1d4ed8; 
    transform: translateY(-2px); 
}

.btn-secondary { 
    background: rgba(255,255,255,0.5); 
    color: var(--ink); 
    border: 1px solid rgba(0,0,0,0.1); 
    padding: 0.75rem 1.5rem; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.btn-secondary:hover { 
    background: #fff; 
}

.app-card {
    background: var(--glass-bg); 
    backdrop-filter: blur(24px); 
    border: 1px solid var(--glass-border);
    border-radius: 24px; 
    padding: 2.5rem 2rem; 
    text-decoration: none; 
    color: var(--ink);
    box-shadow: var(--glass-shadow); 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    position: relative; 
    overflow: hidden;
}

.app-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 4px; 
    background: var(--card-color, var(--blue-primary)); 
    transform: scaleX(0); 
    transition: transform 0.4s ease; 
    transform-origin: left; 
}

.app-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px -10px rgba(31, 38, 135, 0.15); 
    background: rgba(255, 255, 255, 0.85); 
}

.app-card:hover::before { 
    transform: scaleX(1); 
}

.app-icon-wrapper { 
    width: 80px; height: 80px; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
    transition: transform 0.4s ease; 
    background: var(--icon-bg, #eff6ff); 
    color: var(--card-color, #2563eb); 
}

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

.modal { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(4px); 
    z-index: 50; 
    align-items: center; 
    justify-content: center; 
    padding: 1rem; 
}

.modal.active { 
    display: flex; 
}

.modal-content { 
    background: #fff; 
    border-radius: 24px; 
    width: 100%; 
    max-width: 600px; 
    max-height: 90vh; 
    overflow-y: auto; 
    padding: 2rem; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); 
}
