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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
    height: 100vh;
    background: #0a0a0f;
    color: #fff;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-canvas::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
    animation: bgDrift 20s ease-in-out infinite;
}

@keyframes bgDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-2%, 1%) rotate(1deg); }
    66% { transform: translate(1%, -1%) rotate(-0.5deg); }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
    top: 10%; left: 5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    bottom: 10%; right: 5%;
    animation-delay: -4s;
}

.orb-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
    top: 50%; left: 45%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Floating particles */
.particle {
    position: absolute;
    width: 3px; height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleRise linear infinite;
}

@keyframes particleRise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== HEADER ===== */
.portal-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-brand img {
    width: 36px; height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.portal-brand span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portal-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.portal-badge .dot {
    width: 6px; height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* ===== MAIN CONTENT ===== */
.portal-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0 40px;
}

.portal-center {
    text-align: center;
    max-width: 1100px;
    width: 100%;
}

.portal-title-group {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;
}

.portal-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.portal-subtitle i {
    color: #fbbf24;
}

.portal-heading {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portal-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.portal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 36px 40px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 28px 28px 0 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portal-card.card-green::before {
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
}

.portal-card.card-blue::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
}

.portal-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.portal-card.card-green::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

.portal-card.card-blue::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

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

.portal-card.card-green:hover {
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 30px 80px rgba(16, 185, 129, 0.1), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.portal-card.card-blue:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 30px 80px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.portal-card:hover::before,
.portal-card:hover::after {
    opacity: 1;
}

/* Logo Container */
.card-logo-wrapper {
    position: relative;
    z-index: 1;
    width: 110px;
    height: 110px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.card-green .card-logo-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    border: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.08);
}

.card-blue .card-logo-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.04));
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08);
}

.portal-card:hover .card-logo-wrapper {
    transform: scale(1.08) translateY(-4px);
}

.card-green:hover .card-logo-wrapper {
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.card-blue:hover .card-logo-wrapper {
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-logo-wrapper img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

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

/* Card Text */
.card-title {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.card-desc {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 320px;
}

/* Tags */
.card-tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.card-tag {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.card-green .card-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.card-blue .card-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* CTA Button */
.card-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    transition: all 0.4s ease;
    text-decoration: none;
}

.card-green .card-cta {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.card-green .card-cta:hover {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.card-blue .card-cta {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.card-blue .card-cta:hover {
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

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

.portal-card:hover .card-cta i {
    transform: translateX(4px);
}

/* ===== FOOTER ===== */
.portal-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-footer span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
}

.portal-footer a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.portal-footer a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .portal-container {
        padding: 100px 20px 80px;
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 500px;
        margin: 0 auto;
    }

    .portal-heading {
        font-size: 2.5rem;
    }

    .portal-title-group {
        margin-bottom: 40px;
    }

    .portal-card {
        padding: 40px 28px 36px;
    }

    .card-logo-wrapper {
        width: 96px;
        height: 96px;
        margin-bottom: 24px;
    }

    .card-logo-wrapper img {
        width: 60px;
        height: 60px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .portal-header {
        padding: 16px 20px;
        background: rgba(10, 10, 15, 0.8);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .portal-badge {
        display: none;
    }

    .portal-footer {
        position: relative;
        padding: 30px 20px;
        background: transparent;
    }
}

@media (max-width: 480px) {
    .portal-heading {
        font-size: 2rem;
    }

    .portal-desc {
        font-size: 1rem;
    }

    .portal-subtitle {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .card-tags {
        gap: 6px;
    }

    .card-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .card-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* Support for very small devices */
@media (max-width: 360px) {
    .portal-heading {
        font-size: 1.75rem;
    }
    .card-title {
        font-size: 1.3rem;
    }
}
