/* ===================================
   FOOTER STYLES - SIMPLIFIED VERSION
   Dark Cyberpunk Theme - Centered Layout
   =================================== */

/* Define CSS variables if not already defined */
:root {
    --nav-border: rgba(255, 255, 255, 0.1);
    --nav-text-dim: rgba(255, 255, 255, 0.7);
    --nav-accent: #00ff88;
    --nav-accent-glow: rgba(0, 255, 136, 0.2);
    --font-body: 'Rajdhani', sans-serif;
}

.main-footer {
    background: #0a0a0f;
    border-top: 1px solid var(--nav-border);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 3rem 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ===================================
   COPYRIGHT SECTION - CENTERED
   =================================== */
.footer-copyright {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
}

.footer-copyright p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--nav-text-dim);
    margin: 0.5rem auto;
    line-height: 1.6;
    text-align: center;
}

.footer-tagline {
    font-size: 0.9rem !important;
    color: var(--nav-text-dim);
    opacity: 0.8;
    text-align: center;
}

.footer-tagline .heart {
    color: #ff006e;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.footer-tagline .code {
    color: var(--nav-accent);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* ===================================
   SOCIAL LINKS - CENTERED
   =================================== */
.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    padding: 0;
    flex-wrap: wrap;
    width: 100%;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    color: var(--nav-text-dim);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--nav-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    color: #0a0a0f;
    border-color: var(--nav-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 255, 136, 0.3);
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* ===================================
   FOOTER BOTTOM
   =================================== */
.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    width: 100%;
}

.footer-line {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--nav-accent) 50%,
            transparent 100%);
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.footer-made {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--nav-text-dim);
    opacity: 0.6;
    margin: 0 auto;
    letter-spacing: 1px;
    width: 100%;
}

/* ===================================
   FOOTER GLOW EFFECT
   =================================== */
.footer-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(ellipse at center,
            var(--nav-accent-glow) 0%,
            transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    animation: footerGlow 4s ease-in-out infinite;
}

@keyframes footerGlow {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
        opacity: 0.5;
    }
}

/* ===================================
   ENSURE FOOTER STAYS AT BOTTOM
   =================================== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.page-wrap,
main,
#content {
    flex: 1;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .footer-content {
        padding: 2rem 1rem 1rem;
    }

    .footer-social {
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .footer-copyright p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-copyright p {
        font-size: 0.85rem;
    }

    .footer-tagline {
        font-size: 0.8rem !important;
    }

    .footer-made {
        font-size: 0.75rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.social-link:focus {
    outline: 2px solid var(--nav-accent);
    outline-offset: 4px;
}

.social-link:focus-visible {
    outline: 2px solid var(--nav-accent);
    outline-offset: 4px;
}