/* ================= JOIN US - ENHANCED STYLES ================= */

/* Fix navbar overlap  */
#main-container {
    padding-top: 100px;
}
.hero-section .hero-content {
    padding-left: 40px;
    padding-right: 40px;
}

/* --- HERO OVERRIDES --- */
.typing-box {
    min-height: 120px;
    display: flex;
    align-items: flex-start;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.mission-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 10px 20px;
    background: rgba(0, 170, 255, 0.05);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 50px;
    opacity: 0; /* For Animation */
}

.status-label { color: var(--text-secondary); font-size: 0.9rem; }
.status-value { color: var(--accent-color); font-weight: bold; letter-spacing: 1px; }
.status-indicator {
    width: 10px; height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 0.5; box-shadow: 0 0 0 #00ff88; }
    50% { opacity: 1; box-shadow: 0 0 15px #00ff88; }
    100% { opacity: 0.5; box-shadow: 0 0 0 #00ff88; }
}

/* --- STEPS SECTION --- */
.cyber-steps-section {
    background: var(--bg-secondary);
    padding: 100px 0;
    position: relative;
}

.join-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
    opacity: 0; /* For Stagger Animation */
    transform: translateY(50px);
}

/* Holographic Border Effect on Hover */
.card-border {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px transparent;
    transition: all 0.4s ease;
    z-index: 2;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.step-card:hover .card-border {
    box-shadow: inset 0 0 20px rgba(0, 170, 255, 0.1);
    border: 1px solid var(--accent-color);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--bg-primary);
    -webkit-text-stroke: 2px var(--border-color);
    opacity: 0.5;
    line-height: 1;
    transition: color 0.3s;
}

.step-card:hover .step-number {
    color: rgba(0, 170, 255, 0.1);
    -webkit-text-stroke: 2px var(--accent-color);
    opacity: 1;
}

.step-icon-wrapper {
    width: 60px; height: 60px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.step-card:hover .step-icon-wrapper {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: rotate(10deg);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3);
}

.step-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.step-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* --- BUTTONS --- */
.btn-glitch-effect {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: 0.2s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-glitch-effect:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
}

.btn-hollow-tech {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-hollow-tech:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(0, 170, 255, 0.05);
}

.btn-hollow-tech i { margin-right: 8px; }

/* --- LIVE TERMINAL --- */
.glass-panel {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.traffic-lights { display: flex; gap: 8px; margin-right: 15px; }
.light { width: 12px; height: 12px; border-radius: 50%; }
.light.red { background: #ff5f56; }
.light.yellow { background: #ffbd2e; }
.light.green { background: #27c93f; }

.terminal-header .title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Scrollbar for terminal */
.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }

.log-line { opacity: 0; display: flex; gap: 10px; }
.log-time { color: var(--text-secondary); }
.log-proc { color: #ff0055; font-weight: bold; }
.log-msg { color: var(--text-primary); }
.log-msg.success { color: #00ff88; }

.center-text { text-align: center; margin-bottom: 40px; }

.hero-glitch {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    #main-container {
        padding-top: 130px;
    }
    .join-steps-grid { grid-template-columns: 1fr; }
    .hero-glitch { font-size: 2.5rem; }
    .hero-section .hero-content {
        padding-left: 5px;
        padding-right: 5px;
    }
}