:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #10b981;
    --secondary-glow: rgba(16, 185, 129, 0.5);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glows */
.ambient-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
    opacity: 0.6;
    animation: drift 15s ease-in-out infinite alternate;
}

.ambient-glow.glow-2 {
    top: auto;
    bottom: -10%;
    left: auto;
    right: -10%;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* Main Container */
.hub-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.hub-header {
    text-align: center;
    margin-bottom: 50px;
}

.logo-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.hub-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--primary);
    filter: blur(30px);
    z-index: 1;
    opacity: 0.7;
    animation: pulse 4s infinite;
}

.hub-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

/* App Cards */
.app-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
}

.app-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

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

.card-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Hover Effects Specific */
.card-hover-fx {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.app-card:hover .card-hover-fx {
    opacity: 1;
    animation: rotateFx 10s linear infinite;
}

@keyframes rotateFx {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Specific Card Accents */
.app-card.pro:hover { box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3); border-color: #3b82f6; }
.app-card.financije:hover { box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3); border-color: #10b981; }
.app-card.sati:hover { box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3); border-color: #f59e0b; }
.app-card.mjere:hover { box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3); border-color: #8b5cf6; }

/* Footer */
.hub-footer {
    margin-top: 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

/* Responsive */
@media (max-width: 600px) {
    .hub-header h1 { font-size: 2rem; }
    .app-card { padding: 20px; }
    .card-icon { font-size: 3rem; }
}
