/* Skills Visualization Styles */
.skills-intro {
    text-align: center;
    /*color: var(--text-color, #7e7d7d);*/
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.5;
}

.skills-timeline-controls {
    display: grid;
    grid-template-columns: minmax(130px, auto) minmax(180px, 1fr);
    align-items: center;
    gap: 14px 18px;
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 16px 18px;
    border: 1px solid rgba(65, 105, 225, 0.25);
    border-radius: 12px;
    background: rgba(65, 105, 225, 0.05);
}

.skills-year-readout { display: flex; flex-direction: column; }
#skills-year-value { color: #4169e1; font-size: 1.65rem; font-weight: 700; line-height: 1; }
#skills-year-label { font-size: 0.8rem; margin-top: 5px; }
#skills-year-slider { width: 100%; accent-color: #4169e1; cursor: pointer; }
.skills-year-only { grid-column: 2; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; }
.skills-year-only input { width: 16px; height: 16px; accent-color: #4169e1; }
body.dark-mode .skills-timeline-controls { background: rgba(65, 105, 225, 0.13); border-color: rgba(121, 155, 255, 0.38); }
body.dark-mode #skills-year-value { color: #9bb6ff; }

#skills-visualization {
    width: 100%;
    height: clamp(640px, 72vh, 900px);
    max-height: 900px;
    min-height: 640px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* SVG Styles */
#skills-visualization svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Title */
.skills-title {
    font-size: 24px;
    font-weight: bold;
    fill: var(--text-color, #333);
}

/* Node Styles */
.node circle {
    stroke-width: 2px;
    transition: all 0.3s ease;
}

.node text {
    font-size: 10px;
    transition: all 0.3s ease;
}

.skills-empty { font-size: 20px; fill: #666; }

/* Core Competency Nodes */
.core-competency circle {
    fill: rgba(65, 105, 225); /* Royal Blue */
    stroke: #4169e1;
}

.core-competency text {
    font-weight: bold;
    font-size: 11px;
    color: black;
}

.technical-skill text {
    font-size: 9px;
    pointer-events: none;
}

.technical-skill circle {
    fill: rgba(46, 204, 113); /* Emerald Green */
    stroke: #2ecc71;
}

/* Soft Skill Nodes */
.soft-skill circle {
    fill: rgba(241, 196, 15); /* Yellow */
    stroke: #f1c40f;
}

/* Connection Lines */
.connection {
    stroke-width: 2px;
    stroke-opacity: 0.6;
    transition: all 0.3s ease;
}

.technical-connection {
    stroke: #2ecc71;
}

.soft-connection {
    stroke: #f1c40f;
}

/* Hover Effects */
.node.hover circle {
    stroke-width: 3px;
    transform: scale(1.1);
}

.node.connected circle {
    stroke-width: 3px;
    transform: scale(1.05);
}

/* Style for nodes that are instances of the same skill */
.node.same-skill circle {
    stroke-width: 2.5px;
    stroke-dasharray: 3, 3; /* Dashed stroke */
    opacity: 0.9;
}

.node.same-skill text {
    font-weight: bold;
}

.connection.highlight {
    stroke-width: 4px;
    stroke-opacity: 1;
}

/* Legend Styles */
.legend text {
    font-size: 12px;
    fill: var(--text-color, #333);
}

.legend circle {
    stroke-width: 1px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #skills-visualization {
        background-color: rgba(220, 220, 220);
    }

    .skills-title, .node, .legend text, .instructions-overlay text {
        fill: var(--text-color, #f0f0f0);
    }
    text {
        /*fill: var(--text-color, #000000);*/
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .skills-timeline-controls { grid-template-columns: 1fr; gap: 12px; }
    .skills-year-only { grid-column: 1; }
    #skills-visualization {
        height: clamp(520px, 72vh, 720px);
        max-height: 720px;
        min-height: 520px;
    }

    .node text {
        font-size: 10px;
    }

    .core-competency text {
        font-size: 12px;
    }

    .legend text {
        font-size: 10px;
    }
}

/* Chemical Compound Visual Elements */
.node circle {
    /* Add subtle shadow for 3D effect */
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.2));
}

/* Molecule-like pulsing animation for core competencies */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.core-competency circle {
    animation: pulse 5s infinite ease-in-out;
}

/* Different pulse timing for each core competency */
.node[data-id="software-dev"] circle { animation-delay: 0s; }
.node[data-id="data-science"] circle { animation-delay: 1s; }
.node[data-id="machine-learning"] circle { animation-delay: 2s; }
.node[data-id="ai"] circle { animation-delay: 3s; }
.node[data-id="quantum-computing"] circle { animation-delay: 4s; }

/* Instructions overlay */
.instructions-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 9.25px;
    color: black;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    opacity: 0.8;
}

/* Dark mode for instructions */
@media (prefers-color-scheme: dark) {
    .instructions-overlay {
        background-color: rgba(50, 50, 50, 0.8);
        color: #f0f0f0;
    }
}
