/* INSANE MEGA FOOTER STYLING */
.mega-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #000 0%, #192a56 50%, #000 100%);
    margin-top: 3rem;
    border-top: 4px solid #ffd700;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(33, 236, 255, 0.1) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(33, 236, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
    perspective: 1000px;
    transform: rotateX(60deg) translateZ(-100px) scale(2.5);
    transform-origin: center bottom;
    animation: gridPulse 20s infinite linear;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

.footer-content {
    position: relative;
    z-index: 5;
    padding: 3rem 1rem;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    color: transparent;
    background: linear-gradient(to right, #ff0080, #ff8c00, #ffed00, #00ff8c, #00cfff);
    -webkit-background-clip: text;
    background-clip: text;
    animation: titleRainbow 10s infinite linear;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
    text-align: center;
}

@keyframes titleRainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.footer-section {
    position: relative;
    background: rgba(0,0,0,0.5);
    border: 2px solid #00ccff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 
        0 0 20px rgba(0, 204, 255, 0.5),
        inset 0 0 20px rgba(0, 204, 255, 0.3);
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.footer-section:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.7),
        inset 0 0 25px rgba(0, 255, 255, 0.5);
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    color: #00ffff;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
    position: relative;
    z-index: 1;
}

.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    padding-left: 1rem;
    display: inline-block;
    transition: all 0.3s;
}

.footer-section ul li a:before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00ffff;
    animation: blink 1s infinite;
}

.footer-section ul li a:hover {
    color: #00ffff;
    transform: translateX(5px);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.footer-bottom {
    background: rgba(0,0,0,0.8);
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 5;
    border-top: 2px solid rgba(0, 204, 255, 0.3);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-icon:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, rgba(255, 255, 255, 0.3), transparent 30%
    );
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.social-icon:hover {
    background: rgba(0, 204, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 204, 255, 0.5);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.copyright {
    position: relative;
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    padding: 1rem 0;
}

.pixel-art {
    position: absolute;
    width: 40px;
    height: 40px;
    animation: float 3s infinite ease-in-out alternate;
}

.pixel-joystick {
    bottom: 80px;
    left: 10%;
    font-size: 2.5rem;
}

.pixel-ghost {
    bottom: 120px;
    right: 15%;
    font-size: 2.5rem;
}

.pixel-heart {
    bottom: 150px;
    left: 25%;
    font-size: 2rem;
    animation-delay: 0.5s;
}

.pixel-star {
    bottom: 100px;
    right: 25%;
    font-size: 2rem;
    animation-delay: 0.8s;
}

/* Shooting star animation */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, white, transparent);
    animation: shootingStar 5s infinite linear;
    opacity: 0;
}

@keyframes shootingStar {
    0% {
        transform: translate(-100px, 0) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(100vw + 100px), 100vh) rotate(45deg);
        opacity: 0;
    }
}

.star-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.star-2 {
    top: 20%;
    left: 50%;
    animation-delay: 2s;
}

.star-3 {
    top: 15%;
    left: 80%;
    animation-delay: 4s;
}

.btn-arcade {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #ff0080, #7928ca);
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 1rem 0;
    text-decoration: none;
}

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

.btn-arcade:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.8);
}

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

.legal-links {
    font-size: 0.8rem;
}

.legal-links a {
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
}

.legal-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #00ffff;
    transition: all 0.3s;
}

.legal-links a:hover:after {
    width: 100%;
}

.new-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff5e00, #ffb700);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: white;
    font-weight: bold;
    animation: pulse-new 1.5s infinite;
}

@keyframes pulse-new {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.blink-text {
    position: relative;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.blink-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    60% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Basic resets to ensure proper footer behavior */
html {
    height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .footer-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 0.8rem;
    }

    .pixel-art {
        display: none;
    }
    
    .btn-arcade {
        font-size: 0.7rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 2rem 1rem;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
}

/* Footer specific styles */
:root {
    --primary-color: #00ccff;
    --secondary-color: #ff00aa;
    --accent-color: #FFD700;
    --tertiary-color: #00ffaa;
}

#footer-container {
    background-color: rgba(10, 10, 22, 0.9);
    border-top: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

#footer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 204, 255, 0.05),
        transparent 50%,
        rgba(255, 0, 170, 0.05));
    z-index: 0;
}

#footer-container .container {
    position: relative;
    z-index: 1;
}

#footer-container h3 {
    position: relative;
    display: inline-block;
}

#footer-container h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

#footer-container a {
    transition: all 0.3s;
}

#footer-container a:hover {
    transform: translateX(5px);
}

.text-primary-color {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #footer-container {
        padding: 1rem 0;
    }
}
