<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - Page Not Found | Cuts From The Valley</title>
    
    <!-- SEO Meta Tags -->
    <meta name="description" content="The page you're looking for doesn't exist. Return to Cuts From The Valley homepage.">
    <meta name="robots" content="noindex, follow">
    
    <!-- Security Headers -->
    <meta http-equiv="X-Content-Type-Options" content="nosniff">
    <meta http-equiv="X-Frame-Options" content="SAMEORIGIN">
    <meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin">
    
    <!-- Underground/Punk Font Theme -->
    <!-- Embedded Fonts - Base64 Encoded -->
    <link rel="stylesheet" href="embedded_fonts.css">
    
    <!-- Privacy-Focused Analytics -->
    
    <style>
        /* CSS Variables */
        :root {
            --turquoise-primary: #25D0B3;
            --turquoise-light: #3CDCBE;
            --turquoise-medium: #41D4BA;
            --turquoise-dark: #30A794;
            --auburn-primary: #A0522D;
            --auburn-light: #CD853F;
            --auburn-dark: #8B4513;
            --bg-primary: #0a0a0a;
            --bg-secondary: #1a1a1a;
            --bg-tertiary: #2a2a2a;
            --text-primary: #ffffff;
            --text-secondary: #e0e0e0;
            --text-muted: #cccccc;
        }

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

        body {
            font-family: 'IBM Plex Sans', sans-serif;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
            color: #fff;
            line-height: 1.6;
            min-height: 100vh;
        }

        /* Animated Background */
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.1;
        }

        .bg-animation::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 200%;
            height: 200%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(37, 208, 179, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(48, 167, 148, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(60, 220, 190, 0.3) 0%, transparent 50%);
            animation: float 20s ease-in-out infinite;
        }

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

        /* Floating Orbs - Side Areas Only */
        .floating-orbs {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            overflow: visible;
        }

        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(1px);
            opacity: 0.4;
        }

        /* Left side orbs */
        .orb-left-1 {
            width: 8px;
            height: 8px;
            background: var(--turquoise-primary);
            left: 5%;
            top: 20%;
            animation: floatOrbLeft1 18s infinite ease-in-out;
        }

        .orb-left-2 {
            width: 6px;
            height: 6px;
            background: var(--turquoise-light);
            left: 8%;
            top: 50%;
            animation: floatOrbLeft2 22s infinite ease-in-out;
        }

        .orb-left-3 {
            width: 10px;
            height: 10px;
            background: var(--turquoise-dark);
            left: 3%;
            top: 80%;
            animation: floatOrbLeft3 16s infinite ease-in-out;
        }

        .orb-left-4 {
            width: 5px;
            height: 5px;
            background: var(--turquoise-medium);
            left: 12%;
            top: 90%;
            animation: floatOrbLeft4 25s infinite ease-in-out;
        }

        /* Right side orbs */
        .orb-right-1 {
            width: 7px;
            height: 7px;
            background: var(--turquoise-light);
            right: 5%;
            top: 30%;
            animation: floatOrbRight1 20s infinite ease-in-out;
        }

        .orb-right-2 {
            width: 9px;
            height: 9px;
            background: var(--turquoise-primary);
            right: 8%;
            top: 60%;
            animation: floatOrbRight2 17s infinite ease-in-out;
        }

        .orb-right-3 {
            width: 6px;
            height: 6px;
            background: var(--turquoise-medium);
            right: 12%;
            top: 85%;
            animation: floatOrbRight3 23s infinite ease-in-out;
        }

        .orb-right-4 {
            width: 8px;
            height: 8px;
            background: var(--turquoise-dark);
            right: 3%;
            top: 95%;
            animation: floatOrbRight4 19s infinite ease-in-out;
        }

        /* Top area orbs */
        .orb-top-1 {
            width: 5px;
            height: 5px;
            background: var(--turquoise-primary);
            left: 20%;
            top: 3%;
            animation: floatOrbTop1 21s infinite ease-in-out;
        }

        .orb-top-2 {
            width: 7px;
            height: 7px;
            background: var(--turquoise-light);
            right: 25%;
            top: 5%;
            animation: floatOrbTop2 24s infinite ease-in-out;
        }

        /* Bottom area orbs */
        .orb-bottom-1 {
            width: 6px;
            height: 6px;
            background: var(--turquoise-medium);
            left: 30%;
            bottom: 3%;
            animation: floatOrbBottom1 26s infinite ease-in-out;
        }

        .orb-bottom-2 {
            width: 8px;
            height: 8px;
            background: var(--turquoise-dark);
            right: 20%;
            bottom: 5%;
            animation: floatOrbBottom2 18s infinite ease-in-out;
        }

        /* Orb animations - unique paths for each */
        @keyframes floatOrbLeft1 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            25% { transform: translate(20px, -30px) scale(1.1); opacity: 0.6; }
            50% { transform: translate(-15px, 40px) scale(0.9); opacity: 0.3; }
            75% { transform: translate(25px, -15px) scale(1.2); opacity: 0.5; }
        }

        @keyframes floatOrbLeft2 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            30% { transform: translate(-20px, -40px) scale(0.8); opacity: 0.2; }
            60% { transform: translate(25px, -20px) scale(1.3); opacity: 0.7; }
            80% { transform: translate(-10px, 30px) scale(0.9); opacity: 0.4; }
        }

        @keyframes floatOrbLeft3 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            20% { transform: translate(30px, -35px) scale(1.1); opacity: 0.6; }
            40% { transform: translate(-20px, -50px) scale(0.8); opacity: 0.2; }
            70% { transform: translate(20px, 25px) scale(1.2); opacity: 0.5; }
        }

        @keyframes floatOrbLeft4 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            15% { transform: translate(-30px, 35px) scale(0.9); opacity: 0.3; }
            45% { transform: translate(15px, -45px) scale(1.4); opacity: 0.8; }
            75% { transform: translate(-20px, -15px) scale(0.7); opacity: 0.2; }
        }

        @keyframes floatOrbRight1 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            25% { transform: translate(-25px, -30px) scale(1.2); opacity: 0.7; }
            50% { transform: translate(20px, 35px) scale(0.8); opacity: 0.2; }
            75% { transform: translate(-30px, -10px) scale(1.1); opacity: 0.5; }
        }

        @keyframes floatOrbRight2 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            30% { transform: translate(25px, -45px) scale(0.9); opacity: 0.3; }
            60% { transform: translate(-15px, -20px) scale(1.3); opacity: 0.8; }
            80% { transform: translate(30px, 30px) scale(0.7); opacity: 0.2; }
        }

        @keyframes floatOrbRight3 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            20% { transform: translate(-35px, 40px) scale(1.1); opacity: 0.6; }
            40% { transform: translate(25px, -30px) scale(0.8); opacity: 0.2; }
            70% { transform: translate(-25px, -25px) scale(1.2); opacity: 0.5; }
        }

        @keyframes floatOrbRight4 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            15% { transform: translate(30px, -40px) scale(0.9); opacity: 0.3; }
            45% { transform: translate(-20px, 45px) scale(1.4); opacity: 0.8; }
            75% { transform: translate(25px, -20px) scale(0.7); opacity: 0.2; }
        }

        @keyframes floatOrbTop1 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            25% { transform: translate(40px, 20px) scale(1.1); opacity: 0.6; }
            50% { transform: translate(-30px, 35px) scale(0.8); opacity: 0.2; }
            75% { transform: translate(25px, -15px) scale(1.2); opacity: 0.5; }
        }

        @keyframes floatOrbTop2 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            30% { transform: translate(-35px, 25px) scale(0.9); opacity: 0.3; }
            60% { transform: translate(30px, -20px) scale(1.3); opacity: 0.8; }
            80% { transform: translate(-25px, 40px) scale(0.7); opacity: 0.2; }
        }

        @keyframes floatOrbBottom1 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            20% { transform: translate(-40px, -30px) scale(1.1); opacity: 0.6; }
            40% { transform: translate(35px, -40px) scale(0.8); opacity: 0.2; }
            70% { transform: translate(-25px, 25px) scale(1.2); opacity: 0.5; }
        }

        @keyframes floatOrbBottom2 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            25% { transform: translate(30px, -35px) scale(0.9); opacity: 0.3; }
            50% { transform: translate(-35px, -25px) scale(1.4); opacity: 0.8; }
            75% { transform: translate(25px, 30px) scale(0.7); opacity: 0.2; }
        }

        /* Main Container */
        .container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 2rem;
            text-align: center;
            position: relative;
            z-index: 1;
            background: none !important;
        }

        .error-card {
            background: rgba(20, 20, 20, 0.97) !important;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 4rem;
            max-width: 600px;
            width: 100%;
            animation: slideIn 1s ease-out;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(37, 208, 179, 0.2);
        }

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

        .error-code {
            font-family: 'Chakra Petch', sans-serif;
            font-size: 8rem;
            font-weight: 700;
            color: var(--turquoise-primary);
            margin-bottom: 1rem;
            line-height: 1;
            text-shadow: 0 0 20px rgba(37, 208, 179, 0.5);
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        h1 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .message {
            font-size: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .suggestions {
            background: rgba(37, 208, 179, 0.1);
            border-left: 4px solid var(--turquoise-primary);
            padding: 1.5rem;
            border-radius: 10px;
            margin-bottom: 2rem;
            text-align: left;
        }

        .suggestions h3 {
            color: var(--turquoise-primary);
            margin-bottom: 1rem;
        }

        .suggestions ul {
            list-style: none;
            padding-left: 0;
        }

        .suggestions li {
            margin-bottom: 0.5rem;
            padding-left: 1.5rem;
            position: relative;
            color: var(--text-secondary);
        }

        .suggestions li::before {
            content: '→';
            color: var(--turquoise-primary);
            position: absolute;
            left: 0;
            font-weight: bold;
        }

        .actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-block;
            padding: 1rem 2rem;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--turquoise-primary), var(--turquoise-light));
            color: #000000;
            box-shadow: 0 4px 15px rgba(37, 208, 179, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(37, 208, 179, 0.4);
        }

        .btn-secondary {
            background: rgba(37, 208, 179, 0.1);
            color: var(--turquoise-primary);
            border: 2px solid var(--turquoise-primary);
        }

        .btn-secondary:hover {
            background: var(--turquoise-primary);
            color: #000000;
            transform: translateY(-2px);
        }

        /* Navigation Links */
        .nav-links {
            text-align: center;
            margin-top: 2rem;
            padding-top: 2rem;
        }

        .nav-link {
            display: inline-block;
            color: var(--turquoise-primary);
            text-decoration: none;
            padding: 0.8rem 1.5rem;
            background: rgba(37, 208, 179, 0.1);
            border: 1px solid var(--turquoise-primary);
            border-radius: 25px;
            margin: 0.5rem;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .nav-link:hover {
            background: var(--turquoise-primary);
            color: #000000;
            transform: translateY(-2px);
        }

        .copyright-line {
            text-align: center;
            color: var(--text-muted);
            font-size: 0.95rem;
            margin-bottom: 2rem;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .error-card {
                padding: 2.5rem;
                margin: 1rem;
            }
            
            .error-code {
                font-size: 6rem;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .actions {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
            }

            .nav-link {
                display: block;
                margin: 0.5rem 0;
            }

            /* Adjust orb positions for mobile to stay in side areas */
            .orb-left-1, .orb-left-2, .orb-left-3, .orb-left-4 {
                left: 2%;
            }
            
            .orb-right-1, .orb-right-2, .orb-right-3, .orb-right-4 {
                right: 2%;
            }
            
            .orb-top-1, .orb-top-2 {
                top: 2%;
            }
            
            .orb-bottom-1, .orb-bottom-2 {
                bottom: 2%;
            }
        }

        input[type="text"],
        input[type="email"],
        select,
        textarea {
            padding: 1rem;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            background: rgba(34, 34, 34, 0.95) !important;
            color: #fff !important;
            font-size: 1rem;
            font-family: inherit;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        /* Autofill fix for Chrome, Safari, Edge */
        input:-webkit-autofill,
        textarea:-webkit-autofill,
        select:-webkit-autofill {
            -webkit-box-shadow: 0 0 0 1000px #222 inset !important;
            -webkit-text-fill-color: #fff !important;
            color: #fff !important;
            background-color: #222 !important;
            caret-color: #fff !important;
        }
        input:-webkit-autofill:focus,
        textarea:-webkit-autofill:focus,
        select:-webkit-autofill:focus {
            -webkit-box-shadow: 0 0 0 1000px #222 inset !important;
            -webkit-text-fill-color: #fff !important;
            color: #fff !important;
            background-color: #222 !important;
            caret-color: #fff !important;
        }
        input:-internal-autofill-selected {
            background-color: #222 !important;
            color: #fff !important;
        }
        /* For Firefox */
        input, textarea, select {
            background-color: #222 !important;
            color: #fff !important;
        }
    </style>
</head>
<body>
    <!-- Animated Background -->
    <div class="bg-animation"></div>
    <div class="floating-orbs">
        <!-- Left side orbs -->
        <div class="orb orb-left-1"></div>
        <div class="orb orb-left-2"></div>
        <div class="orb orb-left-3"></div>
        <div class="orb orb-left-4"></div>
        
        <!-- Right side orbs -->
        <div class="orb orb-right-1"></div>
        <div class="orb orb-right-2"></div>
        <div class="orb orb-right-3"></div>
        <div class="orb orb-right-4"></div>
        
        <!-- Top area orbs -->
        <div class="orb orb-top-1"></div>
        <div class="orb orb-top-2"></div>
        
        <!-- Bottom area orbs -->
        <div class="orb orb-bottom-1"></div>
        <div class="orb orb-bottom-2"></div>
    </div>
    
    <!-- Main Content -->
    <main class="container">
        <div class="error-card">
            <div class="error-code">404</div>
            
            <h1>Page Not Found</h1>
            
            <p class="message">
                Sorry, the page you're looking for doesn't exist. It might have been moved, deleted, 
                or you might have typed the wrong URL.
            </p>
            
            <div class="suggestions">
                <h3>What you can do:</h3>
                <ul>
                    <li>Check the URL for typos</li>
                    <li>Go back to our homepage</li>
                    <li>Use the contact form to reach out</li>
                    <li>Try refreshing the page</li>
                </ul>
            </div>
            
            <div class="actions">
                <a href="home.html" class="btn btn-primary">Back to Home</a>
                <a href="contact.html" class="btn btn-secondary">Contact Us</a>
            </div>
        </div>
        <hr class="footer-dark-separator">
        <div class="nav-links">
            <a href="home.html" class="nav-link">Home</a>
            <a href="contact.html" class="nav-link">Contact</a>
            <a href="privacy.html" class="nav-link">Privacy Policy</a>
            <a href="terms.html" class="nav-link">Terms of Service</a>
        </div>
        <hr class="footer-separator">
        <div class="copyright-line">
            © 2025 The CFTV Dev Team. All rights reserved.
        </div>
    </main>

    <script>
        // Security: Log 404 attempts for monitoring
        const logSecurityEvent = (type, details) => {
            const event = {
                type: type,
                details: details,
                timestamp: new Date().toISOString(),
                url: window.location.href,
                referrer: document.referrer,
                userAgent: navigator.userAgent
            };
            
            console.warn('Security Event:', event);
            
            // In production, could send to external monitoring service
            // Example: send to analytics or security monitoring endpoint
        };
        
        // Check if this was a suspicious 404 (potential attack)
        const checkSuspicious404 = () => {
            const currentPath = window.location.pathname.toLowerCase();
            const suspiciousPatterns = [
                'admin', 'wp-admin', 'phpmyadmin', 'config', '.env', 
                'backup', 'database', 'sql', 'login', 'auth',
                '.git', '.svn', 'test', 'debug', 'temp'
            ];
            
            const isSuspicious = suspiciousPatterns.some(pattern => 
                currentPath.includes(pattern)
            );
            
            if (isSuspicious) {
                logSecurityEvent('Suspicious 404', {
                    path: currentPath,
                    reason: 'Accessing restricted/sensitive paths'
                });
            }
        };
        
        // Analytics tracking handled by GoatCounter
        
        // Run security check
        checkSuspicious404();
        
        // Log general 404 for monitoring
        logSecurityEvent('404 Access', {
            path: window.location.pathname,
            query: window.location.search
        });
    </script>
    <script data-goatcounter="https://cftv.goatcounter.com/count"
        async src="//gc.zgo.at/count.js"></script>
</body>
</html>

