/* =====================================================
   BAClass — 404 Page  (404.css)
   ===================================================== */

/* ---------- body ---------- */
.nf-body {
    background: var(--cream, #fff7ef);
}

/* ---------- 404 section ---------- */
.nf-section {
    position: relative;
    z-index: 1;
    padding: 70px 20px 110px;
    background:
        radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--cream, #fff7ef) 60%, #fbeedd 100%);
    overflow: hidden;
}

/* ---------- floating blobs ---------- */
.nf-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
    animation: nfBlobFloat 20s ease-in-out infinite;
}
.nf-blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #f7941d 0%, transparent 70%);
    top: -12%; left: -8%;
}
.nf-blob-2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #16213a 0%, transparent 70%);
    top: 40%; right: -12%;
    animation-delay: -7s;
}
.nf-blob-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #1f2d4d 0%, transparent 70%);
    bottom: -8%; left: 22%;
    animation-delay: -14s;
}
@keyframes nfBlobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -20px) scale(1.05); }
    66%      { transform: translate(-20px, 15px) scale(0.95); }
}

/* ---------- floating particles ---------- */
.nf-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.nf-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0;
    animation: nfParticleFloat linear infinite;
}
@keyframes nfParticleFloat {
    0%   { opacity: 0; transform: translateY(0) scale(0.5); }
    15%  { opacity: 0.55; }
    85%  { opacity: 0.35; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* ---------- container ---------- */
.nf-container {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ---------- 404 number ---------- */
.nf-number-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.nf-digit {
    font-size: 8rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #16213a 0%, #1f2d4d 45%, #f7941d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    animation: nfDigitPulse 3s ease-in-out infinite;
    user-select: none;
}
.nf-digit:last-child {
    animation-delay: -1.5s;
}

@keyframes nfDigitPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50%      { transform: scale(1.04); filter: brightness(1.08); }
}

/* center icon (graduation cap) */
.nf-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 2px solid rgba(247, 148, 29, 0.35);
    box-shadow: 0 8px 32px rgba(22, 33, 58, 0.12),
                inset 0 0 20px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: nfIconBob 4s ease-in-out infinite;
}
.nf-icon-grad {
    width: 48px;
    height: 48px;
    color: #16213a;
}

@keyframes nfIconBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-6px) rotate(2deg); }
    75%      { transform: translateY(4px) rotate(-2deg); }
}

/* ---------- message ---------- */
.nf-message {
    font-size: 1.05rem;
    color: var(--muted, #5b6577);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- action buttons ---------- */
.nf-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.nf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nf-btn-primary {
    background: linear-gradient(135deg, #f7941d, #e07e08);
    color: #fff;
    box-shadow: 0 6px 24px rgba(247, 148, 29, 0.32);
}
.nf-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(247, 148, 29, 0.42);
}

.nf-btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #16213a;
    border: 1.5px solid rgba(22, 33, 58, 0.18);
    box-shadow: 0 4px 16px rgba(22, 33, 58, 0.06);
}
.nf-btn-secondary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(22, 33, 58, 0.14);
    border-color: rgba(247, 148, 29, 0.45);
    color: #16213a;
}

/* ---------- quick links ---------- */
.nf-quick-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.nf-quick-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #9aa3b2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nf-links-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.nf-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #16213a;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.nf-link:hover {
    background: rgba(247, 148, 29, 0.12);
    color: #e07e08;
}

.nf-link-dot {
    color: #d8cfc2;
    font-size: 1.2rem;
}

/* ---------- decorative pulse ring ---------- */
.nf-pulse-ring {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 2px solid rgba(247, 148, 29, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    animation: nfPulseRing 4s ease-out infinite;
}
.nf-pulse-ring::before,
.nf-pulse-ring::after {
    content: '';
    position: absolute;
    inset: -60px;
    border-radius: 50%;
    border: 1.5px solid rgba(22, 33, 58, 0.06);
    animation: nfPulseRing 4s ease-out infinite;
}
.nf-pulse-ring::before { animation-delay: 1.3s; }
.nf-pulse-ring::after  { animation-delay: 2.6s; }

@keyframes nfPulseRing {
    0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .nf-digit {
        font-size: 5rem;
    }
    .nf-icon-circle {
        width: 72px;
        height: 72px;
    }
    .nf-icon-grad {
        width: 36px;
        height: 36px;
    }
    .nf-message {
        font-size: 0.95rem;
    }
    .nf-btn {
        padding: 12px 24px;
        font-size: 0.88rem;
    }
    .nf-pulse-ring {
        width: 300px;
        height: 300px;
    }
    .nf-blob { display: none; }
}

@media (max-width: 480px) {
    .nf-digit {
        font-size: 3.8rem;
    }
    .nf-icon-circle {
        width: 56px;
        height: 56px;
    }
    .nf-icon-grad {
        width: 28px;
        height: 28px;
    }
    .nf-number-wrap {
        gap: 4px;
    }
    .nf-actions {
        flex-direction: column;
        align-items: center;
    }
}
