/* Terminal-style Skills Section Styling */

/* Terminal Container */
.terminal-container {
    width: 100%;
    margin: 3rem auto;
    background-color: rgba(10, 15, 30, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.15),
                0 0 5px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* Terminal Header */
.terminal-header {
    background: rgba(15, 20, 35, 0.9);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.8;
}

.terminal-button.red {
    background-color: #FF5F56;
}

.terminal-button.yellow {
    background-color: #FFBD2E;
}

.terminal-button.green {
    background-color: #27C93F;
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-grow: 1;
    text-align: center;
}

/* Terminal Body */
.terminal-body {
    padding: 15px;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

.terminal-line {
    margin-bottom: 10px;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.terminal-prompt {
    color: var(--neon-cyan);
    margin-right: 10px;
}

.terminal-command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    display: block;
    padding-left: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-left: 2px solid rgba(0, 255, 255, 0.2);
    margin-left: 5px;
}

.terminal-random {
    opacity: 0;
    color: var(--neon-orange);
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background-color: var(--neon-cyan);
    vertical-align: middle;
    opacity: 1;
}

.terminal-output-container {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 1s ease, max-height 1.5s ease;
}

/* Terminal Section Styling */
.terminal-section {
    margin-bottom: 30px;
    position: relative;
}

.terminal-section::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, 
                var(--neon-cyan), 
                var(--neon-purple));
}

.terminal-section-title {
    font-size: 1.1rem;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(0, 255, 255, 0.3);
    letter-spacing: 2px;
}

/* Skill Bars Styling */
.skill-bars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.skill-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.skill-name {
    width: 100px;
    color: var(--text-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.skill-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin: 0 10px;
}

.skill-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, 
                var(--neon-cyan), 
                var(--neon-purple));
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.2), 
                transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skill-bar.pulse {
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.skill-percentage {
    width: 40px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: right;
}

/* Hexagon Skills Styling */
.skill-hexagon-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.skill-hexagon {
    width: 100px;
    height: 115px;
    position: relative;
    background-color: rgba(0, 255, 255, 0.1);
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
    transform: scale(0);
    opacity: 0;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.skill-hexagon.visible {
    transform: scale(1);
    opacity: 1;
}

.skill-hexagon:hover, 
.skill-hexagon.active {
    transform: scale(1.1);
    box-shadow: 0 0 20px currentColor;
    z-index: 2;
}

.hexagon-label {
    color: var(--text-primary);
    font-size: 0.8rem;
    text-align: center;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-hexagon:hover .hexagon-label,
.skill-hexagon.active .hexagon-label {
    color: var(--neon-cyan);
    transform: scale(1.1);
}

/* Tag Cloud Styling */
.skill-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
}

.skill-tag {
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.skill-tag:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
                transparent, 
                rgba(0, 255, 255, 0.1), 
                transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-tag:hover::before {
    transform: translateX(100%);
}

/* Terminal Scan Line Effect */
.terminal-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        rgba(0, 255, 255, 0.03) 50%, 
        rgba(0, 0, 0, 0) 50%
    );
    background-size: 100% 4px;
    opacity: 0.15;
    z-index: 2;
    mix-blend-mode: overlay;
}

/* Addition of Glowing Dots */
.skill-bar-container::before {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--neon-cyan);
    z-index: 2;
    opacity: 0.7;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .skill-bars {
        grid-template-columns: 1fr;
    }
    
    .skill-hexagon {
        width: 80px;
        height: 92px;
        margin: 15px 0;
    }
    
    .hexagon-label {
        font-size: 0.7rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .terminal-section-title {
        font-size: 1rem;
    }
}

/* Terminal Typing Animation */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Add scanning effect occasionally */
@keyframes scanning {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

.terminal-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
                transparent, 
                var(--neon-cyan), 
                transparent);
    opacity: 0;
    z-index: 3;
    animation: scanning 8s linear infinite;
    pointer-events: none;
}

/* Glitching effect for terminal elements */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.terminal-output-container:hover .terminal-section-title {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both;
    color: var(--neon-purple);
}

/* Overlay noise texture for terminal authenticity */
.terminal-container {
    position: relative;
}

.terminal-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Digital number counter effect for percentages */
.skill-percentage {
    font-family: 'Digital', 'JetBrains Mono', monospace;
    position: relative;
}

.skill-percentage::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background-color: var(--neon-orange);
    border-radius: 50%;
    opacity: 0.8;
} 