:root {
    --primary-blue: #0A2E5C;
    --primary-blue-light: #16488A;
    --primary-green: #4CAF50;
    --primary-green-light: #61C565;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #051329;
}

.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1631549916768-4119b2e5f926?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: -2;
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 19, 41, 0.88) 0%, rgba(10, 46, 92, 0.75) 100%);
    z-index: -1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Header */
.top-header {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.brand-logo {
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* Main */
.portal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-text {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 650px;
}

.intro-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.intro-text h1 span {
    color: var(--primary-green-light);
}

.intro-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Cards */
.portal-cards {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
}

.portal-card {
    text-decoration: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.card-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(70px);
    z-index: 0;
}

.card-green .card-glow { background: var(--primary-green); }
.card-blue .card-glow { background: #00A3E0; }

.portal-card:hover {
    transform: translateY(-20px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.portal-card:hover .card-glow {
    opacity: 0.6;
}

.icon-wrapper {
    background: rgba(255,255,255,0.95);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
    padding: 1rem;
    transition: transform 0.4s ease;
}

.portal-card:hover .icon-wrapper {
    transform: scale(1.05);
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-card h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.portal-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.card-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.card-green .card-action { background: rgba(76, 175, 80, 0.15); border: 1px solid rgba(76, 175, 80, 0.4); }
.card-blue .card-action { background: rgba(0, 163, 224, 0.15); border: 1px solid rgba(0, 163, 224, 0.4); }

.portal-card:hover.card-green .card-action { background: var(--primary-green); border-color: var(--primary-green); }
.portal-card:hover.card-blue .card-action { background: #00A3E0; border-color: #00A3E0; }

.card-action i {
    transition: transform 0.3s ease;
}

.portal-card:hover .card-action i {
    transform: translateX(6px);
}

/* Footer */
.bottom-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 1rem;
    margin-top: 2rem;
}

.footer-badges {
    display: flex;
    gap: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--primary-green-light);
    background: rgba(0,0,0,0.25);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.08);
}

.bottom-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .portal-cards {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .portal-card {
        width: 100%;
        max-width: 500px;
        padding: 2.5rem;
    }
    .intro-text h1 {
        font-size: 2.8rem;
    }
}
