/* Skill Matrix Grid */
.skills-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.category-header .icon {
    background: var(--accent);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: bold;
}

/* Skill List Styling */
.skill-list {
    list-style: none;
}

.skill-list li {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    opacity: 0.8;
}

.skill-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.skill-category,
.impact-card {
    background: var(--surface);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.skill-category:hover,
.impact-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
    transform: translateY(-5px);
}

/* Title Legibility */
.skill-category h3,
.impact-card h3 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Body Text Legibility */
.skill-list li,
.impact-card p {
    color: var(--text-secondary);
    /* Less "vibrant" than white, easier to read */
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 1;
    /* Ensure it's not too faded */
}

.skill-list li::before {
    content: "•";
    color: var(--accent);
    /* Only the bullet point glows */
    margin-right: 10px;
    font-weight: bold;
}

/* Impact Cards */
.impact-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    /* Ensures space even if the container isn't a flexbox */

    /* Existing Styles */
    background: var(--hero-glass-bg);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--hero-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.client-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    /* Glowing Green */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: inline-block;
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    /* Prevents the tag from stretching the full width */
}

.impact-card h3 {
    margin-top: 0;
    /* Removes default browser spacing */
    color: var(--text-primary);
    /* High-contrast Mint/White */
    line-height: 1.2;
}

.impact-card p {
    margin-top: 10px;
    color: var(--text-secondary);
    /* Phosphor Gray */
}

.impact-card-footer {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    /* Allows tags to wrap if the card is narrow */
    gap: 10px;
    /* Spacing between the spans */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.impact-card-footer span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    /* Matrix Green */
    background: rgba(0, 255, 65, 0.05);
    /* Very subtle green glow background */
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    /* Prevents "Enterprise Deployment" from breaking into two lines */
}

/* The main description paragraph */
.impact-card p {
    color: var(--text-secondary);
    /* Use the #9ca3af we discussed */
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 15px 0;
    flex-grow: 1;
    /* Helps push the footer down */
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.skills-visual-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin: 60px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.radar-grid {
    fill: rgba(255, 255, 255, 0.03); /* Very subtle fill for the rings */
    stroke: rgba(255, 255, 255, 0.2); /* Brighter grid lines */
    stroke-width: 1;
}

.radar-wrapper {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 50%;
    backdrop-filter: blur(4px); /* Softly diffuses the background circuits */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-area {
    fill: var(--accent-glow); /* Uses the glow variable we created */
    stroke: var(--accent);
    stroke-width: 3; /* Thicker line for impact */
    filter: drop-shadow(0 0 15px var(--accent)); /* Stronger neon glow */
    transition: all 0.5s ease;
}

.skill-node:hover {
    r: 8;
    fill: var(--accent);
    filter: drop-shadow(0 0 12px var(--accent));
}

.skill-node {
    fill: #ffffff; /* Bright white center */
    stroke: var(--accent);
    stroke-width: 2;
    r: 5;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px var(--accent));
}

.skill-node:hover {
    r: 7;
    fill: var(--accent);
}

.glass-panel {
    background: var(--surface);
    /* Midnight Gray #121212 */
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    /* Subtle green border */
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

#skill-details h3 {
    color: var(--accent);
    /* Matrix Green */
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#skill-details p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Update/Replace the Dock Item section in css/components.css */
/* components.css */

/* --- 1. BASE DOCK ITEM --- */
.dock-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hero-body-text); /* Theme-reactive base color */
    background: transparent;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid transparent;
    cursor: pointer;
}

/* --- 2. THE POWERED-ON HOVER (Matches Play Button) --- */
.dock-item:hover {
    transform: scale(1.2) translateY(-10px);
    background: #00ff41 !important; 
    color: #000 !important; /* Sharp contrast on green */
    box-shadow: 0 0 20px var(--accent-glow);
    z-index: 10;
}

/* --- 3. ACTIVE STATE --- */
.dock-item.active {
    background: var(--accent-glow) !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    box-shadow: 
        inset 0 0 10px var(--accent-glow), 
        0 0 15px var(--accent-glow);
    transform: scale(1.1); /* Slight pop to show it's active */
}

/* --- 4. TOOLTIP (Kept from your current logic) --- */
.dock-item::after {
    content: attr(data-label);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--text-primary);
    color: var(--bg);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.dock-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Update in css/components.css */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.contact-btn,
.download-btn {
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-btn {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.download-btn {
    background: #ffffff;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    filter: brightness(1.1);
}

.download-btn:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-3px);
}

.social-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 1px;
}

.jumper-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0 15px;
    user-select: none;
    /* ADD THIS */
    pointer-events: auto !important;
}

.jumper-track {
    position: relative;
    width: 34px;
    height: 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pin {
    width: 4px;
    height: 4px;
    background: #ffd700;
    /* Gold pins like a real PCB */
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.jumper-block {
    position: absolute;
    width: 16px;
    height: 22px;
    background: #222;
    /* Black plastic housing */
    border: 1px solid #444;
    border-radius: 2px;
    left: 2px;
    /* Position 1: Light Mode */
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
    transform: translateZ(0);
    /* Forces GPU layer */
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The "Contact" line on top of the jumper */
.jumper-block::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.jumper-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Jumper position for Dark Mode */
[data-theme="dark"] #jumperBlock {
    transform: translateX(14px);
}

/* components.css */

.terminal-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(0, 255, 65, 0.05); /* Very subtle tint */
    color: var(--accent) !important;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid var(--accent-glow);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
}

.terminal-link:hover {
    background: var(--accent);
    color: #000 !important;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateX(5px);
    border-color: var(--accent);
}

.terminal-link .arrow {
    opacity: 0.6;
    font-weight: bold;
}

.terminal-link:hover .arrow {
    opacity: 1;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Ensure the description isn't too dark */
.project-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}