/* ============================================
   FOOTER PROTECTION CSS
   DO NOT MODIFY - Site functionality depends on this
   ============================================ */

/* Normal state - everything works fine */
body:not(.tampered) {
    /* All normal styles applied via main.css */
}

/* Tampered state - breaks responsive design */
body.tampered {
    /* Force horizontal overflow */
    overflow-x: auto !important;
}

/* Break responsive containers */
body.tampered .container {
    max-width: none !important;
    width: 1500px !important;
    overflow: visible !important;
}

/* Destroy grid layouts */
body.tampered .services-grid,
body.tampered .blog-grid,
body.tampered .stats-grid {
    display: block !important;
    grid-template-columns: none !important;
}

body.tampered .services-grid>*,
body.tampered .blog-grid>*,
body.tampered .stats-grid>* {
    width: 800px !important;
    margin-bottom: 20px !important;
}

/* Break hero layout */
body.tampered .hero-content {
    display: block !important;
    grid-template-columns: none !important;
}

body.tampered .hero-text,
body.tampered .hero-image {
    width: 1000px !important;
}

/* Hide navigation on mobile when tampered */
@media screen and (max-width: 768px) {
    body.tampered .nav-menu {
        display: none !important;
    }

    body.tampered .menu-toggle {
        display: none !important;
    }
}

/* Break footer layout */
body.tampered .footer-content {
    display: block !important;
    grid-template-columns: none !important;
}

body.tampered .footer-section {
    width: 900px !important;
    margin-bottom: 30px !important;
}

/* Distort card layouts */
body.tampered .card,
body.tampered .service-card,
body.tampered .blog-card {
    transform: skew(-2deg) !important;
    opacity: 0.7 !important;
}

/* Remove max-width constraints */
body.tampered * {
    max-width: none !important;
}

/* Break buttons */
body.tampered .btn {
    border-radius: 0 !important;
    padding: 5px 10px !important;
    font-size: 0.7rem !important;
}

/* Distort images */
body.tampered img {
    filter: blur(1px) grayscale(50%) !important;
}

/* Break responsive padding */
body.tampered .section {
    padding: 20px 0 !important;
}

/* Force fixed widths on flexible elements */
body.tampered .hero,
body.tampered .footer,
body.tampered .header {
    width: 1600px !important;
    min-width: 1600px !important;
}

/* Mess with typography */
body.tampered h1,
body.tampered h2,
body.tampered h3 {
    letter-spacing: -2px !important;
    line-height: 1 !important;
}

/* Break newsletter form */
body.tampered .newsletter-form {
    display: block !important;
    flex-direction: column !important;
}

body.tampered .newsletter-input {
    width: 600px !important;
    margin-bottom: 10px !important;
}

/* Additional breakage for tablets */
@media screen and (max-width: 1024px) {
    body.tampered {
        overflow-x: scroll !important;
    }

    body.tampered * {
        min-width: 0 !important;
    }

    body.tampered .hero-content,
    body.tampered .services-grid,
    body.tampered .blog-grid {
        width: 1200px !important;
    }
}

/* Glitch effect when tampered */
body.tampered::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 0, 0.03) 2px,
            rgba(255, 0, 0, 0.03) 4px);
    pointer-events: none;
    z-index: 9999;
    animation: glitch 0.3s infinite;
}

@keyframes glitch {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Warning overlay */
body.tampered::after {
    content: 'Site Integrity Compromised - Footer Credits Required';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10000;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.5;
    }
}