/* ========================================
   404 Page Styles - Megamax Services
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ========================================
   Animated Background Circles
   ======================================== */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    background: #ff6b35;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    background: #004e89;
    bottom: -150px;
    right: -150px;
    animation-delay: 2s;
}

.bg-circle-3 {
    width: 200px;
    height: 200px;
    background: #ff6b35;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ========================================
   Main Container
   ======================================== */
.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Error Code (404)
   ======================================== */
.error-code {
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #004e89 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitch 3s infinite;
    position: relative;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 78, 137, 0.5);
    }
}

/* ========================================
   Decorative Line
   ======================================== */
.decorative-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #004e89 100%);
    margin: 0 auto 30px;
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.4s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* ========================================
   Error Title & Message
   ======================================== */
.error-title {
    font-size: 32px;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 600;
    animation: fadeIn 1s ease-out 0.3s both;
}

.error-message {
    font-size: 18px;
    color: #a0a0a0;
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.7s both;
}

.btn {
    padding: 14px 32px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Primary Button (Orange) */
.btn-primary {
    background: #ff6b35;
    color: #ffffff;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Secondary Button (Blue) */
.btn-secondary {
    background: transparent;
    color: #004e89;
    border: 2px solid #004e89;
}

.btn-secondary:hover {
    background: #004e89;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 78, 137, 0.4);
}

.btn span {
    position: relative;
    z-index: 1;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .error-code {
        font-size: 120px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-message {
        font-size: 16px;
    }

    .btn-container {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .bg-circle-1 {
        width: 200px;
        height: 200px;
    }

    .bg-circle-2 {
        width: 300px;
        height: 300px;
    }

    .bg-circle-3 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 90px;
    }

    .error-title {
        font-size: 20px;
    }

    .error-message {
        font-size: 14px;
        padding: 0 10px;
    }

    .container {
        padding: 30px 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}
