/* --- LINKS SPECTACULAR: THE DIGITAL VORTEX --- */
:root {
    --vortex-bg: #050510;
    --vortex-primary: #f59e0b;
    /* Amber/Orange for Government/Official impact */
    --vortex-secondary: #ec4899;
    /* Pink/Purple accent */
    --vortex-blue: #3b82f6;
    --card-dark: #0f172a;
}

body.links-page {
    background-color: var(--vortex-bg);
    color: #e5e7eb;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* --- HERO: DIGITAL GATEWAY --- */
.links-hero-spec {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    perspective: 1000px;
    animation: gridPulse 10s infinite alternate;
}

@keyframes gridPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content-spec {
    text-align: center;
    z-index: 10;
    padding: 0 20px;
}

.hero-subtitle-spec {
    display: block;
    color: var(--vortex-primary);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    animation: fadeInDown 1s ease-out;
}

.hero-title-spec {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero-title-spec::after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -1px 0 var(--vortex-secondary);
    top: 0;
    color: white;
    background: #000;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitch 2s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% {
        clip: rect(44px, 9999px, 56px, 0);
    }

    20% {
        clip: rect(2px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(22px, 9999px, 12px, 0);
    }

    60% {
        clip: rect(66px, 9999px, 33px, 0);
    }

    80% {
        clip: rect(10px, 9999px, 95px, 0);
    }

    100% {
        clip: rect(88px, 9999px, 5px, 0);
    }
}

/* --- LINKS GRID --- */
.links-grid-section {
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.links-container-spec {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.link-card-spec {
    background: var(--card-dark);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    display: block;
    height: 100%;
}

.link-card-spec:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    border-color: var(--vortex-primary);
    z-index: 10;
}

.link-image-box {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.link-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
    filter: grayscale(80%);
}

.link-card-spec:hover .link-image-box img {
    transform: scale(1.2);
    filter: grayscale(0%);
}

.link-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--card-dark) 10%, transparent 90%);
}

.link-icon-float {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s;
    color: white;
}

.link-card-spec:hover .link-icon-float {
    background: var(--vortex-primary);
    transform: rotate(45deg);
    color: #000;
}

.link-content-box {
    padding: 30px;
    position: relative;
}

.link-content-box h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
    transition: color 0.3s;
}

.link-card-spec:hover .link-content-box h3 {
    color: var(--vortex-primary);
}

.link-content-box p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Decorative Line */
.deco-line {
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vortex-primary), var(--vortex-secondary));
    margin-top: 20px;
    transition: width 0.5s;
}

.link-card-spec:hover .deco-line {
    width: 100%;
}