/* ===== Google Fonts ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Portal Cards ===== */
.portal-card {
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    overflow: hidden;
    position: relative;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
}

.portal-card:hover::before {
    opacity: 1;
}

.portal-card .card-body {
    padding: 2rem 1.5rem !important;
}

/* ===== Portal Icon ===== */
.portal-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portal-icon i {
    font-size: 2.2rem;
    transition: transform 0.3s ease;
}

.portal-card:hover .portal-icon i {
    transform: scale(1.15);
}

/* Card-specific accent colors for the top border */
.portal-card:nth-child(1) { --card-accent: #dc3545; }
.portal-card:nth-child(2) { --card-accent: #198754; }
.portal-card:nth-child(3) { --card-accent: #ffc107; }
.portal-card:nth-child(4) { --card-accent: #0dcaf0; }

/* ===== Buttons ===== */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== Navbar ===== */
.navbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

/* ===== Footer ===== */
footer {
    flex-shrink: 0;
}

/* ===== Typography ===== */
.display-5 {
    letter-spacing: -1px;
}

.lead {
    font-weight: 400;
    font-size: 1.15rem;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 991.98px) {
    .portal-card {
        margin-bottom: 0.5rem;
    }

    .display-5 {
        font-size: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .portal-icon {
        width: 65px;
        height: 65px;
    }

    .portal-icon i {
        font-size: 1.8rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }
}