/* ==========================================================================
   PrivilegeServer - Advanced Patterned Footer (Nurui-Inspired)
   ========================================================================== */

.footer-section-advanced {
    position: relative;
    background: #0F0F11;
    color: #ffffff;
    padding: 100px 0 0;
    overflow: hidden;
    margin: 40px;
    border-radius: 40px;
}

/* 1. Background Gradient (Nurui Style) */
.footer-adv-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(125% 125% at 50% 10%, rgba(15, 15, 17, 0.4) 50%, rgba(126, 188, 18, 0.15) 100%);
}

.footer-section-advanced .container {
    position: relative;
    z-index: 10;
}

/* 2. Top Content Grid */
.footer-adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    padding-bottom: 60px;
}

@media (max-width: 991px) {
    .footer-adv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 575px) {
    .footer-adv-grid {
        grid-template-columns: 1fr;
    }
}

.footer-adv-col h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #fff;
}

.footer-adv-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-adv-links li {
    margin-bottom: 12px;
}

.footer-adv-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.footer-adv-links a:hover {
    color: var(--brand-lime);
    padding-left: 5px;
}

/* 3. Text Hover Effect (SVG) */
.footer-text-hover-container {
    height: 300px;
    margin-top: -50px;
    margin-bottom: -30px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    user-select: none;
}

@media (max-width: 991px) {
    .footer-text-hover-container {
        display: none;
        /* Hide on mobile as per user's React component */
    }
}

.footer-svg-text {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.footer-svg-text text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    text-anchor: middle;
    dominant-baseline: middle;
    stroke-width: 0.3;
    fill: transparent;
}

/* The Base Stroke */
.text-base {
    stroke: rgba(255, 255, 255, 0.1);
    font-size: 70px;
}

/* The Animated Blue/Lime Stroke */
.text-animated {
    stroke: var(--brand-lime);
    font-size: 70px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawText 4s ease-in-out forwards;
}

@keyframes drawText {
    to {
        stroke-dashoffset: 0;
    }
}

/* The Reveal Gradient (Masked) */
.text-reveal {
    font-size: 70px;
    stroke: url(#textGradient);
}

/* 4. Footer Bottom */
.footer-adv-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 767px) {
    .footer-adv-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.footer-adv-socials {
    display: flex;
    gap: 25px;
}

.footer-adv-socials a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    transition: 0.3s;
}

.footer-adv-socials a:hover {
    color: var(--brand-lime);
    transform: translateY(-3px);
}

.footer-adv-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
}

/* ── Footer Mobile Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer-section-advanced {
        margin: 20px 15px;
        border-radius: 20px;
        padding: 60px 0 0;
    }

    .footer-adv-grid {
        gap: 30px;
        padding-bottom: 40px;
    }

    .footer-adv-col h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .footer-adv-links a {
        font-size: 14px;
    }

    .footer-adv-bottom {
        padding: 25px 0;
    }

    .footer-adv-copyright {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-section-advanced {
        margin: 10px 8px;
        border-radius: 15px;
        padding: 40px 0 0;
    }

    .footer-adv-socials {
        gap: 18px;
    }
}