﻿/* ======================================================
   BASE
====================================================== */
html, body {
    height: 100%;
    margin: 0;
    background-color: rgb(46, 50, 62); /* #2E323E */
    font-family: 'Public Sans', sans-serif;
}

/* ======================================================
   LAYOUT
====================================================== */
.portal-wrapper {
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at top, rgba(255,255,255,0.06), transparent),
        rgb(46, 50, 62);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* ======================================================
   TITLES
====================================================== */
.portal-title {
    color: #e5e3e0;
    font-weight: 700;
    font-size: 36px;
}

.portal-subtitle {
    color: #9aa4b2;
    font-size: 16px;
}

/* ======================================================
   CARD
====================================================== */
.portal-card {
    background: linear-gradient(180deg, #1c2230, #141824);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    transition: transform .35s ease, box-shadow .35s ease;
    height: 100%;

    display: flex;
    flex-direction: column;
    position: relative;

    /* entrance + idle animation */
    animation: fadeUp .8s ease both, float 6s ease-in-out infinite;
}

.portal-card:nth-child(2) {
    animation-delay: .15s, 1.5s;
}
.portal-card:nth-child(3) {
    animation-delay: .3s, 3s;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 45px 120px rgba(0,0,0,.85);
}

/* ======================================================
   CARD BODY
====================================================== */
.portal-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ======================================================
   ICON
====================================================== */
.portal-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 34px;
    color: #fff;
    animation: pulse 4s ease-in-out infinite;
}

.bg-orange {
    background: linear-gradient(135deg, #ff8a00, #ffb347);
}
.bg-primary {
    background: linear-gradient(135deg, #2b7cff, #5ea1ff);
}
.bg-success {
    background: linear-gradient(135deg, #00c853, #5efc82);
}

/* ======================================================
   TEXT
====================================================== */
.portal-card h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 10px;
}

.portal-card p {
    color: #aeb6c3;
    font-size: 14px;
    margin-bottom: 28px;
}

/* ======================================================
   BUTTONS
====================================================== */
.portal-btn {
    height: 48px;
    width: 100%;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-top: 24px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,.4);
}

.portal-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-orange {
    background: linear-gradient(135deg, #ff8a00, #ff6a00);
    color: #fff;
    border: none;
}
.btn-orange:hover {
    color: #fff;
}

/* ======================================================
   FOOTER
====================================================== */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 12px;
    color: #6f7785;
    font-size: 13px;
}

/* ======================================================
   ANIMATIONS
====================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255,255,255,0);
    }
    50% {
        box-shadow: 0 0 20px rgba(255,255,255,.25);
    }
}
