/* Design System & CSS Custom Properties */
:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Sleek Harmonious Color Palette (Deep Slate & Purple/Indigo accents) */
    --bg-main: #070913;
    --bg-radial: radial-gradient(circle at 50% 50%, #0d122b 0%, #070913 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent: #8b5cf6;
    --accent-rgb: 139, 92, 246;
    --accent-secondary: #06b6d4;
    --accent-secondary-rgb: 6, 182, 212;
    
    --card-bg: rgba(13, 17, 34, 0.45);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(139, 92, 246, 0.3);
    
    --glow-strength: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-main);
    background-image: var(--bg-radial);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Canvas */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Glowing Decorative Nebula Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: pulse 12s infinite alternate ease-in-out;
}

.orb-1 {
    top: 10%;
    left: 15%;
    width: 350px;
    height: 350px;
    background: rgba(var(--accent-rgb), 0.6);
}

.orb-2 {
    bottom: 15%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: rgba(var(--accent-secondary-rgb), 0.5);
    animation-delay: -4s;
}

.orb-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.4);
    animation-delay: -8s;
}

@keyframes pulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.15;
    }
    100% {
        transform: scale(1.2) translate(30px, -30px);
        opacity: 0.25;
    }
}

/* Container & Layout */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header Styling */
.header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
    animation: blink 2s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.4; }
    100% { opacity: 1; filter: brightness(1.2); }
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

/* Portal Grid and Cards */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.portal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    opacity: 1;
    transition: var(--transition-smooth);
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--text-primary);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

#card-fusspflege:hover .card-icon {
    color: var(--accent-secondary);
    background: rgba(var(--accent-secondary-rgb), 0.1);
    border-color: rgba(var(--accent-secondary-rgb), 0.3);
    box-shadow: 0 0 15px rgba(var(--accent-secondary-rgb), 0.2);
}

#card-artur:hover .card-icon {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.2);
}

.portal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.portal-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.card-action .arrow {
    width: 16px;
    height: 16px;
    transition: var(--transition-smooth);
}

/* Hover effects */
.portal-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 
                0 0 25px rgba(var(--accent-rgb), 0.1);
}

#card-fusspflege:hover {
    border-color: rgba(var(--accent-secondary-rgb), 0.35);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 
                0 0 25px rgba(var(--accent-secondary-rgb), 0.1);
}

.portal-card:hover .card-action {
    color: var(--text-primary);
}

.portal-card:hover .card-action .arrow {
    transform: translateX(4px);
}

/* Placeholder card styling */
.placeholder-card {
    background: rgba(13, 17, 34, 0.2);
    border-style: dashed;
    border-width: 1.5px;
    cursor: default;
}

.placeholder-card::before {
    display: none;
}

.placeholder-card .card-icon {
    color: var(--text-muted);
}

.placeholder-card h3 {
    color: var(--text-secondary);
}

.placeholder-card p {
    color: var(--text-muted);
}

.placeholder-card:hover {
    transform: none;
    border-color: var(--card-border);
    box-shadow: none;
}

.status-text {
    color: var(--text-muted);
    font-style: italic;
}

/* Footer Styling */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 2s infinite alternate ease-in-out;
}

@keyframes pulse-dot {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .header {
        margin-bottom: 3rem;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .portal-card {
        padding: 2rem;
    }
    
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
