* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Animated geometric background */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    border: 2px solid rgba(59, 195, 240, 0.1);
    animation: geometricFloat 15s infinite linear;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 80%;
    animation-delay: 3s;
    border-radius: 50%;
}

.shape-3 {
    width: 40px;
    height: 40px;
    top: 30%;
    left: 70%;
    animation-delay: 6s;
    transform: rotate(45deg);
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 9s;
    border-radius: 50%;
}

.shape-5 {
    width: 50px;
    height: 50px;
    top: 50%;
    left: 5%;
    animation-delay: 12s;
    transform: rotate(45deg);
}

@keyframes geometricFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Glitch effect particles */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 900px;
    padding: 20px;
    animation: slideInFromBottom 1s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo with holographic effect */
.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
    background: linear-gradient(45deg, rgba(59, 195, 240, 0.1), rgba(255, 255, 255, 0.05));
    padding: 15px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(59, 195, 240, 0.3);
    position: relative;
    z-index: 2;
    animation: logoHolo 4s ease-in-out infinite;
}

@keyframes logoHolo {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 195, 240, 0.5),
            0 0 40px rgba(59, 195, 240, 0.3),
            0 0 60px rgba(59, 195, 240, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(59, 195, 240, 0.8),
            0 0 60px rgba(59, 195, 240, 0.5),
            0 0 90px rgba(59, 195, 240, 0.2);
    }
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #3bc3f0, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 25px;
    z-index: 1;
    animation: logoGradient 3s ease-in-out infinite;
    filter: blur(15px);
    opacity: 0.7;
}

@keyframes logoGradient {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

/* Glitch 404 effect */
.error-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.error-number {
    font-size: 10rem;
    font-weight: 900;
    color: #3bc3f0;
    /* text-shadow: 0 0 0px rgba(59, 195, 240, 0.8); */
    position: relative;
    display: inline-block;
    animation: glitchAnimation 3s infinite;
}

.error-number::before,
.error-number::after {
    content: '404';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.error-number::before {
    color: #ff6b6b;
    z-index: -1;
    animation: glitchBefore 3s infinite;
}

.error-number::after {
    color: #4ecdc4;
    z-index: -2;
    animation: glitchAfter 3s infinite;
}

@keyframes glitchAnimation {

    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);
    }
}

@keyframes glitchBefore {

    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);
    }
}

@keyframes glitchAfter {

    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);
    }
}

/* Neon text effects */
.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(59, 195, 240, 0.6),
        0 0 30px rgba(59, 195, 240, 0.4);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(59, 195, 240, 0.6),
            0 0 30px rgba(59, 195, 240, 0.4);
    }

    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1),
            0 0 30px rgba(59, 195, 240, 0.8),
            0 0 40px rgba(59, 195, 240, 0.6);
    }
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    line-height: 1.6;
    font-weight: 300;
}

/* Interactive navigation panel */
.nav-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 195, 240, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.nav-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 195, 240, 0.1), transparent);
    animation: scanLine 3s infinite;
}

@keyframes scanLine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.nav-item {
    background: rgba(59, 195, 240, 0.1);
    border: 2px solid rgba(59, 195, 240, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(59, 195, 240, 0.2), rgba(255, 107, 107, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #3bc3f0;
    box-shadow: 0 10px 30px rgba(59, 195, 240, 0.3);
}

.nav-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.nav-text {
    flex: 1;
}

.nav-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.nav-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Main action button */
.main-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #3bc3f0 0%, #2a9fd4 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 195, 240, 0.4);
    position: relative;
    overflow: hidden;
}

.main-button::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.5s;
}

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

.main-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 195, 240, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .error-number {
        font-size: 7rem;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .nav-panel {
        padding: 25px;
    }

    .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .error-number {
        font-size: 5rem;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .nav-item {
        padding: 15px;
    }

    .main-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}