:root {
    --bg-color: #0a192f;
    --light-bg: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    --accent-glow: rgba(100, 255, 218, 0.05);
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    /* Cyber Grid */
    background-image: 
        linear-gradient(rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.95)),
        linear-gradient(0deg, transparent 24%, rgba(100, 255, 218, .02) 25%, rgba(100, 255, 218, .02) 26%, transparent 27%, transparent 74%, rgba(100, 255, 218, .02) 75%, rgba(100, 255, 218, .02) 76%, transparent 77%, transparent), 
        linear-gradient(90deg, transparent 24%, rgba(100, 255, 218, .02) 25%, rgba(100, 255, 218, .02) 26%, transparent 27%, transparent 74%, rgba(100, 255, 218, .02) 75%, rgba(100, 255, 218, .02) 76%, transparent 77%, transparent);
    background-size: 40px 40px;
}

.page-container {
    padding: 60px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Back Link Navigation */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}
.back-link:hover {
    transform: translateX(-5px);
}

/* Header Elements */
.page-header {
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 10px;
}
.subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 1.1rem;
}

/* Filter Tab Navigation */
.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--light-bg);
    padding-bottom: 20px;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--light-bg);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}
.filter-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(100, 255, 218, 0.1);
}
.filter-btn .count {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Structural Certifications Grid Layout */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Component: Card Design */
.cert-card {
    background: var(--light-bg);
    padding: 24px;
    border-radius: 4px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

/* Card Interals */
.cert-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}
.cert-icon {
    font-size: 2.3rem;
    color: var(--accent);
    width: 45px;
    text-align: center;
}
.cert-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.cert-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}
.cert-issuer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.cert-link {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.cert-link:hover {
    text-decoration: underline;
}

/* Functional Utility Classes For Filtering Logic */
.cert-card.hidden-item {
    display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .page-container {
        padding: 40px 20px;
    }
    .filter-wrapper {
        width: 100%;
    }
    .filter-btn {
        flex-grow: 1;
        justify-content: center;
    }
}

/* Glitch Heading Styling */
.glitch {
    position: relative;
    color: var(--text-primary);
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(20px, 9999px, 80px, 0); }
    100% { clip: rect(42px, 9999px, 115px, 0); }
}
/* --- Footer Alignment & Spacing --- */
.page-footer {
    text-align: center;
    padding: 40px 20px 80px 20px; /* Extra bottom padding so the text clears the sticky recruiter bar */
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Adjust layout spacing on smaller mobile devices */
@media (max-width: 480px) {
    .page-footer {
        padding: 30px 20px 100px 20px; /* Gives even more breathing room on tiny phone screens */
    }
}