/* ========== 404 ERROR PAGE - BRAND THEME ========== */

.error-404-brand {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0a1a30 100%);
}

/* Animated Background */
.error-bg-brand {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.error-gradient-brand {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(74, 111, 165, 0.3), rgba(19, 41, 75, 0) 70%);
    animation: rotateGradientBrand 20s linear infinite;
}

/* Particles */
.error-particles-brand {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.error-particle-brand {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(74, 111, 165, 0.5);
    border-radius: 50%;
    animation: floatParticleBrand 10s ease-in-out infinite;
}

.error-particle-brand:nth-child(1) { top: 20%; left: 10%; width: 3px; height: 3px; animation-delay: 0s; }
.error-particle-brand:nth-child(2) { top: 70%; left: 85%; width: 2px; height: 2px; animation-delay: 1s; }
.error-particle-brand:nth-child(3) { top: 45%; left: 20%; width: 4px; height: 4px; animation-delay: 2s; }
.error-particle-brand:nth-child(4) { top: 85%; left: 40%; width: 2px; height: 2px; animation-delay: 3s; }
.error-particle-brand:nth-child(5) { top: 15%; left: 75%; width: 3px; height: 3px; animation-delay: 4s; }
.error-particle-brand:nth-child(6) { top: 55%; left: 95%; width: 2px; height: 2px; animation-delay: 5s; }
.error-particle-brand:nth-child(7) { top: 90%; left: 15%; width: 3px; height: 3px; animation-delay: 6s; }
.error-particle-brand:nth-child(8) { top: 30%; left: 50%; width: 2px; height: 2px; animation-delay: 7s; }
.error-particle-brand:nth-child(9) { top: 65%; left: 65%; width: 4px; height: 4px; animation-delay: 8s; }
.error-particle-brand:nth-child(10) { top: 10%; left: 45%; width: 2px; height: 2px; animation-delay: 9s; }
.error-particle-brand:nth-child(11) { top: 50%; left: 30%; width: 3px; height: 3px; animation-delay: 10s; }
.error-particle-brand:nth-child(12) { top: 80%; left: 70%; width: 2px; height: 2px; animation-delay: 11s; }

/* Floating Shapes */
.error-shapes-brand {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.error-shape-brand {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(74, 111, 165, 0.2);
    border-radius: 12px;
    transform: rotate(45deg);
    animation: floatShapeBrand 15s ease-in-out infinite;
}

.error-shape-brand:nth-child(1) { top: 15%; left: 5%; width: 60px; height: 60px; animation-delay: 0s; }
.error-shape-brand:nth-child(2) { bottom: 20%; right: 8%; width: 80px; height: 80px; animation-delay: 2s; }
.error-shape-brand:nth-child(3) { top: 60%; left: 85%; width: 50px; height: 50px; animation-delay: 4s; }
.error-shape-brand:nth-child(4) { bottom: 40%; left: 15%; width: 70px; height: 70px; animation-delay: 6s; }
.error-shape-brand:nth-child(5) { top: 80%; right: 20%; width: 45px; height: 45px; animation-delay: 8s; }

/* Container */
.error-404-container-brand {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.error-404-content-brand {
    text-align: center;
    position: relative;
    animation: fadeInUpBrand 1s ease-out;
}

/* Animated 404 Number */
.error-404-number-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.error-digit-brand {
    font-size: 12rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(74, 111, 165, 0.5);
    animation: bounceDigitBrand 2s ease-in-out infinite;
    display: inline-block;
}

.error-digit-brand:nth-child(1) {
    animation-delay: 0s;
}

.error-digit-brand:nth-child(3) {
    animation-delay: 0.3s;
}

.error-icon-brand {
    position: relative;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--primary-navy), #1e3a5f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(74, 111, 165, 0.5), 0 0 80px rgba(74, 111, 165, 0.3);
    animation: pulseGlowBrand 2s ease-in-out infinite;
}

.error-icon-brand i {
    font-size: 4rem;
    color: white;
    animation: rotateIconBrand 4s linear infinite;
}

.error-icon-ring-brand {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(74, 111, 165, 0.5);
    border-radius: 50%;
    animation: ringPulseBrand 2s ease-out infinite;
}

/* Title and Message */
.error-title-brand {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideInLeftBrand 0.8s ease-out;
}

.error-message-brand {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto 2.5rem auto;
    animation: slideInRightBrand 0.8s ease-out;
}

/* Button */
.error-button-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    color: var(--primary-navy);
    border: none;
    border-radius: 60px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInUpBrand 0.8s ease-out 0.4s both;
}

.error-button-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(19, 41, 75, 0.1), transparent);
    transition: left 0.6s ease;
}

.error-button-brand:hover::before {
    left: 100%;
}

.error-button-brand:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    gap: 1.2rem;
    background: white;
    color: var(--primary-navy);
}

.error-button-brand i:first-child {
    transition: transform 0.3s ease;
}

.error-button-brand:hover i:first-child {
    transform: translateX(-3px);
}

.error-button-brand i:last-child {
    transition: transform 0.3s ease;
}

.error-button-brand:hover i:last-child {
    transform: translateX(3px);
}

/* Sparkles */
.error-sparkles-brand {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.error-sparkles-brand i {
    position: absolute;
    color: rgba(74, 111, 165, 0.6);
    font-size: 1rem;
    animation: sparkleBrand 3s ease-in-out infinite;
}

.error-sparkles-brand i:nth-child(1) { top: 10%; left: 8%; animation-delay: 0s; font-size: 1.2rem; }
.error-sparkles-brand i:nth-child(2) { top: 75%; right: 10%; animation-delay: 1s; font-size: 0.9rem; }
.error-sparkles-brand i:nth-child(3) { bottom: 15%; left: 12%; animation-delay: 2s; font-size: 0.8rem; }
.error-sparkles-brand i:nth-child(4) { top: 40%; right: 12%; animation-delay: 3s; font-size: 1rem; }
.error-sparkles-brand i:nth-child(5) { top: 85%; left: 45%; animation-delay: 4s; font-size: 1.1rem; }

/* Animations */
@keyframes rotateGradientBrand {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatParticleBrand {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.8;
    }
}

@keyframes floatShapeBrand {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.2;
    }
    50% {
        transform: rotate(45deg) translateY(-20px);
        opacity: 0.4;
    }
}

@keyframes bounceDigitBrand {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulseGlowBrand {
    0%, 100% {
        box-shadow: 0 0 40px rgba(74, 111, 165, 0.5), 0 0 80px rgba(74, 111, 165, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(74, 111, 165, 0.7), 0 0 100px rgba(74, 111, 165, 0.5);
        transform: scale(1.05);
    }
}

@keyframes ringPulseBrand {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes rotateIconBrand {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUpBrand {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeftBrand {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRightBrand {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .error-404-brand {
        padding: 3rem 1.5rem;
    }
    
    .error-digit-brand {
        font-size: 6rem;
    }
    
    .error-icon-brand {
        width: 80px;
        height: 80px;
    }
    
    .error-icon-brand i {
        font-size: 2.5rem;
    }
    
    .error-icon-ring-brand {
        width: 100px;
        height: 100px;
    }
    
    .error-404-number-brand {
        gap: 1rem;
    }
    
    .error-title-brand {
        font-size: 2.5rem;
    }
    
    .error-message-brand {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .error-button-brand {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .error-shape-brand {
        width: 30px;
        height: 30px;
    }
    
    .error-shape-brand:nth-child(1) { width: 40px; height: 40px; }
    .error-shape-brand:nth-child(2) { width: 50px; height: 50px; }
    .error-shape-brand:nth-child(3) { width: 35px; height: 35px; }
}

@media (max-width: 480px) {
    .error-digit-brand {
        font-size: 4rem;
    }
    
    .error-icon-brand {
        width: 60px;
        height: 60px;
    }
    
    .error-icon-brand i {
        font-size: 1.8rem;
    }
    
    .error-icon-ring-brand {
        width: 80px;
        height: 80px;
    }
    
    .error-title-brand {
        font-size: 1.8rem;
    }
    
    .error-message-brand {
        font-size: 0.9rem;
    }
    
    .error-button-brand {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}