/* ===== PAGE 404 - DESIGN PREMIUM ===== */

.error-404-section {
    position: relative;
    min-height: 100vh;
    background: 
        radial-gradient(ellipse at top, rgba(0, 180, 219, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0B1B35 0%, #1E3D59 50%, #0B1B35 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0 100px;
    overflow: hidden;
}

/* Error Shapes */
.error-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.error-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.error-shapes .shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--tech-gradient-3), var(--primary-color));
    top: -100px;
    left: -100px;
    animation: float-error 15s ease-in-out infinite;
}

.error-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    bottom: -100px;
    right: -100px;
    animation: float-error 20s ease-in-out infinite reverse;
}

@keyframes float-error {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(50px, 50px) rotate(180deg); }
}

.glitch-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 180, 219, 0.03) 2px,
        rgba(0, 180, 219, 0.03) 4px
    );
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--tech-gradient-3);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--tech-gradient-3);
    animation: particleFloat 10s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    top: 70%;
    left: 90%;
    animation-delay: 5s;
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, -200px);
        opacity: 0;
    }
}

/* Astronaut */
.astronaut-wrapper {
    position: relative;
    margin-bottom: 40px;
    height: 200px;
}

.astronaut {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: var(--tech-gradient-3);
    animation: astronautFloat 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes astronautFloat {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(-5deg);
    }
    50% { 
        transform: translate(-50%, -60%) rotate(5deg);
    }
}

.planet {
    position: absolute;
    border-radius: 50%;
    animation: planetOrbit 15s linear infinite;
}

.planet-1 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
    top: 20%;
    left: 20%;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.planet-2 {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    top: 70%;
    right: 25%;
    animation-delay: -7s;
    box-shadow: 0 0 25px rgba(78, 205, 196, 0.5);
}

@keyframes planetOrbit {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, -50px) rotate(360deg); }
}

.stars .star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff;
    animation: starTwinkle 3s ease-in-out infinite;
}

.star:nth-child(1) {
    top: 10%;
    left: 30%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.star:nth-child(3) {
    bottom: 20%;
    left: 60%;
    animation-delay: 2s;
}

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

/* Error Content */
.error-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Error Code */
.error-code-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.error-code {
    font-size: 180px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 3px rgba(255, 255, 255, 0.3);
    line-height: 1;
    position: relative;
    display: flex;
    gap: 10px;
    justify-content: center;
    animation: glitch-animation 3s infinite;
}

.error-code span {
    display: inline-block;
}

.zero-special {
    background: linear-gradient(135deg, var(--tech-gradient-3), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
    animation: zeroSpin 4s ease-in-out infinite;
}

@keyframes zeroSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

@keyframes glitch-animation {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.error-code::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: -2px;
    width: 100%;
    color: var(--tech-gradient-3);
    -webkit-text-stroke: 0;
    opacity: 0.8;
    animation: glitch-before 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.error-code::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 2px;
    width: 100%;
    color: var(--primary-color);
    -webkit-text-stroke: 0;
    opacity: 0.8;
    animation: glitch-after 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite reverse;
}

@keyframes glitch-before {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(20% 0 60% 0); }
    40% { clip-path: inset(60% 0 20% 0); }
    60% { clip-path: inset(40% 0 40% 0); }
    80% { clip-path: inset(70% 0 10% 0); }
}

@keyframes glitch-after {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(70% 0 10% 0); }
    40% { clip-path: inset(10% 0 70% 0); }
    60% { clip-path: inset(50% 0 30% 0); }
    80% { clip-path: inset(20% 0 60% 0); }
}

.error-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: var(--tech-gradient-3);
    opacity: 0.2;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

/* Error Title */
.error-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.error-message {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Error Actions */
.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-home,
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-home {
    background: linear-gradient(135deg, var(--tech-gradient-3), var(--primary-color));
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 180, 219, 0.4);
    z-index: 1;
}

.btn-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-home:hover::before {
    left: 100%;
}

.btn-home:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 180, 219, 0.7);
}

.btn-contact {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 219, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-contact:hover::before {
    left: 100%;
}

.btn-contact:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--tech-gradient-3);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 180, 219, 0.4);
}

/* Broken Link Illustration */
.error-illustration {
    margin: 40px 0;
}

.broken-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.chain {
    width: 80px;
    height: 8px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 180, 219, 0.6) 50%, 
        transparent 100%);
    position: relative;
}

.chain::before,
.chain::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--tech-gradient-3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 15px var(--tech-gradient-3);
}

.chain-left::before {
    left: 0;
}

.chain-left::after {
    right: 0;
}

.chain-right::before {
    left: 0;
}

.chain-right::after {
    right: 0;
}

.broken-link i {
    font-size: 40px;
    color: #ff5733;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Quick Links */
.quick-links {
    max-width: 800px;
    margin: 0 auto;
}

.links-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.links-title i {
    color: var(--tech-gradient-3);
    font-size: 20px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 180, 219, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.quick-link-card:hover::before {
    left: 100%;
}

.link-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, 
        rgba(0, 180, 219, 0.2), 
        rgba(47, 85, 212, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.link-icon i {
    font-size: 22px;
    color: var(--tech-gradient-3);
}

.quick-link-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--tech-gradient-3);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 180, 219, 0.3);
}

.quick-link-card:hover .link-icon {
    background: linear-gradient(135deg, var(--tech-gradient-3), var(--primary-color));
    transform: rotate(360deg);
}

.quick-link-card:hover .link-icon i {
    color: #ffffff;
}

/* Fun Message */
.fun-message {
    margin-top: 50px;
    padding: 20px 30px;
    background: rgba(0, 180, 219, 0.1);
    border: 2px solid rgba(0, 180, 219, 0.3);
    border-radius: 50px;
    display: inline-block;
}

.fun-message p {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Button Ripple Effect */
.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-home:hover .btn-ripple,
.btn-contact:hover .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Responsive */
@media (max-width: 992px) {
    .astronaut {
        font-size: 60px;
    }
    
    .astronaut-wrapper {
        height: 150px;
    }
    
    .planet-1 {
        width: 30px;
        height: 30px;
    }
    
    .planet-2 {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    .error-code {
        font-size: 120px;
        -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    }
    
    .error-title {
        font-size: 32px;
    }
    
    .error-message {
        font-size: 16px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .astronaut {
        font-size: 50px;
    }
    
    .astronaut-wrapper {
        height: 120px;
        margin-bottom: 30px;
    }
    
    .chain {
        width: 50px;
    }
    
    .broken-link i {
        font-size: 30px;
    }
    
    .fun-message {
        margin-top: 30px;
        padding: 15px 20px;
    }
    
    .fun-message p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 80px;
    }
    
    .astronaut {
        font-size: 40px;
    }
    
    .astronaut-wrapper {
        height: 100px;
    }
    
    .planet-1, .planet-2 {
        width: 20px;
        height: 20px;
    }
    
    .error-illustration {
        margin: 30px 0;
    }
    
    .chain {
        width: 30px;
    }
    
    .broken-link i {
        font-size: 24px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-link-card {
        padding: 20px;
    }
}

