/* Program Development Ultra - Blueprint & Architecture Styles v2.0 */

/* === 1. Status Bar Polish (Fix for 'Messed Up Style') === */
.ultra-status-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.ultra-pill {
    background: rgba(2, 12, 27, 0.6);
    border: 1px solid rgba(100, 255, 218, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ultra-pill:hover {
    border-color: var(--accent-primary);
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.1);
}

.ultra-pill.active {
    border-color: var(--accent-primary);
    background: rgba(100, 255, 218, 0.05);
}

.blink-dot {
    width: 8px; height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-primary);
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* === 2. 3D Blueprint Hero Visual === */
.blueprint-visual-wrapper {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: visible; /* Ensure hover effects don't get clipped */
    z-index: 1; /* Keep behind buttons */
}

.blueprint-board {
    width: 100%;
    max-width: 550px;
    height: 400px;
    background: rgba(10, 25, 47, 0.85);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 12px;
    transform: rotateY(-15deg) rotateX(10deg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(100, 255, 218, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.blueprint-board:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

/* The Grid Floor */
.blueprint-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(100, 255, 218, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
}

/* Connecting Flow Lines */
.arch-line {
    position: absolute;
    width: 2px;
    background: var(--accent-primary);
    opacity: 0.3;
    transform-origin: top center;
}

.arch-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 30%;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    animation: lineFlow 3s infinite linear;
}

@keyframes lineFlow {
    0% { top: -30%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Architecture Nodes */
.arch-node {
    position: absolute;
    padding: 1rem 1.5rem;
    background: rgba(2, 12, 27, 0.9);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent-primary);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 240px;
    transition: all 0.3s ease;
    z-index: 2;
}

.arch-node:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    transform: translateX(5px);
    background: rgba(17, 34, 64, 0.95);
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

.node-body {
    font-size: 0.85rem;
    color: #e6f1ff;
    font-weight: 600;
}

.node-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

/* Node Positioning */
.node-1 { top: 15%; left: 10%; border-left-color: var(--accent-primary); }
.node-2 { top: 35%; right: 10%; border-left-color: var(--accent-secondary); }
.node-3 { top: 55%; left: 10%; border-left-color: #fff; }
.node-4 { bottom: 15%; right: 10%; border-left-color: var(--accent-alert); }

/* === 3. Framework Logos (Polished) === */
.framework-strip {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.8;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(2, 12, 27, 0.3);
}

.fw-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.fw-item:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

/* === 4. Architecture Pillars Grid === */
.pillar-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(17, 34, 64, 0.7), rgba(10, 25, 47, 0.8));
    position: relative; /* Ensure proper stacking */
    z-index: 2;
}

.pillar-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(100, 255, 218, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: all 0.3s;
}

.pillar-card:hover .pillar-icon-box {
    background: rgba(100, 255, 218, 0.15);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    transform: rotate(5deg);
}

/* === 5. Spacing Fixes === */
.section-padding-lg {
    padding: 8rem 0;
}

.mb-large { margin-bottom: 5rem; }

/* === 6. Button Z-Index Fix === */
.hero-actions {
    position: relative;
    z-index: 10; /* Ensure buttons are clickable above any visual overlaps */
}

/* === 7. Framework Matrix (Polished) === */
.grid-2-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .grid-2-matrix { grid-template-columns: 1fr; }
}

.framework-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.framework-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--accent-muted);
    transition: all 0.3s;
}

.framework-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(100, 255, 218, 0.2);
}

.framework-card:hover::before {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

.framework-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.framework-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(2, 12, 27, 0.5);
    margin-right: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.framework-card:hover .framework-icon-wrapper {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(100, 255, 218, 0.1);
}

.framework-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 99px;
    text-transform: uppercase;
}

.framework-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}