/* Ingenious Development Hexagon Animation System */

.hexagon-dev-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 60px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border-radius: 16px;
    border: 1px solid rgba(66, 165, 245, 0.2);
}

.dev-hexagon-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, 60px);
    grid-template-rows: repeat(auto-fit, 60px);
    gap: 8px;
    padding: 20px;
    opacity: 0.8;
}

.dev-hexagon {
    width: 50px;
    height: 50px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dev-hexagon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(66, 165, 245, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(66, 165, 245, 0.3);
    transition: all 0.4s ease;
}

/* Development Activity States */
.dev-hexagon.coding {
    animation: codingPulse 2s infinite ease-in-out;
}

.dev-hexagon.coding::before {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.dev-hexagon.debugging {
    animation: debuggingBlink 1.5s infinite ease-in-out;
}

.dev-hexagon.debugging::before {
    background: rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

.dev-hexagon.testing {
    animation: testingRotate 3s infinite linear;
}

.dev-hexagon.testing::before {
    background: rgba(156, 39, 176, 0.3);
    border-color: #9c27b0;
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.4);
}

.dev-hexagon.deploying {
    animation: deployingGlow 2.5s infinite ease-in-out;
}

.dev-hexagon.deploying::before {
    background: rgba(33, 150, 243, 0.3);
    border-color: #2196f3;
    box-shadow: 0 0 25px rgba(33, 150, 243, 0.5);
}

.dev-hexagon.error {
    animation: errorShake 0.5s infinite ease-in-out;
}

.dev-hexagon.error::before {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.4);
}

.dev-hexagon.success {
    animation: successBounce 1s ease-out forwards;
}

.dev-hexagon.success::before {
    background: rgba(76, 175, 80, 0.4);
    border-color: #4caf50;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
}

/* Development Activity Icons */
.dev-hexagon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.dev-hexagon.coding::after { content: '\f121'; } /* fa-code */
.dev-hexagon.debugging::after { content: '\f188'; } /* fa-bug */
.dev-hexagon.testing::after { content: '\f0e7'; } /* fa-bolt */
.dev-hexagon.deploying::after { content: '\f1e2'; } /* fa-bomb */
.dev-hexagon.error::after { content: '\f071'; } /* fa-exclamation-triangle */
.dev-hexagon.success::after { content: '\f00c'; } /* fa-check */

/* Hover Effects */
.dev-hexagon:hover {
    transform: scale(1.1);
    z-index: 10;
}

.dev-hexagon:hover::before {
    background: rgba(66, 165, 245, 0.4);
    border-color: #42a5f5;
    box-shadow: 0 0 25px rgba(66, 165, 245, 0.6);
}

/* Interactive Development Flow */
.dev-flow-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #42a5f5, transparent);
    border-radius: 1px;
    opacity: 0;
    animation: flowLine 3s infinite ease-in-out;
}

/* Keyframe Animations */
@keyframes codingPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes debuggingBlink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.3; }
}

@keyframes testingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes deployingGlow {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.08);
        filter: brightness(1.2);
    }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes successBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

@keyframes flowLine {
    0% { 
        opacity: 0;
        transform: translateX(-100px) scaleX(0);
    }
    50% { 
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }
    100% { 
        opacity: 0;
        transform: translateX(100px) scaleX(0);
    }
}

/* Development Stats Display */
.dev-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

.dev-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.dev-stat-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dev-stat.coding .dev-stat-icon { background: #4caf50; }
.dev-stat.debugging .dev-stat-icon { background: #ffc107; }
.dev-stat.testing .dev-stat-icon { background: #9c27b0; }
.dev-stat.deploying .dev-stat-icon { background: #2196f3; }

/* Progress Wave Animation */
.dev-progress-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #42a5f5, #4caf50, #ff9800, #e91e63);
    background-size: 200% 100%;
    animation: progressWave 4s infinite ease-in-out;
}

@keyframes progressWave {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hexagon-dev-container {
        height: 300px;
        margin: 40px 0;
    }
    
    .dev-hexagon-grid {
        grid-template-columns: repeat(auto-fit, 45px);
        grid-template-rows: repeat(auto-fit, 45px);
        gap: 6px;
        padding: 15px;
    }
    
    .dev-hexagon {
        width: 40px;
        height: 40px;
    }
    
    .dev-hexagon::after {
        font-size: 14px;
    }
    
    .dev-stats {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .dev-stat {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Interactive Click Effects */
.dev-hexagon.clicked {
    animation: clickEffect 0.6s ease-out forwards;
}

@keyframes clickEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1.1) rotate(360deg); }
}

/* Development Activity Tooltip */
.dev-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.dev-hexagon:hover .dev-tooltip {
    opacity: 1;
}

.dev-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}